monetary: Generate header file when module 'posixcheck' is in use.
[gnulib.git] / ChangeLog
blob75022d0ac0c77c3cf04727e2e2acc6627fb60018
1 2018-08-05  Bruno Haible  <bruno@clisp.org>
3         monetary: Generate header file when module 'posixcheck' is in use.
4         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
5         use, set MONETARY_H to non-empty.
7 2018-08-05  Bruno Haible  <bruno@clisp.org>
9         iconv-h: Generate header file when module 'posixcheck' is in use.
10         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
11         set ICONV_H to non-empty.
13 2018-08-05  Bruno Haible  <bruno@clisp.org>
15         Optimize the "checking whether ... is declared without a macro" checks.
16         Suggested by Paul Eggert in
17         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
18         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
19         Gnulib module 'posixcheck' is not in use.
21 2018-08-05  Bruno Haible  <bruno@clisp.org>
23         iconv-h: Enable 'posixcheck' warnings.
24         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
25         iconv_open.
26         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
28 2018-08-05  Bruno Haible  <bruno@clisp.org>
30         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
31         * m4/extern-inline.m4: Add more comments.
32         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
33         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
34         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
36 2018-08-04  Bruno Haible  <bruno@clisp.org>
38         New module 'posixcheck'.
39         * modules/posixcheck: New file.
40         * m4/posixcheck.m4: New file.
41         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
42         (Which modules?): Reference it.
44 2018-08-01  Assaf Gordon <assafgordon@gmail.com>
46         dfa: fix memory leak
47         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
49 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
51         ieee754-h: new module
52         It looks like Emacs can use this for some NaN processing.
53         Emacs uses it only on double NaNs so it should be safe.
54         * MODULES.html.sh (func_all_modules): Add ieee754-h.
55         * config/srclist.txt: Mention ieee754.h in a comment.
56         * doc/glibc-headers/ieee754.texi (ieee754.h):
57         Gnulib now has a substitute that should work
58         except for long double and for non-IEEE platforms.
59         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
60         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
62 2018-07-27  Bruno Haible  <bruno@clisp.org>
64         iswcntrl: Mention minor problem on macOS.
65         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
67 2018-07-26  Colin Watson  <cjwatson@debian.org>
69         bootstrap, gnulib-tool: fix translations rsync
70         Previously, we created files such as $pobase/Makefile.in.in and then the
71         subsequent rsync would immediately delete them.
72         * build-aux/bootstrap (po_download_command_format): Avoid deleting
73         non-.po files in target directory when rsyncing translations.
74         * gnulib-tool (func_import): Likewise.
75         * pygnulib/GLImport.py (GLImport.execute): Likewise.
77 2018-07-25  Jim Meyering  <meyering@fb.com>
79         bootstrap: reinstate definition fo gnulib_mk.
80         That variable is used at least by cppi.
81         * build-aux/bootstrap (gnulib_mk): Restore definition.
82         This reverts the deletion from v0.1-1844-gc66dba9ba.
84 2018-07-23  Bruno Haible  <bruno@clisp.org>
86         doc: For module names, use texinfo markup @code{} or @samp{}.
87         * doc/alloca.texi: Mark gnulib module names with @code.
88         * doc/alloca-opt.texi: Likewise.
89         * doc/quote.texi: Likewise.
90         * doc/posix-functions/freopen.texi: Likewise.
91         * doc/posix-functions/open.texi: Likewise.
92         * doc/posix-functions/readlink.texi: Likewise.
93         * doc/posix-functions/readlinkat.texi: Likewise.
94         * doc/posix-functions/stdout.texi: Likewise.
95         * doc/posix-functions/stderr.texi: Likewise.
96         * doc/posix-functions/unlink.texi: Likewise.
97         * doc/posix-functions/unlinkat.texi: Likewise.
98         * doc/posix-functions/utime.texi: Likewise.
99         * doc/posix-functions/utimensat.texi: Likewise.
100         * doc/posix-functions/utimes.texi: Likewise.
101         * doc/posix-headers/stdint.texi: Likewise.
102         * doc/glibc-functions/futimesat.texi: Likewise.
103         * doc/glibc-functions/lutimes.texi: Likewise.
104         * doc/glibc-functions/memmem.texi: Likewise.
106 2018-07-23  Werner LEMBERG  <wl@gnu.org>
108         doc: Avoid some overfull lines in the TeX output.
109         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
110         @example.
111         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
112         newline before the long URL.
113         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
114         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
115         Add line breaks in code snippets.
117 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
119         hard-locale: simplify by removing hard-locale.m4
120         * m4/hard-locale.m4: Remove.
121         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
122         (configure.ac): Do not call gl_HARD_LOCALE.
124         gnulib-tool: limit line length for git send-email
125         * gnulib-tool (func_import): Break actioncmd log line
126         into multiple lines.
128 2018-07-16  Bruno Haible  <bruno@clisp.org>
130         ffs: Ensure declaration on mingw.
131         Reported by Daniel P. Berrangé <berrange@redhat.com>
132         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
133         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
134         also declared.
136 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
138         regex-tests: add dependency
139         * modules/regex-tests (Depends-on): Add gettext-h.
140         This is needed given the recent changes to regex,
141         which no longer depends on gettext-h.
143 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
145         regex: now in sync with glibc
146         * config/srclist.txt: Gnulib and glibc regex code
147         are synchronized again.
149 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
151         renameatu: rename from renameat2
152         It's looking like Glibc will add a renameat2 function
153         that is incompatible with Gnulib renameat2; see:
154         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
155         To help avoid future confusion, rename renameat2 to something else.
156         Use the name 'renameatu', as the Gnulib function is close to the
157         Glibc function.  Perhaps someday there will also be a renameat2
158         Gnulib module, which mimicks the future glibc renameat2, but that
159         can wait as nobody seems to need such a module now.
160         * NEWS: Mention this.
161         * lib/renameatu.c: Rename from lib/renameat2.c.
162         * lib/renameatu.h: Rename from lib/renameat2.h.
163         * modules/renameatu: Rename from modules/renameat2.
164         * modules/renameatu-tests: Rename from modules/renameat2-tests.
165         All uses of "renameat2" in identifiers or file name
166         changed to "renameatu", except for two instances in
167         lib/renameatu.c that deal with the Linux kernel's
168         renameat2 syscall.
170 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
172         gnulib-tool: minor tweaks for --gnu-make
173         * gnulib-tool: Do not allow --gnu-make in test modes,
174         since they all require automake.
175         (func_emit_lib_Makefile_am): Don’t emit automake comment
176         if --gnu-make.
178         regex: work around conditional-dependencies glitch
179         * modules/regex (Depends-on): Add langinfo.
180         Without this change, I had problems building an experimental
181         version of GNU Emacs.  The symptom of the bug was a message
182         ‘./configure: line 12726: test: =: unary operator expected’.
183         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
184         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
185         was unset.  Although gl_FUNC_NL_LANGINFO has
186         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
187         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
188         --conditional-dependencies sometimes arranges for the
189         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
190         code.  Since the regex code includes <langinfo.h> it should be
191         depending on the langinfo module anyway, and this happens to work
192         around the bug, so install that as a workaround for now.  To
193         reproduce the original problem, run the following shell script on
194         the version of Gnulib just before this patch was installed.
195                 rm -fr foo
196                 mkdir foo
197                 cat >foo/configure.ac <<'EOF'
198                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
199                 gl_EARLY
200                 gl_INIT
201                 AC_OUTPUT
202                 EOF
203                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
204                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
205                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
206                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
207                 cd foo
208                 aclocal -I m4
209                 autoconf
210                 ./configure --with-included-regex
212 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
214         wchar: fix bug when checking for ‘inline’
215         I discovered this when looking into using the regex module
216         with Emacs.
217         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
218         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
219         conftest1.c and conftest2.c but these files were not created.
220         As far as I can see, this check never worked and nobody reported
221         it until now, which is a bit worrisome.
223 2018-06-30  Jim Meyering  <meyering@fb.com>
225         bootstrap: s/--option val/--option=val/
226         * build-aux/bootstrap (gnulib_tool_options): Change the
227         spelling of "--option val" pairs to "--option=val", for
228         aesthetics, and also so that this file no longer triggers
229         a common help2man syntax-check warning when copied into
230         projects like grep, gzip, etc.
232 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
234         manywarnings: omit -Wswitch-default
235         This should make things more consistent, as we already ignore
236         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
237         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
238         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
239         Add -Wswitch-default.
240         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
241         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
242         Remove -Wswitch-default.
244         regex: revert most trimming
245         Problems reported by Bruno Haible in:
246         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
247         * modules/regex (Depends-on): Add lock, memcmp, memmove,
248         and wctype back in.  lock because regex users shouldn’t
249         need to know that regex needs locking, and the rest because
250         gnulib-tool should ordinarily ignore them anyway.
252 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
254         regex: trim module dependencies
255         * modules/regex (Depends-on): Remove gettext-h and lock,
256         since the regex code should work OK without these modules,
257         and Emacs uses it that way.  Also remove memcmp, memmove,
258         and wctype, as these modules are obsolete and should not be
259         needed any more.
261 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
263         regex: glibc does not use intprops.h
264         Maybe we can talk glibc into using intprops.h someday, but
265         now doesn’t seem to be a good time.
266         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
267         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
268         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
270 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
272         regex: port to recently proposed glibc regex merge
273         This patch is inspired by Adhemerval Zanella's recent proposal
274         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
275         to merge glibc and Gnulib regex.  It aims to simplify the merge on
276         the glibc side, without keeping Gnulib portable.
277         * lib/regex.h: Fix a problem with glibc installed-header checking,
278         as follows:
279         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
280         (_Restrict_arr_): Prefer __restrict_arr if defined,
281         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
282         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
283         (build_wcs_upper_buffer, build_upper_buffer)
284         (re_string_translate_buffer, re_string_context_at):
285         Move decls here from lib/regex_internal.h, for glibc internal tests.
286         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
287         glibc BZ #18496.
288         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
289         -Wunused-value.
290         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
291         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
292         (bitset_mask): Now static inline, and without any __attribute__
293         ((unused)) decoration, for glibc internal tests.
295 2018-06-25  Bruno Haible  <bruno@clisp.org>
297         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
298         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
299         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
300         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
301         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
302         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
303         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
304         / -lthread / -lpth does not get optimized away by a preceding
305         --as-needed option.
307 2018-06-25  Bruno Haible  <bruno@clisp.org>
309         Continue to use spaces for indentation, not tabs.
310         * MODULES.html.sh: Untabify.
311         * doc/regex.texi: Likewise.
312         * lib/acl-internal.c: Likewise.
313         * lib/dfa.c: Likewise.
314         * lib/exclude.c: Likewise.
315         * lib/exclude.h: Likewise.
316         * lib/get-permissions.c: Likewise.
317         * lib/gettimeofday.c: Likewise.
318         * lib/parse-datetime.y: Likewise.
319         * lib/pselect.c: Likewise.
320         * lib/set-permissions.c: Likewise.
321         * lib/time.in.h: Likewise.
322         * m4/canonicalize.m4: Likewise.
323         * m4/gc.m4: Likewise.
324         * m4/gnulib-common.m4: Likewise.
325         * m4/pthread_sigmask.m4: Likewise.
326         * m4/vararrays.m4: Likewise.
327         * tests/test-digest.h: Likewise.
328         * tests/test-fcntl-h.c: Likewise.
329         * tests/test-timespec.c: Likewise.
330         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
332 2018-06-25  Bruno Haible  <bruno@clisp.org>
334         manywarnings: Don't enable -Wjump-misses-init warnings by default.
335         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
336         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
337         -Wjump-misses-init.
339 2018-06-25  Jim Meyering  <meyering@fb.com>
341         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
342         * lib/acl-internal.h (free_permission_context): Remove that
343         attribute directive.  Otherwise, it would provoke this from GCC 9:
344         lib/acl-internal.h:300:3: error: 'const' attribute on function \
345           returning 'void' [-Werror=attributes]
347 2018-06-24  Jim Meyering  <meyering@fb.com>
349         parse-datetime: accommodate gcc-4.8.5
350         Bruno Haible reported the build failure in
351         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
352         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
353         on declaration of new local.
355 2018-06-24  Bruno Haible  <bruno@clisp.org>
357         af_alg: Fail in continuable manner on Linux/powerpc64le.
358         Reported by Assaf Gordon <assafgordon@gmail.com>
359         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
360         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
361         byte send() as the first round.
363 2018-06-24  Bruno Haible  <bruno@clisp.org>
365         af_alg: Fix state of stream after sendfile() succeeds.
366         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
367         the stream is correctly positioned afterwards.
368         * modules/crypto/af_alg (Depends-on): Add fflush.
369         * tests/test-digest.h (test_digest_on_files): Verify that after the
370         operation the stream is positioned at end of file.
372 2018-06-24  Jim Meyering  <meyering@fb.com>
374         canon-host: take GCC9's advice rather than ignoring warning
375         Pádraig Brady suggested not to ignore this GCC9 advice.
376         * lib/canon-host.c: Undo preceding change.
377         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
379         parse-datetime.y: avoid spurious GCC 9 warning
380         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
381         a function local prior to the first "goto fail".  The prior use would
382         evoke this:
383         parse-datetime.y: In function 'parse_datetime2':
384         parse-datetime.y:1791:19: error: jump skips variable initialization \
385           [-Werror=jump-misses-init]
386         parse-datetime.y:2385:2: note: label 'fail' defined here
387         parse-datetime.y:188:43: note: '({anonymous})' declared here
388         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
390         canon-host.c: avoid spurious GCC 9 warning
391         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
393         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
394         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
395         * m4/manywarnings.m4: Remove them.
396         Otherwise, building coreutils, I would see this:
397         cc1: error: deprecated command line option '-Wchkp' [-Werror]
398         cc1: error: -Wabi won't warn about anything [-Werror=abi]
399         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
400           which is also used by default
401         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
403 2018-06-24  Bruno Haible  <bruno@clisp.org>
405         af_alg tests: Add another test.
406         * tests/test-digest.h (test_digest_on_files): Also check a large file
407         with a skipped header.
408         * tests/test-md5.c: Include macros.h.
409         * tests/test-sha1.c: Likewise.
410         * tests/test-sha256.c: Likewise.
411         * tests/test-sha512.c: Likewise.
412         * modules/crypto/md5-tests (Files): Add tests/macros.h.
413         * modules/crypto/sha1-tests (Files): Likewise.
414         * modules/crypto/sha256-tests (Files): Likewise.
415         * modules/crypto/sha512-tests (Files): Likewise.
417 2018-06-24  Pádraig Brady  <P@draigBrady.com>
419         maint: clarify comments about sticky EOF
420         * lib/af_alg.c: Be more direct that we can't
421         assume stickiness of EOF for portability reasons.
422         * lib/md5.c: Clarify that this isn't just a glibc issue.
423         * lib/sha1.c: Likewise.
424         * lib/sha256.c: Likewise.
425         * lib/sha512.c: Likewise.
427 2018-06-24  Bruno Haible  <bruno@clisp.org>
429         af_alg: Comment and style improvements.
430         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
431         (afalg_buffer, afalg_stream): Improve comments.
433 2018-06-24  Pádraig Brady  <P@draigBrady.com>
435         af_alg: disable kernel hash functions by default
436         All the kernel routines were seen to be significantly slower
437         with these relatively recent components on an i3-2310M system:
438           kernel-4.10.6-200.fc25.x86_64
439           openssl-1.0.2m-1.fc25.x86_64
440         sha1 was nearly twice as slow in the kernel for example.
441         Further considerations why this should not be the default, at:
442         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
444         * m4/af_alg.m4: Require --with-linux-crypto to enable.
445         * m4/gl-openssl.m4: Tweak accordingly.
447 2018-06-24  Pádraig Brady  <P@draigBrady.com>
449         af_alg: avoid hangs when reading from streams
450         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
451         and thus avoid doing a fread() when feof() is set.
452         * lib/md5.c: Ensure feof() is called before fread().
453         * lib/sha1.c: Likewise.
454         * lib/sha256.c: Likewise.
455         * lib/sha512.c: Likewise.
457 2018-06-24  Pádraig Brady  <P@draigBrady.com>
459         af_alg: fix error handling when hash not returned
460         * lib/af_alg.c (afalg_stream): Handle the case where we've
461         successfully written data to the kernel in the read/write loop,
462         but the kernel doesn't respond with the hash.
464 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
466         libc-config: merge from glibc
467         * lib/cdefs.h (__inline, __restrict):
468         Copy from current glibc.  This fixes glibc bug 17721,
469         which Gnulib had already fixed in a different way.
470         (__nonnull): Lessen the distance from glibc by using the
471         glibc definition inside an ‘#ifndef __nonnull’.
472         (__attribute_nonstring__): New macro, copied from
473         current glibc.
474         * lib/libc-config.h (__attribute_nonstring__): New undef.
475         (__restrict): Remove; workaround no longer needed.
476         Keep the __inline workaround, though, as it uses HAVE___INLINE to
477         support more compilers than the glibc __inline can.
479 2018-06-24  Bruno Haible  <bruno@clisp.org>
481         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
482         * lib/mbrtowc.c (enc_t): New enum type.
483         (locale_enc, locale_enc_cached): New functions.
484         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
485         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
486         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
487         instead.
488         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
489         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
490         * modules/wcwidth (configure.ac): Invoke it.
492 2018-06-24  Bruno Haible  <bruno@clisp.org>
494         wchar-single: Fix test failure in wcwidth tests.
495         * tests/test-wcwidth.c (main): If the wchar-single module is present,
496         skip the tests in the C locale.
498 2018-06-23  Pádraig Brady  <P@draigBrady.com>
500         crypto: mention --without-linux-crypto in --with-openssl --help
501         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
502         routines take precedence in --with-openssl help output.
504 2018-06-23  Pádraig Brady  <P@draigBrady.com>
506         wchar-single: a new module to enable optimizations in wchar replacements
507         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
508         GNULIB_WCHAR_SINGLE is enabled.
509         * lib/wcwidth.c (wcwidth): Likewise.
511 2018-06-23  Bruno Haible  <bruno@clisp.org>
513         libc-config: Fix conflict with FreeBSD include files.
514         * lib/cdefs.h (__nonnull): Remove definition.
515         * lib/libc-config.h (__nonnull): Remove undefinition.
517 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
519         random_r: do not crash if state is unaligned
520         Problem reported by Bruce Korb in:
521         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
522         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
523         with 'cc -O2 -xmemalign=8s'.
524         * lib/random_r.c: Include string.h, for memcpy.
525         (get_int32, set_int32): New functions.
526         (__srandom_r, __initstate_r, __setstate_r, __random_r):
527         Use them to avoid assumption that state pointer is aligned.
528         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
529         * tests/test-random_r.c (test_failed): New function.
530         (main): Use it, to test for alignment bugs.
532         random_r: omit unnecessary include
533         * lib/random_r.c: Do not include limits.h.
535         random, random_r: merge from glibc
536         * lib/random.c, lib/random_r.c:
537         Include libc-config.h if !_LIBC, not config.h unilaterally.
538         * lib/random.c:
539         Do not include stdint.h or time.h; not needed.
540         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
541         (unsafe_state): Rename from generator.  All uses changed.
542         Use C99-style initializers.
543         (__random, __srandom, __initstate, __setstate): Rename from
544         non-underscored version, but define it to non-underscored version
545         on Gnulib.  Add a lock.
546         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
547         Likewise.
548         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
549         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
550         (__srandom_r): Use int32_t instead of long int where int32_t will do.
551         (__random_r): Use uint32 to fix glibc bug 17343.
552         * modules/random, modules/random_r (Depends-on): Add libc-config.
553         Depend on stdint only if $HAVE_RANDOM = 0.
555 2018-06-19  Jim Meyering  <meyering@fb.com>
557         README-release: also run any check-very-expensive tests
558         * top/README-release: Adjust instructions so they run the
559         check-very-expensive tests when there is such a target.
561 2018-06-18  Bruno Haible  <bruno@clisp.org>
563         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
564         * m4/pthread_rwlock_rdlock.m4: Add comment.
565         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
566         are reader-preferring in glibc.
567         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
568         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
570 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
572         crypto: use byteswap
573         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
574         * lib/sm3.c: Include <byteswap.h>.
575         (SWAP): Use its macros rather than reinventing the wheel.
576         * modules/crypto/md4, modules/crypto/md5-buffer:
577         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
578         * modules/crypto/sha512-buffer, modules/crypto/sm3:
579         (Depends-on): Add byteswap.
581 2018-06-17  Pádraig Brady  <P@draigBrady.com>
583         gendocs.sh: fix support for legacy --texi2html
584         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
585         to the default makeinfo invocation.
586         Reported by Bruce Korb
588 2018-06-17  Bruno Haible  <bruno@clisp.org>
590         gettext po infrastructure: Update from current gettext git.
591         Reported by Akim Demaille <akim@lrde.epita.fr>.
592         * build-aux/po/Makefile.in.in: Update from current gettext git.
593         * build-aux/po/remove-potcdate.sin: Likewise.
594         * config/srclist.txt: Temporarily disable sync for these files.
596 2018-06-17  Bruno Haible  <bruno@clisp.org>
598         getloadavg: Return 0 on Windows without Cygwin.
599         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
601 2018-06-17  Paul Smith  <psmith@gnu.org>
603         getloadavg: Allow building on Windows without Cygwin
604         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
605         * m4/getloadavg.m4: Check for unistd.h.
607 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
609         Port crypto/af_alg to GCC 4.8.4
610         Problem reported by Peter Simons in:
611         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
612         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
614 2018-05-27  Colin Watson  <cjwatson@debian.org>
616         bootstrap: document source fetching in --help
617         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
619 2018-04-09  Colin Watson  <cjwatson@debian.org>
621         bootstrap: allow non-submodule control of gnulib
622         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
623         bootstrap.conf when fetching gnulib using "git clone" or via
624         GNULIB_SRCDIR.
626 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
628         crypto: omit stream ops Emacs doesn’t need
629         * lib/md5.c (md5_stream):
630         * lib/sha1.c (sha1_stream):
631         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
632         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
633         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
634         defined.  Emacs needs this, as it does not use the stream
635         operations and doesn’t need all the af_alg stuff we’ve recently
636         added.  Perhaps a similar change is needed to the other crypto
637         modules, but this patch changes only those needed for Emacs.
638         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
639         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
640         New modules, used by Emacs.
641         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
642         * modules/crypto/sha512: Rewrite to depend on the new modules.
644 2018-05-20  Pádraig Brady  <P@draigBrady.com>
646         fts: avoid a memory leak edge case
647         * lib/fts.c (fts_open): Set an appropriate fts_level
648         so that an immediate fts_close() will free the allocation.
649         * tests/test-fts.c (fts_dealloc): Add a test case which
650         will trigger under valgrind or address sanitizer.
651         Fixes https://bugs.gnu.org/31439
653 2018-05-20  Bruno Haible  <bruno@clisp.org>
655         wcwidth tests: Fix link error.
656         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
657         $(LIBUNISTRING).
659 2018-05-20  Bruno Haible  <bruno@clisp.org>
661         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
662         * modules/regex (Files): Add m4/glibc21.m4.
664 2018-05-20  Bruno Haible  <bruno@clisp.org>
666         localcharset: Optimize.
667         * lib/localcharset.c (alias_table): Comment out no-op mappings for
668         platforms where these don't matter. This reduces the table size,
669         which in turn reduces the lookup time.
671 2018-05-19  Bruno Haible  <bruno@clisp.org>
673         localcharset: Map the locale encodings found in newer OSes.
674         * lib/localcharset.c (alias_table): Add mapping for locale encodings
675         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
676         IRIX 6.5, Minix 3.3.
677         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
679 2018-05-19  Bruno Haible  <bruno@clisp.org>
681         localcharset: Move mapping tables into the code. Use a binary search.
682         * lib/localcharset.h: Document the GNU canonical names for character
683         encodings here.
684         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
685         relocatable.h, configmake.h.
686         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
687         macros.
688         (charset_aliases): Remove variable.
689         (get_charset_aliases): Remove function.
690         (struct table_entry): New type.
691         (alias_table, locale_table): New constants.
692         (locale_charset): Use the alias_table or locale_table to get the
693         canonicalized encoding name.
694         * lib/config.charset: Remove file.
695         * lib/ref-add.sin: Remove file.
696         * lib/ref-del.sin: Remove file.
697         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
698         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
699         * modules/localcharset (Notice): Remove.
700         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
701         glibc21.m4.
702         (Depends-on): Remove configmake.
703         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
704         (Makefile.am): Simplify.
705         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
707 2018-05-19  Bruno Haible  <bruno@clisp.org>
709         localcharset: Add a manual test.
710         * tests/test-localcharset.c: New file.
711         * modules/localcharset-tests: New file.
713 2018-05-19  Bruno Haible  <bruno@clisp.org>
715         localcharset: Remove support for obsolete platforms.
716         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
717         Mac OS X 10.2. Comment out dubious entry for Solaris.
719 2018-05-19  Jim Meyering  <meyering@fb.com>
721         gnupload: adjust comment
722         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
723         more likely we'll remove the just-added code in a year or two.
725 2018-05-19  Bruno Haible  <bruno@clisp.org>
727         gnupload: Fix "gpg-agent is not available in this session" error.
728         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
730 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
732         crypto/af_alg: fix --help
733         * m4/af_alg.m4: Avoid spurious newline in --help output.
735 2018-05-13  Bruno Haible  <bruno@clisp.org>
737         nl_langinfo: Fix compilation error on Android.
738         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
739         INT_CURR_SYMBOL, etc. only if these items are defined.
741 2018-05-13  Bruno Haible  <bruno@clisp.org>
743         truncate: Fix compilation error on Android.
744         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
745         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
746         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
747         HAVE_TRUNCATE.
748         * modules/truncate: Likewise.
749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
750         not HAVE_TRUNCATE.
751         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
752         HAVE_TRUNCATE.
753         * doc/posix-functions/truncate.texi: Mention the issue.
755 2018-05-13  Bruno Haible  <bruno@clisp.org>
757         pthread: Fix compilation error on Android.
758         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
759         recursive inclusion of this file.
761 2018-05-13  Bruno Haible  <bruno@clisp.org>
763         posix_spawn: Fix compilation error on Android.
764         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
765         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
766         (posix_spawn_file_actions_t): Consider also the case
767         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
769 2018-05-13  Bruno Haible  <bruno@clisp.org>
771         tsearch: Move from K&R C to ANSI C.
772         * lib/tsearch.c (tfind): Convert definition to ANSI C.
774 2018-05-13  Bruno Haible  <bruno@clisp.org>
776         tsearch: Fix compilation error on Android.
777         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
778         is 0.
779         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
780         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
781         GNULIB_defined_tsearch is true.
782         (twalk): Define only if GNULIB_defined_twalk is true.
783         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
784         is 0.
785         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
786         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
787         * modules/search (Makefile.am): Substitute HAVE_TWALK.
789 2018-05-13  Bruno Haible  <bruno@clisp.org>
791         imaxdiv: Fix compilation error on Android.
792         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
793         is not defined.
794         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
795         HAVE_DECL_IMAXDIV, is 0.
796         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
797         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
799 2018-05-13  Bruno Haible  <bruno@clisp.org>
801         Support selective inclusion mechanism of recent mingw.org header files.
802         Reported by Eli Zaretskii <eliz@gnu.org>.
803         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
804         __need_ssize_t, or __need_time_t is defined, just include the system's
805         <sys/types.h>.
806         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
807         include the system's <locale.h>.
809 2018-05-13  Bruno Haible  <bruno@clisp.org>
811         Avoid compilation error due to 'mmap' on Android.
812         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
813         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
814         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
815         Undefine on Android.
817 2018-05-13  Bruno Haible  <bruno@clisp.org>
819         Add cross-compilation guesses for Linux systems without glibc.
820         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
821         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
822         * m4/link.m4 (gl_FUNC_LINK): Likewise.
823         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
824         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
825         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
826         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
827         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
828         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
829         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
830         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
831         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
832         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
833         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
834         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
835         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
836         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
837         * m4/utimens.m4 (gl_UTIMENS): Likewise.
839 2018-05-13  Bruno Haible  <bruno@clisp.org>
841         getpagesize: Fix compilation error on Android.
842         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
843         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
844         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
845         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
846         HAVE_GETPAGESIZE accordingly.
847         * modules/getcwd (Files): Add m4/getpagesize.m4.
849 2018-05-13  Bruno Haible  <bruno@clisp.org>
851         tcgetsid: Fix compilation error on Android.
852         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
853         AC_CHECK_FUNC.
855 2018-05-13  Bruno Haible  <bruno@clisp.org>
857         getpass: Fix configure test for Android.
858         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
859         AC_CHECK_FUNC.
861 2018-05-13  Bruno Haible  <bruno@clisp.org>
863         ffs: Fix compilation error on Android.
864         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
866 2018-05-13  Bruno Haible  <bruno@clisp.org>
868         mkfifo: Fix compilation error on Android.
869         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
870         AC_CHECK_FUNC.
872 2018-05-13  Bruno Haible  <bruno@clisp.org>
874         c-strtod: Fix configure test for Android.
875         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
876         AC_CHECK_FUNC.
878 2018-05-13  Bruno Haible  <bruno@clisp.org>
880         random: Fix compilation error on Android.
881         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
882         AC_CHECK_FUNC.
884 2018-05-13  Bruno Haible  <bruno@clisp.org>
886         grantpt: Fix compilation error on Android.
887         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
888         AC_CHECK_FUNC.
890 2018-05-13  Bruno Haible  <bruno@clisp.org>
892         stdioext: Fix compilation errors with newer Android headers.
893         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
894         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
895         fallbacks for Android.
896         * lib/fpending.c: Update comments.
897         * lib/fpurge.c: Likewise.
898         * lib/freadable.h: Likewise.
899         * lib/freadable.c: Likewise.
900         * lib/freadahead.c: Likewise.
901         * lib/freading.h: Likewise.
902         * lib/freadptr.c: Likewise.
903         * lib/fseterr.c: Likewise.
904         * lib/fwritable.h: Likewise.
905         * lib/fwritable.c: Likewise.
906         * lib/fwriting.h: Likewise.
907         * lib/fwriting.c: Likewise.
909 2018-05-13  Bruno Haible  <bruno@clisp.org>
911         doc: Add info about Android versions 2.0 to 8.1.
912         * doc/**/*.texi: Add info about functions in all released versions of
913         Bionic.
915 2018-05-12  Bruno Haible  <bruno@clisp.org>
917         fseeko: On mingw, don't use the hidden function _fseeki64.
918         Reported by Eli Zaretskii <eliz@gnu.org>.
919         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
920         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
922 2018-05-12  Bruno Haible  <bruno@clisp.org>
924         glob: Choose 'dirent_type' in a way that works better on mingw.
925         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
926         * lib/glob.c (dirent_type): Define as uint_fast32_t.
928 2018-05-12  Bruno Haible  <bruno@clisp.org>
930         execute, spawn-pipe: Avoid warning about redefining 'close'.
931         Reported by Eli Zaretskii <eliz@gnu.org>.
932         * lib/execute.c: Undefine 'close' before redefining it.
933         * lib/spawn-pipe.c: Likewise.
935 2018-05-12  Bruno Haible  <bruno@clisp.org>
937         nanosleep: Avoid test failure on mingw when it has nanosleep.
938         Reported by Eli Zaretskii <eliz@gnu.org>.
939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
940         If it does not exist, use a simpler test program that does not call
941         alarm().
943 2018-05-10  Bruno Haible  <bruno@clisp.org>
945         lock, cond, thread, tls: Use a different symbol as libpthread witness.
946         Reported by Devin Hussey <husseydevin@gmail.com>.
947         Based on a patch by Paul Eggert.
948         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
949         as witness of libpthread.
950         * lib/glthread/cond.h (pthread_in_use): Likewise.
951         * lib/glthread/thread.h (pthread_in_use): Likewise.
952         * lib/glthread/tls.h (pthread_in_use): Likewise.
954 2018-05-10  Bruno Haible  <bruno@clisp.org>
956         cond tests: Fix compilation error on Solaris.
957         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
958         macro.
960 2018-05-10  Bruno Haible  <bruno@clisp.org>
962         doc: Add partial info about Android 4.3.
963         * doc/*-functions/*.texi: Add info about functions that were added
964         to Bionic between Android 4.3 and Android 9.0.
966 2018-05-10  Bruno Haible  <bruno@clisp.org>
968         doc: Add info about Android 9.0.
969         * doc/**/*.texi: Add info about functions and headers in Bionic from
970         Android 9.0.
972 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
974         af_alg: fix my typo in afalg_buffer
975         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
976         (afalg_stream): Simplify and avoid the need for a runtime test
977         at the end.
979         af_alg: recover better from crypto failures
980         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
981         input stream is seekable, by repositioning the stream back to
982         where it was, possibly by just calling sendfile with an offset
983         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
984         cases, which lets our callers try again with user-mode code.
985         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
986         instead of on fflush and lseek.
988         af_alg: distiguish I/O errors better
989         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
990         not -EIO, if it’s OK for the caller to try again with user-mode code.
991         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
992         some other error number) if fflush fails, as the caller should not
993         try again that case.
995         af_alg: avoid gotos
996         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
997         gotos, as they were a source of unreliability and made the code a
998         bit harder to follow.
1000         af_alg: don’t leak file descriptors into children
1001         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
1002         This code should be compiled only on recent GNU/Linux platforms
1003         so we shouldn’t have to also depend on the accept4 module.
1005         af_alg: coalesce socket creation
1006         * lib/af_alg.c (alg_socket): New function.
1007         (afalg_buffer, afalg_stream): Use it.  This avoids some
1008         code duplication and gotos.
1010         af_alg: fix file descriptor leak
1011         * lib/af_alg.c (afalg_stream): Close leak.
1013         af_alg: Pacify --enable-gcc-warnings on GCC 8
1014         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
1015         and checking to pacify gcc -Wjump-misses-init on GCC 8.
1017 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1019         af_alg: Pacify --enable-gcc-warnings
1020         Problem reported by Assaf Gordon in:
1021         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
1022         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
1023         gcc -Wjump-misses-init.
1024         * lib/sha512.c (shaxxx_stream): Now static.
1026 2018-05-06  Bruno Haible  <bruno@clisp.org>
1028         af_alg: Add ability to use Linux kernel crypto API on data in memory.
1029         * lib/af_alg.h (afalg_buffer): New declaration.
1030         * lib/af_alg.c (afalg_buffer): New function.
1032 2018-05-06  Bruno Haible  <bruno@clisp.org>
1034         af_alg: Avoid warnings.
1035         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
1036         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
1038 2018-05-06  Bruno Haible  <bruno@clisp.org>
1040         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
1041         * tests/bench-digest.h: New file.
1042         * tests/bench-md5.c: New file.
1043         * tests/bench-sha1.c: New file.
1044         * tests/bench-sha224.c: New file.
1045         * tests/bench-sha256.c: New file.
1046         * tests/bench-sha384.c: New file.
1047         * tests/bench-sha512.c: New file.
1048         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
1049         tests/bench-digest.h.
1050         (Depends-on): Add getrusage, gettimeofday.
1051         (Makefile.am): Add variables to build bench-md5.
1052         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
1053         tests/bench-digest.h.
1054         (Depends-on): Add getrusage, gettimeofday.
1055         (Makefile.am): Add variables to build bench-sha1.
1056         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
1057         tests/bench-sha256.c, tests/bench-digest.h.
1058         (Depends-on): Add getrusage, gettimeofday.
1059         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
1060         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
1061         tests/bench-sha512.c, tests/bench-digest.h.
1062         (Depends-on): Add getrusage, gettimeofday.
1063         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
1065 2018-05-06  Bruno Haible  <bruno@clisp.org>
1067         af_alg: Fix a resource leak.
1068         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
1069         New local variable 'result'.
1071 2018-05-06  Bruno Haible  <bruno@clisp.org>
1073         af_alg: Fix bug with streams that are not at position 0.
1074         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
1075         assume that the stream is positioned at position 0.
1076         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
1077         of the stream.
1078         * lib/md5.h (md5_stream): Likewise.
1079         * lib/sha1.h (sha1_stream): Likewise.
1080         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
1081         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
1082         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
1084         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
1085         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
1086         stream that is not positioned at the beginning.
1088 2018-05-06  Bruno Haible  <bruno@clisp.org>
1090         af_alg: Add configure option to enable/disable use of Linux crypto API.
1091         Suggested by Assaf Gordon <assafgordon@gmail.com>.
1092         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
1093         USE_LINUX_CRYPTO_API.
1094         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
1095         * lib/af_alg.c: Likewise.
1097 2018-05-06  Bruno Haible  <bruno@clisp.org>
1099         Followup to 'af_alg: New module.'.
1100         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
1101         * modules/crypto/sha1 (Depends-on): Likewise.
1102         * modules/crypto/sha256 (Depends-on): Likewise.
1103         * modules/crypto/sha512 (Depends-on): Likewise.
1105 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1107         crypto/{md5,sha1,sha256,sha512}: simplify
1108         * lib/md5.c (md5_stream):
1109         * lib/sha1.c (sha1_stream):
1110         * lib/sha256.c (shaxxx_stream):
1111         Simplify, partly by assuming C99.
1112         * lib/sha256.c (shaxxx_stream):
1113         New function, which implements both sha256 and sha224.
1114         Simplify, partly by assuming C99.
1115         (sha256_stream, sha224_stream):
1116         Use it to avoid code duplication, removing a FIXME.
1117         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
1118         Likewise.
1120         af_alg: Improve comments.
1121         * lib/af_alg.h: Use imperatives and tighten up wording.
1123 2018-05-05  Bruno Haible  <bruno@clisp.org>
1125         af_alg: Improve comments.
1126         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
1128 2018-05-05  Bruno Haible  <bruno@clisp.org>
1130         af_alg: New module.
1131         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
1132         * lib/af_alg.c: Include "af_alg.h" before the other header files.
1133         * lib/md5.c: Include "af_alg.h" unconditionally.
1134         (md5_stream): Invoke afalg_stream unconditionally.
1135         * lib/sha1.c: Include "af_alg.h" unconditionally.
1136         (sha1_stream): Invoke afalg_stream unconditionally.
1137         * lib/sha256.c: Include "af_alg.h" unconditionally.
1138         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
1139         * lib/sha512.c: Include "af_alg.h" unconditionally.
1140         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
1141         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
1142         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
1143         * modules/crypto/af_alg: New file.
1144         * modules/crypto/md5 (Files): Remove files that are now in the
1145         'crypto/af_alg' module.
1146         (Depends-on): Add crypto/af_alg.
1147         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1148         (Makefile.am): Don't mention af_alg.c here.
1149         * modules/crypto/sha1 (Files): Remove files that are now in the
1150         'crypto/af_alg' module.
1151         (Depends-on): Add crypto/af_alg.
1152         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1153         (Makefile.am): Don't mention af_alg.c here.
1154         * modules/crypto/sha256 (Files): Remove files that are now in the
1155         'crypto/af_alg' module.
1156         (Depends-on): Add crypto/af_alg.
1157         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1158         (Makefile.am): Don't mention af_alg.c here.
1159         * modules/crypto/sha512 (Files): Remove files that are now in the
1160         'crypto/af_alg' module.
1161         (Depends-on): Add crypto/af_alg.
1162         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1163         (Makefile.am): Don't mention af_alg.c here.
1165 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1167         crypto tests: pacify GCC
1168         * tests/test-digest.h (test_digest_on_files):
1169         Don’t assume digest size fits in int (!).
1171         af_alg: minor style improvements
1172         * lib/af_alg.c (afalg_stream): Prefer C99 style
1173         decl-after-statement, since we’re already assuming C99.  Clarify
1174         by strengthening the bind test and omit unnecessary assignment.
1176 2018-05-05  Bruno Haible  <bruno@clisp.org>
1178         af_alg: Fix bug on empty files.
1179         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
1180         stream is empty.
1182 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1184         sys-limits.h: new file for crypto and safe I/O
1185         * lib/af_alg.c: Include sys-limits.h.
1186         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
1187         (afalg_stream): Also reject negative sizes for sendfile; they
1188         should not happen and the code is a bit cleaner and faster this way.
1189         * lib/safe-read.c: Include sys-limits.h.
1190         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
1191         * lib/sys-limits.h: New file, with values and commentary derived
1192         from the old safe-read.c and from GNU Emacs sysdep.c.
1193         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1194         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
1195         Add lib/sys-limits.h to Files section.
1197 2018-05-05  Bruno Haible  <bruno@clisp.org>
1199         af_alg: Improve function signature.
1200         * lib/af_alg.h (afalg_stream): Swap second and third argument.
1201         * lib/af_alg.c (afalg_stream): Likewise.
1202         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
1204 2018-05-05  Bruno Haible  <bruno@clisp.org>
1206         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
1207         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
1208         * modules/crypto/sha1 (Depends-on): Likewise.
1209         * modules/crypto/sha256 (Depends-on): Likewise.
1210         * modules/crypto/sha512 (Depends-on): Likewise.
1212 2018-05-05  Bruno Haible  <bruno@clisp.org>
1214         crypto/{md5,sha1,sha256,sha512}: Fix module description.
1215         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
1216         * modules/crypto/sha1 (Depends-on): Likewise.
1217         * modules/crypto/sha256 (Depends-on): Likewise.
1218         * modules/crypto/sha512 (Depends-on): Likewise.
1220 2018-05-05  Bruno Haible  <bruno@clisp.org>
1222         af_alg: Add documentation.
1223         * lib/af_alg.h: Add comments.
1225 2018-05-05  Bruno Haible  <bruno@clisp.org>
1227         sha512: Add tests.
1228         * tests/test-sha512.c: New file.
1229         * modules/crypto/sha512-tests: New file.
1231 2018-05-05  Bruno Haible  <bruno@clisp.org>
1233         sha256: Add tests.
1234         * tests/test-sha256.c: New file.
1235         * modules/crypto/sha256-tests: New file.
1237 2018-05-05  Bruno Haible  <bruno@clisp.org>
1239         sha1 tests: Add test for sha1_stream.
1240         * tests/test-sha1.c: Include test-digest.h.
1241         (main): Invoke test_digest_on_files on 'sha1_stream'.
1242         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
1244 2018-05-05  Bruno Haible  <bruno@clisp.org>
1246         md5 tests: Add test for md5_stream.
1247         * tests/test-digest.h: New file.
1248         * tests/test-md5.c: Include test-digest.h.
1249         (main): Invoke test_digest_on_files on 'md5_stream'.
1250         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
1252 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1254         md5sum: Use AF_ALG when available.
1255         * lib/md5.c: Include af_alg.h.
1256         (md5_stream): Use afalg_stream when available.
1257         * modules/crypto/md5 (Files): Add the af_alg files.
1258         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1259         (Makefile.am): Add af_alg.c.
1261 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1263         sha512sum: Use AF_ALG when available.
1264         * lib/sha512.c: Include af_alg.h.
1265         (sha512_stream, sha384_stream): Use afalg_stream when available.
1266         * modules/crypto/sha512 (Files): Add the af_alg files.
1267         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1268         (Makefile.am): Add af_alg.c.
1270 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1272         sha256sum: Use AF_ALG when available.
1273         * lib/sha256.c: Include af_alg.h.
1274         (sha256_stream, sha224_stream): Use afalg_stream when available.
1275         * modules/crypto/sha256 (Files): Add the af_alg files.
1276         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1277         (Makefile.am): Add af_alg.c.
1279 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1281         sha1sum: Use AF_ALG when available.
1282         * lib/af_alg.h: New file.
1283         * lib/af_alg.c: New file.
1284         * lib/sha1.c: Include af_alg.h.
1285         (sha1_stream): Use afalg_stream when available.
1286         * m4/linux-if-alg.m4: New file.
1287         * modules/crypto/sha1 (Files): Add the new files.
1288         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1289         (Makefile.am): Add af_alg.c.
1291 2018-05-05  Bruno Haible  <bruno@clisp.org>
1293         all: Replace more http URLs by https URLs.
1294         * lib/localename.c: Use https: URL.
1295         * lib/timespec.h: Likewise.
1297 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1299         maint: port more modules to GCC 8
1300         * lib/dirname.h (base_name):
1301         * lib/exclude.h (new_exclude):
1302         * lib/xstrndup.h (xstrndup):
1303         Add malloc attribute.
1304         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
1305         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
1306         This pacifies GCC 8.
1307         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1308         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
1310 2018-05-03  Bruno Haible  <bruno@clisp.org>
1312         Simplify code. Drop support for Borland C++ on Windows.
1313         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
1314         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
1315         'defined _WIN32'.
1316         * lib/canonicalize-lgpl.c: Likewise.
1317         * lib/classpath.c: Likewise.
1318         * lib/clean-temp.c: Likewise.
1319         * lib/csharpexec.c: Likewise.
1320         * lib/ctime.c: Likewise.
1321         * lib/dosname.h: Likewise.
1322         * lib/dup2.c: Likewise.
1323         * lib/errno.in.h: Likewise.
1324         * lib/error.c: Likewise.
1325         * lib/euidaccess.c: Likewise.
1326         * lib/execute.c: Likewise.
1327         * lib/fcntl.in.h: Likewise.
1328         * lib/fcntl.c: Likewise.
1329         * lib/filename.h: Likewise.
1330         * lib/findprog.c: Likewise.
1331         * lib/flock.c: Likewise.
1332         * lib/fopen.c: Likewise.
1333         * lib/freopen.c: Likewise.
1334         * lib/fstat.c: Likewise.
1335         * lib/fsync.c: Likewise.
1336         * lib/gc-gnulib.c: Likewise.
1337         * lib/get-rusage-data.c: Likewise.
1338         * lib/getaddrinfo.c: Likewise.
1339         * lib/getdelim.c: Likewise.
1340         * lib/getdtablesize.c: Likewise.
1341         * lib/gethostname.c: Likewise.
1342         * lib/getlogin.c: Likewise.
1343         * lib/getlogin_r.c: Likewise.
1344         * lib/getopt.c: Likewise.
1345         * lib/getpagesize.c: Likewise.
1346         * lib/getpass.c: Likewise.
1347         * lib/getrusage.c: Likewise.
1348         * lib/gettimeofday.c: Likewise.
1349         * lib/glob.c: Likewise.
1350         * lib/inttypes.in.h: Likewise.
1351         * lib/isapipe.c: Likewise.
1352         * lib/javaexec.c: Likewise.
1353         * lib/link.c: Likewise.
1354         * lib/localcharset.c: Likewise.
1355         * lib/localename.h: Likewise.
1356         * lib/localename.c: Likewise.
1357         * lib/localtime.c: Likewise.
1358         * lib/lseek.c: Likewise.
1359         * lib/mbsinit.c: Likewise.
1360         * lib/mkdir.c: Likewise.
1361         * lib/msvc-nothrow.h: Likewise.
1362         * lib/nanosleep.c: Likewise.
1363         * lib/nl_langinfo.c: Likewise.
1364         * lib/nonblocking.c: Likewise.
1365         * lib/nproc.c: Likewise.
1366         * lib/open.c: Likewise.
1367         * lib/openpty.c: Likewise.
1368         * lib/pathmax.h: Likewise.
1369         * lib/pipe-filter-aux.c: Likewise.
1370         * lib/pipe-filter-gi.c: Likewise.
1371         * lib/pipe-filter-ii.c: Likewise.
1372         * lib/pipe.c: Likewise.
1373         * lib/pipe2.c: Likewise.
1374         * lib/poll.c: Likewise.
1375         * lib/popen.c: Likewise.
1376         * lib/posix_openpt.c: Likewise.
1377         * lib/printf-parse.c: Likewise.
1378         * lib/progreloc.c: Likewise.
1379         * lib/putenv.c: Likewise.
1380         * lib/read.c: Likewise.
1381         * lib/relocatable.c: Likewise.
1382         * lib/rename.c: Likewise.
1383         * lib/same-inode.h: Likewise.
1384         * lib/secure_getenv.c: Likewise.
1385         * lib/select.c: Likewise.
1386         * lib/sethostname.c: Likewise.
1387         * lib/setlocale.c: Likewise.
1388         * lib/sigaction.c: Likewise.
1389         * lib/sigprocmask.c: Likewise.
1390         * lib/sleep.c: Likewise.
1391         * lib/spawn-pipe.h: Likewise.
1392         * lib/spawn-pipe.c: Likewise.
1393         * lib/spawni.c: Likewise.
1394         * lib/stat-time.h: Likewise.
1395         * lib/stat-w32.c: Likewise.
1396         * lib/stat.c: Likewise.
1397         * lib/stdio.in.h: Likewise.
1398         * lib/stdio-impl.h: Likewise.
1399         * lib/stdio-read.c: Likewise.
1400         * lib/stdio-write.c: Likewise.
1401         * lib/stdlib.in.h: Likewise.
1402         * lib/strerror_r.c: Likewise.
1403         * lib/strftime-fixes.c: Likewise.
1404         * lib/sys_stat.in.h: Likewise.
1405         * lib/sys_types.in.h: Likewise.
1406         * lib/sys_wait.in.h : Likewise.
1407         * lib/system-quote.h: Likewise.
1408         * lib/system-quote.c: Likewise.
1409         * lib/tmpdir.c: Likewise.
1410         * lib/tzset.c: Likewise.
1411         * lib/uname.c: Likewise.
1412         * lib/unistd.in.h: Likewise.
1413         * lib/utime.in.h: Likewise.
1414         * lib/utime.c: Likewise.
1415         * lib/utimecmp.c: Likewise.
1416         * lib/utimens.c: Likewise.
1417         * lib/vasnprintf.c: Likewise.
1418         * lib/vma-iter.h: Likewise.
1419         * lib/vma-iter.c: Likewise.
1420         * lib/wait-process.c: Likewise.
1421         * lib/wcsftime.c: Likewise.
1422         * lib/wctype.in.h: Likewise.
1423         * lib/write.c: Likewise.
1424         * tests/nap.h: Likewise.
1425         * tests/test-cloexec.c: Likewise.
1426         * tests/test-dup-safer.c: Likewise.
1427         * tests/test-dup2.c: Likewise.
1428         * tests/test-dup3.c: Likewise.
1429         * tests/test-fcntl.c: Likewise.
1430         * tests/test-get-rusage-data.c: Likewise.
1431         * tests/test-getaddrinfo.c: Likewise.
1432         * tests/test-getlogin.h: Likewise.
1433         * tests/test-isatty.c: Likewise.
1434         * tests/test-localename.c: Likewise.
1435         * tests/test-mbrtowc-w32.c: Likewise.
1436         * tests/test-nonblocking.c: Likewise.
1437         * tests/test-nonblocking-pipe-main.c: Likewise.
1438         * tests/test-nonblocking-socket-main.c: Likewise.
1439         * tests/test-nonblocking-socket.h: Likewise.
1440         * tests/test-pipe.c: Likewise.
1441         * tests/test-pipe2.c: Likewise.
1442         * tests/test-poll.c: Likewise.
1443         * tests/test-pthread_sigmask1.c: Likewise.
1444         * tests/test-select.h: Likewise.
1445         * tests/test-sethostname2.c: Likewise.
1446         * tests/test-sigprocmask.c: Likewise.
1447         * tests/test-spawn-pipe-child.c: Likewise.
1448         * tests/test-stat-time.c: Likewise.
1449         * tests/test-system-quote-main.c: Likewise.
1450         * tests/test-utimens-common.h: Likewise.
1451         * tests/test-wcrtomb-w32.c: Likewise.
1452         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1453         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1454         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
1455         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
1456         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
1457         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1458         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1459         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1460         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1461         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1462         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
1463         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
1464         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1465         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1466         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
1467         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1469 2018-05-02  Bruno Haible  <bruno@clisp.org>
1471         localename: Fix test failures on mingw.
1472         * lib/localename.c (gl_locale_name_thread): Remove code specific to
1473         native Windows.
1474         (gl_locale_name_posix): Move code specific to native Windows here.
1475         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
1476         Accept result without charset suffix, as it appears on mingw.
1478 2018-04-28  Paul Smith  <psmith@gnu.org>
1480         bootstrap: Avoid gnulib operations if not needed
1481         * build-aux/bootstrap: Remove unused variable gnulib_mk.
1482         Set $gnulib_extra_files early so it can be overridden in .conf.
1483         Remove redundant --import flag from $gnulib_tool_options.
1484         Set $use_gnulib to false if no gnulib modules or files are needed.
1485         If $use_gnulib is false, don't do anything related to gnulib.
1486         A lot of this is just whitespace (indentation) changes.
1488 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1490         manywarnings: port to GCC 8.0
1491         * build-aux/gcc-warning.spec: Add -Wcatch-value,
1492         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
1493         fact that the GCC help message now mentions operands for
1494         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
1495         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
1496         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
1497         and -Wunused-const-variable.
1498         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
1499         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
1500         -Wmissing-attributes, -Wmultistatement-macros,
1501         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
1502         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
1504 2018-04-24  Bruno Haible  <bruno@clisp.org>
1506         sys_socket: Make SO_REUSEPORT available across platforms.
1507         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1508         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
1509         * doc/posix-headers/sys_socket.texi: Mention the issue.
1510         * tests/test-poll.c (SO_REUSEPORT): Remove.
1511         * tests/test-select.h: Include <sys/socket.h>.
1512         (SO_REUSEPORT): Remove.
1513         * modules/select-tests (Depends-on): Add 'sys_socket'.
1515 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
1517         localcharset: short-circuit the search for an alias on a Mac
1518         * lib/localcharset.c (get_charset_aliases): Add a tautological
1519         UTF-8 entry to speed up the search for this case.
1520         Most machines default to a UTF-8 locale nowadays, so begin the
1521         list of aliases with a dummy UTF-8 entry so it will be found
1522         immediately and a time-consuming search through the rest of
1523         the list is avoided.
1525 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
1527         fts: add comment
1528         * lib/fts.c (fts_build): Explain why ==, not >.
1529         See remark by Bernhard Voelker in:
1530         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
1532         fts: fix bug in find across filesystems
1533         This fixes a bug I introduced last summer.
1534         Problem reported by Kamil Dudka in:
1535         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
1536         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
1537         (leaf_optimization):
1538         New arg for file descriptor.  All callers changed.
1539         (fts_build): Check for whether inodes should be sorted
1540         before closing the directory.
1542 2018-04-07  Bruno Haible  <bruno@clisp.org>
1544         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
1545         Reported by Genki Sky <sky@genki.is>.
1546         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
1547         version 0.9.10 or newer.
1548         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
1549         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
1550         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
1551         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
1552         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
1554 2018-04-07  Bruno Haible  <bruno@clisp.org>
1556         execute: Update comment.
1557         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
1559 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1561         fts: treat CIFS like NFS
1562         Problem reported by Kamil Dudka in:
1563         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
1564         * lib/fts.c (S_MAGIC_CIFS): New macro.
1565         (dirent_inode_sort_may_be_useful, leaf_optimization):
1566         Treat CIFS like NFS.
1568 2018-03-28  Bruno Haible  <bruno@clisp.org>
1570         c-stack: Fix possible build failure on some platforms.
1571         * lib/c-stack.c (die): Define whenever this function is referenced.
1573 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
1575         time_rz: fix workaround for Mac OS X 10.6 infloop
1576         Problems reported by Charles A. Roelli (Bug#27736#117).
1577         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
1578         Also, discard output, which clutters the 'configure' log.
1580 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
1582         havelib: port to Solaris 10 /bin/sh
1583         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
1584         instead of '! test EXPR'.
1586 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
1588         time_rz: work around Mac OS X 10.6 infloop
1589         * doc/posix-functions/localtime.texi:
1590         * doc/posix-functions/localtime_r.texi: Mention the bug.
1591         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
1592         better to fix localtime and localtime_r instead, but that would be
1593         more work and is not needed to fix the Emacs problem.
1594         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
1596 2018-03-24  Jim Meyering  <meyering@fb.com>
1598         test-version-etc.sh: don't use diff directly: use init.sh's compare
1599         We'd rather not sacrifice readable "diff -u" output even for
1600         "diff -c" output (not supported by busybox) or for even less
1601         readable ed-style "diff" output.  So use init.sh's compare function
1602         * tests/test-version-etc.sh: Source init.sh and add "." to path.
1603         Remove "./" from invocation of test-version-etc, so we use path.
1604         And s/diff/compare/.
1605         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
1606         to get init.sh.
1607         Prompted by Eric Blake's comments in
1608         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
1610 2018-03-24  Bruno Haible  <bruno@clisp.org>
1612         javacomp-script, javacomp: Add support for Java 10.
1613         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
1614         target-version 10.
1615         * lib/javaversion.h: Update comments.
1616         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1617         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1618         TARGET_VERSION_BOUND, target_version_index,
1619         corresponding_classfile_version): Accept source_version 10 and
1620         target_version 10.
1621         * lib/javacomp.h: Update comments accordingly.
1623 2018-03-24  Bruno Haible  <bruno@clisp.org>
1625         javacomp-script, javacomp: Update comments.
1626         * m4/javacomp.m4: Update comments regarding gcj.
1627         * lib/javacomp.h: Likewise.
1629 2018-03-24  Bruno Haible  <bruno@clisp.org>
1631         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
1632         * lib/javaversion.h: Update comments.
1633         * lib/javacomp.h: Likewise.
1634         * lib/javacomp.c (default_target_version, source_version_index,
1635         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
1636         "1.9".
1637         (TARGET_VERSION_BOUND): Bump to 9.
1638         (target_version_index, corresponding_classfile_version): Recognize "9"
1639         instead of "1.9".
1640         (get_source_version_for_javac): New function.
1641         (is_envjavac_nongcj_usable, is_javac_usable): Add
1642         source_version_for_javac argument.
1643         (compile_java_class): Determine and pass source_version_for_javac.
1644         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
1645         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
1646         appropriate.
1648 2018-03-23  Jim Meyering  <meyering@fb.com>
1650         test-version-etc.sh: port to diff without -c
1651         * tests/test-version-etc.sh: Don't use diff's -c option.
1652         This caused spurious test failure on Alpine Linux, which
1653         uses busybox's diff. Reported by Assaf Gordon in
1654         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
1656 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
1658         c-stack: port to recent GCC build
1659         Problem reported by The Fireplace (Bug#30913).
1660         * lib/c-stack.c (die): Define only if used.
1662 2018-03-20  Bruno Haible  <bruno@clisp.org>
1664         euidaccess: Port to native Windows.
1665         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
1666         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
1668 2018-03-19  Bruno Haible  <bruno@clisp.org>
1670         javacomp: Add support for Java 7, 8, 9.
1671         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1672         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1673         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
1674         and target_version 1,7, 1.8, 1.9.
1675         * lib/javacomp.h: Update comments accordingly.
1677 2018-03-19  Bruno Haible  <bruno@clisp.org>
1679         javacomp-script: Add support for Java 9.
1680         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
1681         target-version 1.9.
1683 2018-03-16  Bruno Haible  <bruno@clisp.org>
1685         glob: Don't compile replacements on recent glibc systems.
1686         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
1687         REPLACE_GLOB is 0, include the system's <glob.h> and use
1688         _GL_CXXALIAS_SYS.
1689         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
1690         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
1691         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
1692         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
1693         Remove snippet/warn-on-use.
1694         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
1695         (Makefile.am): Create glob.h always. Update list of substitutions in
1696         glob.h. Don't depend on $(WARN_ON_USE_H).
1698 2018-03-16  Bruno Haible  <bruno@clisp.org>
1700         glob: Fix link error on native Windows.
1701         * modules/glob (Depends-on): Add 'lstat'.
1703 2018-03-15  Bruno Haible  <bruno@clisp.org>
1705         glob: Fix compilation error in C++ mode.
1706         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
1708 2018-03-15  Bruno Haible  <bruno@clisp.org>
1710         host-cpu-c-abi: Support for RISC-V CPU.
1711         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
1712         riscv32 and riscv64 ABIs.
1713         References:
1714         https://github.com/riscv/riscv-toolchain-conventions
1715         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
1716         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
1718 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1720         fflush: be more paranoid about libio.h change
1721         Suggested by Eli Zaretskii in:
1722         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
1723         * lib/fbufmode.c (fbufmode):
1724         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1725         (disable_seek_optimization, rpl_fflush):
1726         * lib/fpending.c (__fpending):
1727         * lib/fpurge.c (fpurge):
1728         * lib/freadable.c (freadable):
1729         * lib/freadahead.c (freadahead):
1730         * lib/freading.c (freading):
1731         * lib/freadptr.c (freadptr):
1732         * lib/freadseek.c (freadptrinc):
1733         * lib/fseeko.c (fseeko):
1734         * lib/fseterr.c (fseterr):
1735         * lib/fwritable.c (fwritable):
1736         * lib/fwriting.c (fwriting):
1737         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
1739 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
1741         maint: write-file-hooks -> before-save-hook
1742         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
1743         it's time to use the recommended replacement.
1744         Problem reported by Glenn Morris in:
1745         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
1746         * build-aux/announce-gen, build-aux/bootstrap:
1747         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
1748         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
1749         * build-aux/gnu-web-doc-update, build-aux/gnupload:
1750         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
1751         * build-aux/update-copyright, build-aux/useless-if-before-free:
1752         * build-aux/vc-list-files:
1753         Update hook usage for files where Gnulib is the canonical source.
1755 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
1757         binary-io: pacify gcc -Wunused-parameter
1758         Problem reported by Reuben Thomas in:
1759         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
1760         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
1761         Use _GL_UNUSED where appropriate.
1763         fflush: adjust to glibc 2.28 libio.h removal
1764         Problem reported by Daniel P. Berrangé in:
1765         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
1766         * lib/fbufmode.c (fbufmode):
1767         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1768         (disable_seek_optimization, rpl_fflush):
1769         * lib/fpending.c (__fpending):
1770         * lib/fpurge.c (fpurge):
1771         * lib/freadable.c (freadable):
1772         * lib/freadahead.c (freadahead):
1773         * lib/freading.c (freading):
1774         * lib/freadptr.c (freadptr):
1775         * lib/freadseek.c (freadptrinc):
1776         * lib/fseeko.c (fseeko):
1777         * lib/fseterr.c (fseterr):
1778         * lib/fwritable.c (fwritable):
1779         * lib/fwriting.c (fwriting):
1780         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
1781         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
1782         Define if not already defined.
1784 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
1786         environ: fix link error on 32-bit Cygwin
1787         Problem reported for GNU Emacs by Ken Brown in:
1788         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
1789         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
1791 2018-02-24  Bruno Haible  <bruno@clisp.org>
1793         mbrtowc tests: Fix regression on glibc.
1794         Reported by Bernhard Voelker.
1795         * tests/test-mbrtowc.c (main): Fix expected value of wc.
1797 2018-02-24  Bruno Haible  <bruno@clisp.org>
1799         striconveha, uniconv/*: Avoid test failures on musl libc.
1800         * tests/iconvsupport.c: New file.
1801         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
1802         does not support the ISO-2022-JP-2 encoding.
1803         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
1804         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
1805         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
1806         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
1807         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
1808         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
1809         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
1810         (Makefile.am): Link test-striconveha with iconvsupport.o.
1811         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
1812         tests/iconvsupport.c.
1813         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
1814         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
1815         tests/iconvsupport.c.
1816         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
1817         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
1818         tests/iconvsupport.c.
1819         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
1820         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
1821         tests/iconvsupport.c.
1822         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
1823         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
1824         tests/iconvsupport.c.
1825         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
1826         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
1827         tests/iconvsupport.c.
1828         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
1830 2018-02-24  Bruno Haible  <bruno@clisp.org>
1832         localename: Add support for musl libc.
1833         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
1834         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
1835         on Linux platforms which define NL_LOCALE_NAME.
1837 2018-02-24  Bruno Haible  <bruno@clisp.org>
1839         mbrtowc tests: Don't make assumptions about the charset the C locale.
1840         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
1841         particular mapping in the C locale.
1843 2018-02-24  Bruno Haible  <bruno@clisp.org>
1845         ptsname_r: Don't expect that this function sets errno.
1846         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
1847         from ptsname_r().
1848         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
1850 2018-02-23  Bruno Haible  <bruno@clisp.org>
1852         xmalloca: pacify gcc -Wbad-function-cast
1853         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
1855 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
1857         nl_langinfo: pacify gcc -Wunused-function
1858         * lib/nl_langinfo.c (ctype_codeset): Do not define if
1859         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
1860         this case.  Without this change, I got a diagnostic when building
1861         coreutils on Fedora 27 with gcc 7.3.1 20180130.
1863         same: pacify gcc -Wunused-variable
1864         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
1865         Omit unused variable.
1867         malloca: pacify gcc -Wbad-function-cast
1868         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
1869         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
1870         To pacify GCC, I had to cast alloca’s result to some type other
1871         than void * before casting that to uintptr_t.
1873 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1875         utimecmp: new function utimecmpat
1876         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
1877         Do not include utimens.h.
1878         (utimecmpat): New function, generalizing utimecmp.
1879         (utimecmp): Now a thin layer around utimecmpat.
1880         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
1881         utimensat instead of on lstat and utimens.
1883         same: new function same_nameat
1884         * lib/same.c: Include fcntl.h.
1885         * lib/same.c (same_nameat): New function, generalizing same_name.
1886         (same_name): Now a thin layer around same_nameat.
1887         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
1888         * modules/same (Depends-on): Depend on fstatat, openat.
1890 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
1892         warnings: Add support for Objective C.
1893         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
1894         macro.
1896 2018-02-17  Bruno Haible  <bruno@clisp.org>
1898         lock: Fix test-once1 crash on FreeBSD11.
1899         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
1900         'pthread_create', not 'pthread_cancel'.
1902 2018-02-17  Bruno Haible  <bruno@clisp.org>
1904         lock: Add test of gl_once.
1905         * tests/test-once.c: New file.
1906         * modules/lock-tests (Files): Add it.
1907         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
1909 2018-02-17  Bruno Haible  <bruno@clisp.org>
1911         thread: Fix compilation error on IRIX.
1912         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
1913         needed; include it outside the C++ extern "C" {} block.
1914         * doc/posix-headers/pthread.texi: Mention the problem with
1915         pthread_atfork on IRIX.
1917 2018-02-04  Bruno Haible  <bruno@clisp.org>
1919         nl_langinfo: Override the system's nl_langinfo() when needed.
1920         Reported by Jim Meyering.
1921         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
1922         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
1924 2018-02-04  Bruno Haible  <bruno@clisp.org>
1926         signal-h, monetary, strings: Fix build failure in some cases.
1927         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1928         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
1929         as delimiter in sed command, not '|'.
1930         * modules/monetary (Makefile.am): Likewise.
1931         * modules/strings (Makefile.am): Likewise.
1933 2018-02-03  Jim Meyering  <meyering@fb.com>
1935         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
1936         * top/maint.mk (sc_file_system): Don't complain about
1937         "/proc/filesystems".
1939 2018-02-03  Bruno Haible  <bruno@clisp.org>
1941         stdlib: Fix compilation error on OpenIndiana.
1942         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
1943         <sys/time.h>.
1944         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1945         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1947 2018-02-03  Bruno Haible  <bruno@clisp.org>
1949         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
1950         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
1951         and use $EGREP instead of 'grep -E'.
1952         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
1953         'grep -E'.
1955 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
1957         malloca: Add a compile-time verification.
1958         * lib/malloca.c (small_t): Verify that it is wide enough.
1959         * modules/malloca (Depends-on): Add verify.
1961 2018-02-02  Bruno Haible  <bruno@clisp.org>
1963         malloca: Add an argument check.
1964         Suggested by Paul Eggert.
1965         * lib/malloca.c (freea): Check against an invalid argument.
1967 2018-02-02  Bruno Haible  <bruno@clisp.org>
1969         localename: Add support for OpenIndiana.
1970         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
1971         Solaris 11 variants with uselocale() but without getlocalename_l().
1973 2018-02-02  Bruno Haible  <bruno@clisp.org>
1975         malloca, xmalloca: Make multithread-safe.
1976         Reported by Florian Weimer <fweimer@redhat.com>.
1977         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
1978         * lib/malloca.h (malloca): In the stack allocation case, return a
1979         pointer that is a multiple of 2 * sa_alignment_max.
1980         (sa_increment): Remove enum item.
1981         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
1982         a pointer that is a multiple of 2 * sa_alignment_max.
1983         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
1984         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
1985         HASH_TABLE_SIZE, mmalloca_results): Remove.
1986         (small_t): New type.
1987         (mmalloca, free): Rewritten.
1988         * lib/malloca.valgrind: Remove file.
1989         * modules/malloca (Files): Remove it.
1990         (Depends-on): Remove verify.
1992 2018-01-31  Bruno Haible  <bruno@clisp.org>
1994         environ: Fix link error on 64-bit Cygwin.
1995         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
1996         __declspec(dllimport) attribute.
1997         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
1999 2018-01-30  Bruno Haible  <bruno@clisp.org>
2001         get-rusage-data: Add support for Minix 3.
2002         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
2004 2018-01-30  Bruno Haible  <bruno@clisp.org>
2006         vma-iter: Add support for Minix 3.
2007         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
2008         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
2010 2018-01-27  Bruno Haible  <bruno@clisp.org>
2012         Fix malfunction of socket functions on HP-UX in 64-bit mode.
2013         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
2014         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
2015         _HPUX_ALT_XOPEN_SOCKET_API.
2016         * modules/accept (Depends-on): Add 'extensions'.
2017         * modules/getpeername (Depends-on): Likewise.
2018         * modules/getsockname (Depends-on): Likewise.
2019         * modules/getsockopt (Depends-on): Likewise.
2020         * modules/recvfrom (Depends-on): Likewise.
2021         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
2022         * doc/posix-functions/getpeername.texi: Likewise.
2023         * doc/posix-functions/getsockname.texi: Likewise.
2024         * doc/posix-functions/getsockopt.texi: Likewise.
2025         * doc/posix-functions/recvfrom.texi: Likewise.
2027 2018-01-27  Bruno Haible  <bruno@clisp.org>
2029         getsockname tests: More tests.
2030         * tests/test-getsockname.c (open_server_socket): New function, mostly
2031         copied from test-poll.c.
2032         (main): Check that getsockname fills in addr.
2033         * modules/getsockname-tests (Depends-on): Add the necessary
2034         dependencies.
2035         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
2037 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
2039         manywarnings: fix maintainer comment
2040         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
2041         it does not mistakenly think that ‘-1)’ is an option.
2043 2018-01-26  Bruno Haible  <bruno@clisp.org>
2045         langinfo: Fix last commit.
2046         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2047         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
2049 2018-01-24  Bruno Haible  <bruno@clisp.org>
2051         langinfo, nl_langinfo: Add support for alternative month names.
2052         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
2053         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
2054         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
2055         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
2056         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
2057         * doc/posix-functions/nl_langinfo.texi: Likewise.
2059 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2061         Merge strftime.c changes from glibc
2062         This incorporates:
2063         2017-11-14 [BZ #10871] Implement alternative month names
2064         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
2065         2017-06-20 Use locale_t, not __locale_t, throughout glibc
2066         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
2067         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
2068         Use locale_t, not __locale_t.
2069         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
2070         (__strftime_internal): Add support for alternate months.
2072 2018-01-23  Bruno Haible  <bruno@clisp.org>
2074         doc: Mention another prerequisite for using Gnulib.
2075         Reported at <https://stackoverflow.com/questions/48378214/>.
2076         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
2077         AC_CONFIG_HEADERS.
2079 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
2081         build: GuixSD doesn't have /bin/bash
2082         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
2084 2018-01-21  Bruno Haible  <bruno@clisp.org>
2086         Avoid test failures on Microsoft Windows Subsystem for Linux.
2087         * tests/test-fcntl.c (main): Allow a different errno.
2088         * tests/test-rename.h (test_rename): Likewise.
2089         * tests/test-renameat.c (main): Likewise.
2090         * tests/test-renameat2.c (main): Likewise.
2092 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
2094         filenamecat: make base a suffix of result
2095         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
2096         (mfile_name_concat): Always make BASE a suffix of the result, as
2097         cp expects this.  To implement this, separate with '.' instead of
2098         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
2099         * tests/test-filenamecat.c (main): Adjust tests to match
2100         current behavior.  Check that BASE_IN_RESULT points to
2101         a copy of BASE and is a suffix of the resultk, and that DIR
2102         is a prefix of the result that is no longer than the prefix
2103         indicated by BASE_IN_RESULT.
2105 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
2107         update-copyright: Handle use of ©
2108         * build-aux/update-copyright ($circle_c_re): Update regex to
2109         handle use of © in headers.
2111 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
2113         Fix -Wundef warning in user-included header lib/cdefs.h.
2114         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
2116 2018-01-04  Bruno Haible  <bruno@clisp.org>
2118         pthread_sigmask: Avoid compilation error on mingw.
2119         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2120         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
2121         macro.
2123 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2125         test-framework-sh: ‘ps -ef’, not ‘ps ef’
2126         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
2127         Suggested by Bob Proulx (Bug#29968).
2128         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
2130 2018-01-02  Eric Blake  <eblake@redhat.com>
2132         stat-time: silence -Wunused-parameter regression
2133         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
2134         Prefer attribute over cast-to-void.
2135         (stat_time_normalize): Mark st as potentially unused.
2137 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
2139         test-framework-sh: avoid netstat
2140         Problem reported by Kristýna Streitová (Bug#29947).
2141         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
2142         deprecated on SuSE and it's not that important anyway.
2144 2018-01-01  Jim Meyering  <meyering@fb.com>
2146         update-copyright: add code to handle more special cases
2147         After running "make update-copyright" this year, five files
2148         required additional manual changes.  Automate those adjustments
2149         for next year.
2150         * Makefile (_year_and_prev): Define.
2151         (update-copyright): Add perl commands to induce this year's post-
2152         update-copyright adjustments.
2154 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2156         version-etc: new year
2157         * build-aux/gendocs.sh (version):
2158         * doc/gendocs_template:
2159         * doc/gendocs_template_min:
2160         * doc/gnulib.texi:
2161         * lib/version-etc.c (COPYRIGHT_YEAR):
2162         Update copyright dates by hand in templates and the like.
2164         maint: fix 'make update-copyright'
2165         * Makefile (update-copyright): Adjust to 2016-11-23 change
2166         to config/srclist-update, which changed the format of srclist.txt.
2168 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2170         chdir-safer: remove this module
2171         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
2172         * NEWS: Document removal.
2173         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
2174         * modules/chdir-safer: Remove these files.
2176 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
2178         Add cross-compilation results for GNU/Hurd.
2179         * m4/calloc.m4: Add GNU/Hurd guess.
2180         * m4/cbrtl.m4: Likewise.
2181         * m4/ceil.m4: Likewise.
2182         * m4/ceilf.m4: Likewise.
2183         * m4/ceill.m4: Likewise.
2184         * m4/chown.m4: Likewise.
2185         * m4/duplocale.m4: Likewise.
2186         * m4/exp2l.m4: Likewise.
2187         * m4/expm1.m4: Likewise.
2188         * m4/fchdir.m4: Likewise.
2189         * m4/floor.m4: Likewise.
2190         * m4/floorf.m4: Likewise.
2191         * m4/fmod.m4: Likewise.
2192         * m4/fmodf.m4: Likewise.
2193         * m4/fmodl.m4: Likewise.
2194         * m4/getcwd.m4: Likewise.
2195         * m4/getgroups.m4: Likewise.
2196         * m4/gettimeofday.m4: Likewise.
2197         * m4/hypot.m4: Likewise.
2198         * m4/hypotf.m4: Likewise.
2199         * m4/hypotl.m4: Likewise.
2200         * m4/link-follow.m4: Likewise.
2201         * m4/link.m4: Likewise.
2202         * m4/linkat.m4: Likewise.
2203         * m4/log.m4: Likewise.
2204         * m4/log10.m4: Likewise.
2205         * m4/log10f.m4: Likewise.
2206         * m4/log1p.m4: Likewise.
2207         * m4/log1pf.m4: Likewise.
2208         * m4/log1pl.m4: Likewise.
2209         * m4/log2.m4: Likewise.
2210         * m4/log2f.m4: Likewise.
2211         * m4/logf.m4: Likewise.
2212         * m4/lstat.m4: Likewise.
2213         * m4/malloc.m4: Likewise.
2214         * m4/mbrlen.m4: Likewise.
2215         * m4/mbrtowc.m4: Likewise.
2216         * m4/mkdir.m4: Likewise.
2217         * m4/mkfifo.m4: Likewise.
2218         * m4/mknod.m4: Likewise.
2219         * m4/mkstemp.m4: Likewise.
2220         * m4/modf.m4: Likewise.
2221         * m4/modff.m4: Likewise.
2222         * m4/modfl.m4: Likewise.
2223         * m4/printf.m4: Likewise.
2224         * m4/pselect.m4: Likewise.
2225         * m4/ptsname.m4: Likewise.
2226         * m4/putenv.m4: Likewise.
2227         * m4/readlink.m4: Likewise.
2228         * m4/realloc.m4: Likewise.
2229         * m4/remainder.m4: Likewise.
2230         * m4/remainderf.m4: Likewise.
2231         * m4/remainderl.m4: Likewise.
2232         * m4/rmdir.m4: Likewise.
2233         * m4/round.m4: Likewise.
2234         * m4/roundf.m4: Likewise.
2235         * m4/roundl.m4: Likewise.
2236         * m4/select.m4: Likewise.
2237         * m4/setenv.m4: Likewise.
2238         * m4/signbit.m4: Likewise.
2239         * m4/sleep.m4: Likewise.
2240         * m4/stat.m4: Likewise.
2241         * m4/strerror.m4: Likewise.
2242         * m4/strtok_r.m4: Likewise.
2243         * m4/symlink.m4: Likewise.
2244         * m4/symlinkat.m4: Likewise.
2245         * m4/trunc.m4: Likewise.
2246         * m4/truncf.m4: Likewise.
2247         * m4/truncl.m4: Likewise.
2248         * m4/tzset.m4: Likewise.
2249         * m4/ungetc.m4: Likewise.
2250         * m4/usleep.m4: Likewise.
2251         * m4/wcwidth.m4: Likewise.
2253 2017-12-28  Bruno Haible  <bruno@clisp.org>
2255         gnulib-tool: Make --conditional-dependencies work better.
2256         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
2257         * gnulib-tool (Options): Don't reject the combination of
2258         --conditional-dependencies with --with-tests.
2259         (func_emit_autoconf_snippets): Add argument referenceable_modules.
2260         Don't reference $modules.
2261         (func_import, func_create_testdir): Pass it.
2263 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2265         regex: use re_malloc etc. consistently
2266         Problem and original patch reported by Arnold Robbins in:
2267         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
2268         * lib/regcomp.c (re_comp):
2269         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
2270         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
2272 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
2273             Paul Eggert  <eggert@cs.ucla.edu>
2275         glob: Silence warning about void pointer arithmetic.
2276         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
2277         arithmetic.
2279 2017-12-15  Bruno Haible  <bruno@clisp.org>
2281         spawn-pipe: Silence a clang warning.
2282         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2283         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
2284         in this file.
2286 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2288         explicit_bzero: port to macOS + Clang 9.0.0
2289         Problem reported by Marcus Johnson (Bug#29658).
2290         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
2291         Don’t use asm.
2293 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
2295         doc: Improve explanation of supporting relocatable libraries.
2296         * doc/relocatable-maint.texi (Supporting Relocation): Explain
2297         properly how to build the relocatable module for
2298         libraries. (Method and example code from Bruno Haible.)
2300 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
2302         doc: Use better texinfo tags in a few cases.
2303         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
2304         instead of @samp in a few places.
2306 2017-12-11  Bruno Haible  <bruno@clisp.org>
2308         unistr/base: Update comment.
2309         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
2311 2017-12-10  Pádraig Brady  <P@draigBrady.com>
2313         test-faccessat.c: unlink temp file to avoid subsequent test failure
2314         * tests/test-faccessat.c: Remove the file to avoid failure
2315         to open the file on subsequent runs due to being created
2316         with no permissions.
2318 2017-12-10  Bruno Haible  <bruno@clisp.org>
2320         doc: New sect. "Modifying the build rules of a Gnulib import directory".
2321         * doc/gnulib-tool.texi (Modified build rules): New node.
2323 2017-12-10  Bruno Haible  <bruno@clisp.org>
2325         doc: Tweak wording.
2326         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
2327         "binaries".
2329 2017-12-05  Sam Steingold  <sds@gnu.org>
2330             Bruno Haible  <bruno@clisp.org>
2332         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
2333         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
2334         AC_EGREP_CPP pattern.
2336 2017-12-03  Bruno Haible  <bruno@clisp.org>
2338         all: Replace more http URLs by https URLs.
2339         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
2340         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
2341         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
2342         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
2344 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
2346         Port better to CentOS 5
2347         Problems reported by Tom G. Christensen in:
2348         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
2349         * doc/glibc-functions/strverscmp.texi (strverscmp):
2350         Document strverscmp bug with glibc 2.9 and earlier.
2351         * doc/posix-functions/tzset.texi (tzset):
2352         Document that TZ with angle brackets is POSIX-2001 and later.
2353         * tests/test-nstrftime.c: Include unistd.h.
2354         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
2355         (TZ): Use it to skip tests with angle brackets in TZ,
2356         for older systems.
2358         stat: add missing module dependencies
2359         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
2360         Add stat-time.
2362 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
2364         stat: fix compilation failure on macOS Sierra
2365         Reported by Marius Schamschula <mschamschula@gmail.com> in:
2366         https://savannah.gnu.org/bugs/?52546
2367         * lib/stat.c: Add missing include of stat-time.h.
2369 2017-11-28  Jim Meyering  <meyering@fb.com>
2371         test-faccessat.c: correct BASE definition to avoid parallel test failure
2372         * tests/test-faccessat.c (BASE): Define using this file's name, not
2373         that of test-lstat.c.  Using the latter caused this test to fail
2374         sometimes when run concurrently with test-lstat.
2376 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2378         unicase: fix VPATH build
2379         * modules/unicase/special-casing (Makefile.am): Ensure that the
2380         base directory is created when generating
2381         unicase/special-casing.h.
2383 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2385         libunistring: update to Unicode 9.0.0
2386         * lib/gen-uni-tables.c (fill_properties): Recognize
2387         Sentence_Terminal and Prepended_Concatenation_Mark.
2388         (is_property_default_ignorable_code_point): Exclude U+08E2.
2389         (fill_arabicshaping): Allow missing whitespace when parsing;
2390         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
2391         (output_blocks): Increase the element size of the level1 table to
2392         accommodate more blocks.
2393         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
2394         Update each class according to the standard.
2395         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
2396         E_Base_GAZ characters.
2397         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
2398         Glue_After_Zwj, and E_Base_GAZ characters.
2399         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
2400         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
2401         enum value.
2402         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
2403         value.
2404         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
2405         LBP_ZWJ, LBP_EB, and LBP_EM.
2406         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
2407         enum value.
2408         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
2409         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
2410         declaration.
2411         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
2412         (uniwbrk_table): Implement WB14.
2413         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
2414         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
2415         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
2416         uc-is-grapheme-break.
2417         * modules/unigbrk/uc-grapheme-breaks: New module.
2418         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
2419         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
2420         enum value.
2421         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
2422         * lib/unigbrk/u-grapheme-breaks.h: New file.
2423         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
2424         u-grapheme-breaks.h instead of uc_is_grapheme_break.
2425         * lib/unigbrk/uc-grapheme-breaks.c: New file.
2426         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
2427         29.
2428         * tests/unigbrk/test-uc-gbrk-prop.c
2429         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2430         GBP_GAZ, and GBP_EBG.
2431         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
2432         * tests/unigbrk/test-uc-is-grapheme-break.c
2433         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2434         GBP_GAZ, and GBP_EBG.
2435         (main): Skip unsupported rules involving 3 or more characters,
2436         namely GB10, GB12, and GB13.
2437         * lib/uniwidth/width.c (nonspacing_table_data): Update.
2438         * all generated files under lib/uni* and tests/uni*: Regenerate.
2439         * all the affected modules: Bump version.
2441 2017-11-26  Bruno Haible  <bruno@clisp.org>
2443         strfmon_l: Fix compilation error with glibc 2.5.
2444         Reported by Tom G. Christensen <tgc@jupiterrise.com>
2445         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
2446         * lib/monetary.in.h: Include also <locale.h>.
2448 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2450         posixtm: remove PDS_LEADING_YEAR
2451         This changes the API slightly, in a hopefully-innocuous way.
2452         Without this change the code had undefined behavior when a
2453         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
2454         Problem reported by Pádraig Brady in:
2455         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
2456         * NEWS: Mention this.
2457         * lib/posixtm.c (posix_time_parse): Treat the absence of
2458         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
2459         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
2460         present, but define it as zero, for compatibility with existing
2461         source code).  All other PDS_* values moved up.
2462         * tests/test-posixtm.c (LY): New macro.
2463         (T): Use it.  Do not expect a particular numeric encoding
2464         for PDS_CENTURY etc.
2466 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
2468         stat: work around Solaris bug with tv_nsec < 0
2469         * doc/posix-functions/fstat.texi (fstat):
2470         * doc/posix-functions/fstatat.texi (fstatat):
2471         * doc/posix-functions/lstat.texi (lstat):
2472         * doc/posix-functions/stat.texi (stat):
2473         Mention Solaris 11 bug.
2474         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
2475         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
2476         * lib/lstat.c (rpl_lstat):
2477         * lib/stat.c (rpl_stat):
2478         Normalize resulting timestamps.
2479         * lib/fstatat.c (normal_fstatat): New function.
2480         (rpl_fstatat): Use it.
2481         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
2482         (stat_time_normalize): New function.
2483         * m4/fstat.m4 (gl_FUNC_FSTAT):
2484         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
2485         * m4/lstat.m4 (gl_FUNC_LSTAT):
2486         * m4/stat.m4 (gl_FUNC_STAT):
2487         Replace on Solaris.
2488         * modules/fstat (Depends-on):
2489         * modules/fstatat (Depends-on):
2490         Add stat-time.
2491         * modules/stat-time (Depends-on): Add errno, intprops.
2493 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2495         regex: merge from glibc
2496         * lib/regcomp.c (init_word_char): Add comments.
2498 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2500         regex: merge from glibc
2501         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
2502         * lib/regex_internal.h (internal_function): Remove.
2503         All uses removed.
2505 2017-11-20  Bruno Haible  <bruno@clisp.org>
2507         crypto/gc-sm3: Fix buffer overrun.
2508         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
2509         Reported by Coverity.
2511 2017-11-12  Jim Meyering  <meyering@fb.com>
2513         maint: shorten https://lists.gnu.org/archive/html/... links
2514         Each /archive/html/ part can be replace with /r/.
2515         Run this to induce the change:
2516         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
2517         * ChangeLog: Perform that substitution.
2518         * Makefile: Likewise.
2519         * STATUS-libposix: Likewise.
2520         * build-aux/bootstrap: Likewise.
2521         * doc/maintain.texi: Likewise.
2522         * gnulib-tool: Likewise.
2523         * lib/allocator.h: Likewise.
2524         * lib/argp-ba.c: Likewise.
2525         * lib/argp-pv.c: Likewise.
2526         * lib/canon-host.c: Likewise.
2527         * lib/canonicalize-lgpl.c: Likewise.
2528         * lib/float.in.h: Likewise.
2529         * lib/fstat.c: Likewise.
2530         * lib/getdelim.c: Likewise.
2531         * lib/getprogname.c: Likewise.
2532         * lib/glthread/thread.h: Likewise.
2533         * lib/intprops.h: Likewise.
2534         * lib/mbsrtowcs-state.c: Likewise.
2535         * lib/safe-read.c: Likewise.
2536         * lib/signal.in.h: Likewise.
2537         * lib/stat.c: Likewise.
2538         * lib/stdbool.in.h: Likewise.
2539         * lib/stdio-impl.h: Likewise.
2540         * lib/stdio.in.h: Likewise.
2541         * lib/sysexits.in.h: Likewise.
2542         * lib/timespec.h: Likewise.
2543         * lib/wcsrtombs-state.c: Likewise.
2544         * m4/alloca.m4: Likewise.
2545         * m4/extern-inline.m4: Likewise.
2546         * m4/fstatat.m4: Likewise.
2547         * m4/gnulib-common.m4: Likewise.
2548         * m4/lib-ignore.m4: Likewise.
2549         * m4/printf.m4: Likewise.
2550         * m4/regex.m4: Likewise.
2551         * m4/stat-size.m4: Likewise.
2552         * m4/std-gnu11.m4: Likewise.
2553         * m4/stdbool.m4: Likewise.
2554         * m4/sys_types_h.m4: Likewise.
2555         * m4/threadlib.m4: Likewise.
2556         * m4/vararrays.m4: Likewise.
2557         * pygnulib/GLImport.py: Likewise.
2558         * tests/test-exp.h: Likewise.
2559         * tests/test-exp2.h: Likewise.
2560         * tests/test-expm1.h: Likewise.
2561         * tests/test-fflush2.c: Likewise.
2562         * tests/test-getopt_long.h: Likewise.
2563         * tests/test-intprops.c: Likewise.
2564         * tests/test-log.h: Likewise.
2565         * tests/test-log10.h: Likewise.
2566         * tests/test-log1p.h: Likewise.
2567         * tests/test-log2.h: Likewise.
2568         * tests/test-printf-posix.h: Likewise.
2569         * tests/test-regex.c: Likewise.
2570         * tests/test-snprintf-posix.h: Likewise.
2571         * tests/test-sprintf-posix.h: Likewise.
2572         * tests/test-stdalign.c: Likewise.
2573         * tests/test-stdbool.c: Likewise.
2574         * tests/test-vasnprintf-posix.c: Likewise.
2575         * tests/test-vasprintf-posix.c: Likewise.
2576         * top/maint.mk: Likewise.
2578 2017-11-12  Bruno Haible  <bruno@clisp.org>
2580         faccessat: Make the last change more robust.
2581         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
2582         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
2584 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2586         faccessat: port to macOS (Bug#29231)
2587         macOS faccessat has the same bug that lstat does: if the file
2588         name ends in '/' it ignores the trailing slash.
2589         Problem reported for Emacs by Vincent Zhang.
2590         * doc/posix-functions/faccessat.texi (faccessat): Document this.
2591         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
2592         around the initial includes.  Include errno.h, string.h, sys/stat.h.
2593         (orig_faccessat) [HAVE_FACCESSAT]: New function.
2594         Include "unistd.h" after defining it.
2595         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
2596         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
2597         Handle in the usual way.
2598         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
2599         lstat dereferences symlinks, since faccessat is likely to
2600         have the same problem.
2601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
2602         * modules/faccessat (Depends-on): Add fstatat.
2603         Depend if REPLACE_FACCESSAT is 1, too.
2604         (configure.ac): Link if REPLACE_FACCESSAT is 1.
2605         * modules/faccessat-tests (Depends-on): Add symlink.
2606         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
2607         * tests/test-faccessat.c (main): Test for the bug.
2609 2017-11-11  Bruno Haible  <bruno@clisp.org>
2611         getprogname: Fix compilation error on IRIX.
2612         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
2613         'namesize'.
2615 2017-11-11  Bruno Haible  <bruno@clisp.org>
2617         year2038: Tweak last patch.
2618         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
2620 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2622         year2038: be more insistent about 64-bit time_t
2623         Applications requiring access to arbitrary files should not be
2624         built with 32-bit time_t on hosts that have 64-bit timestamps,
2625         as this can lead to real trouble at runtime.
2626         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
2627         Check on all systems, not just MinGW.  Use a heuristic involving
2628         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
2629         output a failure or just a warning, to make it more likely that
2630         builders will select 64-bit time_t.
2632 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2634         havelib: fix typo in previous change
2635         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
2637         Don’t use AC_EGREP_CPP if affected by CFLAGS
2638         * m4/float_h.m4 (gl_FLOAT_H):
2639         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
2640         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
2641         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
2642         * m4/year2038.m4 (gl_YEAR2038):
2643         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
2644         likely to be affected by the choice of CFLAGS, since CFLAGS are
2645         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
2646         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
2648         fstatat: pacify GCC on unusual platform
2649         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
2650         Omit, as it’s unused in this case.
2652 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
2654         timespec: prefer ‘assume’ to ‘assure’
2655         This avoids some runtime tests.  The rest of the module makes
2656         similar assumptions and there is little point to testing here.
2657         * lib/timespec.h: Include verify.h instead of assure.h.
2658         (timespec_cmp): Use ‘assume’, not ‘assure’.
2659         Also, remove an unnecessary cast to ‘int’, as lots of other
2660         code in this module now causes -Wconversion to complain, and
2661         this is a problem with -Wconversion not with the code.
2663         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
2665         Port recent gnulib-tool change to Dash
2666         * gnulib-tool (func_create_testdir): Don't assume that the shell
2667         retokenizes after expanding "$@" inside the call to
2668         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
2670 2017-10-27  Jim Meyering  <meyering@fb.com>
2672         timespec.h: use "assure" to avoid a spurious warning
2673         * lib/timespec.h: Include "assure.h" and use it to help
2674         gcc7's -Wstrict-overflow avoid a false positive warning
2675         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
2676         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
2677         * modules/timespec (Depends-on): Add assure.
2679 2017-10-29  Bruno Haible  <bruno@clisp.org>
2681         Avoid several test failures with traditional locales on Haiku.
2682         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
2683         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
2684         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
2685         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
2686         LOCALE_ZH_CN=none.
2688 2017-10-29  Bruno Haible  <bruno@clisp.org>
2690         strerror_r-posix: Fix behaviour and test failure on Haiku.
2691         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
2692         are positive. Work around return value 0 instead of ERANGE on Haiku.
2693         For unknown error numbers, use a format string consistent with perror().
2694         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
2695         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
2696         are positive.
2698 2017-10-29  Bruno Haible  <bruno@clisp.org>
2700         get-rusage-data: Avoid crash on Haiku.
2701         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
2703 2017-10-29  Bruno Haible  <bruno@clisp.org>
2705         get-rusage-as: Avoid crash on Haiku.
2706         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
2708 2017-10-29  Bruno Haible  <bruno@clisp.org>
2710         ilogbl: Ensure replacement on Haiku.
2711         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
2712         REPLACE_ILOGBL if ilogbl does not work.
2713         (gl_FUNC_ILOGBL_WORKS): New macro.
2714         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
2715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
2716         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
2717         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
2718         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
2720 2017-10-29  Bruno Haible  <bruno@clisp.org>
2722         expl: Ensure replacement on Haiku.
2723         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
2724         zero.
2725         * doc/posix-functions/expl.texi: Mention the Haiku problem.
2727 2017-10-29  Bruno Haible  <bruno@clisp.org>
2729         math: Fix test failure on Haiku.
2730         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
2731         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
2732         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
2733         * doc/posix-headers/math.texi: Mention the Haiku problem.
2735 2017-10-29  Bruno Haible  <bruno@clisp.org>
2737         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
2738         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
2739         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
2741 2017-10-29  Bruno Haible  <bruno@clisp.org>
2743         crypto/*: Verify that the header file is self-contained.
2744         * tests/test-gc-*.c: Include the module's header file immediately after
2745         <config.h>.
2746         * tests/test-hmac-*.c: Likewise.
2747         * tests/test-arcfour.c: Likewise.
2748         * tests/test-arctwo.c: Likewise.
2749         * tests/test-des.c: Likewise.
2750         * tests/test-md2.c: Likewise.
2751         * tests/test-md4.c: Likewise.
2752         * tests/test-md5.c: Likewise.
2753         * tests/test-rijndael.c: Likewise.
2754         * tests/test-sha1.c: Likewise.
2755         * tests/test-sm3.c: Likewise.
2757 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2758             Bruno Haible  <bruno@clisp.org>
2760         crypto/gc: fix build failure with -Werror=suggest-attribute=const
2761         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
2763 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2765         New module: crypto/gc-sm3
2766         * lib/gc.h: Declare SM3-related stuffs.
2767         * lib/gc-gnulib.c: Support sm3 in internal functions.
2768         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
2769         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
2770         * modules/crypto/gc-sm3: Define gc-sm3 module.
2771         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
2772         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
2773         * MODULES.html.sh: List gc-sm3 module.
2775 2017-10-29  Bruno Haible  <bruno@clisp.org>
2777         random, random_r: Mention different prototypes on Haiku.
2778         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
2779         * doc/glibc-functions/random_r.texi: Likewise.
2780         * doc/glibc-functions/initstate_r.texi: Likewise.
2781         * doc/glibc-functions/setstate_r.texi: Likewise.
2783 2017-10-28  Bruno Haible  <bruno@clisp.org>
2785         posix_spawn: Avoid spurious message in configure output.
2786         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
2787         'cmp' command.
2789 2017-10-28  Bruno Haible  <bruno@clisp.org>
2791         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
2792         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
2793         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2795 2017-10-28  Bruno Haible  <bruno@clisp.org>
2797         ioctl: Override non-POSIX declaration on Haiku.
2798         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
2799         * lib/sys_ioctl.in.h: Add comment about Haiku.
2800         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
2801         * doc/glibc-headers/sys_ioctl.texi: Likewise.
2803 2017-10-28  Bruno Haible  <bruno@clisp.org>
2805         crypto/sm3: Add overview documentation to the .h file.
2806         * lib/sm3.h: Add comments.
2808 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2810         New module: crypto/sm3
2811         This new module can be used to compute SM3 message digest of files or
2812         memory blocks according to the specification GM/T 004-2012
2813         Cryptographic Hash Algorithm SM3, published by State Cryptography
2814         Administration, China.
2815         The official SM3 cryptographic hash algorithm specification is
2816         available at
2817         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
2818         * lib/sm3.h: Declare the APIs of sm3 module.
2819         * lib/sm3.c: Implement SM3 hash algorithm.
2820         * m4/sm3.m4: m4 file for sm3 module.
2821         * modules/crypto/sm3: Define sm3 module.
2822         * tests/test-sm3.c: Implement SM3 test case.
2823         * modules/crypto/sm3-tests: Define sm3 test module.
2824         * MODULES.html.sh: List sm3 module.
2826 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2828         gc-libgcrypt: fix undefined enum type in switch statement
2829         Resolve the following build failure:
2830         lib/gc-libgcrypt.c: In function 'gc_hash_open':
2831         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
2832         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
2833              case 0:
2834              ^~~~
2835         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
2836         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
2838 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
2840         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
2841         Resolve the following build failure:
2842         lib/gc-libgcrypt.c: In function 'gc_hash_read':
2843         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
2844         in signedness [-Werror=pointer-sign]
2845             digest = gcry_md_read (ctx->gch, 0);
2846                    ^
2847         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
2849 2017-10-26  Bruno Haible  <bruno@clisp.org>
2851         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
2852         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
2853         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
2855 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2857         glob: fix another heap buffer overflow
2858         Problem reported by Tim Rühsen in:
2859         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
2860         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
2862 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2864         quotearg: pacify compiler re unsigned
2865         * lib/quotearg.c (quotearg_n_options):
2866         Rewrite to avoid diagnostic from overly-picky compiler.
2867         Problem reported by Sami Kerola in:
2868         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
2870         glob: fix heap buffer overflow
2871         * lib/glob.c (glob): Fix off-by-one error introduced into
2872         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
2873         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
2874         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
2875         Fix suggested by Bruno Haible.
2877 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
2879         glob: pacify fuzzer for mempcpy
2880         Problem reported by Tim Rühsen in:
2881         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
2882         * lib/glob.c (glob): Do not pass NULL to mempcpy.
2884 2017-10-12  Bruno Haible  <bruno@clisp.org>
2886         doc: Fix syntax error (regression from 2017-10-03).
2887         * doc/posix-functions/strncpy.texi: Fix syntax error.
2889 2017-10-12  Bruno Haible  <bruno@clisp.org>
2891         doc: Update for Solaris 11.3.
2892         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
2893         mention Solaris 11.3.
2894         * m4/log2.m4: Fix comments.
2895         * m4/log2f.m4: Likewise.
2896         * m4/printf.m4: Update comments.
2897         * m4/rename.m4: Likewise.
2898         * m4/strncat.m4: Likewise.
2900         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
2902 2017-10-10  Bruno Haible  <bruno@clisp.org>
2904         doc: Improve doc about ioctl.
2905         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
2906         prototype.
2908 2017-10-09  Bruno Haible  <bruno@clisp.org>
2910         wcwidth: Don't use obsolete syntax of 'test'.
2911         Reported by Eric Blake.
2912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
2913         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
2915 2017-10-09  Bruno Haible  <bruno@clisp.org>
2917         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
2918         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
2919         and Daniel P. Berrange <berrange@redhat.com>.
2920         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
2921         on glibc systems. The getopt-pfx-core.h file declares exactly what
2922         unistd.h needs, nothing more.
2924 2017-10-08  Bruno Haible  <bruno@clisp.org>
2926         vma-iter: Improve support for FreeBSD.
2927         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
2928         vma_iterate.
2929         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
2931 2017-10-08  Bruno Haible  <bruno@clisp.org>
2933         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
2934         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
2936 2017-10-07  KO Myung-Hun  <komh@chollian.net>
2938         test-framework-sh: Fix 'invalid path dir' error.
2939         On OS/2, a path separator is ';' not ':'. And ':' is used as a
2940         separator between a drive letter and directory parts.
2941         As a result, an absolute path such as x:/path/to/dir on OS/2 is
2942         treated as an invalid path dir.
2943         * tests/init.sh (PATH_SEPARATOR): Set at startup.
2944         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
2945         instead of hard coded ':'.
2947 2017-10-07  Bruno Haible  <bruno@clisp.org>
2949         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
2950         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
2951         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
2952         (rof_open): On Linux, do multiple read() calls and make sure
2953         MIN_LEFTOVER bytes are left when read() returns.
2955 2017-10-07  Bruno Haible  <bruno@clisp.org>
2957         vma-iter: Improve support for GNU/Hurd.
2958         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
2959         API, not the /proc file system.
2961 2017-10-07  Bruno Haible  <bruno@clisp.org>
2963         test-framework-sh: Don't require bash on Windows and OS/2.
2964         Reported by KO Myung-Hun.
2965         * tests/test-init.sh: Use 'shopt' only when running in bash.
2967 2017-10-06  KO Myung-Hun  <komh@chollian.net>
2969         wcwidth: check a macro version of wcwidth () as well
2970         * lib/wchar.in.h: Revert commit from 2016-01-14.
2971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
2973 2017-10-06  Bruno Haible  <bruno@clisp.org>
2975         getopt-posix: Clarify copyright header.
2976         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
2977         * lib/getopt-pfx-core.h: Likewise.
2978         * lib/getopt-pfx-ext.h: Likewise.
2979         * lib/getopt-cdefs.in.h: Likewise.
2981 2017-10-03  Bruno Haible  <bruno@clisp.org>
2983         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
2984         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
2985         gl_HOST_CPU_C_ABI.
2987 2017-10-03  Bruno Haible  <bruno@clisp.org>
2989         doc: warn about misuse of strncpy and wcsncpy.
2990         * doc/posix-functions/strcpy.texi: Describe requirements on prior
2991         memory allocation.
2992         * doc/posix-functions/wcscpy.texi: Likewise.
2993         * doc/posix-functions/strncpy.texi: Describe what this function is not
2994         useful for.
2995         * doc/posix-functions/wcsncpy.texi: Likewise.
2997 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
2999         fsuage: fix typo in previous change
3000         * lib/fsusage.c: Remove stray include of full-read.h.
3001         Problem reported by Sam Steingold for macOS (Bug#28669).
3003 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
3005         fsusage: remove SVR2 support
3006         SVR2 was obsolete by 1986 and is no longer supported by anybody,
3007         and its code was getting in the way of use of this module by
3008         Emacs, which has its own ‘read’ function anyway.
3009         * lib/fsusage.c: Do not include sys/filsys.h.
3010         (get_fs_usage): Remove SVR2-specific code.
3011         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
3012         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
3013         * modules/fsusage (Depends-on): Do not depend on full-read.
3015         Simplify autoupdate of licenses
3016         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
3017         place.
3019 2017-10-01  Bruno Haible  <bruno@clisp.org>
3021         vma-iter: Add support for GNU/Hurd.
3022         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
3023         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
3025 2017-09-30  Bruno Haible  <bruno@clisp.org>
3027         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
3028         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
3029         fail when module 'largefile' is in use.
3030         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
3031         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
3032         Don't test HAVE_SYS_PROCFS_H.
3034 2017-09-30  Bruno Haible  <bruno@clisp.org>
3036         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
3037         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
3038         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
3039         * modules/havelib (Depends-on): Add host-cpu-c-abi.
3041 2017-09-30  Bruno Haible  <bruno@clisp.org>
3043         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
3044         * lib/uniname/uniname.c (unicode_name_character): Add braces around
3045         scope of local variables.
3047 2017-09-28  Bruno Haible  <bruno@clisp.org>
3049         string: code style
3050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
3051         substitutable variables.
3052         * modules/string (Makefile.am): Likewise.
3054 2017-09-26  Bruno Haible  <bruno@clisp.org>
3056         uniname/uniname-tests: Tighten code.
3057         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
3058         local variables into one.
3060 2017-09-26  Bruno Haible  <bruno@clisp.org>
3062         vma-iter: Improvements for Linux and BSD platforms.
3063         - Add support for DragonFly BSD.
3064         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
3065         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
3066         Read the entire file into memory in a single system call.
3067         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
3068         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
3070 2017-09-26  Bruno Haible  <bruno@clisp.org>
3072         vma-iter: Provide the protection flags on FreeBSD.
3073         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
3074         skip three fields between the addresses and the protection flags.
3076 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3078         glob: remove bogus extern decl
3079         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3080         extern declaration.  Problem reported by Adhemerval Zanella in:
3081         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
3083 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3085         uniname/uniname-tests: integer overflow fix
3086         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
3087         Check for integer overflow.
3089         duplocale-tests: fix unlikely crash
3090         * tests/test-duplocale.c (get_locale_dependent_values):
3091         Don’t crash with absurdly long month names.
3093         maint: fix overflow checking in nap.h
3094         * modules/chown-tests:
3095         * modules/fchownat-tests, modules/fdutimensat-tests:
3096         * modules/futimens-tests, modules/lchown-tests:
3097         * modules/stat-time-tests, modules/utime-tests:
3098         * modules/utimens-tests, modules/utimensat-tests:
3099         Depend on intprops.
3100         * tests/nap.h: Include intprops.h.
3101         (diff_timespec): Handle overflow properly.
3103         sys_types: update URL
3104         * m4/sys_types_h.m4: Use https: URL.
3106         parse-datetime: fix dependency
3107         * modules/parse-datetime (Depends-on): Depend
3108         on nstrftime, not strftime.
3110         parse-datetime, posixtm: avoid uninit access
3111         * lib/parse-datetime.y (parse_datetime2):
3112         * lib/posixtm.c (posixtime):
3113         Do not access uninitialized storage, even though the resulting
3114         value is never used.
3116 2017-09-25  Bruno Haible  <bruno@clisp.org>
3118         vma-iter: Improvements for BSD platforms.
3119         - Add support for GNU/kFreeBSD.
3120         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
3121         - Speed up on OpenBSD.
3122         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
3123         (vma_iterate_bsd): New function.
3124         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
3125         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
3126         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
3127         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
3129 2017-09-23  Bruno Haible  <bruno@clisp.org>
3131         strfmon_l: New module.
3132         * modules/strfmon_l: New file.
3133         * lib/strfmon_l.c: New file.
3134         * m4/strfmon_l.m4: New file.
3135         * doc/posix-functions/strfmon_l.texi: Mention the new module.
3136         * modules/strfmon_l-tests: New file.
3137         * tests/test-strfmon_l.c: New file.
3139         monetary: New module.
3140         * modules/monetary: New file.
3141         * lib/monetary.in.h: New file.
3142         * m4/monetary_h.m4: New file.
3143         * doc/posix-headers/monetary.texi: Mention the new module.
3144         * modules/monetary-tests: New file.
3145         * tests/test-monetary.c: New file.
3146         * modules/monetary-c++-tests: New file.
3147         * tests/test-monetary-c++.cc: New file.
3148         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
3150 2017-09-23  Bruno Haible  <bruno@clisp.org>
3152         duplocale tests: Fix test crash on Linux/x86.
3153         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
3154         locale from the current thread before freeing it.
3156 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
3158         mktime: port to OpenVMS
3159         Problem reported by John E. Malmberg in:
3160         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
3161         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
3163 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3165         manywarnings: port to GCC on 64-bit MS-Windows
3166         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
3167         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
3168         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
3170 2017-09-13  Bruno Haible  <bruno@clisp.org>
3172         all: Replace many more http URLs by https URLs. Update stale URLs.
3173         * users.txt: Remove mention of 'newts'.
3174         * lib/localename.c: Update comment about LANG_SOTHO.
3176 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3178         all: Replace many http URLs by https URLs.
3180 2017-09-12  Bruno Haible  <bruno@clisp.org>
3182         doc: Prefer https URLs where possible.
3183         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
3184         * doc/ld-output-def.texi: Remove unavailable URL.
3186 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3188         maintainer-makefile: FTP -> HTTPS
3189         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
3190         of FTP, which is planned to be decommissioned on 2017-11-01.
3192 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3194         libc-config: Fix __GNUC_PREREQ macro.
3195         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
3196         __GNUC_MINOR.
3198 2017-09-09  Bruno Haible  <bruno@clisp.org>
3200         gnulib-tool: Simplify commit from 2015-08-20.
3201         * gnulib-tool (func_add_or_update): Remove local variable
3202         is_binary_file.
3204 2017-09-08  Bruno Haible  <bruno@clisp.org>
3206         stddef: Avoid conflict with system-defined max_align_t.
3207         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
3208         Reported by Werner Lemberg <wl@gnu.org> in
3209         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
3210         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
3211         (max_align_t): Define as a macro.
3212         (GNULIB_defined_max_align_t): New macro. Guards against multiple
3213         definitions of rpl_max_align_t in different copies of gnulib-generated
3214         <stddef.h>.
3216 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3218         libc-config: port to MSVC
3219         Problems reported by Gisle Vanem in:
3220         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
3221         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
3222         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
3223         * m4/__inline.m4: New file.
3224         * modules/libc-config (Files): Add it.
3225         (Depends-on): Use it.
3227         glob: Use enum for __glob_pattern_type result
3228         From a patch proposed by Adhemerval Zanella in:
3229         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
3230         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
3231         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
3232         * lib/glob_internal.h (__glob_pattern_type):
3233         * lib/glob.c (glob):
3234         * lib/glob_pattern_p.c (__glob_pattern_p):
3235         Use them.
3237         glob: fix for use in glibc
3238         Problem reported by Adhemerval Zanella in:
3239         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
3240         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
3241         Do not redefine if _LIBC.
3243 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3245         glob: fix bugs with long login names
3246         Problem reported by Adhemerval Zanella in:
3247         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
3248         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
3249         (glob): Use the same scratch buffer for both getlogin_r and
3250         getpwnam_r.  Don’t require preallocation of the login name.  This
3251         simplifies storage allocation, and corrects the handling of
3252         long login names.
3254 2017-09-02  Bruno Haible  <bruno@clisp.org>
3256         dirent: Update doc.
3257         * doc/posix-headers/dirent.texi: More concrete list of platforms.
3259 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3261         glob: fix getpwnam_r errno typo
3262         * lib/glob.c (glob): Fix longstanding misuse of errno after
3263         getpwnam_r, which returns an error number rather than setting
3264         errno.
3266         glob: fix typo in recent change
3267         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
3268         Fix recently-introduced typo.
3270 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3272         glob: don't save and restore errno unnecessarily
3273         * lib/glob.c (glob): Don't save and restore errno
3274         merely because we have getpwnam_r.
3276         glob: don't assume getpwnam_r
3277         * lib/glob.c (glob): Port recent patches to platforms
3278         lacking getpwnam_r.
3280         scratch_buffer: don’t use private glibc API
3281         Suggested by Florian Weimer in:
3282         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
3283         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
3284         * lib/scratch_buffer_grow.c: Rename to
3285         lib/malloc/scratch_buffer_grow.c.
3286         * lib/scratch_buffer_grow_preserve.c: Rename to
3287         lib/malloc/scratch_buffer_grow_preserve.c.
3288         * lib/scratch_buffer_set_array_size.c: Rename to
3289         lib/malloc/scratch_buffer_set_array_size.c.
3290         * lib/scratch_buffer.h: New file.
3291         * modules/scratch_buffer (Files, Makefile.am):
3292         Adjust to source-file renaming.
3294 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3296         glob: use scratch_buffer instead of extend_alloca
3297         Much of the lib/glob.c part of this patch comes from a glibc patch
3298         proposed by Adhemerval Zanella in:
3299         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
3300         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
3301         included via glob.h, does this for us now.
3302         (__set_errno): Remove, as libc-config does this for us now.
3303         Include <scratch_buffer.h>.
3304         (GETPW_R_SIZE_MAX): Remove.
3305         (glob): Use struct scratch_buffer instead of extend_alloca.
3306         * lib/glob.in.h: Include libc-config.h rather than
3307         including <sys/cdefs.h> conditionally.
3308         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
3309         (__glibc_unlikely, __restrict, weak_alias):
3310         Remove, as libc-config does this for us now.
3311         * m4/glob.m4 (gl_PREREQ_GLOB):
3312         Remove sys/cdefs.h tests; no longer needed.
3313         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
3314         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
3316         scratch_buffer: new module
3317         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
3318         * lib/scratch_buffer_grow_preserve.c:
3319         * lib/scratch_buffer_set_array_size.c:
3320         New files, copied from glibc with very minor changes that can be
3321         copied back.
3322         * modules/scratch_buffer: New file.
3324         libc-config: new module
3325         * MODULES.html.sh: Add libc-config.
3326         * lib/cdefs.h: New file, copied from the GNU C Library with very
3327         minor changes that can be copied back.
3328         * lib/libc-config.h, modules/libc-config: New files.
3330 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3332         glob: match dangling symlinks
3333         This fixes a bug I inadvertently introduced to Gnulib when I
3334         merged glibc glob back into gnulib on 2007-10-16.  This fix is
3335         inspired by a patch proposed for glibc by Adhemerval Zanella in:
3336         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
3337         * doc/posix-functions/glob.texi: Update list of affected platforms.
3338         * lib/glob.c (__lstat64): New macro.
3339         (is_dir): New function.
3340         (glob, glob_in_dir): Match symlinks even if they are dangling.
3341         (link_stat, link_exists_p): Remove.  All uses removed.
3342         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
3343         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
3344         * modules/glob-tests (Depends-on): Add symlink.
3345         * tests/test-glob.c: Include errno.h, unistd.h.
3346         (BASE): New macro.
3347         (main): Test dangling symlinks, if symlinks are supported.
3349         glob, backupfile: inode 0 is a valid inode number
3350         * doc/posix-functions/readdir.texi (readdir):
3351         * doc/posix-headers/dirent.texi (dirent.h):
3352         Document more readdir portability issues.
3353         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
3354         (numbered_backup): Don’t treat inode 0 any differently from
3355         other inode values.
3356         * lib/glob.c (struct readdir_result): Remove skip_entry member.
3357         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
3358         All uses removed.
3359         * modules/glob (Depends-on): Remove d-ino.
3361         glob: simplify symlink detection
3362         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
3363         uint8_t, as C99 does not require uint8_t.
3364         (struct readdir_result): Use it.  Do not define skip_entry unless
3365         it is needed; this saves a byte on platforms lacking d_ino.
3366         (readdir_result_type, readdir_result_skip_entry):
3367         New functions, replacing ...
3368         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
3369         ... these functions, which were removed.  This makes the callers
3370         easier to read.  All callers changed.
3371         (D_INO_TO_RESULT): Now empty if there is no d_ino.
3373 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3375         fts-tests: tag as a longrunning-test so not included by default
3376         * modules/fts-tests: This test takes about 20s on current systems,
3377         and uses about 285M of space on ext4.
3379 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3381         renameat2: fix compilation on alpine linux
3382         * m4/renameat.m4: Check for <linux/fs.h> presence.
3383         * lib/renameat2.h: Only include <linux/fs.h> if present.
3384         Reported by Assaf Gordon on Alpine Linux.
3386 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3388         glob: try to port recent changes to MS-Windows
3389         Problem reported by Bruno Haible in:
3390         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
3391         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
3392         * lib/glob.in.h (__glob_pattern_p): ... to here.
3394 2017-08-24  Eric Blake  <eblake@redhat.com>
3396         warnings: fix compilation with old autoconf
3397         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
3398         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
3399         AC_DEFUN.
3400         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
3401         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
3403 2017-08-24  Bruno Haible  <bruno@clisp.org>
3405         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
3406         * modules/glob (Depends-on): Add c99.
3408 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3410         glob: fix typo that broke platforms lacking d_ino
3411         This typo also hurt performance on GNU/Linux and similar hosts.
3412         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
3413         in previous change.
3415 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3417         glob: merge from glibc with Zanella glob changes
3418         Merge glob from glibc, with changes for glob proposed
3419         by Adhemerval Zanella in the thread starting here:
3420         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
3421         plus some fixes for this merge.
3422         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
3423         New files, ported from glibc.
3424         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
3425         with __restrict.
3426         (__size_t): Remove.  All uses replaced by size_t.
3427         (size_t): Define by defining __need_size_t and including <stddef.h>.
3428         This should work even in non-glibc platforms, where any name
3429         pollution is OK.
3430         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
3431         (struct stat64): Don’t worry about __GLOB_GNULIB.
3432         (glob, globfree, glob_pattern_p): Remove macros for
3433         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
3434         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
3435         but set errno.
3436         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
3437         removed since the glibc behavior works on null pointers.
3438         Do not include stdio.h; old SunOS is irrelevant now.
3439         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
3440         Include glob_internal.h.
3441         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
3442         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
3443         worked only coincidentally.
3444         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
3445         Remove macros; now done in glob.in.h.
3446         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
3447         (glob): Properly initialize glob structure with
3448         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
3449         Remove old code using SHELL since Bash no longer
3450         uses this.
3451         (glob, prefix_array): Separate MS code better.
3452         (glob, glob_in_dir): Use C99 decls before statements when glibc
3453         does.
3454         (glob_in_dir): Remove old Amiga and VMS code.
3455         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
3456         separate files.
3457         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
3458         (__glibc_unlikely):
3459         Move here from glob.c.
3460         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
3461         (weak_alias): New macro.
3462         (__size_t): Remove.  All uses replaced by size_t.
3463         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
3464         * modules/glob (Files): Add +lib/glob_internal.h,
3465         lib/glob_pattern_p.c, lib/globfree.c.
3466         (Depends-on): Remove snippet/arg-nonnull.
3468 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3470         glob: port to clang's Undefined Sanitizer
3471         Problem reported by Tim Rühsen in:
3472         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
3473         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
3474         (glob_in_dir): Do not rely on undefined behavior in accessing
3475         struct members beyond their bounds.  Use a flexible array member
3476         instead.
3478 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3480         vc-list-files: port to Solaris 10
3481         * build-aux/vc-list-files: Don't assume test -e works.
3483 2017-08-21  Karl Berry  <karl@freefriends.org>
3485         * doc/posix-functions/srandom.texi (srandom): typo }.
3487 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3489         git-version-gen: port to Solaris 10
3490         Problem reported by Dagobert Michelsen in:
3491         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
3492         * build-aux/git-version-gen (v_from_git):
3493         Use expr instead of shell substitution.
3495 2017-08-19  Bruno Haible  <bruno@clisp.org>
3497         host-cpu-c-abi: Improve detection of MIPS ABI.
3498         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
3499         _MIPS_SIM.
3501 2017-08-17  Bruno Haible  <bruno@clisp.org>
3503         hypot tests: Fix test failure on FreeBSD 11.0/x86.
3504         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
3506 2017-08-17  Bruno Haible  <bruno@clisp.org>
3508         float: Fix LDBL_MIN value on FreeBSD/x86.
3509         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
3511 2017-08-17  Bruno Haible  <bruno@clisp.org>
3513         random: Fix test compilation failure on Cygwin 1.5.25.
3514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
3515         HAVE_DECL_SETSTATE.
3516         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
3517         declared.
3518         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
3519         HAVE_DECL_SETSTATE.
3520         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
3521         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
3522         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
3523         * doc/posix-functions/random.texi: Likewise.
3524         * doc/posix-functions/setstate.texi: Likewise.
3525         * doc/posix-functions/srandom.texi: Likewise.
3527 2017-08-16  Bruno Haible  <bruno@clisp.org>
3529         stdnoreturn: Fix test compilation failure on Cygwin.
3530         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
3531         <stdnoreturn.h> replacement.
3532         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
3533         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
3535 2017-08-16  Bruno Haible  <bruno@clisp.org>
3537         thread: Fix conflict with pthread_sigmask module.
3538         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
3539         it's defined as a macro.
3540         * modules/thread (Depends-on): Add pthread_sigmask.
3542 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3544         rename: port better to NetBSD
3545         * doc/posix-functions/rename.texi (rename): NetBSD 7
3546         does not have the link-count bug.
3547         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
3548         broken merely because rename ("a", "b") removes "a" when the two
3549         names are hard links to the same file.
3551 2017-08-16  Bruno Haible  <bruno@clisp.org>
3553         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
3554         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
3555         the target file names with '$(srcdir)/'.
3556         * modules/unicase/locale-language (Makefile.am): Likewise.
3557         * modules/unicase/special-casing (Makefile.am): Likewise.
3558         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
3559         * modules/unictype/category-byname (Makefile.am): Likewise.
3560         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
3561         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
3562         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
3563         * modules/unictype/property-byname (Makefile.am): Likewise.
3564         * modules/unictype/scripts (Makefile.am): Likewise.
3565         * modules/uninorm/composition (Makefile.am): Likewise.
3567 2017-08-16  Bruno Haible  <bruno@clisp.org>
3569         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
3570         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
3571         value for OpenBSD.
3573 2017-08-16  Bruno Haible  <bruno@clisp.org>
3575         rename, renameat: Update doc regarding NetBSD.
3576         * doc/posix-functions/rename.texi: Clarify that when using
3577         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
3578         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
3579         version.
3581 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3583         renameat2: port better to macOS
3584         * lib/renameat2.c (renameat2): Use renameatx_np if available.
3586         futimens: don’t assume struct timespec layout
3587         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
3588         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
3589         * tests/test-fdutimensat.c (main):
3590         * tests/test-futimens.h (test_futimens):
3591         * tests/test-lutimens.h (test_lutimens):
3592         * tests/test-utimens.h (test_utimens):
3593         * tests/test-utimensat.c (main):
3594         Don’t assume that struct timespec is a two-member structure in
3595         tv_sec, tv_nsec order.  Although this is true on all platforms we
3596         know about, POSIX does not guarantee it.
3598         rename: document+test NetBSD rename
3599         Test failure reported by Bruno Haible in:
3600         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
3601         This is an area where NetBSD is better-behaved than POSIX,
3602         so allow the NetBSD behavior in tests.
3603         * doc/posix-functions/rename.texi:
3604         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
3605         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
3607 2017-08-15  Bruno Haible  <bruno@clisp.org>
3609         renameat: Ensure declaration in <stdio.h> on NetBSD.
3610         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
3611         * doc/posix-functions/renameat.texi: Mention this problem.
3613 2017-08-15  Bruno Haible  <bruno@clisp.org>
3615         duplocale: Work around NetBSD 7.0 bug.
3616         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
3617         * lib/duplocale.c: Add comment about NetBSD problem.
3618         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
3620 2017-08-15  Bruno Haible  <bruno@clisp.org>
3622         duplocale tests: Verify use with *_l functions.
3623         * modules/duplocale-tests (configure.ac): Test for uselocale and
3624         some *_l functions.
3625         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
3626         from main.
3627         (get_locale_dependent_values_from, test_with_locale_parameter): New
3628         functions.
3629         (main): Test both test_with_uselocale and test_with_locale_parameter.
3631 2017-08-15  Bruno Haible  <bruno@clisp.org>
3633         extensions: Enable NetBSD specific extensions.
3634         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
3636 2017-08-14  Bruno Haible  <bruno@clisp.org>
3638         open, openat: Update doc about O_CLOEXEC.
3639         * doc/posix-functions/open.texi: More concrete list of platforms.
3640         * doc/posix-functions/openat.texi: Likewise.
3642 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3644         open: support O_CLOEXEC
3645         * NEWS, doc/posix-functions/open.texi:
3646         * doc/posix-functions/openat.texi: Document this.
3647         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
3648         (GNULIB_defined_O_CLOEXEC): New symbol.
3649         * lib/open.c: Include cloexec.h.
3650         (open): Support O_CLOEXEC.
3651         * lib/openat.c: Include cloexec.h.
3652         (rpl_openat): Support O_CLOEXEC.
3653         * lib/popen-safer.c: Do not include cloexec.h.
3654         (open_noinherit): Remove.
3655         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
3656         * lib/save-cwd.c: Do not include cloexec.h.
3657         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
3658         * m4/open-cloexec.m4: New file.
3659         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
3660         Replace 'open' if O_CLOEXEC is not present.
3661         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
3662         Replace 'openat' if O_CLOEXEC is not present.
3663         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
3664         * modules/open (Files): Add m4/open-cloexec.m4.
3665         (Depends-on): Depend on cloexec if replacing 'open'.
3666         * modules/openat (Files): Add m4/open-cloexec.m4.
3667         (Depends-on): Depend on cloexec if replacing openat.
3668         * modules/popen-safer (Depends-on): Remove cloexec.
3669         * modules/save-cwd (Depends-on): Remove cloexec, and add
3670         fd-safer-flag and 'open'.
3672 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
3674         reallocarray: minor fixes
3675         * doc/glibc-functions/reallocarray.texi: Update version numbers.
3676         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
3677         * modules/reallocarray (License): Change from GPL to LGPL.
3678         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
3679         Indent properly and don't use tabs.
3681 2017-08-13  Darshit Shah  <darnir@gnu.org>
3683         reallocarray: New module
3684         reallocarray is a new function in glibc 2.26 to safely allocate an array
3685         of memory locations with integer overflow protection.
3686         * MODULES.html.sh: Add reallocarray.
3687         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
3688         * lib/reallocarray.c: New file to implement module reallocarray.
3689         * lib/stdlib.in.h: Add function declarations for reallocarray.
3690         * m4/reallocarray.m4: New file.
3691         * m4/stdlib_h.m4: Declare reallocarray.
3692         * modules/reallocarray: New file.
3693         * modules/reallocarray-test: New file.
3694         * modules/stdlib: Coerce stdlib.h to export reallocarray.
3695         * tests/test-reallocarray.c: New test.
3697 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3699         dirent-safer: fix cloexec race
3700         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
3701         (opendir_safer): Use F_DUPFD_CLOEXEC.
3702         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
3703         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
3704         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
3705         instead of dup_safer.
3707         fts: fix cloexec races
3708         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
3709         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
3710         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
3711         (fd_ring_check): Set cloexec flag on new file descriptors.
3712         (fts_build, fd_ring_check): While we’re at it, make sure the
3713         resulting file descriptor is not 0, 1, or 2, since that is easy.
3715 2017-08-11  Bruno Haible  <bruno@clisp.org>
3717         fts tests: Fix link error.
3718         Reported by Tom G. Christensen in
3719         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
3720         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
3722 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3724         fts: port recent changes to CentOS 6
3725         Problem reported by Tom G. Christensen in:
3726         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
3727         * lib/fts.c (fsword): New type.
3728         (struct dev_type, filesystem_type): Use it.
3729         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
3730         Also, check for f_type only if fstatfs and sys/vfs.h work.
3732 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
3734         tempname: do not depend on secure_getenv
3735         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
3736         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
3737         * modules/tempname (Depends-on): Remove secure_getenv.
3739 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
3741         extensions: add _OPENBSD_SOURCE
3742         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
3744 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
3745             Bruno Haible  <bruno@clisp.org>
3747         manywarnings: Add support for C++.
3748         * build-aux/g++-warning.spec: New file.
3749         * m4/manywarnings-c++.m4: New file.
3750         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
3751         redirects to manywarnings-c++.m4.
3752         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
3754 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
3756         git-version-gen: another fix for tags with "-"
3757         * build-aux/git-version-gen: Improve fix for tags containing "-".
3758         Suggested by Markus Armbruster in:
3759         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
3761 2017-08-06  Bruno Haible  <bruno@clisp.org>
3763         warnings, manywarnings: Add support for multiple languages, not just C.
3764         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
3765         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
3766         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
3767         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
3768         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
3769         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
3770         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
3771         of the current language. If C++ is the current language, modify
3772         WARN_CXXFLAGS instead of WARN_CFLAGS.
3773         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
3774         gl_MANYWARN_ALL_GCC.
3775         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
3777 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
3779         git-version-gen: Fix for tags containing '-'
3781         Really old versions of git-describe (before v1.5.0, Feb 2007)
3782         don't have the number of commits in their long format output,
3783         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
3784         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
3785         recognizes both patterns, and normalizes the old format to the new one.
3787         Unfortunately, this normalization code gets confused when the tag
3788         contains '-'.  Reproducer:
3790             $ git-tag -m test v0.2-rc1
3791             $ build-aux/git-version-gen .tarball-version; echo
3792             build-aux/git-version-gen: WARNING: git rev-list failed
3793             UNKNOWN
3795         We take exact tag "v0.2-rc1" for the old format, extract the presumed
3796         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
3797         commits since tha tag.  Fails, because tag "v0.2" does not exist.
3799         * git-version-gen: We could perhaps drop support for versions from
3800         more than a decade ago.  But tightening the pattern match is easy
3801         enough, so do that.  Still breaks when you use version tags ending in
3802         something matching -g????, but you arguably get what you deserve then.
3804 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
3806         valgrind-tests: use ls, and cache
3807         * m4/valgrind-tests.m4: Test ls, not bash.
3808         Problem reported by Reuben Thomas.
3809         Also, cache the result so that it can be overridden.
3811 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
3813         manywarnings: port to 64-bit GCC builds of Emacs
3814         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
3815         object size rather than hardwiring 2147483647.  This is needed to
3816         build GNU Emacs, which has one conditional (and used
3817         only-in-theory) call to malloc with a literal greater than
3818         2147483647.
3820 2017-08-04  Bruno Haible  <bruno@clisp.org>
3822         Relax the license of some modules with no runtime code.
3823         * modules/std-gnu11 (License): Set to 'unlimited'.
3824         * modules/c99 (License): Likewise.
3825         Reported by Reuben Thomas <rrt@sc3d.org>.
3826         * modules/d-ino (License): Set to 'LGPL'.
3827         * modules/host-os (License): Likewise.
3828         * modules/longlong (License): Likewise.
3830 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
3832         renameat2: port to RHEL 7 + NFS
3833         * lib/renameat2.c (renameat2) [SYS_renameat2]:
3834         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
3835         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
3837 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3839         renameat2: port to non-renameat platforms
3840         Problem reported for MSVC-2015 by Gisle Vanem in:
3841         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
3842         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
3843         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
3845 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3847         manywarnings: port to 32-bit GCC bug
3848         Problem reported by Pino Toscano in:
3849         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
3850         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
3851         not 2**63 - 1, to work around the following GCC bug:
3852         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
3854 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3856         backupfile: new function to validate backup suffix
3857         * lib/backupfile.c (set_simple_backup_suffix): New function.
3858         (backupfile_internal): Use it.
3860         canonicalize: fix EOVERFLOW commentary
3861         Problem reported by Bruno Haible in:
3862         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
3863         * lib/canonicalize.c (canonicalize_filename_mode):
3864         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
3866         Don't interpret EOVERFLOW to mean nonexistence
3867         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
3868         may be EOVERFLOW; this is likely more useful than reporting the
3869         stat errno.
3870         * lib/glob.c (link_stat): Rename from link_exists2_p and
3871         return -1/0 instead of 0/1.  Caller changed.
3872         * lib/glob.c (link_exists_p):
3873         * lib/renameat2.c (rename_noreplace, renameat2):
3874         * lib/tempname.c (try_nocreate):
3875         If errno == EOVERFLOW then the directory entry exists, so do not
3876         act as if it does not exist.
3878         backup-rename: new module
3879         It is like backupfile, except it avoids some race conditions,
3880         and it does not output to stderr or exit.
3881         * MODULES.html.sh: Add backup-rename.
3882         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
3883         * modules/backup-rename: New files.
3884         * lib/backupfile.c: Turn this into an internals file, which
3885         contains code common to backupfile and backup_rename.  Include
3886         backupfile-internal.h instead of backupfile.h.  Do not include
3887         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
3888         renameat2.h and fcntl.h.
3889         (BACKUP_NOMEM): New constant.
3890         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
3891         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
3892         (backupfile_internal): Rename from find_backup_file_name.
3893         Support new arg RENAME.
3894         (backup_args, backup_types, get_version, xget_version):
3895         Move to lib/backup-find.c.
3896         * lib/backupfile.h (backup_file_rename): New decl.
3897         * modules/backupfile (Files): Add lib/backup-internal.h,
3898         lib/backup-find.c.
3899         (Depends-on): Add dirfd, fcntl, renameat2.
3900         (lib_SOURCES): Add backup-find.c.
3902         renameat2: port better to older Solaris
3903         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
3904         Add goto to use a label, to silence picky compilers.
3906         fts-tests: port to gcc -Wwrite-strings
3907         * tests/test-fts.c (base, base_d): New static vars.
3908         (argv, remove_tree, main): Use them.
3910 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
3912         relocatable-lib{,-lgpl}: improve documentation
3913         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
3914         Various other updates.
3916 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
3917             Bruno Haible  <bruno@clisp.org>
3919         relocatable-lib{,-lgpl}: add Valgrind suppressions
3920         * lib/relocatable.valgrind: New file.
3921         * modules/relocatable-lib (Files): Add relocatable.valgrind.
3922         * modules/relocatable-lib-lgpl: Likewise.
3924 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
3926         relocatable: Make the license on the sources the GPL.
3927         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
3928         LGPL, which was a special case so that the relocatable source files
3929         could be used without gnulib-tool, to GPL. They can still be used under
3930         the LGPL, using the --lgpl option to gnulib-tool.
3932 2017-07-30  Bruno Haible  <bruno@clisp.org>
3934         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
3935         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
3936         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
3937         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
3938         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
3940 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
3942         faccessat: document AT_SYMLINK_NOFOLLOW issue
3943         * doc/posix-functions/faccessat.texi: Modernize platform list.
3944         Document AT_SYMLINK_NOFOLLOW limitation.
3946         renameat2: port to Solaris 10
3947         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
3948         with AT_SYMLINK_NOFOLLOW (which is not portable).
3949         (renameat): Undef before using, to avoid endless recursion when
3950         the replacement renameat calls renameat2 which calls the
3951         replacement renameat.
3952         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
3953         * modules/renameat2 (Depends-on): Remove faccessat.
3954         * modules/renameat-tests (test_renameat_LDADD):
3955         * modules/renameat2-tests (test_renameat2_LDADD):
3956         Remove $(LIB_EACCESS).
3958         renameat2: new module
3959         Although the Linux syscall renameat2 is not in glibc (yet?), it is
3960         useful to have access to its RENAME_NOREPLACE flag.
3961         * MODULES.html.sh (func_all_modules): Add renameat2.
3962         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
3963         * modules/renameat2-tests, tests/test-renameat2.c: New files.
3964         * lib/renameat.c (renameat): Move most of the implementation
3965         to renameat2, and just call renameat2.
3966         * modules/renameat (Files): Remove lib/at-func2.c.
3967         (Depends-on): Depend only on renameat2.
3968         (Include): Remove <fcntl.h>.
3969         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
3970         since renameat (via renameat2) might use faccessat.
3972 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
3974         vc-list-files: Adjust the script to support git worktrees
3975         * build-aux/vc-list-files: Require existence, not directory.
3977 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3979         doc: bring MODULES.html.sh up to date
3980         Somehow a few months ago we stopped updating MODULES.html.sh.
3981         I don’t recall explicitly deciding this, so I updated it now.
3982         Alternatively I suppose we could remove it.
3983         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
3984         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
3985         truncate, utime, utime-h, windows-stat-inodes,
3986         windows-stat-override, windows-stat-timespec, year2038.  Sort.
3988 2017-07-26  Jim Meyering  <meyering@fb.com>
3990         fprintftime: fix build-break caused by recent renaming
3991         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
3992         "strftime.c".
3993         * modules/fprintftime: Depend directly on nstrftime.
3995 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3997         regex: work with GCC7's -Werror=implicit-fallthrough=
3998         * lib/regex_internal.h (FALLTHROUGH): New macro.
3999         * lib/regcomp.c (peek_token_bracket, parse_expression):
4000         * lib/regexec.c (check_node_accept): Use it.
4002 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4004         fts: simplify fts_build
4005         * lib/fts.c (fts_build): Simplify, and be lazier about
4006         calling leaf_optimization.
4008         fts: three levels of leaf optimization
4009         * lib/fts.c (enum leaf_optimization): New type with three values.
4010         (S_MAGIC_AFS): New macro.  Sort them.
4011         (leaf_optimization): Rename from leaf_optimization_applies, and
4012         return enum leaf_optimization instead of bool.  All uses changed.
4013         Add cases for unknown type and for AFS.
4014         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
4016         fts: cache dirent_inode_sort_may_be_useful too
4017         * lib/fts.c (struct dev_type): New struct.
4018         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
4019         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
4020         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
4021         Now takes FTSENT const *, not int.  All uses changed.  Use
4022         filesystem_type to cache.
4023         (link_count_optimize_ok): Remove.  Caller changed to use
4024         leaf_optimization_applies, which now uses shared cache.
4026         fts: introduce MIN_DIR_NLINK
4027         * lib/fts.c (MIN_DIR_NLINK): New constant.
4028         Use it instead of 2, whenever we are talking about link counts.
4030         fts: nlink_t signedness fixups
4031         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
4032         so that root need not be a special case later.
4033         (fts_read): Remove now-redundant test for fts_level.
4034         Do not assume that nlink_t is signed.
4035         (fts_build): Remove useless decrement of nlinks.
4036         (fts_stat): Avoid unlikely signed integer overflow later, if
4037         nlink_t is signed.
4039         fts-tests: new module
4040         * modules/fts-tests, tests/test-fts.c: New files.
4042 2017-07-23  Bruno Haible  <bruno@clisp.org>
4044         Rename module 'strftime' to 'nstrftime'.
4045         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
4046         * lib/nstrftime.c: Renamed from lib/strftime.c.
4047         * modules/nstrftime: Renamed from modules/strftime.
4048         (Files, Makefile.am): Update.
4049         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
4050         Fix comment.
4051         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
4052         (Files, Makefile.am): Update.
4053         * modules/strftime: New file, an obsolete indirection.
4054         * doc/posix-functions/strftime.texi: Update reference.
4055         * config/srclist.txt: Update info.
4056         * NEWS: Mention the change.
4058 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
4060         malloca: Silence a warning from clang's memory sanitizer.
4061         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
4062         (freea): Use it.
4064 2017-07-18  Bruno Haible  <bruno@clisp.org>
4066         host-cpu-c-abi: Fix detection of MIPS ABI.
4067         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
4068         ABI, not the CPU instruction set.
4070 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4072         explicit_bzero: new module
4073         The explicit_bzero function has been added to glibc.
4074         This module is intended to supports its use in GNU programs.
4075         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
4076         * m4/explicit_bzero.m4, modules/explicit_bzero:
4077         New files.
4078         * doc/gnulib.texi (Glibc string.h): Link to new doc.
4079         * lib/string.in.h (explicit_bzero): Declare.
4080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
4081         * modules/string (string.h): Substitute its vars.
4083 2017-07-16  Bruno Haible  <bruno@clisp.org>
4085         threadlib: Support static linking.
4086         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
4087         set gl_cv_have_weak to 'no'.
4089 2017-07-16  Bruno Haible  <bruno@clisp.org>
4091         unicase/locale-language: Fix link dependencies.
4092         * modules/unicase/locale-language (Link): New section.
4093         * modules/unicase/locale-language-tests (Makefile.am): Link
4094         test-locale-language program with $(LIBTHREAD).
4096 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4098         sys_socket: Add support for OpenVMS.
4099         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
4100         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
4102 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4104         sys_resource: Add support for OpenVMS.
4105         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
4106         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
4108 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4109             Bruno Haible  <bruno@clisp.org>
4111         math: Add support for OpenVMS.
4112         * lib/math.in.h [__VMS]: Include <fp.h>.
4113         * doc/posix-headers/math.texi: Mention OpenVMS issues.
4115 2017-07-15  Bruno Haible  <bruno@clisp.org>
4117         getdtablesize: Add minimal support for OpenVMS.
4118         Reported by John E. Malmberg <wb8tyw@qsl.net>.
4119         * modules/getdtablesize (Description): Fix.
4120         * lib/getdtablesize.c: Fix comment.
4121         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
4122         getdtablesize() function, even though the test fails.
4123         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
4124         limitation on OpenVMS.
4126 2017-07-13  Bruno Haible  <bruno@clisp.org>
4128         Revisit cross-compilation guesses.
4129         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
4131 2017-07-13  Bruno Haible  <bruno@clisp.org>
4133         Improve cross-compilation guesses for native Windows.
4134         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
4135         Windows.
4136         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
4137         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
4138         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
4139         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
4140         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
4141         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4142         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4143         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4144         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4145         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4146         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4147         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
4148         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
4149         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
4150         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
4151         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
4152         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
4153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4154         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4155         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
4156         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4157         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4158         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
4159         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
4160         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
4161         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
4162         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4163         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4164         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4165         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
4166         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4167         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
4168         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4169         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
4170         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
4171         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
4172         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
4173         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4174         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
4175         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4176         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4177         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4178         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
4179         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
4180         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
4181         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
4182         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
4183         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
4184         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
4185         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
4186         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
4187         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
4188         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
4189         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
4190         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
4191         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
4192         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
4193         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
4194         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
4195         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4196         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4197         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
4198         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
4199         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4200         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4202         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
4203         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
4204         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
4205         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
4206         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
4207         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4208         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4209         * m4/regex.m4 (gl_REGEX): Likewise.
4210         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4211         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
4212         gl_FUNC_REMAINDERF_WORKS): Likewise.
4213         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
4214         gl_FUNC_REMAINDERL_WORKS): Likewise.
4215         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4216         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4217         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4218         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4219         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4220         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4221         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4222         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4223         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
4224         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4225         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
4226         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
4227         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4228         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
4229         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4230         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4231         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4232         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4233         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4234         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4235         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4236         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4237         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4238         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4239         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4240         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4241         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4242         Likewise.
4243         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4244         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
4245         Windows. Enable also on Autoconf 2.70.
4246         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4247         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4248         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
4249         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
4250         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4251         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
4252         for native Windows.
4253         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
4254         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
4256 2017-07-13  Bruno Haible  <bruno@clisp.org>
4258         Improve cross-compilation guesses for native Windows.
4259         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
4260         Windows.
4261         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
4262         memchr.m4.
4263         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
4265 2017-07-13  Bruno Haible  <bruno@clisp.org>
4267         Improve cross-compilation guesses for native Windows.
4268         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
4269         native Windows.
4270         (gl_FUNC_FFLUSH): Update accordingly.
4271         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
4272         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4274 2017-07-11  Bruno Haible  <bruno@clisp.org>
4276         More systematic m4 quoting and indentation.
4277         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
4278         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4279         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
4280         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4281         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4282         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
4283         gl_WINSIZE_IN_PTEM): Likewise.
4284         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
4285         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4286         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4287         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
4288         Correct indentation.
4289         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4290         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4291         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
4292         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4293         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4294         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4296 2017-07-10  Bruno Haible  <bruno@clisp.org>
4298         round, roundf: Avoid compiler warning in configure test.
4299         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
4300         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4302 2017-07-10  Bruno Haible  <bruno@clisp.org>
4304         getlogin tests: Avoid #ifdefs when sharing code between modules.
4305         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
4306         * modules/getlogin-tests (Files): Likewise. Remove
4307         tests/test-getlogin_r.c.
4308         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
4309         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
4310         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
4311         getlogin().
4313 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4315         getlogin: don’t assume one name per uid
4316         Problem reported by Wolfgang F. Muthmann (Bug#27640).
4317         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
4318         (ttyname): Remove test.
4319         * modules/getlogin_r-tests (ttyname): Remove test.
4320         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
4321         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
4322         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
4323         getlogin rather than getlogin_r.  This avoids code duplication.
4324         (main): Use isatty and fstat rather than ttyname and stat.
4325         Use getpwnam instead of getpwuid, to be portable to test platforms
4326         that have multiple login names for the same uid.
4328 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
4329             Bruno Haible  <bruno@clisp.org>
4331         glob: Fix more memory leaks.
4332         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
4333         returning.
4334         Reported by Tim Rühsen.
4336 2017-07-10  Bruno Haible  <bruno@clisp.org>
4338         Make sure $host and $host_os are defined when used.
4339         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
4340         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
4341         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4342         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4343         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4344         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
4345         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
4346         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
4347         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4348         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4349         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
4350         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
4351         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
4352         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
4353         m4_ifdef block.
4355 2017-07-09  Bruno Haible  <bruno@clisp.org>
4357         *printf: Fix cross-compilation guess for Solaris.
4358         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
4359         2010-12-21.
4361 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
4362             Bruno Haible  <bruno@clisp.org>
4364         vasnprintf: port to macOS 10.13
4365         Problem reported by comex in:
4366         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
4367         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
4369 2017-07-06  Bruno Haible  <bruno@clisp.org>
4371         imaxdiv tests: Fix logic.
4372         * tests/test-imaxdiv.c (main): Use == instead of =.
4373         Reported by Coverity.
4375 2017-07-06  Bruno Haible  <bruno@clisp.org>
4377         uninorm/filter: Fix use-after-free bug.
4378         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
4379         sortbuf == filter->sortbuf invariant.
4380         Reported by Coverity.
4382 2017-07-06  Bruno Haible  <bruno@clisp.org>
4384         glob: Fix more memory leaks.
4385         * lib/glob.c (glob): Free dirname before returning.
4386         Reported by Coverity and Tim Rühsen.
4388 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4390         parse-datetime: fix uninit var bug
4391         Reported by Bruno Haible in:
4392         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
4393         * lib/parse-datetime.y (parse_datetime2): Do not use
4394         uninitialized.
4396 2017-07-05  Bruno Haible  <bruno@clisp.org>
4398         doc: Update for MSVC 14.
4399         * doc/posix-headers/*.texi: Add info about MSVC 14.
4400         * doc/posix-functions/*.texi: Likewise.
4401         * doc/pastposix-functions/*.texi: Likewise.
4402         * doc/glibc-headers/*.texi: Likewise.
4403         * doc/glibc-functions/*.texi: Likewise.
4405 2017-07-05  Bruno Haible  <bruno@clisp.org>
4407         sched: Fix build failure on native Windows (regression from 2017-06-19).
4408         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
4410 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
4412         stdioext: Port to OpenVMS.
4413         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
4414         * lib/fpending.c (fpending): Remove non-working VMS specific code.
4415         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
4416         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
4417         * lib/fpurge.c (fpurge): Likewise.
4418         * lib/freadable.c (freadable): Likewise.
4419         * lib/freadahead.c (freadahead): Likewise.
4420         * lib/freading.c (freading): Likewise.
4421         * lib/freadptr.c (freadptr): Likewise.
4422         * lib/freadseek.c (freadseek): Likewise.
4423         * lib/fseeko.c (fseeko): Likewise.
4424         * lib/fseterr.c (fseterr): Likewise.
4425         * lib/fwritable.c (fwriteable): Likewise.
4426         * lib/fwriting.c (fwriting): Likewise.
4428 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
4430         glob: Declare variables at the very start of their scope.
4431         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
4432         its separate scope, so the functions will compile on Haiku.
4434 2017-07-01  Bruno Haible  <bruno@clisp.org>
4436         logbl: Work around a glibc bug on PowerPC64LE.
4437         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
4438         numbers.
4439         * doc/posix-functions/logbl.texi: Update.
4441 2017-06-29  Bruno Haible  <bruno@clisp.org>
4443         stat, fstat: Compile stat-w32.c only on platforms that need it.
4444         Suggested by Paul Eggert.
4445         * modules/stat (configure.ac): Request stat-w32.o only on native
4446         Windows.
4447         * modules/fstat (configure.ac): Likewise.
4449 2017-06-25  Bruno Haible  <bruno@clisp.org>
4451         stat: Improve last change.
4452         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
4454 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4456         stat: port to xlc 12.01
4457         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
4458         12.01 complains "Compilation unit is empty."
4460 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
4462         xalloc-oversized: port to icc
4463         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
4464         __builtin_mul_overflow if ICC is defined, as this results in
4465         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
4466         20170213.
4468 2017-06-19  Bruno Haible  <bruno@clisp.org>
4470         classpath: Avoid including config.h twice, as it produces warnings.
4471         Reported by John E. Malmberg <wb8tyw@gmail.com>.
4472         * lib/classpath.h: Conditionalize the include of config.h.
4474 2017-06-19  Bruno Haible  <bruno@clisp.org>
4475             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
4477         sched: Fix compilation failure on OpenVMS.
4478         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
4479         test whether <pthread.h> exists and defines struct sched_param.
4480         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
4482 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4484         diffseq: port to GCC 7 with --enable-gcc-warnings
4485         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
4486         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
4487         not complain about big_snake being defined but not used.
4489 2017-06-15  Bruno Haible  <bruno@clisp.org>
4491         gettext-h: Update theoretical condition for use of variable size arrays.
4492         Reported by Paul Eggert.
4493         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
4494         to include the theoretical condition for availability of variable size
4495         arrays, if we could trust the value of __STDC_VERSION__.
4497 2017-06-12  Bruno Haible  <bruno@clisp.org>
4499         Relicense some modules under LGPLv2+.
4500         Daiki Ueno's approval is in
4501         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
4502         * modules/uniwidth/base (License): Change to LGPLv2+.
4503         * modules/uniwidth/width (License): Likewise.
4505 2017-06-11  Bruno Haible  <bruno@clisp.org>
4507         localename: Fix test failure on DragonFly BSD.
4508         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
4509         like FreeBSD.
4511 2017-06-11  Bruno Haible  <bruno@clisp.org>
4513         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
4514         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
4515         * lib/float.in.h: Likewise.
4516         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
4518 2017-06-11  Bruno Haible  <bruno@clisp.org>
4520         gnulib-tool: Clean up after autotools.
4521         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
4522         useless directory left over by the Autotools.
4524 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
4526         getopt-posix: port to glibc 2.25.90
4527         Problem reported by Daniel P. Berrange in:
4528         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
4529         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
4530         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
4531         #undef if __GETOPT_PREFIX is defined.
4533 2017-06-11  Bruno Haible  <bruno@clisp.org>
4535         strtod-obsolete: Fix license.
4536         * modules/strtod-obsolete (License): Change to LGPL.
4538 2017-06-10  Jim Meyering  <meyering@fb.com>
4540         maint: update to work with GCC7's -Werror=implicit-fallthrough=
4541         * lib/savewd.c (FALLTHROUGH): Define.
4542         (savewd_save, savewd_restore): Use this, rather than a comment,
4543         whenever one switch case falls through into the next.
4545 2017-06-08  Bruno Haible  <bruno@clisp.org>
4547         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
4548         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
4549         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
4550         case.
4552 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
4554         doc: remove robots, add prereqs
4555         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
4556         builds.  Simon's robot site does not seem to be up, so remove
4557         mentions of it for now.
4559 2017-06-08  Bruno Haible  <bruno@clisp.org>
4561         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
4562         * gnulib-tool (func_symlink_target): New function, extracted from
4563         func_symlink.
4564         (func_symlink, func_symlink_if_changed): Use it.
4566 2017-06-08  Bruno Haible  <bruno@clisp.org>
4568         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
4569         * gnulib-tool (func_ln_s): Determine cp_src correctly.
4571 2017-06-07  Bruno Haible  <bruno@clisp.org>
4573         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
4574         Reported by John E. Malmberg <wb8tyw@gmail.com> in
4575         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
4576         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
4577         override, pass 2 arguments to getcwd, not 3.
4579 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4581         same-inode: port better to VMS 8.2 and later
4582         Problem reported by John E. Malmberg in:
4583         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
4584         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
4585         Use the usual POSIX definition.
4586         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
4588 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4590         error: fix POSIX violation for va_end
4591         Problem reported by Bruno Haible in:
4592         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
4593         * lib/error.c (error_tail): Do not call va_end here.
4594         (error, error_at_line): Call it here instead.
4596 2017-05-28  Bruno Haible  <bruno@clisp.org>
4598         c-strtod: Make it usable in C++ mode.
4599         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
4601 2017-05-25  Jim Meyering  <meyering@fb.com>
4603         quotearg: fix compilation failure due to FALLTHROUGH misuse
4604         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
4605         macro back to /* fall through */ comment.  The macro can apply only
4606         to a following case statement.  Reported by Assaf Gordon.
4608 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4610         intprops: port to recent icc
4611         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
4612         but does not support __builtin_add_overflow etc.
4613         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
4614         Define to 0.
4616 2017-05-23  Karl Berry  <karl@freefriends.org>
4618         * config/srclist.txt (iconv.m4): sync broken, comment out
4619         until (hopefully) the next gettext release.
4621 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
4623         Remove repeated words in comments.
4625 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
4627         fallthrough: reinstate a FALLTHROUGH instance in quotearg
4628         quotearg.c: Reinstate this instance which is significant
4629         when the if branch is not taken.
4631 2017-05-21  Bruno Haible  <bruno@clisp.org>
4633         gnulib-tool: Add options to create hard links.
4634         * gnulib-tool (func_usage): Document options --hardlink,
4635         --local-hardlink, --more-hardlinks.
4636         (func_symlink): Renamed from func_ln.
4637         (func_symlink_if_changed): Renamed from func_ln_if_changed.
4638         (func_hardlink): New function.
4639         (copymode, lcopymode): New variables.
4640         (symbolic, lsymbolic): Remove variables.
4641         (Options): Implement options --hardlink, --local-hardlink,
4642         --more-hardlinks.
4643         (func_should_link): Renamed from func_should_symlink. Set copyaction.
4644         (func_add_file, func_update_file): Update invocation of
4645         func_should_link. Invoke func_hardlink when appropriate.
4646         (func_import): Update comments.
4647         (func_create_testdir): Update invocation of func_should_link. Invoke
4648         func_hardlink when appropriate.
4649         Finally, invoke 'git update-index --refresh' to mitigate the effects of
4650         the hard links on git.
4652 2017-05-20  Bruno Haible  <bruno@clisp.org>
4654         argp: Simplify bit manipulation.
4655         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
4656         on a signed integer type.
4658 2017-05-20  Bruno Haible  <bruno@clisp.org>
4660         Avoid wrong configure results with gcc -fsanitize=address.
4661         This completes the work done on 2016-02-06 on this topic.
4662         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
4663         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4664         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4665         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4666         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
4667         returning.
4668         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4669         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4670         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4671         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4672         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
4673         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4674         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
4675         free allocated memory before returning.
4676         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4677         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
4678         objects before returning.
4679         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
4680         returning.
4682 2017-05-20  Bruno Haible  <bruno@clisp.org>
4684         gnulib-tool: Don't create hard links between gnulib and its testdirs.
4685         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
4687 2017-05-20  Bruno Haible  <bruno@clisp.org>
4689         argp, tsearch tests: Fix file list.
4690         * modules/argp-tests (Files): Add tests/macros.h.
4691         * modules/tsearch-tests (Files): Likewise.
4693 2017-05-20  Bruno Haible  <bruno@clisp.org>
4695         getopt-posix tests: Remove redundant include.
4696         * tests/test-getopt.h: Don't include "macros.h". It's already included
4697         by tests/test-getopt-main.h.
4699 2017-05-19  Jim Meyering  <meyering@fb.com>
4701         dfa: two small simplifications
4702         * lib/dfa.c (build_state): Avoid repeating longer expressions.
4704 2017-05-18  Jim Meyering  <meyering@fb.com>
4706         fallthrough: update for GCC 7/8
4707         * lib/quotearg.c (FALLTHROUGH): New macro.
4708         Use it whenever one switch case falls through into the next,
4709         replacing "/* Fall through */" comments.  This exposed one
4710         instance of an unwarranted "fall through" comment: unwarranted
4711         because it preceded a "goto" label not a case statement.
4712         * lib/freopen-safer.c (freopen_safer): Likewise.
4713         * lib/fts.c (leaf_optimization_applies): Likewise.
4714         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
4715         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
4716         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
4717         tests/macros.h for the definition.
4718         * tests/test-argp.c (group1_parser): Likewise.
4719         * tests/test-getopt.h (getopt_loop): Likewise.
4721 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4723         argp: fix shift bug
4724         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
4725         behavior on shift overflow, caught by gcc -fsanitize=undefined.
4727         argp: fix pointer-subtraction bug
4728         * lib/argp-help.c (hol_append): Don’t subtract pointers to
4729         different arrays, as this can run afoul of -fcheck-pointer-bounds.
4730         See the thread containing Bruno Haible’s report in:
4731         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
4733 2017-05-19  Bruno Haible  <bruno@clisp.org>
4735         printf-posix tests: Avoid test failure with "gcc --coverage".
4736         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4737         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
4738         than 5000000.
4739         * tests/test-fprintf-posix2.c (main): Likewise.
4741 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4743         closeout: don’t close stderr when sanitizing
4744         * NEWS: Document this.
4745         * lib/closeout.c (__has_feature): New macro, if not already defined.
4746         (SANITIZE_ADDRESS): New constant.
4747         (close_stdout): Don’t close stderr if sanitizing addresses.
4749 2017-05-19  Bruno Haible  <bruno@clisp.org>
4751         get-rusage-data tests: Avoid failure on Linux/glibc.
4752         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
4753         on glibc systems.
4755 2017-05-18  Bruno Haible  <bruno@clisp.org>
4757         localename: Include necessary header files on Cygwin.
4758         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
4759         where NL_LOCALE_NAME is defined.
4761 2017-05-18  Bruno Haible  <bruno@clisp.org>
4763         gettext: Update macros from gettext git.
4764         * m4/intldir.m4: Require Autoconf >= 2.60.
4765         * m4/progtest.m4: Fix typos in copyright notice.
4767 2017-05-18  Bruno Haible  <bruno@clisp.org>
4769         copy-file tests: Fix link error (regression from 2017-05-01).
4770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4771         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
4772         $(LIB_CLOCK_GETTIME).
4774 2017-05-18  Bruno Haible  <bruno@clisp.org>
4776         unicase/special-casing: Fix incompatibility with gperf-3.0.4
4777         (regression from 2017-02-13).
4778         * lib/unicase/special-casing.in.h: Renamed from
4779         lib/unicase/special-casing.h.
4780         * modules/unicase/special-casing (Files): Add
4781         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
4782         (Makefile.am): Add rule for generating unicase/special-casing.h.
4783         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
4784         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
4785         not "special-casing.h".
4786         * lib/unicase/u*.c: Likewise.
4788 2017-05-17  Bruno Haible  <bruno@clisp.org>
4790         README: Don't ask people to read a TeXinfo file.
4791         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4792         * README: Tell people how to read the HTML formatted manual.
4794 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
4796         parse-datetime: Fix memleak
4797         * lib/parse-datetime.y (parse_datetime2): Cleanup on
4798         localtime_rz() failure.
4800 2017-05-16  Bruno Haible  <bruno@clisp.org>
4802         javacomp: Fix handle leak.
4803         Found by Coverity.
4804         * lib/javacomp.c (get_classfile_version): Close fd before returning.
4806 2017-05-16  Bruno Haible  <bruno@clisp.org>
4808         relocate: Make it easier to reclaim allocated memory.
4809         * lib/relocatable.h (relocate2): New declaration/macro.
4810         * lib/relocatable.c (relocate2): New function.
4811         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
4812         relocate2 function.
4813         * lib/localcharset.c (relocate2): Define fallback.
4814         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
4815         allocated memory.
4816         * lib/javaversion.c (relocate2): Define fallback.
4817         (javaexec_version): Invoke relocate2 instead of relocate. Free the
4818         allocated memory.
4820 2017-05-16  Bruno Haible  <bruno@clisp.org>
4822         relocate: Simplify EMX specific code.
4823         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
4824         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
4826 2017-05-16  Bruno Haible  <bruno@clisp.org>
4828         sigpipe tests: Fix file list.
4829         * modules/sigpipe-tests (Files): Add tests/macros.h.
4831 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4833         manywarnings: update for GCC 7
4834         * build-aux/gcc-warning.spec:
4835         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
4836         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
4837         requires a non-comment fallthrough attribute.  This is a bit
4838         cleaner than the comment versions.
4839         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
4840         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
4841         Use it whenever one switch case falls through into the next.
4842         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
4843         Use FALLTHROUGH macro.
4845 2017-05-15  Bruno Haible  <bruno@clisp.org>
4847         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
4848         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
4849         @ALLOCA@, not @LTALLOCA@.
4851 2017-05-15  Bruno Haible  <bruno@clisp.org>
4853         sys_select: Avoid "was expanded before it was required" warning.
4854         * modules/sys_select (configure.ac): Require, not invoke,
4855         gl_HEADER_SYS_SELECT.
4857 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4859         gnulib-tool: improve GNU Make debugging
4860         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
4861         Report autoconf diagnostics when it fails, in the output makefile.
4863 2017-05-14  Bruno Haible  <bruno@clisp.org>
4865         stat-time tests: Improve comment.
4866         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
4868 2017-05-14  Bruno Haible  <bruno@clisp.org>
4870         same-inode: Adapt for windows-stat-inodes.
4871         * lib/same-inode.h: Include <sys/types.h>.
4872         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
4873         * modules/same-inode (Depends-on): Add sys_types.
4875 2017-05-14  Bruno Haible  <bruno@clisp.org>
4877         windows-stat-inodes: New module.
4878         * m4/windows-stat-inodes.m4: New file.
4879         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
4880         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
4881         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
4882         (_GL_WINDOWS_STAT_INODES): New macro.
4883         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
4884         (GetFileInformationByHandleExFunc): New variable.
4885         (initialize): Initialize it.
4886         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
4887         st_ino appropriately.
4888         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
4889         a fallback, because it does not provide st_dev and st_ino values.
4890         * modules/fstat (Depends-on): Add 'verify'.
4891         * modules/windows-stat-inodes: New file.
4892         * doc/windows-stat-inodes.texi: New file.
4893         * doc/gnulib.texi: Include it.
4894         * doc/posix-headers/sys_stat.texi: Mention the new module.
4896 2017-05-14  Bruno Haible  <bruno@clisp.org>
4898         stat-time tests: Workaround for native Windows.
4899         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
4900         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
4901         New variables.
4902         (initialize_filenames): New function.
4903         (main): Invoke it.
4904         (cleanup, prepare_test): Update.
4906 2017-05-14  Bruno Haible  <bruno@clisp.org>
4908         stat-time: Adapt for windows-stat-timespec.
4909         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
4910         entire st_ctim field.
4912 2017-05-13  Jim Meyering  <meyering@fb.com>
4914         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
4915         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
4916         file that uses the assume macro, claiming that verify.h is unused.
4918 2017-05-13  Bruno Haible  <bruno@clisp.org>
4920         Use symbolic values for _WIN32_WINNT.
4921         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
4922         * lib/sethostname.c (_WIN32_WINNT): Likewise.
4924 2017-05-13  Bruno Haible  <bruno@clisp.org>
4926         year2038: New module.
4927         * m4/year2038.m4: New file.
4928         * modules/year2038: New file.
4929         * doc/year2038.texi: New file.
4930         * doc/gnulib.texi: Include it.
4932 2017-05-13  Bruno Haible  <bruno@clisp.org>
4934         largefile: Simplify.
4935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
4936         of _GL_WINDOWS_64_BIT_ST_SIZE.
4938 2017-05-13  Bruno Haible  <bruno@clisp.org>
4940         largefile: Improve and document.
4941         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
4942         the mingw headers already define 'stat' appropriately.
4943         * modules/largefile (Description): Clarify.
4944         * doc/largefile.texi: New file.
4945         * doc/gnulib.texi: Include it.
4946         * doc/posix-headers/sys_types.texi: Update.
4948 2017-05-13  Bruno Haible  <bruno@clisp.org>
4950         truncate: New module.
4951         * lib/unistd.in.h (truncate): New declaration.
4952         * lib/truncate.c: New file.
4953         * m4/truncate.m4: New file.
4954         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
4955         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
4956         REPLACE_TRUNCATE.
4957         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
4958         HAVE_TRUNCATE, REPLACE_TRUNCATE.
4959         * modules/truncate: New file.
4960         * tests/test-unistd-c++.cc (truncate): Test signature.
4961         * doc/posix-functions/truncate.texi: Mention the new module.
4963         * tests/test-truncate.c: New file.
4964         * modules/truncate-tests: New file.
4966 2017-05-13  Bruno Haible  <bruno@clisp.org>
4968         windows-stat-timespec: New module.
4969         * modules/windows-stat-timespec: New file.
4970         * m4/windows-stat-timespec.m4: New file.
4971         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
4972         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
4973         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
4974         fields st_atim, st_mtim, st_ctim.
4975         (st_atime, st_mtime, st_ctime): Define as macros.
4976         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
4977         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
4978         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
4979         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
4980         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
4981         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
4982         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
4983         FILETIME to 'struct timespec', not 'time_t'.
4984         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
4985         FILETIME to 'struct timespec', not 'time_t'.
4986         * lib/stat-time.h (STAT_TIMESPEC): Define also if
4987         _GL_WINDOWS_STAT_TIMESPEC.
4988         * doc/windows-stat-timespec.texi: New file.
4989         * doc/gnulib.texi: Include it.
4991 2017-05-13  Bruno Haible  <bruno@clisp.org>
4993         windows-stat-override: New module.
4994         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
4995         definition. Define GNULIB_defined_struct_stat.
4996         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
4997         link error if this symbol is used and the corresponding module is not
4998         in use.
4999         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
5000         GNULIB_OVERRIDES_STRUCT_STAT.
5001         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
5002         GNULIB_OVERRIDES_STRUCT_STAT.
5003         * modules/sys_stat (Makefile.am): Substitute
5004         GNULIB_OVERRIDES_STRUCT_STAT.
5005         * modules/windows-stat-override: New file.
5007 2017-05-13  Bruno Haible  <bruno@clisp.org>
5009         fstat: Fix module dependency conditions.
5010         * modules/fstat (Depends-on): Fix typo.
5012 2017-05-13  Bruno Haible  <bruno@clisp.org>
5014         stat, fstat: Complete removal of old native Windows code.
5015         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
5016         * lib/fstat.c: Likewise.
5017         * lib/stat-w32.c: Likewise.
5019 2017-05-13  Bruno Haible  <bruno@clisp.org>
5021         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
5022         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
5024 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5026         getopt-posix: port to mingw
5027         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
5028         Problem reported by Daniel P. Berrage in:
5029         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
5031 2017-05-11  Bruno Haible  <bruno@clisp.org>
5033         gettimeofday: Increase precision on mingw.
5034         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
5035         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
5036         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
5037         GetSystemTimePreciseAsFileTime based implementation always.
5038         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
5039         mingw.
5041 2017-05-11  Bruno Haible  <bruno@clisp.org>
5043         poll: Fix confusion between SOCKETs and FDs on native Windows.
5044         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
5045         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
5047 2017-05-11  Bruno Haible  <bruno@clisp.org>
5049         doc: Clarify doc about socket functions on native Windows.
5050         This reworks doc that was added on 2008-09-29.
5051         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
5052         clearer wording.
5053         * doc/posix-functions/accept.texi: Use clearer wording.
5054         * doc/posix-functions/bind.texi: Likewise.
5055         * doc/posix-functions/connect.texi: Likewise.
5056         * doc/posix-functions/getpeername.texi: Likewise.
5057         * doc/posix-functions/getsockname.texi: Likewise.
5058         * doc/posix-functions/getsockopt.texi: Likewise.
5059         * doc/posix-functions/ioctl.texi: Likewise.
5060         * doc/posix-functions/listen.texi: Likewise.
5061         * doc/posix-functions/recv.texi: Likewise.
5062         * doc/posix-functions/recvfrom.texi: Likewise.
5063         * doc/posix-functions/send.texi: Likewise.
5064         * doc/posix-functions/sendto.texi: Likewise.
5065         * doc/posix-functions/setsockopt.texi: Likewise.
5066         * doc/posix-functions/shutdown.texi: Likewise.
5067         * doc/posix-functions/socket.texi: Likewise.
5069 2017-05-10  Bruno Haible  <bruno@clisp.org>
5071         poll: Fix link error on native Windows.
5072         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
5074 2017-05-10  Bruno Haible  <bruno@clisp.org>
5076         time: Fix missing initialization of HAVE_TIMEZONE_T.
5077         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
5078         here...
5079         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
5080         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
5081         gl_HEADER_SYS_TIME_H_DEFAULTS.
5082         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
5083         (configure.ac): Remove useless quoting.
5085 2017-05-10  Bruno Haible  <bruno@clisp.org>
5087         Implement a way to opt out from MSVC support, part 2.
5088         * modules/msvc-inval (Include): Document recommended idiom.
5089         * modules/msvc-nothrow (Include): Likewise.
5091         Implement a way to opt out from MSVC support.
5092         This is useful for Emacs.
5093         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
5094         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
5095         * lib/error.c: Likewise.
5096         * lib/fcntl.c: Likewise.
5097         * lib/flock.c: Likewise.
5098         * lib/fstat.c: Likewise.
5099         * lib/fsync.c: Likewise.
5100         * lib/ioctl.c: Likewise.
5101         * lib/isapipe.c: Likewise.
5102         * lib/lseek.c: Likewise.
5103         * lib/nonblocking.c: Likewise.
5104         * lib/poll.c: Likewise.
5105         * lib/select.c: Likewise.
5106         * lib/sockets.h: Likewise.
5107         * lib/sockets.c: Likewise.
5108         * lib/stdio-read.c: Likewise.
5109         * lib/stdio-write.c: Likewise.
5110         * lib/utimens.c: Likewise.
5111         * lib/w32sock.h: Likewise.
5112         * lib/w32spawn.h: Likewise.
5113         * tests/test-cloexec.c: Likewise.
5114         * tests/test-dup-safer.c: Likewise.
5115         * tests/test-dup2.c: Likewise.
5116         * tests/test-dup3.c: Likewise.
5117         * tests/test-fcntl.c: Likewise.
5118         * tests/test-pipe.c: Likewise.
5119         * tests/test-pipe2.c: Likewise.
5120         * lib/ftruncate.c: Likewise.
5121         (chsize_nothrow): Renamed from chsize.
5122         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
5123         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
5124         * lib/close.c: Likewise.
5125         * lib/dup.c: Likewise.
5126         * lib/fclose.c: Likewise.
5127         * lib/raise.c: Likewise.
5128         * tests/test-fgetc.c: Likewise.
5129         * tests/test-fputc.c: Likewise.
5130         * tests/test-fread.c: Likewise.
5131         * tests/test-fwrite.c: Likewise.
5132         * lib/getdtablesize.c: Likewise.
5133         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
5134         * lib/isatty.c: Don't include msvc-inval.h if
5135         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
5136         Include <io.h> as an alternative to msvc-nothrow.h.
5137         * lib/read.c: Likewise.
5138         * lib/write.c: Likewise.
5139         * lib/dup2.c: Likewise.
5140         (dup2_nothrow): New function.
5141         (ms_windows_dup2): Use it.
5142         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
5143         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
5144         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
5145         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
5146         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
5147         * m4/read.m4 (gl_FUNC_READ): Likewise.
5148         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
5149         * doc/windows-without-msvc.texi: New file.
5150         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
5151         section.
5153 2017-05-10  Bruno Haible  <bruno@clisp.org>
5155         wait-process: Adjust native Windows support.
5156         * lib/wait-process.c: Use the usual condition for recognizing a native
5157         Windows platform.
5159 2017-05-10  Bruno Haible  <bruno@clisp.org>
5161         doc: New chapter "Native Windows Support".
5162         * doc/gnulib.texi (Native Windows Support): New chapter.
5163         * doc/windows-libtool.texi: Small wording changes.
5164         * doc/windows-sockets.texi: Small wording and formatting changes.
5166 2017-05-10  Bruno Haible  <bruno@clisp.org>
5168         doc: Move section "Library version handling".
5169         * doc/gnulib.texi: Move section "Library version handling"
5170         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
5172 2017-05-10  Bruno Haible  <bruno@clisp.org>
5174         doc: Move section "Running self-tests under valgrind".
5175         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
5176         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
5178 2017-05-10  Bruno Haible  <bruno@clisp.org>
5180         doc: New chapter "Build Infrastructure Modules".
5181         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
5183 2017-05-10  Bruno Haible  <bruno@clisp.org>
5185         Prepare for reordering sections in the manual.
5186         * doc/gnulib.texi: Move several sections to separate files. Include
5187         these files.
5188         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
5189         * doc/obsolete.texi: Likewise.
5190         * doc/extra-tests.texi: Likewise.
5191         * doc/transversal.texi: Likewise.
5192         * doc/namespace.texi: Likewise.
5193         * doc/check-version.texi: Likewise.
5194         * doc/windows-sockets.texi: Likewise.
5195         * doc/windows-libtool.texi: Likewise.
5196         * doc/licenses-texi.texi: Likewise.
5197         * doc/build-automation.texi: Likewise.
5198         * doc/c-locale.texi: Likewise.
5200 2017-05-10  Bruno Haible  <bruno@clisp.org>
5202         Fix instructions how to update manual on www.gnu.org.
5203         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
5205 2017-05-09  Bruno Haible  <bruno@clisp.org>
5207         tzset: Expand comment about TZ problem on native Windows.
5208         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
5209         Paul Eggert.
5210         * lib/ctime.c (rpl_ctime): Likewise.
5211         * lib/localtime.c (rpl_localtime): Likewise.
5212         * lib/mktime.c (mktime): Likewise.
5213         * lib/strftime-fixes.c (rpl_strftime): Likewise.
5214         * lib/wcsftime.c (rpl_wcsftime): Likewise.
5216 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5218         intprops: don’t depend on ‘verify’
5219         Problem reported by Ævar Arnfjörð Bjarmason in:
5220         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
5221         * lib/intprops.h: Do not include verify.h, and move compile-time
5222         checks from here ...
5223         * tests/test-intprops.c (main): ... to here, if they’re not here
5224         already.  Check widths of other standard integer types.
5225         * modules/intprops (Depends-on): Remove ‘verify’.
5227 2017-05-07  Bruno Haible  <bruno@clisp.org>
5229         utimens: On native Windows, support 100ns resolution also if fd < 0.
5230         * lib/utime.in.h: Include <time.h>.
5231         (_gl_utimens_windows): New declaration.
5232         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
5233         (utime): Invoke it.
5234         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
5235         instead of utime.
5236         * modules/utime (Depends-on): Add 'time'.
5238 2017-05-07  Bruno Haible  <bruno@clisp.org>
5240         utimens: Improve error code on native Windows.
5241         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
5242         error code EACCES, not EINVAL.
5244 2017-05-07  Bruno Haible  <bruno@clisp.org>
5246         utime: Handle more Windows error codes.
5247         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
5248         Based on explanations by Billy O'Neal.
5250 2017-05-05  Bruno Haible  <bruno@clisp.org>
5252         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
5253         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
5254         union.
5255         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
5256         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
5257         value of cipher->IV.
5259 2017-05-05  Bruno Haible  <bruno@clisp.org>
5261         wctype-h-c++-tests: Update.
5262         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
5264 2017-05-05  Bruno Haible  <bruno@clisp.org>
5266         wchar-c++-tests: Update.
5267         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
5269 2017-05-05  Bruno Haible  <bruno@clisp.org>
5271         utime-h-c++-tests: New module.
5272         * tests/test-utime-h-c++.cc: New file.
5273         (utime): Declare, missing since 2017-04-30.
5274         * modules/utime-h-c++-tests: New file.
5276 2017-05-05  Bruno Haible  <bruno@clisp.org>
5278         unistd-c++-tests: Update.
5279         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
5280         (read): Declare, missing since 2011-04-15.
5281         (sethostname): Declare, missing since 2011-12-03.
5283 2017-05-05  Bruno Haible  <bruno@clisp.org>
5285         time-c++-tests: Update.
5286         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
5287         (localtime, gmtime): Declare, missing since 2017-04-30.
5288         (ctime): Declare, missing since 2017-04-30.
5289         (strftime): Declare, missing since 2017-04-30.
5290         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
5291         2015-07-24.
5293 2017-05-05  Bruno Haible  <bruno@clisp.org>
5295         sys_resource-c++-tests: New module.
5296         * tests/test-sys_resource-c++.cc: New file.
5297         (getrusage): Declare, missing since 2012-04-13.
5298         * modules/sys_resource-c++-tests: New file.
5300 2017-05-05  Bruno Haible  <bruno@clisp.org>
5302         strings-c++-tests: New module.
5303         * tests/test-strings-c++.cc: New file.
5304         (ffs): Declare, missing since 2011-07-12.
5305         * modules/strings-c++-tests: New file.
5307 2017-05-05  Bruno Haible  <bruno@clisp.org>
5309         string-c++-tests: Update.
5310         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
5311         (ffsll): Declare, missing since 2011-07-15.
5313 2017-05-05  Bruno Haible  <bruno@clisp.org>
5315         stdlib-c++-tests: Update.
5316         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
5317         2011-10-18.
5318         (ptsname_r): Declare, missing since 2011-11-07.
5319         (qsort_r): Declare, missing since 2014-08-29.
5320         (random, srandom, initstate, setstate): Declare, missing since
5321         2012-01-14.
5322         (secure_getenv): Declare, missing since 2013-02-05.
5324 2017-05-05  Bruno Haible  <bruno@clisp.org>
5326         stdio-c++-tests: Update.
5327         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
5329 2017-05-05  Bruno Haible  <bruno@clisp.org>
5331         signal-h-c++-tests: Update.
5332         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
5334 2017-05-05  Bruno Haible  <bruno@clisp.org>
5336         math-c++-tests: Update.
5337         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
5338         (fma): Declare, missing since 2011-10-17.
5339         (fmal): Declare, missing since 2011-10-17.
5341 2017-05-05  Bruno Haible  <bruno@clisp.org>
5343         locale-c++-tests: Update.
5344         * tests/test-locale-c++.cc (localeconv): Declare, missing since
5345         2012-03-25.
5347 2017-05-05  Bruno Haible  <bruno@clisp.org>
5349         inttypes-c++-tests: New module.
5350         * tests/test-inttypes-c++.cc: New file.
5351         (strtoimax): Declare, missing since 2012-01-05.
5352         (strtoumax): Declare, missing since 2012-01-05.
5353         * modules/inttypes-c++-tests: New file.
5355 2017-05-05  Bruno Haible  <bruno@clisp.org>
5357         dirent-c++-tests: Update.
5358         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
5359         (rewinddir): Declare, missing since 2011-09-13.
5360         (dirfd): Declare, missing since 2010-03-08.
5362 2017-05-04  Bruno Haible  <bruno@clisp.org>
5364         argp: Fix mistake in 2017-04-23 commit.
5365         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
5366         assume that strerror_r returns 'int', not 'char *'.
5368 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
5370         argp: Fix typo.
5371         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
5373 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5375         utimens: port to Emacs + MS-Windows
5376         Skip the new MS-Windows-specific code if Emacs.
5377         * lib/utimens.c [EMACS_CONFIGUATION]:
5378         Avoid new MS-Windows-specific code.
5379         (USE_SETFILETIME): New macro.
5380         (fdutimens): Use it.
5382 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
5384         tzset: update doc for TZ problems on MS-Windows
5385         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
5386         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
5387         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
5388         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
5389         * doc/posix-functions/wcsftime.texi:
5390         Mention some issues with TZ under MS-Windows.
5392 2017-05-01  Bruno Haible  <bruno@clisp.org>
5394         copy-file: Fix build error on mingw.
5395         * modules/copy-file (Depends-on): Add 'close'.
5397 2017-05-01  Bruno Haible  <bruno@clisp.org>
5399         tzset: Work around TZ problem on native Windows.
5400         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
5401         Windows, set REPLACE_TZSET to 1.
5402         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
5403         invoke '_tzset' instead of 'tzset'.
5404         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
5406         * modules/time_rz (Depends-on): Add tzset.
5407         * lib/time_rz.c (tzset): Remove fallback definition.
5408         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
5410 2017-05-01  Bruno Haible  <bruno@clisp.org>
5412         mktime: Fix dependencies.
5413         * modules/mktime (Depends-on): Add 'time'.
5415 2017-05-01  Bruno Haible  <bruno@clisp.org>
5417         New module 'localtime-buffer', split off from module 'gettimeofday'.
5418         * lib/localtime-buffer.h: New file.
5419         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
5420         * lib/time.in.h (tzset): New declaration.
5421         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
5422         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
5423         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
5424         moved to lib/localtime-buffer.c or lib/tzset.c.
5425         * m4/localtime-buffer.m4: New file.
5426         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
5427         HAVE_TZSET, REPLACE_TZSET.
5428         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
5429         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
5430         gl_LOCALTIME_BUFFER_NEEDED.
5431         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
5432         since 2007-01-18.
5433         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
5434         tzset.
5435         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
5436         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
5437         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
5438         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
5439         * modules/localtime-buffer: New file.
5440         * modules/time (Depends-on): Remove 'gettimeofday'.
5441         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
5442         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
5443         * modules/tzset (Description): Enable hyperlink to POSIX spec.
5444         (Files): Add lib/tzset.c.
5445         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
5446         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
5447         gl_TIME_MODULE_INDICATOR.
5448         * modules/gettimeofday (Depends-on): Add localtime-buffer.
5450 2017-05-01  Bruno Haible  <bruno@clisp.org>
5452         copy-file: Preserve sub-second time stamps.
5453         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
5454         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
5455         transport the time stamps from the original file to the destination
5456         file.
5457         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
5458         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
5459         utime-h.
5461 2017-05-01  Bruno Haible  <bruno@clisp.org>
5463         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
5464         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
5465         also on MSVC.
5466         Reported by Eli Zaretskii <eliz@gnu.org>.
5468 2017-05-01  Bruno Haible  <bruno@clisp.org>
5470         wchar: Fix compilation error with the original mingw.org mingw.
5471         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
5472         <stddef.h> instead.
5473         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
5474         gl_WCTYPE_H.
5475         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
5476         gl_TYPE_WINT_T_PREREQ instead.
5477         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
5478         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
5479         Reported by Eli Zaretskii <eliz@gnu.org>.
5481 2017-04-30  Bruno Haible  <bruno@clisp.org>
5483         utimecmp: Add support for native Windows.
5484         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
5486 2017-04-30  Bruno Haible  <bruno@clisp.org>
5488         utimens: Add support for native Windows.
5489         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
5490         (fdutimens): Provide a native Windows implementation, like utime.c with
5491         added tv_nsec support.
5492         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
5493         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
5495 2017-04-30  Bruno Haible  <bruno@clisp.org>
5497         wcsftime: New module.
5498         * lib/wchar.in.h (wcsftime): New declaration.
5499         * lib/wcsftime.c: New file.
5500         * m4/wcsftime.m4: New file.
5501         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
5502         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
5503         HAVE_WCSFTIME, REPLACE_WCSFTIME.
5504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
5505         HAVE_WCSFTIME, REPLACE_WCSFTIME.
5506         * modules/wcsftime: New file.
5507         * doc/posix-functions/wcsftime.texi: Mention the new module.
5509 2017-04-30  Bruno Haible  <bruno@clisp.org>
5511         strftime-fixes: New module.
5512         * lib/time.in.h (strftime): New declaration.
5513         * lib/strftime-fixes.c: New file.
5514         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
5515         (gl_FUNC_STRFTIME): Remove macro.
5516         * m4/strftime-fixes.m4: New file.
5517         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
5518         REPLACE_STRFTIME.
5519         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
5520         REPLACE_STRFTIME.
5521         * modules/strftime-fixes: New file.
5522         * doc/posix-functions/strftime.texi: Mention the new module.
5524 2017-04-30  Bruno Haible  <bruno@clisp.org>
5526         mktime: Work around TZ problem on native Windows.
5527         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
5528         from the native Windows workaround.
5529         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
5530         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
5531         'guessing no'.
5532         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
5533         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
5534         NEED_MKTIME_WINDOWS.
5535         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
5536         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
5537         NEED_MKTIME_INTERNAL.
5538         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
5539         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
5540         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
5541         not REPLACE_MKTIME.
5542         * doc/posix-functions/mktime.texi: Mention the native Windows
5543         workaround.
5545 2017-04-30  Bruno Haible  <bruno@clisp.org>
5547         localtime: New module.
5548         * lib/time.in.h (localtime): Declare also if requested by module
5549         'localtime'.
5550         * lib/localtime.c: New file.
5551         * m4/localtime.m4: New file.
5552         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
5553         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
5554         * modules/localtime: New file.
5555         * doc/posix-functions/localtime.texi: Mention the new module.
5557 2017-04-30  Bruno Haible  <bruno@clisp.org>
5559         ctime: New module.
5560         * lib/time.in.h (ctime): New declaration.
5561         * lib/ctime.c: New file.
5562         * m4/ctime.m4: New file.
5563         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
5564         REPLACE_CTIME.
5565         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
5566         * modules/ctime: New file.
5567         * doc/posix-functions/ctime.texi: Mention the new module.
5569 2017-04-30  Bruno Haible  <bruno@clisp.org>
5571         gettimeofday: Provide higher resolution on native Windows.
5572         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
5573         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
5574         (initialize): Initialize it.
5575         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
5576         'struct timeval'. Don't use _ftime().
5577         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
5578         <sys/timeb.h> and _ftime.
5580 2017-04-30  Bruno Haible  <bruno@clisp.org>
5582         Document the problem with the Cygwin environment variable TZ.
5583         * doc/posix-functions/tzset.texi: Add note about TZ.
5584         * doc/posix-functions/ctime.texi: Likewise.
5585         * doc/posix-functions/localtime.texi: Likewise.
5586         * doc/posix-functions/mktime.texi: Likewise.
5587         * doc/posix-functions/strftime.texi: Likewise.
5588         * doc/posix-functions/wcsftime.texi: Likewise.
5589         * doc/pastposix-functions/ftime.texi: Likewise.
5591 2017-04-30  Bruno Haible  <bruno@clisp.org>
5593         utime-tests: New module.
5594         * tests/test-utime.c: New file, based on tests/test-utimens.h.
5595         * tests/test-utimens-common.h: Include <sys/stat.h>.
5596         * modules/utime-tests: New file.
5598 2017-04-29  Bruno Haible  <bruno@clisp.org>
5600         utime: New module.
5601         * lib/utime.in.h: Add comment for snippets.
5602         (utime): New declaration.
5603         * lib/utime.c: New file.
5604         * m4/utime.m4: New file.
5605         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
5606         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
5607         REPLACE_UTIME.
5608         * modules/utime-h (Depends-on): Add snippets.
5609         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
5610         Insert snippets.
5611         * modules/utime: New file.
5612         * doc/posix-functions/utime.texi: Mention the new module.
5614 2017-04-29  Bruno Haible  <bruno@clisp.org>
5616         utime-h: Modernize handling of 'struct utimbuf'.
5617         * lib/utime.in.h: Include next <utime.h> if it exists.
5618         (utimbuf): Define to _utimbuf on native Windows.
5619         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
5620         Set UTIME_H on native Windows.
5621         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
5622         * modules/utime-h (Depends-on): Add include_next.
5623         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
5624         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
5626         * lib/utimens.c (utimbuf): Remove fallback definition.
5627         * m4/utimens.m4 (gl_UTIMENS): Don't require
5628         gl_CHECK_TYPE_STRUCT_UTIMBUF.
5629         * m4/utimbuf.m4: Remove file.
5630         * modules/utimens (Files): Remove m4/utimbuf.m4.
5632 2017-04-29  Bruno Haible  <bruno@clisp.org>
5634         Make use of module 'utime-h'.
5635         * modules/copy-file (Depends-on): Add utime-h.
5636         * lib/copy-file.c: Assume that <utime.h> exists.
5637         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
5639         * modules/utimens (Depends-on): Add utime-h.
5640         * lib/utimens.c: Assume that <utime.h> exists.
5642 2017-04-29  Bruno Haible  <bruno@clisp.org>
5644         utime-h: New module.
5645         * m4/utime_h.m4: New file.
5646         * lib/utime.in.h: New file.
5647         * modules/utime-h: New file.
5648         * doc/posix-headers/utime.texi: Mention the new module.
5650         * tests/test-utime-h.c: New file.
5651         * modules/utime-h-tests: New file.
5653 2017-04-30  Bruno Haible  <bruno@clisp.org>
5655         Fix a few typos.
5656         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
5657         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
5658         * doc/posix-functions/fstat.texi: Fix a plural typo.
5659         * doc/posix-functions/stat.texi: Likewise.
5660         * m4/include_next.m4: Update comments.
5662 2017-04-29  Bruno Haible  <bruno@clisp.org>
5664         error: Fix mistake in 2017-04-23 commit.
5665         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
5666         assume that strerror_r returns 'int', not 'char *'.
5668 2017-04-29  Bruno Haible  <bruno@clisp.org>
5670         stat: Fix time_t values and other problems on native Windows platforms.
5671         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
5672         implementations of stat().
5673         * lib/stat.c: Include filename.h instead of dosname.h. Include
5674         malloca.h, stat-w32.h.
5675         (is_unc_root): New function.
5676         (rpl_stat): New implementation for native Windows. Remove
5677         REPLACE_FUNC_STAT_DIR code.
5678         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
5679         Don't define REPLACE_FUNC_STAT_DIR.
5680         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
5681         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
5682         (Depends-on): Remove dosname. Add filename, malloca.
5683         (configure.ac): Also compile lib/stat-w32.c.
5685 2017-04-29  Bruno Haible  <bruno@clisp.org>
5687         fstat: Fix time_t values on native Windows platforms.
5688         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
5689         * lib/stat-w32.h: New file.
5690         * lib/stat-w32.c: New file.
5691         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
5692         stat-w32.h instead.
5693         (fstat_nothrow): Remove function.
5694         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
5695         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
5696         always.
5697         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
5698         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
5699         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
5700         (configure.ac): Also compile lib/stat-w32.c.
5702 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5704         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
5705         Problem reported by Assaf Gordon and Gavin Smith in:
5706         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
5707         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
5708         #define this, too.
5710 2017-04-29  Bruno Haible  <bruno@clisp.org>
5712         strerror_r-posix: Fixes for MSVC 14.
5713         * lib/strerror_r.c: Include <stdarg.h>.
5714         (strerror_r): Provide error messages for errno values 100...140.
5715         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
5717 2017-04-28  Bruno Haible  <bruno@clisp.org>
5719         noreturn: New module.
5720         * lib/noreturn.h: New file.
5721         * modules/noreturn: New file.
5722         * tests/test-noreturn.c: New file.
5723         * modules/noreturn-tests: New file.
5724         * tests/test-noreturn-c++.cc: New file.
5725         * modules/noreturn-c++-tests: New file.
5727 2017-04-27  Bruno Haible  <bruno@clisp.org>
5729         wctype-h: Fix compilation error with the original mingw.org mingw.
5730         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
5731         HAVE_CRTDEFS_H.
5732         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
5733         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
5734         <stddef.h> instead.
5735         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
5737 2017-04-26  Pádraig Brady  <P@draigBrady.com>
5739         nap.h: Fix compilation on non windows platforms
5740         * tests/nap.h: Move misplaced endif.
5742 2017-04-26  Pádraig Brady  <P@draigBrady.com>
5743         and Paul Eggert  <eggert@cs.ucla.edu>
5745         time_rz: fix heap buffer overflow vulnerability
5746         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
5747         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
5748         whether there is enough buffer space available, thus avoiding
5749         the problematic promotion of signed to unsigned causing an invalid
5750         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
5751         the start of the buffer.
5752         * tests/test-parse-datetime.c (main): Add a test case written by
5753         Paul Eggert, which overwrites enough of the heap so that
5754         standard glibc will fail with "free(): invalid pointer"
5755         without the patch applied.
5757 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5759         xalloc: add missing integer overflow check
5760         * lib/xalloc.h (x2nrealloc): Also check for multiplication
5761         overflow when P is null.
5763 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5765         parse-datetime: make it standalone
5766         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
5767         (_GL_ATTRIBUTE_FORMAT): New macro.
5768         These are needed to get './gnulib-tool --test parse-datetime' to work.
5770 2017-04-23  Bruno Haible  <bruno@clisp.org>
5772         nap.h: Port to native Windows.
5773         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
5774         use nap_fd instead. On native Windows, close and reopen nap_fd.
5775         (nap_works): Don't compare the ctimes, because on native Windows, these
5776         are the creation times.
5777         (nap): Update.
5779 2017-04-23  Bruno Haible  <bruno@clisp.org>
5781         nap.h: Fix logic.
5782         * tests/nap.h (nap): Avoid signed integer overflow in loop.
5784 2017-04-23  Bruno Haible  <bruno@clisp.org>
5786         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
5787         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
5788         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
5789         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
5790         * lib/argp-help.c (__argp_failure): Likewise.
5792 2017-04-23  Bruno Haible  <bruno@clisp.org>
5794         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
5795         * m4/strerror_r.m4: Revert changes since 2016-10-16.
5796         * lib/strerror_r.c: Likewise.
5798 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
5800         Target a C99 subset, not a C89 subset
5801         For many years Gnulib has targeted C89 and has resisted using C99
5802         features, as some Gnulib-using programs still wanted to target
5803         C89.  As this no longer seems to be the case, relax the porting
5804         requirements to allow some C99 features.  This is merely a change
5805         to the documentation, to give other Gnulib developers a chance to
5806         weigh in on the topic.
5807         * doc/extern-inline.texi (extern inline):
5808         * doc/gnulib-readme.texi (Portability guidelines):
5809         * doc/gnulib-tool.texi (Initial import):
5810         * doc/gnulib.texi (Header files):
5811         Modernize to talk about C99 and C11 instead of C89 and C99.
5812         * doc/gnulib-readme.texi (Portability guidelines):
5813         Now a section, not merely a subsection, so that it
5814         can be split up.  Modernize a bit.
5815         (C language versions, C99 features assumed)
5816         (C99 features avoided):
5817         New sections.
5819 2017-04-23  Bruno Haible  <bruno@clisp.org>
5821         doc: New section "Modules that modify the way other modules work".
5822         * doc/gnulib.texi (Modules that modify the way other modules work): New
5823         section.
5825 2017-04-23  Bruno Haible  <bruno@clisp.org>
5827         stat-time: Update comments.
5828         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
5829         * tests/test-utimens-common.h: Add reference regarding st_ctime on
5830         Windows.
5832 2017-04-01  Bruno Haible  <bruno@clisp.org>
5834         glob: Fix more memory leaks.
5835         * lib/glob.c (glob): Free allocated memory before returning.
5836         Reported by Coverity via Tim Rühsen.
5838 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5840         poll: improve fast check for out-of-range NFD
5841         * lib/poll.c: Do not include intprops.h.
5842         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
5843         * modules/poll (Depends-on): Remove intprops.
5845         ftoastr: cite a newer paper
5846         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
5847         instead of Loitsch 2010.
5849 2017-04-22  Bruno Haible  <bruno@clisp.org>
5851         poll: Enable argument check also in the Windows implementation.
5852         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
5853         Reported by Paul Eggert.
5855 2017-04-22  Bruno Haible  <bruno@clisp.org>
5857         getlogin_r: Work around bug in Mac OS X 10.12.
5858         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
5859         bug.
5860         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
5861         given size minus 1, call getlogin_r a second time, on a larger buffer.
5862         * modules/getlogin_r (Depends-on): Add malloca.
5863         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
5865 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5867         parse-datetime: fix %z and prefer signed int
5868         %z problem reported by Pádraig Brady in:
5869         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
5870         While fixing it, I decided to prefer signed ints to size_t, as
5871         they are less error-prone (e.g., ubsan catches overflow).
5872         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
5873         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
5874         counts, since signed integers make for better debugging.
5875         (date): Don’t assume %z works in printf formats.
5876         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
5877         sizes of buffers known to be small, e.g., because we’re using snprintf.
5878         (parse_datetime2): Simplify call to debug_mktime_not_ok.
5880 2017-04-22  Bruno Haible  <bruno@clisp.org>
5882         *printf: Work around rounding bug on Mac OS X.
5883         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
5884         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
5885         Mac OS X and FreeBSD.
5886         * doc/glibc-functions/*printf.texi: Likewise.
5888 2017-04-22  Bruno Haible  <bruno@clisp.org>
5890         vasnprintf tests: Avoid warnings.
5891         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
5892         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
5893         test.
5895 2017-04-22  Bruno Haible  <bruno@clisp.org>
5897         sys_file tests: Avoid warning.
5898         * tests/test-sys_file.c (main): Add a default clause to the switch
5899         statement.
5901 2017-04-22  Bruno Haible  <bruno@clisp.org>
5903         sethostname: Update doc.
5904         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
5905         Mac OS X.
5907 2017-04-22  Bruno Haible  <bruno@clisp.org>
5909         quotearg tests: Avoid warnings.
5910         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
5911         false.
5913 2017-04-22  Bruno Haible  <bruno@clisp.org>
5915         poll: Enable argument check.
5916         * lib/poll.c: Include intprops.h.
5917         (poll): Check value of nfd correctly.
5918         * modules/poll (Depends-on): Add intprops.
5920 2017-04-22  Bruno Haible  <bruno@clisp.org>
5922         get-rusage-data: Avoid warnings on Mac OS X.
5923         * lib/get-rusage-data.c: On Mac OS X, don't define
5924         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
5925         (get_rusage_data) [Mac OS X]: Just return 0.
5927 2017-04-22  Bruno Haible  <bruno@clisp.org>
5929         xbinary-io: Fix build error.
5930         * modules/xbinary-io (Depends-on): Add gettext-h.
5931         * lib/xbinary-io.c: Include gettext.h and define _().
5932         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5933         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
5935 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5937         parse-datetime: overflow and debug cleanups
5938         This long patch was triggered by this bug report from Ruediger Meier:
5939         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
5940         I fixed the bug he noted, then found some others nearby, and then
5941         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
5942         up some of the code to follow GNU standards while I was at it.
5943         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
5944         use c_isdigit.
5945         (EPOCH_YEAR): Remove; unused.
5946         (TM_YEAR_BASE): Now an enum rather than a macro.
5947         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
5948         time zone offset, since timezones now are in terms of seconds and
5949         not minutes.
5950         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
5951         appropriate.  Verify that intmax_t is wide enough.
5952         (time_overflow, time_zone_str): New functions, used to deal
5953         more reliably with overflow.
5954         (dbg_printf): Add printf attribute, to help catch integer width errors.
5955         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
5956         (%union, to_hour, yylex, parse_datetime2):
5957         Use intmax_t instead of long int and/or long_time_t.
5958         All uses changed.
5959         (DBGBUFSIZE): Move earlier.
5960         (relative_time, set_hhmmss, parser_control):
5961         Just use int for nanoseconds and for time zones; that’s wide enough.
5962         (parser_control): Use bool for members like year_seen that can
5963         be booleans instead of counters.  All uses changed.
5964         Remove debug_default_input_timezone; no longer needed.
5965         All uses removed.
5966         (apply_relative_time): Return a bool overflow flag.
5967         All uses changed to check for overflow.
5968         (apply_relative_time, zone, date, relunit, relunit_snumber)
5969         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
5970         Check for integer overflow portably.
5971         (str_days): Use just int for N, as it’s wide enough.
5972         Prefer 2D char arrays to arrays of char * when it looks like
5973         2D is a win on typical platforms.
5974         Prefer snprintf to strncpy/strncat, for simplicity;
5975         all buffers are smaller than INT_MAX so this is safe.
5976         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
5977         (debug_print_current_time): Don’t assume tv_nsec is of type long,
5978         as this is not true on x32.  Output "." before any nanoseconds.
5979         (debug_print_current_time, parse_datetime2):
5980         Output local zones using a more-consistent format.
5981         (debug_print_current_time, date, parse_datetime2):
5982         (main) [TEST]:
5983         Don’t assume time_t is the same width as long.
5984         (print_rel_part): New function, replacing ...
5985         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
5986         (debug_print_relative_time): Use bool for boolean.
5987         (local_zone): dsts_seen now counts only tDST instances.
5988         (date): Fix printf of size_t to use %z.  Do not assume numeric
5989         tokens have negative values merely because the context suggests
5990         a syntax with "-" separating tokens.
5991         (time_zone_hhmm): Return bool success indicator, which checks for
5992         overflow.  Store result into PC->time_zone instead.  All callers
5993         changed.
5994         (tm_year_str): New function.  Return a bool success indicator and
5995         store the result into a buffer.  All callers changed.  Output the
5996         numerically correct string even if adding 1900 to the year would
5997         overflow.
5998         (to_tm_year): New function, replacing the old to_year.  All
5999         callers changed.
6000         (tm_diff): Sync with glibc.
6001         (lookup_word): Use to_uchar instead of doing it by hand.
6002         (TZBUFSIZE): Now local to the only function that needs it.
6003         (debug_strfdatetime): Simplify now that time zones are int seconds.
6004         (debug_strfdate): Work even if tm_year + 1900 would overflow.
6005         (get_effective_timezone): Remove.  All uses removed.
6006         (parse_datetime2): Use fprintf in pieces instead of snprintfing
6007         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
6008         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
6009         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
6010         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
6011         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
6012         * modules/parse-datetime (Depends-on): Add inttypes.
6014 2017-04-21  Bruno Haible  <bruno@clisp.org>
6016         gettext-h: Avoid -Wundef warning.
6017         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
6018         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6019         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
6021 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
6023         error: Avoid "function declaration isn't a prototype" warning.
6024         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
6026 2017-04-21  Bruno Haible  <bruno@clisp.org>
6028         vasnprintf: Fix for MSVC 14.
6029         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
6030         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
6031         of !HAVE_SNPRINTF_RETVAL_C99.
6033 2017-04-21  Bruno Haible  <bruno@clisp.org>
6035         mbrtowc tests: Fix test failures on MSVC 14.
6036         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
6037         behaviour for invalid input.
6039 2017-04-21  Bruno Haible  <bruno@clisp.org>
6041         mbsinit: Fix for MSVC 14.
6042         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
6043         implementation that is in sync with mbrtowc.c. On other platforms, use
6044         an adequate ad-hoc implementation.
6046 2017-04-21  Bruno Haible  <bruno@clisp.org>
6048         Fix test-mbrtowc5.sh failure on native Windows.
6049         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
6050         "C".
6052 2017-04-21  Bruno Haible  <bruno@clisp.org>
6054         Avoid accidental use of native Windows APIs on Cygwin.
6055         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
6056         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
6057         * lib/localename.c (WINDOWS_NATIVE): Likewise.
6059 2017-04-20  Bruno Haible  <bruno@clisp.org>
6061         Remove red warnings from the generated MODULES.html.
6062         * modules/fcntl (Description): Disambiguate function references.
6063         * modules/getcwd-lgpl (Description): Likewise.
6064         * modules/hostent (Description): Likewise.
6065         * modules/servent (Description): Likewise.
6066         * modules/tempname (Description): Likewise.
6068 2017-04-20  Bruno Haible  <bruno@clisp.org>
6070         verify tests: Fix spurious failure with parallel make.
6071         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
6072         EXTRA_PROGRAMS.
6073         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
6074         * tests/test-verify-try.c: New file.
6075         * modules/verify-tests (Files): Add it.
6076         (EXTRA_PROGRAMS): Add test-verify-try.
6077         (MOSTLYCLEANFILES): Update accordingly.
6078         Reported by Adam James Stewart <ajstewart@anl.gov>.
6080 2017-04-18  Bruno Haible  <bruno@clisp.org>
6082         vma-iter: Fix compilation error on Solaris 7.
6083         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
6084         like on IRIX, OSF/1.
6085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6087 2017-04-18  Bruno Haible  <bruno@clisp.org>
6089         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
6090         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
6091         included.
6092         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
6093         <sys/procfs.h>.
6094         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
6095         <sys/procfs.h> cannot be included.
6096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6098 2017-04-18  Bruno Haible  <bruno@clisp.org>
6100         getopt-gnu: Add comments.
6101         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
6102         * modules/getopt-gnu (configure.ac): Likewise.
6104 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
6106         regex: port better to Solaris 10
6107         Solaris 10 <locale.h> includes <libintl.h>, which #defines
6108         gettext, and this causes a double #define.
6109         Problem reported by Gavin Smith in:
6110         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
6111         * lib/regex_internal.h (gettext): #undef before #defining.
6113 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
6115         intprops: improve comments
6116         * lib/intprops.h: Improve and shorten commentary.
6117         For the record, if we ever run into a pedantic compiler that
6118         behaves differently from GCC when converting an out-of-range value
6119         to a signed integer, we can work around the problem with something
6120         like the following code, where UCT is the signed counterpart of T
6121         (UCT is sometimes narrower than UT) and all callers are changed
6122         accordingly:
6123         #if __SUNPRO_C <= 0x5120
6124         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
6125            ((t) ((ut) (a) op (ut) (b)))
6126         #else
6127         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
6128            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
6129             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
6130                + TYPE_MINIMUM (t)) \
6131             : (t) (uct) ((ut) (a) op (ut) (b)))
6132         #endif
6134 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
6136         intprops: try to avoid tickling similar bugs
6137         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
6138         needs to be the same width as T; it can be wider.
6139         Change callers so that UT is at least as wide as unsigned int,
6140         as I suspect that this is less likely to run into compiler bugs.
6142         intprops: port to Oracle Studio 12.3 x86
6143         Problem reported by Gavin Smith in:
6144         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
6145         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
6146         Convert unsigned to signed via the usual rather than the standard way,
6147         to avoid a compiler bug in Oracle Studio 12.3 x86.
6149 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6151         getopt: prefer - to _ in new file names
6152         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
6153         * lib/getopt-core.h: Rename from lib/getopt_core.h.
6154         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
6155         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
6156         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
6157         All uses changed.
6159         getopt: port recent getopt changes to macOS
6160         Problem reported by Harald Maier (Bug#26398).
6161         The macOS C compiler uses __nonnull for its own purposes and that
6162         clashes with glibc's __nonnull.
6163         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
6164         * lib/getopt_cdefs.in.h (__nonnull): Remove.
6165         * lib/getopt_core.h (getopt):
6166         * lib/getopt_ext.h (getopt_long, getopt_long_only):
6167         Use _GL_ARG_NONNULL, not __nonnull.
6168         * lib/unistd.in.h: Move snippet hooks to before where the getopt
6169         .h files are included, so that _GL_ARG_NONNULL is defined in time.
6170         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
6171         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
6173 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6175         getopt-gnu: omit some duplicate code
6176         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
6177         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
6178         gnulib-tool already does this.
6179         * modules/getopt-gnu (configure.ac): Omit code duplicated from
6180         getopt-posix, which we depend on.
6182         getopt-posix: use angle-bracket include
6183         * lib/getopt1.c: Include <config.h>, not "config.h".
6185 2017-04-06  Zack Weinberg  <zackw@panix.com>
6187         getopt: annotate files with relationship to glibc
6189         As the final act in this patchset, adjust the message at the top of
6190         each file to indicate which files are synced with glibc.  (This has
6191         already been done for most of the headers.)
6193         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
6194         Mention in top-of-file boilerplate that these files are shared
6195         between glibc and gnulib.
6198         getopt: split up getopt.in.h and eliminate __need_getopt
6200         Over in glibc, all of the __need macros are being phased out in favor
6201         of small headers that declare only the necessary components, as this
6202         is much simpler and less prone to bugs.  As getopt is shared with
6203         glibc, gnulib needs to do the same for __need_getopt.
6205         __need_getopt is misnamed; what it really means is "we want only the
6206         getopt features specified in POSIX, not the GNU extensions".  glibc
6207         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
6208         these files can be shared verbatim with gnulib.  The portability
6209         wrapper, on the other hand, they have renounced altogether; glibc's
6210         getopt.h will no longer be shared with gnulib at all.  In exchange,
6211         certain glibc-specific quirks (having to do with __posix_getopt) no
6212         longer need appear in gnulib's headers at all.
6214         This patch merges getopt_core.h and getopt_ext.h from glibc, and
6215         splits up the current gnulib-side portability wrapper into three
6216         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
6217         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
6218         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
6219         unistd.in.h just use them.  All new files are clearly marked with
6220         whether they are shared with glibc.
6222         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
6223         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
6224         with glibc, and ...
6225         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
6226         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
6227         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
6228         instead of defining __need_getopt and including the full getopt.h.
6230         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
6231         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
6232         * modules/getopt-posix (Files): Add new headers and sort list.
6233         (Depends-on): No longer need snippet/arg-nonnull.
6234         (Makefile.am): Generate getopt_cdefs.h.
6237         getopt: better handling of ambiguous options
6239         glibc's getopt uses alloca to construct a linked list of possibilities
6240         for an "ambiguous" long option.  In gnulib, malloc should be used
6241         instead.  Providing for both cases complicates things a fair bit.
6243         This patch rewrites ambiguous-option handling to use a boolean vector
6244         instead of a linked list.  There is then only one allocation that
6245         might need freeing; in glibc it can honor __libc_use_alloca as usual,
6246         and in gnulib we define __libc_use_alloca to always be false, so we
6247         don't need ifdefs in the middle of the function.  This should also be
6248         slightly more efficient in the normal case of long options being fully
6249         spelled out -- I think most people aren't even aware they _can_
6250         sometimes abbreviate long options.
6252         One interesting consequence is that the list of possibilities is now
6253         printed in exactly the order they appear in the list of long options,
6254         instead of the first possibility being shuffled to the end.
6256         (The patch looks bigger than it really is because there's a fair bit
6257         of reindentation and code rearrangement.)
6259         * lib/getopt.c: When used standalone, define __libc_use_alloca
6260         as always false and alloca to abort if called.
6261         (process_long_option): Rewrite handling of ambiguous long options
6262         to use a single boolean vector, not a linked list; use
6263         __libc_use_alloca to decide whether to allocate this using alloca.
6266         getopt: refactor long-option handling
6268         There were two copies of the bulk of the code to handle long options.
6269         Now there is only one.
6271         This change temporarily removes the logic to avoid using alloca when
6272         standalone; the next patch in the series will restore it.
6274         * lib/getopt.c (process_long_option): New function split out
6275         from _getopt_internal_r.
6276         (_getopt_internal_r): Replace both copies of the long-option
6277         processing code with calls to process_long_option.
6280         getopt: tidy up _getopt_initialize a bit
6282         _getopt_data.__posixly_correct is completely redundant to
6283         _getopt_data.__ordering, and some work that logically belongs in
6284         _getopt_initialize was being done by _getopt_internal_r, making the
6285         code harder to understand.
6287         As a side effect, getenv will no longer be called if the first
6288         character of the options string is '+' or '-', which is probably a
6289         Good Thing.  (Perhaps we should have a flag character that
6290         specifically asks for the permutation behavior?)
6292         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
6293         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
6294         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
6297         getopt: merge from glibc: repetition reduction
6299         The definitions of the entry point functions 'getopt' and
6300         '__posix_getopt' can be made substantially less repetitive with a
6301         helper macro.
6303         While I was merging the const-correctness changes from gnulib into
6304         glibc I noticed there are still some unnecessary casts in
6305         _getopt_internal_r.
6307         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
6308         a macro.  Consistently cast 'argv' to 'char **' when calling
6309         _getopt_internal.
6310         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
6313         getopt: clean up error reporting
6315         getopt can print a whole bunch of error messages, and when used
6316         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
6317         cancellation point and getopt isn't, and also applying fprintf to a
6318         stream in wide-character mode is not allowed.  So every single error
6319         reporting case has an #ifdef _LIBC block in which it calls internal
6320         libc functions instead.  The counterpart patch series in glibc makes
6321         it possible to simplify all of that down to a set of #defines at the
6322         top of the file; core code is written as if it is safe to just call
6323         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
6324         call any *other* stdio functions.)
6326         * lib/getopt.c: When _LIBC is defined, define fprintf to
6327         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
6328         to _IO_funlockfile.  When neither _LIBC nor
6329         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
6330         funlockfile as no-ops.
6331         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
6332         standalone error-printing code can now be used for libc as well.
6333         Add an flockfile/funlockfile pair around one case where the error
6334         message is printed in several chunks.  Don't use fputc.
6337         getopt: fix fencepost error in ambiguous-W-option handling
6339         getopt_long contains an undocumented (AFAICT) feature in which, if you
6340         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
6341         treated as equivalent to '--foo'.  This is implemented with a partial
6342         second copy of the code for handling long options, and that code
6343         increments optind one too many times when recovering from an ambiguous
6344         abbreviated option, which can cause the main loop to walk past the end
6345         of argv and crash.
6347         I discovered this while writing a test case that tries to exercise all
6348         of getopt's error reporting paths; I wouldn't be surprised to learn
6349         that this feature is never used by real applications.
6351         * lib/getopt.c (_getopt_internal_r): Don't increment
6352         d->optind a second time when reporting ambiguous -W options.
6355         getopt: clean up getopt.c and getopt1.c file headers
6357         In getopt.c, there is no need to include wchar.h at all, and it is
6358         safe nowadays to assume that stdlib.h does declare getenv (several
6359         other gnulib modules make this assumption).
6361         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
6362         by using "" inclusions consistently, and there is no actual need to
6363         include stdlib.h (except in the #ifdef TEST block, where it should be
6364         unconditional), nor to provide a backup definition of NULL at all.
6366         * lib/getopt1.c: Simplify #ifdeffage at top of file.
6367         Move inclusion of stdlib.h to #ifdef TEST block and make
6368         unconditional.  Do not define NULL.
6369         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
6370         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
6371         * modules/getopt-gnu, modules/getopt-posix: Don't call
6372         gl_PREREQ_GETENV.
6375         getopt: harmonize comments with glibc
6377         The comments explaining how the behavior of 'getopt' varies depending
6378         on whether it's the standalone version and whether there are special
6379         characters at the beginning of the options string were inconsistent
6380         between gnulib and glibc, and also out of sync with the code.
6382         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
6385         getopt: remove USE_NONOPTION_FLAGS
6387         getopt includes code to parse an environment variable named
6388         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
6389         in decimal); but all of it has been #ifdefed out since 2001, with no
6390         official way to turn it back on.
6392         According to commentary in glibc's config.h.in, bash version 2.0
6393         set this environment variable to indicate argv elements that were
6394         the result of glob expansion and therefore should not be treated
6395         as options, but the feature was "disabled later" because "it
6396         caused problems".  According to bash's CHANGES file, "later" was
6397         release 2.01; it gives no more detail about what the problems
6398         were.
6400         Version 2.0 of bash was released on the last day of 1996, and version
6401         2.01 in June of 1997.  Twenty years later, I think it is safe to
6402         assume that this environment variable isn't coming back.
6404         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
6405         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
6406         __libc_argc and __libc_argv externs, which were only used by
6407         #ifdef USE_NONOPTION_FLAGS blocks.
6410         getopt: tabify, in preparation for merge with glibc
6412         glibc sticks to the GNU default of indenting with a mix of
6413         8-column tabs and spaces; make the gnulib copy match.
6415         getopt.h is not included because it is *not* going to be merged in its
6416         present form.
6418         * getopt.c, getopt1.c, getopt_int.h: Tabify.
6420 2017-04-02  Bruno Haible  <bruno@clisp.org>
6422         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
6423         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
6424         like it was done in modules/relocatable-lib on 2011-05-21 and in
6425         modules/relocatable-prog on 2011-08-15.
6426         Reported by Reuben Thomas <rrt@sc3d.org>.
6428 2017-03-31  Bruno Haible  <bruno@clisp.org>
6430         glob: Fix invalid free() call.
6431         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
6432         static storage to home_dir.
6433         Reported by Coverity via Tim Rühsen.
6435 2017-03-31  Bruno Haible  <bruno@clisp.org>
6437         glob: Fix memory leaks.
6438         * lib/glob.c (glob): Free allocated memory before returning.
6439         Reported by Coverity via Tim Rühsen.
6441 2017-03-31  Bruno Haible  <bruno@clisp.org>
6443         md5, sha1, sha256, sha512: Add comments regarding correctness.
6444         * lib/md5.h (buflen): Add comments regarding range.
6445         * lib/sha1.h (buflen): Likewise.
6446         * lib/sha256.h (buflen): Likewise.
6447         * lib/sha512.h (buflen): Likewise.
6448         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
6449         * lib/sha1.c (sha1_process_bytes): Likewise.
6450         * lib/sha256.c (sha256_process_bytes): Likewise.
6451         * lib/sha512.c (sha512_process_bytes): Likewise.
6452         Reported by Coverity via Tim Rühsen.
6454 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6456         getopt: merge from glibc
6457         This does not change anything substantial; it merely simplifies
6458         hypothetical merges back to glibc.
6459         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
6460         Change copyright notice to match what is in glibc.
6461         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
6462         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
6463         __open_memstream rather than open_memstream and __glibc_likely
6464         instead of __builtin_expect.
6465         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
6467 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6469         dfa: make [0-9] faster in non-C locales
6470         Problem reported by John P. Linderman (Bug#26193).
6471         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
6472         If both ends of the range are ASCII digits, do not worry about
6473         multi-character collating sequences and the like.  Be consistent
6474         about using isalpha as a precondition for setbit_case_fold_c.
6476 2017-03-19  Bruno Haible  <bruno@clisp.org>
6478         lock: Fix compilation error with HP-UX IA64 cc.
6479         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
6480         weak on non-glibc platforms.
6482 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6484         stdalign: tweak version# and test for HP-UX IA64
6485         Problems reported by Bruno Haible in:
6486         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
6487         * lib/stdalign.in.h (_Alignas):
6488         * m4/stdalign.m4 (gl_STDALIGN_H):
6489         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
6490         used octal (as that is how they document it), but it is decimal in
6491         practice now and the ancient implementations no longer matter.
6492         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
6494 2017-03-19  Bruno Haible  <bruno@clisp.org>
6496         vma-iter: Add support for Solaris.
6497         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
6498         approach.
6499         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
6500         * lib/get-rusage-as.c: Update comment about Solaris.
6501         * lib/get-rusage-data.c: Likewise.
6503 2017-03-19  Bruno Haible  <bruno@clisp.org>
6505         vma-iter: Prefer HP-UX specific API on HP-UX.
6506         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
6507         * lib/vma-iter.h: Update.
6508         Just in case HP-UX ever implements mquery().
6510 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
6512         stdalign: restore previous behavior for HP-UX IA64
6513         See Bruno Haible's email in:
6514         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
6515         which cites p 150 of a manual saying that 'aligned' works on Itanium.
6516         * lib/stdalign.in.h (_Alignas):
6517         Assume the '061200' applies to Itanium, not to PA-RISC.
6518         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
6520 2017-03-17  Bruno Haible  <bruno@clisp.org>
6522         stat-time, timespec: Support use of the header files in C++ mode.
6523         * lib/stat-time.h: Add "C" linkage declaration.
6524         * lib/timespec.h: Likewise.
6526 2017-03-17  Bruno Haible  <bruno@clisp.org>
6528         stdalign: Make it work with HP-UX cc.
6529         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
6530         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
6531         for HP-UX cc.
6533 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
6535         flexmember: try to detect HP-UX 11.31 cc bug
6536         Problem reported by Bruno Haible in:
6537         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
6538         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6539         Attempt to detect bug in HP-UX 11.31 cc.
6541 2017-03-16  Bruno Haible  <bruno@clisp.org>
6543         stdint: Fix test compilation failure with HP-UX 11 cc.
6544         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
6545         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
6546         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
6547         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
6549 2017-03-14  Bruno Haible  <bruno@clisp.org>
6551         gnulib-tool: Don't produce a tests directory with only snippet .h files.
6552         * gnulib-tool (func_modules_transitive_closure_separately): If
6553         testsrelated_modules ends up with no "real" modules, aside from
6554         modules with applicability 'all', set it to empty.
6556 2017-03-14  Bruno Haible  <bruno@clisp.org>
6558         vma-iter: Add support for HP-UX.
6559         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
6560         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
6561         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
6562         * lib/get-rusage-as.c: Update comment about HP-UX.
6563         * lib/get-rusage-data.c: Likewise.
6564         (get_rusage_data): Use get_rusage_data_via_setrlimit.
6566 2017-03-14  Bruno Haible  <bruno@clisp.org>
6568         limits-h: Make it work with HP-UX cc.
6569         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
6570         defined.
6572 2017-03-14  Bruno Haible  <bruno@clisp.org>
6574         Fix test failures on DragonFlyBSD.
6575         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
6576         * tests/test-select.h (test_bad_fd): Likewise.
6577         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
6579 2017-03-14  Bruno Haible  <bruno@clisp.org>
6581         freadahead: Silence warning on DragonFlyBSD.
6582         * lib/freadahead.c (__sreadahead): Declare ourselves.
6584 2017-03-14  Bruno Haible  <bruno@clisp.org>
6586         vma-iter: Add comment about AIX.
6587         * lib/vma-iter.c: Add comment about why this module is not implemented
6588         on AIX.
6590 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6592         snippets: move unadjusted snippet sources to lib
6593         Problem reported by Michal Privoznik in:
6594         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
6595         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
6596         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
6597         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
6598         * lib/unused-parameter.h: Rename from
6599         build-aux/snippet/unused-parameter.h.
6600         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
6601         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
6602         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
6603         * modules/snippet/c++defs (Files:, CXXDEFS_H):
6604         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
6605         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
6606         Adjust to file renamings.
6608 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
6610         gnulib-tool: don't automatically distribute files from top/
6611         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
6612         not distribute top/README-release by default, don't distribute files
6613         from top/ unconditionally.
6614         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
6615         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
6617 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6619         gnulib-tool: fix typo in comment output
6620         * gnulib-tool (func_import): Fix typo with previous change.
6622         snippets: work around GNU Make 3.82 VPATH
6623         When using 'gnulib-tool --gnu-make' on Emacs, and building
6624         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
6625         an out-of-source (VPATH) build failed because the sans-copyright
6626         snippet file was not built before the file that used it.
6627         Presumably this is some sort of VPATH thing.  Work around the
6628         problem by using the original snippet, i.e., don’t bother to
6629         remove its copyright notice.
6630         * modules/snippet/_Noreturn, modules/snippet/link-warning:
6631         Don’t assume Automake in comments.  Omit long-incorrect comment.
6632         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
6633         (MOSTLYCLEANFILES):
6634         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
6635         (MOSTLYCLEANFILES):
6636         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
6637         (MOSTLYCLEANFILES):
6638         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
6639         (MOSTLYCLEANFILES):
6640         Remove.
6641         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
6642         * modules/snippet/c++defs (CXXDEFS_H):
6643         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
6644         * modules/snippet/warn-on-use (WARN_ON_USE_H):
6645         Don’t bother to remove the copyright notice; just use the
6646         original snippet as-is.
6648 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
6650         gnulib-tool: minor --gnu-make fixups
6651         * gnulib-tool (func_emit_lib_Makefile_am):
6652         Remove useless code that was a blind alley during implementation.
6653         Problem reported by Thien-Thi Nguyen in:
6654         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
6655         (func_import): Note the "--gnu-make" option in the output comment.
6657 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
6659         gnulib-tool: new option --gnu-make
6660         This is for applications like GNU Emacs that use GNU Make
6661         features instead of Automake.
6662         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
6663         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
6664         Do not assume Automake.
6665         * gnulib-tool (func_determine_path_separator)
6666         (func_modules_transitive_closure, func_update_file)
6667         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
6668         (func_import): Add support for --gnu-make.
6670 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
6672         gnulib-common.m4: avoid aclocal.m4 bloat
6673         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
6674         Hide AM_PROG_AR from aclocal, so that aclocal does not
6675         install irrelevant macro definitions into aclocal.m4.
6677 2017-03-10  Bruno Haible  <bruno@clisp.org>
6679         vma-iter: Let callers know about error.
6680         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
6681         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
6683 2017-03-05  Bruno Haible  <bruno@clisp.org>
6685         Fix value of LD for 64-bit compilers on AIX.
6686         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
6687         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
6689 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
6691         dtotimespec: simplify
6692         * lib/dtotimespec.c (dtotimespec): Simplify.
6694 2017-03-04  Bruno Haible  <bruno@clisp.org>
6696         test-calloc-gnu: Reenable test also for GCC 7.
6697         * tests/test-calloc-gnu.c (eight): New function.
6698         (main): Don't skip test; use eight() instead.
6700 2017-03-04  Jim Meyering  <meyering@fb.com>
6702         test-calloc-gnu: port to GCC7
6703         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
6704         that attempts to calloc more than SIZE_MAX bytes, because GCC7
6705         and newer would detect that at compilation time.
6707 2017-03-04  Bruno Haible  <bruno@clisp.org>
6709         tests: Avoid compiler warning about uses of null_ptr.
6710         * tests/null-ptr.h: New file.
6711         * tests/test-canonicalize.c: Include null-ptr.h.
6712         (null_ptr): Remove function.
6713         * tests/test-canonicalize-lgpl.c: Likewise.
6714         * tests/test-memmem.c: Likewise.
6715         * tests/test-ptsname_r.c: Likewise.
6716         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
6717         * modules/canonicalize-lgpl-tests: Likewise.
6718         * modules/memmem-tests: Likewise.
6719         * modules/ptsname_r-tests: Likewise.
6720         Reported by Jim Meyering.
6722 2017-03-03  Bruno Haible  <bruno@clisp.org>
6724         doc: Mention Mac OS X deficiencies regarding semaphores.
6725         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
6726         * doc/posix-functions/sem_destroy.texi: Likewise.
6727         * doc/posix-functions/sem_getvalue.texi: Likewise.
6729 2017-03-03  Bruno Haible  <bruno@clisp.org>
6731         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
6732         Reported by Assaf Gordon <assafgordon@gmail.com> via
6733         Pádraig Brady <P@draigBrady.com>.
6734         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
6735         semaphores.
6736         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
6737         (atomic_int_semaphore): New macro.
6739 2017-02-28  Bruno Haible  <bruno@clisp.org>
6741         perror tests: Tweak for z/OS.
6742         Reported by Daniel Richard G. <skunk@iskunk.org>.
6743         * tests/test-perror.sh: Don't fail z/OS style perror output.
6745 2017-02-26  Bruno Haible  <bruno@clisp.org>
6747         nproc: Refactor large function.
6748         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
6749         from num_processors.
6750         (num_processors): In this function, only deal with OMP.
6752 2017-02-26  Pádraig Brady  <P@draigBrady.com>
6754         nproc: adjust handling of OpenMP environment variables
6755         to match the return value from omp_get_num_threads(), i.e.:
6756          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
6757          - Treat 0 as an invalid value and ignore
6758         Also remove the call to omp_get_num_threads() because
6759         it's ineffective without the omp pragmas in place.
6760         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
6761         so that it can be ignored.
6762         (num_processors): Honor OMP_THREAD_LIMIT even without
6763         OMP_NUM_THREADS being set.  Also fix a typo in the environment
6764         variable being checked, from the previous recent commit.
6766 2017-02-26  Pádraig Brady  <P@draigBrady.com>
6768         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
6769         * lib/nproc.c (parse_omp_threads): A new function refactored
6770         from num_processors() to support parsing both of the
6771         above environment variables.
6772         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
6773         to accurately reflect the current OpenMP nesting level.
6774         Also support the OMP_THREAD_LIMIT environment variable
6775         to limit the max value determined from OMP_NUM_THREADS.
6776         * modules/nproc: Depend on minmax header.
6777         Suggested by Oliver Heimlich.
6779 2017-02-25  Bruno Haible  <bruno@clisp.org>
6781         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
6782         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
6784 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6786         ftoastr: port to -Wdouble-promotion
6787         Work around -Wdouble-promotion false alarm in recent GCCs.
6788         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
6789         (ftoastr_snprintf, FTOASTR): Use it.
6791 2017-02-21  Bruno Haible  <bruno@clisp.org>
6793         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
6794         Reported by Rene Saavedra <rennes@openmailbox.org> in
6795         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
6796         * lib/glthread/lock.h: On glibc systems without
6797         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
6798         implementation of rwlocks.
6799         * lib/glthread/lock.c: Likewise.
6801 2017-02-20  Bruno Haible  <bruno@clisp.org>
6803         lock tests: Fix build failure on z/OS.
6804         Reported by Daniel Richard G. <skunk@iskunk.org>.
6805         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
6806         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
6807         exist.
6809 2017-02-19  Bruno Haible  <bruno@clisp.org>
6811         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
6812         This helps when CC=clang.
6813         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
6814         of /usr/bin/gcc.
6816         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
6817         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
6819 2017-02-19  Bruno Haible  <bruno@clisp.org>
6821         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
6822         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
6823         --with-tests --single-configure is specified.
6825 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
6827         users.txt: Update links, use HTTPS where possible
6828         * users.txt: Updated to HTTPS where possible,
6829         fixed some links to new locations.
6831 2017-02-16  Bruno Haible  <bruno@clisp.org>
6833         xbinary-io: Fix inlining.
6834         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
6836 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6838         xbinary-io: rename from xsetmode
6839         This patch is taken from suggestions by Bruno Haible in:
6840         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
6841         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
6842         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
6843         not ENOTTY, when it is an inappropriate device.
6844         * lib/binary-io.h (SET_BINARY): Resurrect.
6845         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
6846         (xset_binary_mode_error): Rename from xsetmode_error.
6847         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
6848         (xset_binary_mode): Rename from xsetmode.
6849         All uses changed.
6850         * modules/xbinary-io: Rename from modules/xsetmode.
6851         Update file names.
6852         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
6853         * NEWS: Update to match revised behavior.
6855 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6857         tests: Adjust to recent SET_BINARY change
6858         * tests/test-binary-io.c (main):
6859         * tests/test-binary-io.sh: Remove test for SET_BINARY.
6860         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
6861         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
6862         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
6864         xsetmode: new module
6865         This is to fix a problem noted by Eric Blake.
6866         Code was using xfreopen to change files to binary mode, but this
6867         fails for stdout when in append mode.  Such code should use
6868         xsetmode instead.
6869         * NEWS: Document incompatible changes to binary-io module.
6870         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
6871         New function.
6872         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
6873         (set_binary_mode): New function, which also checks for tty.
6874         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
6876 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6878         headers: fix begin-end typos
6879         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
6880         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
6882         selinux-h: port to PGI 16.10
6883         * lib/se-selinux.in.h: Don't assume that include_next skips over
6884         duplicate -I DIR options.
6886         argp: port to PGI 16.10
6887         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
6889 2017-02-13  Darshit Shah  <darnir@gnu.org>
6891         unicase: Update function protoype to match definition.
6892         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
6893         uses 'size_t' as the datatype for the 'len' parameter in the functions
6894         it generates. Update the prototype specified here to match the newly
6895         generated function.
6897 2017-02-12  Bruno Haible  <bruno@clisp.org>
6899         times test: Avoid gcc warnings on Linux/x32.
6900         * tests/test-times.c (main): Really cast printf arguments from clock_t
6901         to 'long int'.
6903 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6905         glob: port better to emscripten
6906         Problem reported by Bruno Haible in:
6907         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
6908         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
6910 2017-02-11  Bruno Haible  <bruno@clisp.org>
6912         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
6913         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
6914         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
6915         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
6916         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
6917         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
6918         Distinguish hppa64 from hppa.
6920 2017-02-10  Bruno Haible  <bruno@clisp.org>
6922         search: Don't assume that tsearch() exists if 'VISIT' is defined.
6923         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
6924         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
6925         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
6927 2017-02-09  Bruno Haible  <bruno@clisp.org>
6929         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
6930         * doc/gnulib.texi (Libtool and Windows): Recommend
6931         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
6932         Reported by Reuben Thomas <rrt@sc3d.org>.
6934 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6936         stddef-tests: port to SIZE_MAX <= INT_MAX
6937         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
6938         Do not assume that INT_MAX < SIZE_MAX.
6940 2017-02-01  Bruno Haible  <bruno@clisp.org>
6942         lock tests: Fix link error.
6943         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
6944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6946 2017-01-31  Bruno Haible  <bruno@clisp.org>
6948         lock: Fix link error (regression from 2017-01-05).
6949         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
6950         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
6951         pthread_rwlockattr_destroy weak.
6952         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6954 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6956         Port to PGI 16.10 x86-64
6957         This patch fixes one real bug in gl_anylinked_list2.h, along with
6958         some minor glitches that are not bugs.  It does not silence PGI’s
6959         thousands of bogus warnings when compiling test-intprops.c.
6960         Fortunately, the warnings do not cause a failure.
6961         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
6962         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
6963         My goodness, PGI goes back a long ways - this predates C89!
6964         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
6965         For example, ASYNCSAFE (const void *) should expand to
6966         ‘const void *volatile’, not to ‘volatile const void *’.
6967         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
6968         * lib/verify.h (verify) [!__GNUC__]:
6969         Use shorter albeit meaningless string to bypass silly compiler limits.
6970         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
6971         * tests/nan.h (NaNf, NaNd, NaNl):
6972         Use static functions to avoid misguided compiler diagnostics.
6973         Is there some reason we don’t use static functions on all platforms?
6975 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
6977         parse-datetime: handle timezones reentrantly
6978         This API change was prompted by a report by Pádraig Brady in:
6979         https://bug.debian.org/851934#10
6980         To help fix the bug, make parse_datetime2 more reentrant.
6981         * NEWS: Document this incompatible change.
6982         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
6983         Add two arguments, the timezone and the timezone name.
6984         All callers changed.  If TZ="..." is specified, use it for
6985         calculating defaults.
6986         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
6987         this code should be usable in a library.
6988         (mktime_ok, get_effective_timezone):
6989         Accept timezone arg too.  All callers changed.
6990         (get_tz): Remove.
6991         (get_effective_timezone): Check for failures.
6993 2017-01-20  Eric Blake  <eblake@redhat.com>
6995         localename: port to cygwin 2.6
6996         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
6997         Cygwin.
6998         * modules/localename (Depends-on): Add extensions, since
6999         NL_LOCALE_NAME() is not visible without it.
7001 2017-01-17  Pádraig Brady  <P@draigBrady.com>
7003         parse-datetime: fix dependence on AC_PROG_SED
7004         * modules/parse-datetime: Use `sed` directly like all other modules.
7005         Reported by J William Piggott
7007 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
7009         intprops: update doc URLs
7010         * doc/intprops.texi (Integer Range Overflow): Update URLs.
7012 2017-01-16  Bruno Haible  <bruno@clisp.org>
7014         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
7015         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
7016         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
7017         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
7018         distinguish s390 and s390x.
7019         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
7020         * NEWS: Mention the change regarding 'armel'.
7022 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7024         localeinfo: case_folded_counterparts and WEOF
7025         * NEWS: Document this.
7026         * lib/localeinfo.c (case_folded_counterparts):
7027         First arg is now wint_t, not wchar_t.  This generalizes the
7028         function to also work on WEOF, where it returns 0.
7030         dfa: port to gcc -fsanitize=undefined
7031         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
7032         as this runs afoul of gcc -fsanitize=undefined.
7034 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
7036         strftime: %z is -00 if unknown
7037         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
7038         the caller's responsibility to set 'negative_number'.  All uses changed.
7039         (__strftime_internal): Put '-' before a zero UTC offset if the time
7040         zone abbreviation starts with "-", which is the recently-introduced
7041         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
7042         * tests/test-strftime.c: Test for this.
7044 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7046         dfa: port to older GCC
7047         Problem reported by Assaf Gordon in:
7048         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
7049         * modules/c99: New module.  This merely attempts to use the latest
7050         C version, which should be enough to solve this particular problem.
7051         The idea is to document which Gnulib modules assume C99 or later.
7052         * modules/dfa (Depends-on): Add it.
7054 2017-01-10  Bruno Haible  <bruno@clisp.org>
7056         Update DEPENDENCIES.
7057         * DEPENDENCIES: List only https URLs. Update recommended version for
7058         autoconf, automake, gperf.
7060 2017-01-10  Jim Meyering  <meyering@fb.com>
7062         maint.mk: enforce spelling of "timestamp" (i.e., no space)
7063         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
7064         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
7066 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7068         dfa: minor simplification with emptyset
7069         * lib/dfa.c (build_state): Simplify by using emptyset.
7071 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7073         dfa: shrink constraints from 4 bits to 3
7074         * lib/dfa.c (newline_constraint, letter_constraint)
7075         (other_constraint, prev_newline_dependent)
7076         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
7077         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
7078         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
7079         Constraints need only 3 bits, not 4.  Using smaller integers
7080         shrinks the code a bit and makes grep a tad faster on x86-64.
7082         dfa: omit unnecessary ptrdiff_t check
7083         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
7084         overflow, since xnmalloc does that now.
7086         dfa: omit unnecessary allocation
7087         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
7088         an all-zero follow set works just fine.
7090         dfa: omit unused local
7091         * lib/dfa.c (build_state): Fix up recent change.
7093         maint: remove stray .texi files
7094         Although these were superseded by other files like
7095         doc/posix-functions/ctime.texi, the old files were not removed.
7096         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
7098 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
7100         getprogname: fix port to IRIX
7101         * lib/getprogname.c (getprogname) [__sgi]:
7102         Don't dump core if malloc returns NULL.
7104         dfa: fix reallocation bug when matching newlines
7105         Problem reported for sed by S. Gilles (Bug#25390).
7106         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
7107         (dfastate): Reallocate before moving any newline transition ...
7108         (build_state): ... instead of reallocating here, where it is too late.
7110 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
7112         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
7113         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
7115 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
7117         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
7118         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
7120 2017-01-07  Bruno Haible  <bruno@clisp.org>
7122         stdioext: Port to Minix 3.2 and newer.
7123         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
7124         * lib/fseeko.c (fseeko): Likewise.
7125         Reported by Nelson Beebe via Paul Eggert.
7127 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7129         getprogname: port to IRIX
7130         * lib/getprogname.c (getprogname): Port to IRIX.
7131         Based on an idea by Bastien Roucariès at:
7132         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
7133         via code from Bruno Haible at:
7134         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
7136         localename-tests: port to NetBSD 7
7137         Problem reported by Nelson H. F. Beebe.
7138         * tests/test-localename.c:
7139         Test newlocale and uselocale only if both exist.
7141         glob, intprops, xalloc: work around Clang bug
7142         Work around LLVM bug 16404, which is still not fixed.
7143         https://llvm.org/bugs/show_bug.cgi?id=16404
7144         Problem reported by Nelson H. F. Beebe.
7145         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
7146         Remove.
7147         * lib/glob.c (size_add_wrapv):
7148         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
7149         * lib/xalloc-oversized.h (xalloc_oversized):
7150         Do not use overflow builtins if Clang.
7152         dfa: fix 'return' typo
7153         Problem reported by Nelson H. F. Beebe.
7154         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
7156 2017-01-05  Pádraig Brady  <P@draigBrady.com>
7158         parse-datetime: fix generated paths for coverage files
7159         * modules/parse-datetime: Adjust the paths for parse-datetime.y
7160         within parse-datetime.c, so that gcc generates appropriate .gcno
7161         files, allowing lcov to proceed without error.  Previously it
7162         would error trying to find "lib/lib/parse-datetime.y".
7164 2017-01-05  Pádraig Brady  <P@draigBrady.com>
7166         maint.mk: support parallel execution of coverage
7167         * top/maint.mk (coverage): Run dependencies serially,
7168         thus supporting parallel processing of each one,
7169         particularly build-coverage, which builds and runs tests.
7171 2017-01-05  Bruno Haible  <bruno@clisp.org>
7173         lock tests: Prefer semaphore over mutex.
7174         * tests/test-lock.c (USE_SEMAPHORE): New constant.
7175         (struct atomic_int, init_atomic_int, get_atomic_int_value,
7176         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
7177         Suggested by Torvald Riegel <triegel@redhat.com>.
7179 2017-01-05  Bruno Haible  <bruno@clisp.org>
7181         lock: Provide guarantee to avoid writer starvation for rwlocks.
7182         The rationale is: 1) Read-preferring read-write locks are prone to
7183         writer starvation if the number of reader threads multiplied by the
7184         percentage of time they have the lock held is too high. 2) Write-
7185         preferring read-write locks are the only reliable way to avoid this.
7186         3) There have been reports of 'test-lock' hanging on glibc systems
7187         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
7188         and glibc indeed implements read-preferring rwlocks by default, see
7189         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
7190         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
7191         * m4/pthread_rwlock_rdlock.m4: New file.
7192         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
7193         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
7194         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
7195         of rwlock initialization on glibc systems without
7196         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
7197         of rwlocks altogether on non-glibc systems without
7198         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
7199         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
7200         * lib/glthread/lock.c [USE_POSIX_THREADS]
7201         (glthread_rwlock_init_for_glibc): New function.
7202         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
7203         comment.
7204         [USE_PTH_THREADS]: New implementation of rwlocks.
7205         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
7206         readers.
7207         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
7208         (Depends-on): Add 'extensions'.
7209         * tests/test-rwlock1.c: New file.
7210         * lock-tests (Files): Add it.
7211         (Depends-on): Add usleep.
7212         (Makefile.am): Add test-rwlock1 to the tests.
7214 2017-01-05  Bruno Haible  <bruno@clisp.org>
7216         thread: Fix pth port.
7217         * lib/glthread/thread.h (pth_init): Declare weak.
7218         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
7219         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
7220         function.
7222 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
7224         parse-datetime: fix debug message on lone year number
7225         Input dates such as
7226           date -d "Apr 11 22:59:00 2011"
7227         are parsed as date (Apr 11, with default year 2016), then time, then a
7228         number (2011). Based on the combination of previously seen tokens,
7229         'digits_to_date_time' determines 2011 to be a year value.
7230         This fixes the debug messages to correctly show the updated year.
7231         Before:
7232             $ date --debug -d 'Apr 11 22:59:00 2011'
7233             date: parsed date part: (Y-M-D) 2016-04-11
7234             date: parsed time part: 22:59:00
7235             date: parsed number part: today/this/now
7236         After:
7237             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
7238             date: parsed date part: (Y-M-D) 2016-04-11
7239             date: parsed time part: 22:59:00
7240             date: parsed number part: year: 2011
7241         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
7242         'debug_year_seen' member fields.
7243         (digits_to_date_time): Update 'year_seen' as needed.
7244         (debug_print_current_time): Inform about year updates.
7245         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
7247         parse-datetime: fix local timezone debug messages
7248         "Local timezones" are strings that affect only DST relative to the
7249         default timezone. The debug messages in parse-datetime.y printed
7250         wrong information when encountering local timezones.
7251         Examples:
7252         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
7253              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
7254              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
7255         When the default timezone relates to the zone strings, EET/EEST are
7256         parsed as local timezones (tLOCAL_ZONE), and only change the DST
7257         value (0/1, respectively):
7258              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
7259              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
7260         * lib/parse-datetime.y (debug_print_current_time): If local timezone
7261         was seen, inform about DST change, don't print actual timezone.
7262         (debug_strfdatetime): If local timezone was seen, use default timezone
7263         (and adjust as needed) instead of using incorrect timezone.
7264         (parse_datetime2): Use correct time-zone source string, and adjust
7265         default timezone as needed.
7267         parse-datetime: add debug warning about DST changes
7268         Incorrect date arithmetic due to daylight saving time (DST) are a
7269         common (false) bug report in coreutils.
7270         Detect two such cases and print a warning:
7271         1. year/month/day adjustments (performed on 'struct tm'),
7272            where 'mktime' returns a different isdst value.
7273         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
7274            where the result of 'localtime(3)' on the value will return a
7275            different isdst value.
7276         Note: DST changes could be harmless or unnoticeable.
7277         Examples (with 'TZ=America/New_York'):
7278         Unnoticeable: result is 2016-Dec-14
7279            $ date -d '2016-06-15 EDT + 6 months' +%b
7280            Dec
7281         Unnoticeable: result is 2016-Dec-15 11:00:00
7282            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
7283            2016-12-15
7284         This is unexpected:
7285            $ date -d '2016-06-01 EDT + 6 months' +%F
7286            2016-11-30
7287         The new debug warnings will show:
7288            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
7289            ...
7290            date: warning: daylight saving time changed after date adjustment
7291            ...
7292         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
7293         print an appropriate warning message.
7295         parse-datetime: add debug warning about date arithmetic
7296         Date arithmetic are done directly on the fields of 'struct tm',
7297         which can result in invalid dates. Normalization with 'mktime(3)'
7298         will then produce a different date - which might cause unexpected
7299         results.
7300         Examples:
7301           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
7302           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
7303         Note that date normalization is not inherently wrong and not rejected,
7304         as it has legitimate uses:
7305           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
7306         If the user asked to adjust months but 'mday' changed,
7307         or user asked to adjust years but 'month' changed - warn about it.
7308             $ ./src/date --debug -d '2016-10-31 - 1 month'
7309             ...
7310             date: warning: when adding relative months/years, \
7311                            it is recommended to specify the 15th of the month
7312             ...
7313             date: warning: month/year adjustment resulted in shifted dates:
7314             date:      adjusted Y M D: 2016 09 31
7315             date:    normalized Y M D: 2010 10 01
7316             ...
7317         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
7318         a warning message. Improve recommendation of when to use 15 of the
7319         month or noon for date arithmetic.
7321         parse-datetime: fix debug message of relative part after timezone
7322         Relative part (e.g '+8 days') after a timezone string was not
7323         reported (was only reported after a timezone number). Due to the
7324         parser's structure, timezone strings with numbers were handled
7325         separately.
7326         before:
7327              # Timezone number + relative part: OK
7328              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
7329              ...
7330              date: parsed relative part: -8 day(s)
7331              # Timezone string + relative part: missing
7332              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
7333              [ missing message ]
7334         After: messages are printed in both cases.
7335         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
7337         parse-datetime: fix incorrect debug message on lone number
7338         A lone number is an absolute value, not a relative time part.
7339         before:
7340            $ date --debug -d '20130101'
7341            date: parsed number part: today/this/now
7342         After:
7343            $ ./src/date --debug -d '20130101'
7344            date: parsed number part: (Y-M-D) 2013-01-01
7345         * lib/parse-datetime.y ('item'/'number' tokens): Call
7346         'debug_print_current_time' instead of 'debug_print_relative_time'.
7348 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7350         doc: modernize for C11 etc.
7351         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
7352         for C11, MinGW, etc.  This responds to Paul Smith's question in:
7353         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
7355         dfa: prefer functions to FETCH_WC macro
7356         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
7357         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
7358         wint_t result into DFA->lex.wctok instead of to a separate arg.
7359         All callers changed.  Move more local decls closer to where
7360         they're used.
7362         dfa: narrow more local var scopes
7363         * lib/dfa.c: Move more local decls to be more local.
7365         dfa: remove duplicate assignment
7366         Problem reported by Bruno Haible in:
7367         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
7368         * lib/dfa.c (parse_bracket_exp): Simplify.
7370 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7372         dfa: simplify constraint-dependency checking
7373         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
7374         (prev_other_constraint): Remove.
7375         (prev_newline_dependent, prev_letter_dependent):
7376         Simplify, to avoid an unnecessary bitwise AND operation.
7378         dfa: prefer functions and constants to macros
7379         * lib/dfa.c: Prefer constants to macros where either will do.
7380         (streq, isasciidigit, newline_constraint)
7381         (letter_constraint, other_constraint, succeeds_in_context)
7382         (prev_newline_constraint, prev_letter_constraint)
7383         (prev_other_constraint, prev_newline_dependent)
7384         (prev_letter_dependent, accepting, accepts_in_context):
7385         Now static functions instead of function-like macros.
7386         Use lower-case names accordingly.  All uses changed.
7388         dfa: narrow more local var scopes
7389         * lib/dfa.c: Move some more local decls down to nearer where
7390         they're needed.
7392 2016-12-31  Jim Meyering  <meyering@fb.com>
7394         dfa: narrow the scope of many local variables
7395         * lib/dfa.c: Now that we are no longer constrained to c89, move
7396         declarations of many variables (often indices) "down" into the
7397         scope(s) where used or to the point of definition.  This is a
7398         no-semantic-change diff.
7400 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7402         version-etc: new year
7403         * build-aux/gendocs.sh (version):
7404         * doc/gendocs_template:
7405         * doc/gendocs_template_min:
7406         * doc/gnulib.texi:
7407         * lib/version-etc.c (COPYRIGHT_YEAR):
7408         Update copyright dates by hand in templates and the like.
7409         * all files: Run 'make update-copyright'.
7411 2016-12-31  Eric Blake  <eblake@redhat.com>
7413         do-release-commit-and-tag: avoid shell syntax error
7414         * build-aux/do-release-commit-and-tag (curr_br): $branch can
7415         contain spaces when rebasing.
7417         maint.mk: hoist gnulib_dir definition earlier
7418         * top/maint.mk (gnulib_dir): Move near top of file.
7420 2016-12-31  Jim Meyering  <meyering@fb.com>
7422         maint.mk: do not always evaluate intprops-related shell
7423         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
7424         using gnulib_dir undefined (gnulib_dir is defined later in the
7425         file, which will be fixed separately), and besides, there is no
7426         need to incur the cost of this shell invocation for every single
7427         use of this .mk file.  Reported by Eric Blake in
7428         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
7430 2016-12-30  Jim Meyering  <meyering@fb.com>
7432         maint.mk: improve sc_prohibit_intprops_without_use
7433         * top/maint.mk (_intprops_names): Don't hard-code the list of
7434         symbol names.  Instead, derive it on the fly.
7436 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
7438         dfa: shorten sbit, success
7439         * lib/dfa.c (struct regex_syntax.sbit):
7440         (struct dfa.success): Use char, not int, for array elements, since
7441         they are all in the range 0..7.
7443         dfa: simplify multibyte_prop etc.
7444         This follows up on a change made when dfa.c was in grep, namely grep
7445         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
7446         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
7447         That earlier simplification allows for some more simplification
7448         and trimming down here.
7449         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
7450         (struct lexer_state): New mamber brack.
7451         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
7452         since they must be in the range 0..3 now.
7453         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
7454         the brack member now supersedes them.
7455         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
7456         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
7457         (dfaparse): Remove unnecessary initializations of already-0 storage.
7458         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
7459         (dfassbuild): No need to clear sup->mbcsets.
7461         dfa: minor performance tweak
7462         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
7464         dfa: wrap charclass inside a struct
7465         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
7466         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
7467         about 5% faster, where list.txt is generated by 'aspell dump
7468         master | head -n 100000 >list.txt'.  See Bug#22239.
7469         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
7470         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
7471         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
7472         Adjust to this, e.g., by using charclass * rather than charclass.
7473         All callers changed as needed.
7474         (copyset): Remove.  All uses changed to simple assignment.
7475         (parse_bracket_exp): Use zeroset instead of memset.
7477 2016-12-30  Jim Meyering  <meyering@fb.com>
7479         maint.mk: update list of intprops.h symbol names
7480         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
7481         This avoids a false failure of the sc_prohibit_intprops_without_use
7482         rule in grep.
7484 2016-12-29  Eric Blake  <eblake@redhat.com>
7486         getopt: fix parallel test failure
7487         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
7488         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
7489         * tests/test-getopt-main.h (main): Use different file names
7490         in case test-getopt-gnu and test-getopt-posix run in parallel.
7492 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7494         xalloc: x2nrealloc check for ptrdiff_t overflow
7495         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
7496         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
7498 2016-12-24  Bruno Haible  <bruno@clisp.org>
7500         lock test: Fix performance problem on multi-core machines.
7501         * tests/test-lock.c (USE_VOLATILE): New macro.
7502         (struct atomic_int): New type.
7503         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
7504         functions.
7505         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
7506         as 'struct atomic_int'.
7507         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
7508         reclock_checker_thread, test_recursive_lock): Use the new functions.
7509         Reported by Eric Blake in
7510         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
7511         and by Pádraig Brady in
7512         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
7514 2016-12-19  Bruno Haible  <bruno@clisp.org>
7516         vma-iter: Fix endless loop on 64-bit Windows.
7517         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
7518         'unsigned long'.
7520 2016-12-19  Bruno Haible  <bruno@clisp.org>
7522         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
7523         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
7524         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
7525         Invoke gt_TYPE_WINT_T instead.
7526         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
7527         * modules/stdint (Files): Add m4/wint_t.m4.
7528         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
7529         * modules/wctype-h (Makefile.am): Likewise.
7530         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
7531         not only on MSVC.
7532         * lib/wctype.in.h (wint_t): Likewise.
7534 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7536         getopt-posix-tests: fix Makefile typo
7537         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
7538         Fix typo: the last ‘_’ was missing in the name.
7539         I suspect that the typo explains this build failure:
7540         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
7541         although I can’t reproduce the problem on Solaris 10 sparc.
7543 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7545         dfa: improve worst-case 'replace' performance
7546         See my note in Bug#22357#71.
7547         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
7548         (merge_constrained): New function, which is like
7549         the old 'merge' function, except with a new argument C2.
7550         Simplify the body by avoiding the need for different sections
7551         of code depending on whether one input is exhausted.
7552         (merge): Use the new function.
7553         (delete): Return the constraint of the deleted position,
7554         not the entire position.  Caller changed.
7555         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
7557 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7559         dfa: performance improvement for removal of epsilon closure
7560         See Bug#22357#32.
7561         * lib/dfa.c (delete): Use binary search to find deleted index.
7562         (replace): New function.  It replaces a position with the followed set.
7563         (epsclosure): Replace it with a new algorithm.  Update caller.
7565 2016-12-18  Bruno Haible  <bruno@clisp.org>
7567         Split tests for getopt-posix and getopt-gnu.
7568         * tests/test-getopt-posix.c: New file.
7569         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
7570         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
7571         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
7572         GNULIB_TEST_GETOPT_GNU.
7573         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
7574         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
7575         (Makefile.am): Test test-getopt-posix instead of test-getopt.
7576         * modules/getopt-gnu-tests: New file.
7577         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
7579 2016-12-18  Bruno Haible  <bruno@clisp.org>
7581         posix-modules: Add options for specific platforms.
7582         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
7583         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
7584         Invoke func_tmpdir. Filter out the excludes.
7586 2016-12-18  Bruno Haible  <bruno@clisp.org>
7588         getopt: Fix link error for users of getopt() in <unistd.h>.
7589         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
7590         __need_getopt is defined. Undefine all macros before defining them.
7591         * modules/getopt (Include): Clarify that including <unistd.h> is also
7592         OK.
7593         * tests/test-getopt.c: Add comment.
7595 2016-12-17  Bruno Haible  <bruno@clisp.org>
7597         getaddrinfo tests: Avoid compilation error on MSVC.
7598         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
7599         getaddrinfo on native Windows.
7601 2016-12-17  Bruno Haible  <bruno@clisp.org>
7603         getlogin, getlogin_r: Fix link errors on MSVC.
7604         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
7605         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
7606         (Link): New section.
7607         * modules/getlogin_r (Files): Add m4/getlogin.m4.
7608         (configure.ac): Require gl_LIB_GETLOGIN.
7609         (Link): New section.
7610         * NEWS: Mention the new link requirements.
7611         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
7612         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
7614 2016-12-17  Bruno Haible  <bruno@clisp.org>
7616         Un-deprecate the 'progname' module.
7617         * NEWS: Describe the appropriate use-cases of 'progname' versus
7618         'getprogname'. Based on discussion summary at
7619         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
7621 2016-12-17  Bruno Haible  <bruno@clisp.org>
7623         Reorganize NEWS a bit.
7624         * NEWS: Move some not so important changes away from section
7625         "Important Notes".
7627 2016-12-17  Bruno Haible  <bruno@clisp.org>
7629         tanhf: Avoid redefinition error on MSVC.
7630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
7631         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
7632         may be defined as an inline function.
7633         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
7634         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
7636 2016-12-17  Bruno Haible  <bruno@clisp.org>
7638         tanf: Avoid redefinition error on MSVC.
7639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
7640         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
7641         may be defined as an inline function.
7642         * modules/math (Makefile.am): Substitute REPLACE_TANF.
7643         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
7645 2016-12-17  Bruno Haible  <bruno@clisp.org>
7647         sqrtf: Avoid redefinition error on MSVC.
7648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
7649         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
7650         may be defined as an inline function.
7651         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
7652         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
7654 2016-12-17  Bruno Haible  <bruno@clisp.org>
7656         sinhf: Avoid redefinition error on MSVC.
7657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
7658         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
7659         may be defined as an inline function.
7660         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
7661         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
7663 2016-12-17  Bruno Haible  <bruno@clisp.org>
7665         sinf: Avoid redefinition error on MSVC.
7666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
7667         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
7668         may be defined as an inline function.
7669         * modules/math (Makefile.am): Substitute REPLACE_SINF.
7670         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
7672 2016-12-17  Bruno Haible  <bruno@clisp.org>
7674         logf: Avoid redefinition error on MSVC.
7675         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
7676         may be defined as an inline function.
7678 2016-12-17  Bruno Haible  <bruno@clisp.org>
7680         log10l: Avoid redefinition error on MSVC.
7681         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
7682         may be defined as an inline function.
7684 2016-12-17  Bruno Haible  <bruno@clisp.org>
7686         log10f: Avoid redefinition error on MSVC.
7687         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
7688         may be defined as an inline function.
7690 2016-12-17  Bruno Haible  <bruno@clisp.org>
7692         hypotl: Avoid redefinition error on MSVC.
7693         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
7694         may be defined as an inline function.
7696 2016-12-17  Bruno Haible  <bruno@clisp.org>
7698         hypotf: Avoid redefinition error on MSVC.
7699         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
7700         may be defined as an inline function.
7702 2016-12-17  Bruno Haible  <bruno@clisp.org>
7704         fmodl: Avoid redefinition error on MSVC.
7705         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
7706         may be defined as an inline function.
7708 2016-12-17  Bruno Haible  <bruno@clisp.org>
7710         fmodf: Avoid redefinition error on MSVC.
7711         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
7712         may be defined as an inline function.
7714 2016-12-17  Bruno Haible  <bruno@clisp.org>
7716         expf: Avoid redefinition error on MSVC.
7717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
7718         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
7719         may be defined as an inline function.
7720         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
7721         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
7723 2016-12-17  Bruno Haible  <bruno@clisp.org>
7725         coshf: Avoid redefinition error on MSVC.
7726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
7727         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
7728         may be defined as an inline function.
7729         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
7730         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
7732 2016-12-17  Bruno Haible  <bruno@clisp.org>
7734         cosf: Avoid redefinition error on MSVC.
7735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
7736         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
7737         may be defined as an inline function.
7738         * modules/math (Makefile.am): Substitute REPLACE_COSF.
7739         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
7741 2016-12-17  Bruno Haible  <bruno@clisp.org>
7743         atan2f: Avoid redefinition error on MSVC.
7744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
7745         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
7746         may be defined as an inline function.
7747         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
7748         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
7750 2016-12-17  Bruno Haible  <bruno@clisp.org>
7752         atanf: Avoid redefinition error on MSVC.
7753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
7754         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
7755         may be defined as an inline function.
7756         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
7757         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
7759 2016-12-17  Bruno Haible  <bruno@clisp.org>
7761         asinf: Avoid redefinition error on MSVC.
7762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
7763         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
7764         may be defined as an inline function.
7765         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
7766         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
7768 2016-12-17  Bruno Haible  <bruno@clisp.org>
7770         acosf: Avoid redefinition error on MSVC.
7771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
7772         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
7773         may be defined as an inline function.
7774         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
7775         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
7777 2016-12-17  Bruno Haible  <bruno@clisp.org>
7779         Avoid redefinition errors on MSVC.
7780         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
7781         the function may be defined as an inline function.
7782         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
7783         the function may be defined as an inline function.
7785 2016-12-17  Bruno Haible  <bruno@clisp.org>
7787         Avoid redefinition errors on MSVC.
7788         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
7789         * lib/unistd.in.h: Include <stdio.h> when necessary.
7791 2016-12-17  Bruno Haible  <bruno@clisp.org>
7793         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
7794         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
7795         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
7796         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
7797         WINT_MAX.
7799 2016-12-17  Bruno Haible  <bruno@clisp.org>
7801         Avoid autoconf warning.
7802         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
7803         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
7805 2016-12-17  Bruno Haible  <bruno@clisp.org>
7807         fpending: Revert workaround against Emacs bug.
7808         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
7809         The Emacs bug is fixed by Eli Zaretskii in
7810         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
7812 2016-12-17  Bruno Haible  <bruno@clisp.org>
7814         getlogin_r tests: Port to mingw.
7815         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
7816         regression introduced on 2014-05-19.
7818 2016-12-17  Bruno Haible  <bruno@clisp.org>
7820         getlogin: Port to newer mingw.
7821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
7822         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
7823         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
7824         HAVE_GETLOGIN.
7825         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
7826         HAVE_GETLOGIN.
7827         * doc/posix-functions/getlogin.texi: Mention the issue.
7828         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
7829         regression introduced on 2014-05-14.
7831 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7833         builtin-expect: improve port to IBM XL C
7834         Problem reported for z/OS by Daniel Richard G. in:
7835         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
7836         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
7837         Test for <builtins.h> directly.
7839         builtin-expect: port to IBM XL C
7840         Problem reported for z/OS by Daniel Richard G. in:
7841         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
7842         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
7843         Also allow __builtin_expect defined via a standard include file.
7845         regex: fix dependency
7846         Problem reported by Bruno Haible in:
7847         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
7848         * modules/regex: Depend on builtin-expect.
7850         builtin-expect: new module
7851         Fix fnmatch to use it.
7852         Problem reported for z/OS by Daniel Richard G.
7853         * lib/fnmatch.c (__builtin_expect):
7854         * lib/glob.c (__builtin_expect):
7855         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
7856         * lib/memmem.c (__builtin_expect) [!_LIBC]:
7857         * lib/scandir.c (__builtin_expect):
7858         * lib/strstr.c (__builtin_expect) [!_LIBC]:
7859         Remove macro; config.h now does this.
7860         * lib/gl_anytreehash_list1.h (add_to_bucket):
7861         * lib/regex_internal.h (BE):
7862         Assume __builtin_expect.
7863         * m4/builtin-expect.m4, modules/builtin-expect: New files.
7864         * modules/avltreehash-list, modules/fnmatch, modules/glob:
7865         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
7866         * modules/scandir, modules/strstr-simple:
7867         Depend on builtin-expect.
7869 2016-12-15  Bruno Haible  <bruno@clisp.org>
7871         init.sh: Add possibility to not delete temporary files.
7872         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
7873         to yes, don't erase the temporary directory.
7875 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7877         regex: fix integer-overflow bug in never-used code
7878         Problem reported by Clément Pit–Claudel in:
7879         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
7880         * lib/regex_internal.h: Include intprops.h.
7881         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
7882         behavior on integer overflow.
7883         * modules/regex (Depends-on): Add intprops.
7885         fpending: fix port to MinGW on Emacs
7886         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
7887         Problem reported by Eli Zaretskii in:
7888         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
7889         Is Plan 9 still a valid porting target, anyway?
7891 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7893         safe-alloc: use xalloc-oversized
7894         * lib/safe-alloc.c: Include xalloc-oversized.h.
7895         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
7896         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
7898         xalloc: do not exceed PTRDIFF_MAX
7899         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
7900         xalloc_oversized check, since objects larger than PTRDIFF_MAX
7901         bytes have pointer-subtraction problems.
7903         malloca: do not exceed PTRDIFF_MAX
7904         * lib/malloca.h: Include xalloc-oversized.
7905         (nmalloca): Use xalloc_oversized instead of rolling our own.
7906         * modules/malloca (Depends-on):
7907         * modules/relocatable-prog-wrapper (Depends-on):
7908         Add xalloc-oversized.
7910         quotearg: pacify GCC better
7911         * modules/quotearg (Depends-on): Add minmax, stdint.
7912         * lib/quotearg.c: Include minmax.h, stdint.h.
7913         (nslots): Now int, as there seems little point to going to extra
7914         work merely to support the INT_MAX slot, which nobody ever uses.
7915         (quotearg_n_options): Redo size-overflow checks to pacify GCC
7916         and to catch (mostly-theoretical) ptrdiff_t problems too.
7917         This can be done via one comparison.
7919 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
7921         xalloc-oversized: check for PTRDIFF_MAX too
7922         This avoids undefined behavior when subtracting pointers to
7923         objects containing more than PTRDIFF_MAX bytes.
7924         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
7925         Also return 1 if the result would exceed PTRDIFF_MAX>
7926         * modules/xalloc-oversized (Depends-on):
7927         Add stdint.
7929         dfa: fix glitches in previous commit
7930         Sorry, I don't know how I managed to commit the wrong version.
7931         * lib/dfa.c (MIN): Move up.
7932         (xpalloc): Now static.
7934         dfa: fix some unlikely integer overflows
7935         I found these while reviewing the recent Coverity-related fix.
7936         This patch changes part of dfa.c to prefer ptrdiff_t instead of
7937         size_t for object counts.  Using ptrdiff_t is the style typically
7938         used in Emacs; although it wastes a sign bit as sizes can never be
7939         negative, it makes -fsanitize=undefined more likely to catch
7940         integer overflows in index calculation, and nowadays the upside is
7941         typically more important than the downside.  Although perhaps the
7942         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
7943         of dfa.c already does, since it uses state_num which is signed),
7944         that is a bigger change and is not needed to fix the bugs I found.
7945         * lib/dfa.c: Include stdint.h and intprops.h.
7946         (TOKEN_MAX): New macro.
7947         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
7948         (charclass_index, parse_bracket_exp, addtok, insert, merge)
7949         (realloc_trans_if_necessary, free_mbdata):
7950         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
7951         This is safe because xpalloc checks that the sizes do not exceed
7952         either SIZE_MAX or PTRDIFF_MAX.
7953         (xpalloc): New function, mostly taken from Emacs.
7954         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
7955         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
7956         (charclass_index): Check for integer overflow in computing
7957         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
7958         added to it later.
7959         (alloc_position_set): Check for integer overflow.  On typical
7960         platforms this check has zero overhead, since the constant
7961         expression is false.
7962         (realloc_trans_if_necessary):
7963         Remove assertion, which I hope Coverity no longer needs.
7965         * modules/dfa (Depends-on): Add intprops, stdint.
7967 2016-12-12  Jim Meyering  <meyering@fb.com>
7969         dfa: add an assertion to avoid coverity false positive
7970         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
7971         warned that "newalloc1 - 2" could overflow.
7973 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
7975         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
7976         * dfa.h (DFA_CASE_FOLD): Remove.
7977         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
7979 2016-12-13  John W. Eaton  <gnu@jweaton.org>
7981         link: fix test to declare use of rename()
7982         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
7983         -Werror=implicit-function-declaration
7985 2016-12-12  Bruno Haible  <bruno@clisp.org>
7987         fpending: Port to native Windows with MSVC.
7988         * lib/fpending.c: Include stdio-impl.h.
7989         (__fpending): Include all known implementations. Err out if it's not
7990         ported.
7991         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
7992         * modules/fpending (Files): Add lib/stdio-impl.h.
7993         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
7995 2016-12-12  Bruno Haible  <bruno@clisp.org>
7997         stdioext: Port to native Windows with MSVC.
7998         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
7999         (struct _gl_real_FILE): New type.
8000         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
8001         Windows.
8002         * lib/fbufmode.c (fbufmode): Add code for native Windows.
8003         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
8004         other SystemV derived implementations.
8005         * lib/fpurge.c (fpurge): Likewise.
8006         * lib/freadable.c (freadable): Likewise.
8007         * lib/freadahead.c (freadahead): Likewise.
8008         * lib/freading.c (freading): Likewise.
8009         * lib/freadptr.c (freadptr): Likewise.
8010         * lib/freadseek.c (freadptrinc): Likewise.
8011         * lib/fseeko.c (fseeko): Likewise.
8012         * lib/fseterr.c (fseterr): Likewise.
8013         * lib/fwritable.c (fwritable): Likewise.
8014         * lib/fwriting.c (fwriting): Likewise.
8015         Reported by Gisle Vanem <gvanem@yahoo.no>.
8017 2016-12-11  Jim Meyering  <meyering@fb.com>
8019         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
8020         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
8021         to work with most shells, but not with the one provided by many
8022         Solaris 10 systems, so running configure with such a /bin/sh evokes
8023         e.g., "./configure: syntax error at line 33602: `(' unexpected".
8024         Reported by Assaf Gordon in
8025         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
8027 2016-12-10  Bruno Haible  <bruno@clisp.org>
8029         threadlib: Optimize out runtime test on Solaris >= 10.
8030         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
8031         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
8032         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
8034 2016-12-10  Bruno Haible  <bruno@clisp.org>
8036         stdint: Update doc about Solaris 9.
8037         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
8039 2016-12-09  Bruno Haible  <bruno@clisp.org>
8041         c-ctype tests: Fix link error on Solaris 9.
8042         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
8043         Reported at <https://savannah.gnu.org/bugs/?46827>.
8045 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
8047         dfa: fix performance bug that recomputes trans
8048         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
8049         25 on-demand changes.  The bug caused build_state to reset all
8050         d->trans elements to -2 even when d->trans was already non-null.
8051         Use C99 style decls after statements in this function.
8053         same-inode: port to MinGW
8054         Here st_ino is always 0, so change the definition of SAME_INODE so
8055         that 1 means the two files are the same, 0 with st_ino != 0 means
8056         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
8057         reported by Bruno Haible (Bug#25146).
8058         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
8059         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
8061 2016-12-04  Bruno Haible  <bruno@clisp.org>
8063         javacomp-script: Support Java 7 and 8.
8064         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
8065         target-version 1.7, 1.8.
8067 2016-12-02  Daiki Ueno  <ueno@gnu.org>
8069         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
8070         GPLv2" rewriting.
8072 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
8074         * gnulib-tool (func_import): Adhere to the license guideline when
8075         rewriting the license text to "LGPLv3+ or GPLv2":
8076         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
8078 2016-12-02  Bruno Haible  <bruno@clisp.org>
8080         localcharset: Avoid theoretical buffer overrun.
8081         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
8082         return value from setlocale if it would lead to a buffer overrun.
8084 2016-12-01  Bruno Haible  <bruno@clisp.org>
8086         Relicense some modules under LGPLv2+.
8087         Kevin Cernekee's approval is in
8088         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
8089         * modules/fseterr (License): Change to LGPLv2+.
8090         * modules/mbchar (License): Likewise.
8091         * modules/mbiter (License): Likewise.
8092         * modules/mbsnlen (License): Likewise.
8093         * modules/wcwidth (License): Likewise.
8095 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8097         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
8098         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
8099         OS/2 kLIBC.
8101 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8103         alphasort, scandir: Port to OS/2 kLIBC
8104         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
8105         declaration.
8106         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
8108 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8110         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
8111         * lib/relocatable.c (relocate): Do not touch pathname if it is started
8112         with '/@unixroot'.
8114 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8116         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
8117         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
8118         OS/2 kLIBC unless TCPV40HDRS is defined.
8120 2016-11-29  Jim Meyering  <meyering@fb.com>
8122         dfa: avoid new infinite loop
8123         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
8124         * lib/dfa.c (dfastate): When constructing a new state table, we could
8125         initially declare that we had found a match, and later find that
8126         constraints eliminate that possibility, yet continue to use the
8127         now stale "matched" indicator.  That would lead to an infinite loop.
8128         The solution is to update "matched" when necessary.
8129         Introduced by commit v0.1-983-g403adf1.
8131 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8133         dfa: avoid match middle in multibyte character
8134         * lib/dfa.c (transit_state): If fails in matching single byte characters
8135         on a state including period expression in non-UTF8 multibyte locales,
8136         skip trailing bytes.
8137         (dfa_supported): Revert previous change.
8139 2016-11-27  Jim Meyering  <meyering@fb.com>
8141         dfa: avoid false match in non-UTF8 multibyte locales
8142         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
8143         as "not supported" so that callers will resort to using regex-based
8144         matcher.  This will surely hurt performance, but correctness trumps
8145         performance here, and the affected locales are less and less relevant,
8146         these days.  See grep's bug report https://bugs.gnu.org/24975.
8148 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
8150         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
8151         * lib/ptsname_r.c: Include the appropriate headers.
8152         [__sun]: Delete sys/sysmacros.h include.
8153         [_AIX || __osf__]: Likewise.
8154         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
8156 2016-11-27  Pádraig Brady  <P@draigBrady.com>
8158         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
8159         * lib/md4.c (md4_process_bytes): The existing define is made internal
8160         in recent versions of glibc, so also use this new public define.
8161         * lib/md5.c (md5_process_bytes): Likewise.
8162         * lib/sha1.c (sha1_process_bytes): Likewise.
8163         * lib/sha256.c (sha256_process_bytes): Likewise.
8164         * lib/sha512.c (sha512_process_bytes): Likewise.
8166 2016-11-27  Pádraig Brady  <P@draigBrady.com>
8168         maint: use a more standard return from mbrtowc test
8169         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
8170         from the test program as this often indicates an
8171         unhandled case in the test program.
8172         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
8173         (gl_MBRTOWC_SANITYCHECK): Likewise.
8174         (gl_MBRTOWC_NULL_ARG2): Likewise.
8175         (gl_MBRTOWC_NUL_RETVAL): Likewise.
8177 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
8179         freopen: work around glibc bug with closed fd
8180         Work around glibc bug#15589, where freopen mishandles the case
8181         where stdin etc. are already closed.
8182         * doc/posix-functions/freopen.texi (freopen): Document the bug.
8183         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
8184         instead of __need_FILE, as the latter does not work with glibc.
8185         Include <fcntl.h>, for open flags.
8186         (rpl_freopen): Work around glibc bug.
8187         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
8188         * modules/freopen (Depends-on): Add fcntl-h.
8189         * tests/test-freopen.c (main): Test for bug.
8191 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8193         fnmatch: fix typo introduced on 2016-08-17
8194         This fixes the port to non-GCC compilers that lack __builtin_expect.
8195         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
8197         dfa: simplify with new function fillset
8198         * lib/dfa.c (fillset): New function.
8199         Use it for clarity when applicable.
8201         dfa: fix glitches with on-demand states
8202         Also, adjust commentary to better match new code.
8203         Some of these glitches predate the recent change.
8204         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
8205         only non-initial states.
8206         (dfastate): Rename locals to better match new roles.
8207         Move them into nested scopes if this is easy.
8208         Omit unnecessary calls to zeroset.
8209         Simplify test for whether to throw in the positions of state 0.
8210         Omit C99-ism (decl after statement) since Gawk still wants C89.
8211         (build_state): Omit unnecessary test and assignment.
8212         Fix some confusion that counted transition tables inaccurately
8213         and could cause a memory leak.
8214         (dfaexec_main): Redo to make it clearer to the compiler that
8215         -1 and -2 are the only negative state numbers here.
8217 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8219         dfa: addition of new state on demand
8220         * src/dfa.c (dfastate): Add argument UC, the current input character.
8221         Fill only a group including the character in transition table.
8222         (realloc_trans_if_necessary): Add the dummy state which means that a
8223         transition table is assigned but the next state is not assigned.
8224         (build_state): Return the next state.  All callers updated.
8225         (transit_state_singlebyte): If we get the dummy state,
8226         fill the transition table.
8227         (dfaexec_main): Handle the dummy state.
8228         (free_mbdata, dfafree): Consider the dummy state.
8230 2016-11-24  Daiki Ueno  <ueno@gnu.org>
8232         srclist: sync with released gettext
8233         * config/srclist.txt: Set "release" option to the files under
8234         $GETTEXT.
8236 2016-11-24  Daiki Ueno  <ueno@gnu.org>
8238         srclist: add "release" option
8239         * config/srclist.txt: Change the format so that the first column
8240         of each line points to the top-level directory of the source
8241         archive.
8242         * config/srclist-update: Accept "release" option that checks files
8243         from the most recently tagged revision in the source archive.
8245 2016-11-21  Bruno Haible  <bruno@clisp.org>
8247         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
8248         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
8249         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
8250         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
8251         Inline and remove member function 'rpl ()' of the wrapper struct.
8253 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
8255         dfa: fix logic typo
8256         Problem reported by Stephane Chazelas (Bug#24973).
8257         * lib/dfa.c (using_simple_locale): Fix typo that caused some
8258         non-simple locales like fr_FR to be treated as simple.
8260 2016-11-20  Jim Meyering  <meyering@fb.com>
8262         fix test driver leaks: exclude, malloc, realloc
8263         * tests/test-exclude.c (main): Fix trivial leak.
8264         * tests/test-malloc-gnu.c (main): Likewise.
8265         * tests/test-realloc-gnu.c (main): Likewise.
8266         With these changes, grep's tests are now leak free.
8267         I.e., running them with ASAN elicits no failure:
8268           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
8269             AM_LDFLAGS='-fsanitize=address -static-libasan' check
8271 2016-11-11  Bruno Haible  <bruno@clisp.org>
8273         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
8274         * modules/libunistring: (License): Change from LGPL to
8275         "LGPLv3+ or GPLv2".
8276         * modules/libunistring-optional: Likewise.
8277         * modules/unicase/*: Likewise.
8278         * modules/uniconv/*: Likewise.
8279         * modules/unictype/*: Likewise.
8280         * modules/unigbrk/*: Likewise.
8281         * modules/unilbrk/*: Likewise.
8282         * modules/uniname/*: Likewise.
8283         * modules/uninorm/*: Likewise.
8284         * modules/unistdio/*: Likewise.
8285         * modules/unistr/*: Likewise.
8286         * modules/uniwbrk/*: Likewise.
8287         * modules/uniwidth/*: Likewise.
8289 2016-11-12  Bruno Haible  <bruno@clisp.org>
8291         Relicense some modules under LGPLv2+.
8292         Paul Eggert's approval is in
8293         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
8294         Eric Blake's approval is in
8295         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
8296         Ludovic Courtès's approval is in
8297         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
8298         * modules/isnand-nolibm (License): Change to LGPLv2+.
8299         * modules/isnanf-nolibm (License): Likewise.
8300         * modules/isnanl-nolibm (License): Likewise.
8302 2016-11-19  Bruno Haible  <bruno@clisp.org>
8304         Relicense some modules under LGPLv2+.
8305         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
8306         modules/vasnprintf.
8307         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
8308         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
8309         All other significant changes to the files in lib/ of these modules
8310         are from me.
8311         * modules/memcmp2 (License): Change to LGPLv2+.
8312         * modules/amemxfrm (License): Likewise.
8313         * modules/fpieee (License): Likewise.
8314         * modules/fpucw (License): Likewise.
8315         * modules/frexp-nolibm (License): Likewise.
8316         * modules/frexpl-nolibm (License): Likewise.
8317         * modules/printf-frexp (License): Likewise.
8318         * modules/printf-frexpl (License): Likewise.
8319         * modules/printf-safe (License): Likewise.
8320         * modules/signbit (License): Likewise.
8322 2016-11-17  Bruno Haible  <bruno@clisp.org>
8324         Enable Unicode decoder safety unconditionally.
8325         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
8326         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
8327         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8328         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8329         * lib/unistr/u8-prev.c (u8_prev): Likewise.
8330         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
8331         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
8332         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
8333         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
8334         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
8335         * lib/unistr/u16-prev.c (u16_prev): Likewise.
8336         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
8337         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
8338         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
8339         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
8340         * lib/unistr/u32-prev.c (u32_prev): Likewise.
8341         * lib/unistr/u32-next.c (u32_next): Likewise.
8342         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
8343         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
8344         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
8345         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
8346         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
8347         CONFIG_UNICODE_SAFETY tests unconditionally.
8348         * tests/unistr/test-u32-mblen.c (main): Likewise.
8349         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
8350         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
8351         * tests/unistr/test-u32-next.c (main): Likewise.
8352         * tests/unistr/test-u32-strmblen.c (main): Likewise.
8353         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
8354         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
8355         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
8356         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
8357         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8358         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
8359         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
8360         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
8361         * lib/unistr/u16-check.c (u16_check): Update comment.
8362         * NEWS: Mention the changes that callers should be aware of.
8364 2016-11-19  Bruno Haible  <bruno@clisp.org>
8366         relocatable-prog-wrapper: Fix breakage on Cygwin.
8367         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
8368         (Depends-on): Remove intprops.
8369         * lib/relocwrapper.c: Update dependency tree.
8370         (strerror): Undefine.
8371         * build-aux/install-reloc (func_create_wrapper): Do not compile
8372         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
8374 2016-11-19  Bruno Haible  <bruno@clisp.org>
8376         strerror: Make it compile in C++ mode.
8377         * lib/strerror.c (strerror): Ignore the return value of memcpy().
8379 2016-11-15  Pedro Alves  <palves@redhat.com>
8381         sys_time: add gnulib::timeval for C++
8382         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
8383         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
8384         timeval macro.
8386 2016-11-14  Pedro Alves  <palves@redhat.com>
8388         snippet/c++defs: fix real-floating arg functions in C++ mode
8389         Also, define isfinite, isinf, isnan, signbit in the gnulib
8390         namespace instead of in the global namespace.
8391         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
8392         (_GL_END_NAMESPACE): New.
8393         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
8394         (isfinite, isinf, isnan, signbit) [__cplusplus &&
8395         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
8396         instead of in the global namespace.
8397         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
8398         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
8399         of in the global namespace.
8401 2016-11-13  Jim Meyering  <meyering@fb.com>
8403         strftime: don't use __THROW
8404         Each use of __THROW would provoke this from gcc-7-to-be:
8406           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
8407             on unit local functions [-Wattributes]
8408           static int iso_week_days (int, int) __THROW;
8409           ^~~~~~
8410         * lib/strftime.c (__THROW): Don't define.
8411         Remove each use of __THROW.
8412         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
8413         (tm_diff, iso_week_days, __strftime_internal): Likewise.
8415 2016-11-14  Paul Eggert  <eggert@union>
8417         obstack: port to gcc -fcheck-pointer-bounds
8418         Problem found by 'make check' failure on bleeding-edge coreutils
8419         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
8420         6.2.0-5ubuntu12), configured via "./configure
8421         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
8422         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
8423         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
8424         New macro, copied from fts_.h.
8425         (struct _obstack_chunk.contents): Use it.
8427 2016-11-14  Eric Blake  <eblake@redhat.com>
8429         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
8430         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
8431         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
8433 2016-11-14  Pádraig Brady  <P@draigBrady.com>
8435         strptime: fix compile error in recent change
8436         * lib/strptime.c (__strptime_internal): Fix ported code.
8438 2016-11-11  Bruno Haible  <bruno@clisp.org>
8440         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
8441         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
8442         (func_import): Extend determination of license_incompatibilities.
8443         (func_create_testdir): Extend table of license compatibility. Handle
8444         also the licenses GPLv3+, GPL, LGPLv3+.
8446 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8448         strftime: tune %q
8449         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
8451         Merge strftime.c changes from glibc
8452         This incorporates:
8453         2007-10-16 [BZ #5184] Add tzset_called argument
8454         2008-06-13 [BZ #6612] pass reference to tzset_called around
8455         2009-10-30 Implement Burmese language locale for Myanmar
8456         2010-01-09 Add support for XPG7 testing
8457         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
8458         2015-10-20 Convert miscellaneous function definitions to prototype style
8459         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
8460         it anyway and this lessens the difference between gnulib and glibc.
8461         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
8462         (__THROW): Define if standard headers do not.
8463         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
8464         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
8465         Declare with __THROW.
8466         (__strftime_internal): Rename from strftime_case_. Add arg for
8467         whether tzset is called.  All uses changed.  Call tzset at most
8468         once.  Allow %OC, for Burmese.
8469         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
8470         Don't assume values are in range.
8472 2016-11-12  Eric Blake  <eblake@redhat.com>
8474         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
8475         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
8476         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
8477         different value.
8479 2006-11-12  Pedro Alves  <palves@redhat.com>
8481         Fix gnulib C++ namespace support and std::frexp
8482         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
8483         _GL_CXXALIASWARN.
8485 2006-11-12  Pedro Alves  <palves@redhat.com>
8487         GNULIB_NAMESPACE::func need not pull in rpl_func
8488         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
8489         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
8490         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
8491         struct instead of a function pointer.
8493 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
8495         manywarnings: fix -Wno-missing-field-initializers detection
8496         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
8497         to be independent of -Wunused-variable.  I.E. ensure the latter
8498         warning doesn't occur so that detection of the former is accurate.
8500 2016-11-05  Pádraig Brady  <pbrady@fb.com>
8502         strftime,strptime: support %q to represent the quarter
8503         * lib/strftime.c (strftime_case_): Add %q case.
8504         * lib/strptime.c (__strptime_internal): Likewise.
8505         * tests/test-strftime.c (quarter_test): A new test case.
8507 2016-11-03  Eric Blake  <eblake@redhat.com>
8509         bootstrap: Fix get_version() for AIX 5.3
8510         * build-aux/bootstrap (get_version): Factor out sed script, since
8511         indented comments choke AIX 5.3 sed.
8512         Reported-by: Michael Felt <aixtools@gmail.com>
8514 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8516         intprops: port to older XL C
8517         Problem reported by Alexander Samoilov in:
8518         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
8519         http://savannah.nongnu.org/bugs/?49448
8520         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
8521         Define to 1 only for XL C 12.1 or later, since this bug
8522         occurs in XL C for AIX 6.0 but not in 12.1.
8524 2016-11-02  Pádraig Brady  <P@draigBrady.com>
8526         backupfile: initialize default suffix within the implementation
8527         * lib/backupfile.c (find_backup_file_name): Initialize the
8528         global variable here, to simplify usage, and to only call
8529         getenv() when needed.
8531 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8533         futimens: remove FIXME for old Linux kernels
8534         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
8535         this in 2012" FIXME, like that for utimensat.
8537         utimensat: remove FIXME for old Linux kernels
8538         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
8539         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
8540         this in 2012" FIXME, by assuming the file system bug is absent
8541         unless demonstrated to be present.  We no longer need to worry
8542         about Linux kernel 2.6.32 when building with newer kernels.
8544 2016-10-16  Bruno Haible  <bruno@clisp.org>
8546         qsort_r: Fix macrology for platforms that lack the function.
8547         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
8548         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
8549         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
8550         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
8551         not exist.
8552         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
8553         the function exists.
8554         * modules/qsort_r: Add comments.
8556 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8558         sys_types: fix Texinfo typos
8559         * doc/glibc-functions/gnu_dev_major.texi:
8560         * doc/glibc-functions/gnu_dev_makedev.texi:
8561         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
8563 2016-10-26  John David Anglin  <dave.anglin@bell.net>
8565         getprogname: port to HP-UX
8566         See Bug#24805.
8567         * lib/getprogname.c (getprogname) [__hpux]: Port.
8568         * tests/test-getprogname.c (STREQ) [__hpux]:
8569         Special-case for HP-UX limitations on program name length.
8571 2016-10-20  Bruno Haible  <bruno@clisp.org>
8573         Update doc about target platforms.
8574         * doc/gnulib-intro.texi (Target Platforms): Update list.
8576 2016-10-15  Bruno Haible  <bruno@clisp.org>
8578         opendir, readdir, closedir: Relicense under LGPLv2+.
8579         * modules/opendir (License): Change to LGPLv2+.
8580         * modules/readdir (License): Likewise.
8581         * modules/closedir (License): Likewise.
8583 2016-10-16  Bruno Haible  <bruno@clisp.org>
8585         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8586         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
8587         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
8588         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
8589         HAVE_DECL_STRERROR_R.
8591 2016-10-16  Bruno Haible  <bruno@clisp.org>
8593         Make the 'argp' module work without the 'error' module.
8594         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
8596 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8598         diffseq: restore TOO_EXPENSIVE heuristic
8599         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
8600         (Bug#24715).  The simplest solution is to restore the
8601         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
8602         using a higher threshold to avoid Bug#16848 on smaller files.
8603         * lib/diffseq.h (struct context): Restore member too_expensive.
8604         (struct partition): Restore members lo_minimal, hi_minimal.
8605         (diag, compareseq): Restore arg find_minimal.  All uses changed.
8606         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
8607         1993 to make 'diff' run faster (but not as well) on large inputs,
8608         but use a threshold of 4096 instead of the old 256.
8609         * lib/fstrcmp.c (strcmp_bounded):
8610         * lib/git-merge-changelog.c (compute_differences):
8611         Adjust to diffseq.h changes.
8613 2016-10-22  Bruno Haible  <bruno@clisp.org>
8615         iconv: Avoid compilation error when bootstrapping GNU libiconv.
8616         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
8617         declaration yet, define ICONV_CONST to empty.
8619 2016-10-15  Bruno Haible  <bruno@clisp.org>
8621         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
8622         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
8623         module.
8625 2016-10-16  Bruno Haible  <bruno@clisp.org>
8627         system-quote tests: Avoid compiler warning on AIX.
8628         * tests/test-system-quote-child.c (fopen): Redefine like the system's
8629         <stdio.h> does.
8631 2016-10-16  Bruno Haible  <bruno@clisp.org>
8633         Fix some "gcc -Wall" warnings.
8634         * tests/test-ffsl.c (main): Use variable x, not i.
8635         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
8636         freopen.
8637         * tests/test-sethostname1.c (main): Explicitly ignore the return value
8638         of sethostname.
8640 2016-10-16  Bruno Haible  <bruno@clisp.org>
8642         gnulib-tool: Make --create-testdir on all modules work again.
8643         * gnulib-tool (func_create_testdir): Don't include the
8644         non-recursive-gnulib-prefix-hack module.
8646 2016-10-21  Daiki Ueno  <ueno@gnu.org>
8648         libunistring: change the maintainer to 'all'
8649         * modules/gen-uni-tables, modules/libunistring:
8650         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
8651         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
8652         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
8653         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
8654         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
8655         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
8656         * modules/uniwidth/*: Change the maintainer to 'all'.
8658 2016-10-16  Bruno Haible  <bruno@clisp.org>
8660         Simplify "configure: checking ..." messages.
8661         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
8662         AC_MSG_NOTICE.
8663         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8665 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
8667         quotearg-tests: pacify gcc -Wall
8668         Problem reported by Bruno Haible in:
8669         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
8670         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
8671         * tests/test-quotearg.h: ... from here.
8673 2016-10-20  Pádraig Brady  <P@draigBrady.com>
8675         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
8676         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
8677         Needed on Centos <= 4.
8679 2016-10-20  Jim Meyering  <meyering@fb.com>
8681         printf.m4: fix a bug in detecting printf %j support
8682         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
8683         uintmax_t is defined in neither stdint.h nor inttypes.h.
8684         Before, this macro might have mistakenly set
8685         gl_cv_func_printf_sizes_c99=yes on such a system.
8686         Spotted by Zev Weiss.
8688 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
8690         sched: substitute HAVE_SYS_CDEFS_H too
8691         Problem reported by Tom G. Christensen in:
8692         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
8693         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
8694         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
8696 2016-10-19  Pádraig Brady  <P@draigBrady.com>
8698         quotearg: never write beyond the returned length
8699         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
8700         scan of the string when we initially encounter a single quote when
8701         shell quoting, so that if we then switch to a more concise quoting method
8702         we will not have written beyond that returned length.
8703         This is significant for sh-quote, which has separate routines
8704         to determine the length and do the actual quoting.
8705         * tests/test-quotearg.h: Reinstate the buffer bounds checking
8706         now that we never write more than the returned length.
8708 2016-10-18  Bruno Haible  <bruno@clisp.org>
8710         getprogname tests: Avoid failure in packages that use libtool.
8711         * tests/test-getprogname.c (main): Strip "lt-" prefix.
8712         Based on a patch by Jim Meyering.
8714 2016-10-16  Bruno Haible  <bruno@clisp.org>
8716         getprogname: Fix test failure on Cygwin. Comments.
8717         * lib/getprogname.h: Add comments.
8718         * lib/getprogname.c: Add comments. Fix #elif indentation.
8719         * tests/test-getprogname.c (main): On Cygwin, expect a result without
8720         ".exe" suffix.
8722 2016-10-16  Bruno Haible  <bruno@clisp.org>
8724         Make sure the libunistring detection rejects older versions with a
8725         known bug.
8726         * modules/unistr/u8-strtok (configure.ac): Bump required version.
8727         * modules/unistr/u16-strtok (configure.ac): Likewise.
8728         * modules/unistr/u32-strtok (configure.ac): Likewise.
8730 2016-10-18  Bruno Haible  <bruno@clisp.org>
8732         sh-quote, system-quote: revert regression of unit test.
8733         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
8734         * tests/test-system-quote-main.c (check_one): Likewise.
8736 2016-10-16  Pádraig Brady  <P@draigBrady.com>
8738         quotearg: fix stale tests
8739         * tests/test-quotearg.c [locale_results]: Add the missing str7
8740         entries to the expected results.
8741         * tests/test-system-quote-main.c (check_one): Don't enforce that we
8742         don't write beyond the returned length, since that's no longer the
8743         case if we switch to a more concise quoting style.
8744         * tests/test-sh-quote.c (check_one): Likewise.
8745         (main): Adjust for the new more concise quoting style.
8746         Reported by Bruno Haible.
8748 2016-10-16  Jim Meyering  <meyering@fb.com>
8750         non-recursive-gnulib-prefix-hack: fix inconsequential typo
8751         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
8752         to "$1".  This macro is always invoked with $1 == lib.
8753         Spotted by Bruno Haible
8755 2016-10-16  Bruno Haible  <bruno@clisp.org>
8757         Fix a test crash.
8758         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
8759         fails.
8761 2016-10-16  Pádraig Brady  <P@draigBrady.com>
8763         test-limits-h: suppress -Woverlength-strings
8764         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
8766 2016-10-15  Bruno Haible  <bruno@clisp.org>
8768         gettime, timespec, utimens: Relicense under LGPL.
8769         * modules/gettime (License): Change to LGPL.
8770         * modules/timespec (License): Likewise.
8771         * modules/utimens (License): Likewise.
8773 2016-10-14  Bruno Haible  <bruno@clisp.org>
8774             Pádraig Brady  <P@draigBrady.com>
8776         canonicalize-lgpl: Support the case path_max > INT_MAX.
8777         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
8778         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
8780 2016-10-13  Jim Meyering  <meyering@fb.com>
8782         getprogname: IBM z/OS: avoid NULL-dereference
8783         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
8784         upon strdup failure.
8786 2016-10-12  Jim Meyering  <meyering@fb.com>
8788         test-stdint: use _GL_VERIFY rather than "verify" for some tests
8789         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
8790         and an abbreviated diagnostic rather than verify with the full one,
8791         because the full-length strings would evoke warnings from gcc with
8792         -Woverlength-strings.
8794 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8796         stdint: port SIZE_MAX to glibc s390
8797         Problem reported by Eric Blake in:
8798         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
8799         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
8800         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
8801         correct type, if possible.
8803 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
8805         getprogname: port to IBM z/OS
8806         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
8808 2016-10-11  Jim Meyering  <meyering@fb.com>
8810         maint: remove stray space after "." in AC_DEFINE comment.
8811         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
8812         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8814 2016-10-05  Jim Meyering  <meyering@fb.com>
8816         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
8817         * lib/long-options.c (parse_long_options): Add a break statement
8818         to avoid this new warning/failure:
8819         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
8820           --create-testdir --dir=/t/x --with-tests --test long-options
8821         ../../gllib/long-options.c: In function 'parse_long_options':
8822         ../../gllib/long-options.c:66:12: error: this statement may \
8823           fall through [-Werror=implicit-fallthrough]
8824                    (*usage_func) (EXIT_SUCCESS);
8825                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
8827 2016-10-05  Jim Meyering  <meyering@fb.com>
8829         utimecmp: avoid new GCC 7 warning from -Wbool-operation
8830         Testing this module would fail when using GCC 7 like this:
8831         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
8832           --dir=/tmp/x --with-tests --test utimecmp
8833         ../../gllib/utimecmp.c: In function ‘utimecmp’:
8834         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
8835           [-Werror=bool-operation]
8836                          time_t s = src_s & ~ (res == 2 * BILLION);
8837                                             ^
8838         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
8839           [-Werror=bool-operation]
8840                src_s &= ~ (res == 2 * BILLION);
8841                         ^
8842         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
8843         Instead, make it explicit that we intend to apply it to 0 or 1.
8845 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8847         dfa: save memory for states
8848         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
8849         states if dfa has a lot of caches.
8851 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
8853         wchar, wctype-h: fix for MinGW 3.22.2
8854         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
8855         special invocation, to fix issues with MinGW 3.22.2 wchar.h
8856         when included from <string.h>.
8857         * lib/wctype.in.h [__MINGW32__]: Add special invocation
8858         convention for MinGW 3.22.2, to solve issues with their
8859         wctype.h when included from <ctype.h>.
8861 2016-10-05  Jim Meyering  <meyering@fb.com>
8863         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
8864         * lib/long-options.c (parse_long_options): Add a break statement
8865         to avoid this new warning/failure:
8866         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
8867           --create-testdir --dir=/t/x --with-tests --test long-options
8868         ../../gllib/long-options.c: In function ‘parse_long_options’:
8869         ../../gllib/long-options.c:66:12: error: this statement may \
8870           fall through [-Werror=implicit-fallthrough]
8871                    (*usage_func) (EXIT_SUCCESS);
8872                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
8874         utimecmp: avoid new GCC 7 warning from -Wbool-operation
8875         Testing this module would fail when using GCC 7 like this:
8876         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
8877           --dir=/tmp/x --with-tests --test utimecmp
8878         ../../gllib/utimecmp.c: In function ‘utimecmp’:
8879         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
8880           [-Werror=bool-operation]
8881                          time_t s = src_s & ~ (res == 2 * BILLION);
8882                                             ^
8883         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
8884           [-Werror=bool-operation]
8885                src_s &= ~ (res == 2 * BILLION);
8886                         ^
8887         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
8888         Instead, make it explicit that we intend to apply it to 0 or 1.
8890 2016-10-03  Pádraig Brady  <P@draigBrady.com>
8892         quotearg: minimize shell quoting using double quotes
8893         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
8894         quote in encountered then use double quotes (c style quoting)
8895         when possible, as it simplifies the quoting.
8896         * tests/test-quotearg-simple.c: Add test cases.
8897         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
8898         for the fact we now may write beyond the returned length.
8900 2016-10-02  Jim Meyering  <meyering@fb.com>
8902         vasnprintf.c: avoid spurious warning from GCC 7
8903         The presence of cpp directives renders this "FALLTHROUGH" comment
8904         ineffective, so does not suppress the -Wimplicit-fallthrough warning
8905         from GCC 7 built from git on 2016-10-02.
8906         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
8907         directives, so that it takes effect once again.  This is clearly
8908         not a proper change, and I will revert it once this bug is fixed:
8909         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
8911 2016-10-01  Jim Meyering  <meyering@fb.com>
8913         getprogname: correct the test for a __progname variable
8914         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
8915         and AC_LINK_IFELSE to check for a global __progname.  If found,
8916         define HAVE_VAR___PROGNAME.
8917         * lib/getprogname.c (getprogname): Reflect the new name of the
8918         feature- checked preprocessor symbol:
8919         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
8921 2016-09-28  Jim Meyering  <meyering@fb.com>
8923         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
8924         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
8925         fall-through case with a /* fallthrough */ comment.
8927         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
8928         * lib/dfa.c (dfassbuild): Mark the end of this case with a
8929         /* fallthrough */ comment.
8931         getprogname: avoid __progname vs program_invocation_short_name pitfall
8932         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
8933         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
8934         not with Fedora 24's glibc-2.23.1-10.
8935         * lib/getprogname.c (__progname): Move this declaration down...
8936         (getprogname): ... into the #elif block where used, and make it
8937         explicitly "extern".
8939         getprogname: port to OpenBSD 5.1
8940         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
8941         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
8942         * modules/getprogname (configure.ac): Move most of this code...
8943         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
8944         increment serial number, and add a test for __progname.
8945         https://bugs.gnu.org/24562
8946         Reported by Nelson H. F. Beebe.
8948 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8950         sched: port to GCC 6.2.1 on macOS Sierra
8951         Problem reported by Denis Davydov in:
8952         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
8953         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
8954         Include <sys/cdefs.h> before <sched.h>.
8955         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
8956         so that we needn’t worry about the sched.h include bug here.
8957         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
8958         and include it before <sched.h> if it exists, when
8959         checking for <sched.h>.
8961         tests/init.sh: port Alpine fix to AIX 7.1
8962         * tests/init.sh (compare_): When attempting to use diff -U3,
8963         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
8964         diff -u not outputting a space after leading '+', as the users
8965         of 'compare' should not be that picky about its output format.
8966         In the AIX 7.1 case, return with diff exit status (or with 2 if
8967         trouble), instead of some random nonzero exit status.
8968         * tests/test-init.sh (test_compare): Remove space after leading
8969         '+', so that AIX 7.1 'diff' passes the test.
8971 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8973         nl_langinfo: pacify GCC
8974         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
8975         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
8977         stdint: also set GL_GENERATE_LIMITS_H
8978         Problem reported by Jim Meyering in:
8979         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
8980         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
8982         limits-h, stdint: Don't assume extensions, fix typo
8983         * m4/limits-h.m4 (gl_LIMITS_H):
8984         * m4/stdint.m4 (gl_STDINT_H):
8985         Don't assume AC_USE_SYSTEM_EXTENSIONS.
8986         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
8987         reported by Jim Meyering in:
8988         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
8990 2016-09-21  Jim Meyering  <meyering@fb.com>
8992         getprogname: port to AIX
8993         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
8994         and strdup to obtain a short program name string.  Using code from
8995         Bruno Haible and an idea from Bastien ROUCARIÈS, in
8996         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
8997         Assaf Gordon reported that this new file would fail to compile on
8998         AIX-7.1 32bit.
9000 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9002         extensions: fix typo in comment
9003         * m4/extensions.m4: Sync from Autoconf master.
9005         stdint: support new _WIDTH macros
9006         * doc/posix-headers/stdint.texi: Document this.
9007         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
9008         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
9009         support for INTMAX_WIDTH, etc. as well as for support for just C99.
9010         * modules/stdint (Depends-on): Add limits-h.
9011         (Makefile.am): Substitute HAVE_C99_STDINT_H.
9012         * modules/stdint-tests (Depends-on): Add extensions, so that
9013         INTMAX_MAX etc. are defined.
9014         * tests/test-stdint.c: Verify the new macros.
9016         limits-h: new module
9017         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
9018         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
9019         * doc/posix-headers/limits.texi: Document new module.
9020         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
9021         * modules/limit-h-tests, tests/test-limits-h.c: New files.
9023         stdio: don't redefine __USE_MINGW_ANSI_STDIO
9024         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
9025         if it is already defined.  Apparently GNU Emacs relies on this.  See:
9026         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
9028 2016-09-15  Eric Blake  <eblake@redhat.com>
9030         sys_types: avoid glibc 2.25 warnings about major()
9031         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
9032         older autoconf.
9033         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
9034         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
9035         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
9036         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
9038         mountlist: include sysmacros.h for glibc
9039         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
9040         AC_HEADER_MAJOR.
9041         * lib/mountlist.c (includes): Use correct headers.
9043 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9045         extensions: port to more ISO C TSes
9046         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
9047         master, to add support for more recent ISO C TRs and TSes.
9049 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9051         intprops: new macro TYPE_WIDTH
9052         * lib/intprops.h (TYPE_WIDTH): New macro.
9053         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
9054         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
9055         * lib/parse-datetime.y (parse_datetime2):
9056         Use it.
9058         extensions: port to recent ISO C TRs
9059         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9060         Sync from Autoconf master, to add support for recent ISO C TRs.
9061         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
9062         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
9063         the MinGW option is not an extension.
9065 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
9067         dfa: port to Solaris 9
9068         Problems reported by Tom G. Christensen in:
9069         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
9070         * modules/dfa (Depends-on): Add isblank.
9071         * modules/dfa-tests (dfa_match_aux_LDADD):
9072         Rename from test_stat_LDADD, to fix typo.
9073         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
9075 2016-09-10  Jim Meyering  <meyering@fb.com>
9077         strverscmp: avoid link failure on OS X
9078         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
9079         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
9081 2016-08-16  Jim Meyering  <meyering@fb.com>
9083         dfa: new module, importing grep's DFA matcher
9084         Since grep's DFA matcher is now being used by two gnulib-enabled
9085         projects, grep and sed, it makes sense to version-control its
9086         sources and unit tests in one place: here.
9087         * modules/dfa: New module.
9088         * modules/dfa-tests: New file.
9089         * lib/dfa.c: New file, from grep.
9090         * lib/dfa.h: Likewise.
9091         * lib/localeinfo.c: Likewise.
9092         * lib/localeinfo.h: Likewise.
9093         * tests/dfa-match-aux.c: Likewise.
9094         * tests/dfa-invalid-char-class.sh: Likewise.
9095         * tests/dfa-match.sh: Likewise, with minor changes.
9096         * MODULES.html.sh (Misc): Add "dfa" to this list.
9098 2016-09-09  Jim Meyering  <meyering@fb.com>
9100         getprogname-tests: don't depend on assert-h
9101         * modules/getprogname-tests (Depends-on): Remove assert-h.
9102         It was not needed, and in fact would cause build failure for
9103         coreutils on some systems.  Reported by Assaf Gordon in https:
9104         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
9106 2016-09-07  Jim Meyering  <meyering@fb.com>
9108         getprogname-tests: work also when EXEEXT is nonempty
9109         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
9110         * tests/test-getprogname.c (main): Use it.
9111         Suggested by Gisle Vanem.
9113 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
9115         getprogname: fix errors in previous change
9116         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
9117         s/program_invocation_name/base/
9118         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
9120 2016-09-08  Pádraig Brady  <P@draigBrady.com>
9122         parse-datetime: restrict debug output to input string
9123         * lib/parse-datetime.y (parse_datetime2): If we parse
9124         all of the input but determine it's invalid, ensure
9125         we don't output the now invalid input pointer.
9126         This issue was seen with `date -d 'now +1'`.
9128 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9130         flexmember: new macro FLEXALIGNOF
9131         * lib/flexmember.h: Include <stddef.h>, for offsetof.
9132         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
9133         this macro.  Update comments.
9135 2016-09-07  Jim Meyering  <meyering@fb.com>
9137         getprogname: port to systems with __argv (mingw, msvc)
9138         * lib/getprogname.c (getprogname): Include "dirname.h" and use
9139         last_component: more general than open coding it with hard-coded "/".
9140         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
9141         * modules/getprogname (Depends-on): Add dirname-lgpl.
9142         (configure.ac): Check for __argv in <stdlib.h>.
9143         * modules/getprogname-tests: New file.
9144         * tests/test-getprogname.c: New file.
9145         Suggested by Gisle Vanem in
9146         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
9148 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9150         flexmember: port better to GCC + valgrind
9151         With a char[] flexible array member in a struct with nontrivial
9152         alignment, GCC-generated code can access past the end of the
9153         array, because GCC assumes there are padding bytes to get the
9154         struct aligned.  So the common idiom of malloc (offsetof (struct
9155         s, m), n) does not properly allocate an n-byte trailing member, as
9156         malloc’s argument should be the next multiple of alignof (struct s).
9157         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
9158         Although C11 apparently permits this GCC optimization (i.e., there
9159         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
9160         See the thread containing:
9161         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
9162         * lib/flexmember.h: New file.
9163         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
9164         * lib/localename.c, lib/time_rz.c:
9165         Include flexmember.h.
9166         * lib/fnmatch_loop.c (struct patternlist):
9167         * lib/localename.c (struct hash_node):
9168         Use FLEXIBLE_ARRAY_MEMBER.
9169         * lib/fnmatch_loop.c (EXT):
9170         * lib/fts.c (fts_alloc):
9171         * lib/glob.c (glob_in_dir):
9172         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
9173         * lib/localename.c (gl_lock_define_initialized):
9174         * lib/time_rz.c (tzalloc):
9175         Use FLEXSIZEOF instead of offsetof.
9176         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9177         Check that the size of the struct can be taken.
9178         * modules/flexmember (Files): Add lib/flexmember.h.
9179         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
9180         Add flexmember.
9182 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9184         getprogname: port to Solaris 10
9185         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
9186         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
9187         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
9189         stdalign: correct mistake in alignof doc
9190         Problem reported by Joseph Myers in:
9191         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
9192         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
9193         alignof(S) where S is a structure containing a flexible array
9194         member.  The Gnulib substitute does not support this, but C11 does.
9196 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9198         main.mk: remove sc_program_name, since there is no more need to
9199         use set_program_name in tools (getprogname is enough for most
9200         of the cases).
9201         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
9202         * top/maint.mk (sc_program_name): Remove.
9204 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9206         Port tests away from progname, since modules that need the
9207         program name already depend on getprogname.
9208         * modules/acl-tests (Depends-on): Remove progname.
9209         * modules/argmatch (Depends-on): Likewise.
9210         * modules/argmatch-tests (Depends-on): Likewise.
9211         * modules/argp-tests (Depends-on): Likewise.
9212         * modules/argp-version-etc-tests (Depends-on): Likewise.
9213         * modules/array-list-tests (Depends-on): Likewise.
9214         * modules/array-oset-tests (Depends-on): Likewise.
9215         * modules/avltree-list-tests (Depends-on): Likewise.
9216         * modules/avltree-oset-tests (Depends-on): Likewise.
9217         * modules/avltreehash-list-tests (Depends-on): Likewise.
9218         * modules/carray-list-tests (Depends-on): Likewise.
9219         * modules/copy-file-tests (Depends-on): Likewise.
9220         * modules/exclude-tests (Depends-on): Likewise.
9221         * modules/fchownat-tests (Depends-on): Likewise.
9222         * modules/fdopendir-tests (Depends-on): Likewise.
9223         * modules/filenamecat-tests (Depends-on): Likewise.
9224         * modules/fstatat-tests (Depends-on): Likewise.
9225         * modules/fstrcmp-tests (Depends-on): Likewise.
9226         * modules/linked-list-tests (Depends-on): Likewise.
9227         * modules/linkedhash-list-tests (Depends-on): Likewise.
9228         * modules/mkdirat-tests (Depends-on): Likewise.
9229         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
9230         * modules/nonblocking-socket-tests (Depends-on): Likewise.
9231         * modules/obstack-printf-tests (Depends-on): Likewise.
9232         * modules/openat-tests (Depends-on): Likewise.
9233         * modules/parse-datetime-tests (Depends-on): Likewise.
9234         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
9235         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
9236         * modules/quotearg-simple-tests (Depends-on): Likewise.
9237         * modules/quotearg-tests (Depends-on): Likewise.
9238         * modules/rbtree-list-tests (Depends-on): Likewise.
9239         * modules/rbtree-oset-tests (Depends-on): Likewise.
9240         * modules/rbtreehash-list-tests (Depends-on): Likewise.
9241         * modules/spawn-pipe-tests (Depends-on): Likewise.
9242         * modules/system-quote-tests (Depends-on): Likewise.
9243         * modules/uniname/uniname-tests (Depends-on): Likewise.
9244         * modules/uninorm/nfc-tests (Depends-on): Likewise.
9245         * modules/uninorm/nfd-tests (Depends-on): Likewise.
9246         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
9247         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
9248         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
9249         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
9250         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
9251         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
9252         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
9253         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
9254         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
9255         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
9256         * modules/unlinkat-tests (Depends-on): Likewise.
9257         * modules/version-etc-tests (Depends-on): Likewise.
9258         * modules/xalloc-die-tests (Depends-on): Likewise.
9259         * modules/xmemdup0-tests (Depends-on): Likewise.
9260         * modules/xprintf-posix-tests (Depends-on): Likewise.
9261         * modules/xvasprintf-tests (Depends-on): Likewise.
9262         * tests/test-argmatch.c: Do not include progname.h.
9263         (main) Stop calling set_program_name.
9264         * tests/test-argp-version-etc.c: Likewise.
9265         * tests/test-argp.c: Likewise.
9266         * tests/test-argv-iter.c: Likewise.
9267         * tests/test-array_list.c: Likewise.
9268         * tests/test-array_oset.c: Likewise.
9269         * tests/test-avltree_list.c: Likewise.
9270         * tests/test-avltree_oset.c: Likewise.
9271         * tests/test-avltreehash_list.c: Likewise.
9272         * tests/test-carray_list.c: Likewise.
9273         * tests/test-copy-acl.c: Likewise.
9274         * tests/test-copy-file.c: Likewise.
9275         * tests/test-exclude.c: Likewise.
9276         * tests/test-fchownat.c: Likewise.
9277         * tests/test-fdopendir.c: Likewise.
9278         * tests/test-filenamecat.c: Likewise.
9279         * tests/test-fstatat.c: Likewise.
9280         * tests/test-fstrcmp.c: Likewise.
9281         * tests/test-linked_list.c: Likewise.
9282         * tests/test-linkedhash_list.c: Likewise.
9283         * tests/test-mkdirat.c: Likewise.
9284         * tests/test-nonblocking-pipe-main.c: Likewise.
9285         * tests/test-nonblocking-socket-main.c: Likewise.
9286         * tests/test-obstack-printf.c: Likewise.
9287         * tests/test-openat.c: Likewise.
9288         * tests/test-parse-datetime.c: Likewise.
9289         * tests/test-pipe-filter-gi1.c: Likewise.
9290         * tests/test-pipe-filter-gi2-main.c: Likewise.
9291         * tests/test-pipe-filter-ii1.c: Likewise.
9292         * tests/test-pipe-filter-ii2-main.c: Likewise.
9293         * tests/test-quotearg-simple.c: Likewise.
9294         * tests/test-quotearg.c: Likewise.
9295         * tests/test-rbtree_list.c: Likewise.
9296         * tests/test-rbtree_oset.c: Likewise.
9297         * tests/test-rbtreehash_list.c: Likewise.
9298         * tests/test-sameacls.c: Likewise.
9299         * tests/test-set-mode-acl.c: Likewise.
9300         * tests/test-spawn-pipe-main.c: Likewise.
9301         * tests/test-system-quote-main.c: Likewise.
9302         * tests/test-unlinkat.c: Likewise.
9303         * tests/test-version-etc.c: Likewise.
9304         * tests/test-xalloc-die.c: Likewise.
9305         * tests/test-xfprintf-posix.c: Likewise.
9306         * tests/test-xmemdup0.c: Likewise.
9307         * tests/test-xprintf-posix.c: Likewise.
9308         * tests/test-xvasprintf.c: Likewise.
9309         * tests/uniname/test-uninames.c: Likewise.
9310         * tests/uninorm/test-u32-nfc-big.c: Likewise.
9311         * tests/uninorm/test-u32-nfd-big.c: Likewise.
9312         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
9313         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
9314         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9315         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9316         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9317         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9318         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9319         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9320         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9321         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9322         * tests/test-c-stack.c: (program_name): Do not define.
9323         (main): Do not set program_name.
9324         * tests/test-closein.c: Likewise.
9325         * tests/test-xstrtol.c: Likewise.
9326         * tests/test-yesno.c: Likewise.
9328 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9330         Port modules to use getprogname explicitly, instead of requiring
9331         progname to be used (or program_name to be provided).
9332         * lib/argmatch.c: Do not include progname.h.
9333         [TEST] (program_name): Do not define.
9334         [TEST] (main): Call getprogname instead of using program_name.
9335         * lib/c-stack.c: Do not include progname.h.
9336         (program_name): Do not define.
9337         (die): Call getprogname instead of using program_name.
9338         * lib/chdir-long.c: Do not include progname.h.
9339         [TEST_CHDIR] (main): Do not set program_name.
9340         * lib/error.c [!_LIBC]: Include progname.h.
9341         [!_LIBC] (program_name): Define using getprogname.
9342         * lib/euidaccess.c: Do not include progname.h.
9343         [TEST] (main): Do not set program_name.
9344         * lib/git-merge-changelog.c: Include getprogname.h instead of
9345         progname.h.
9346         (usage): Call getprogname instead of using program_name.
9347         (main): Likewise.  Stop calling set_program_name.
9348         * lib/group-member.c: Do not include progname.h.
9349         [TEST] (main): Do not set program_name.
9350         * modules/argmatch (Depends-on): Add getprogname.
9351         * modules/c-stack (Depends-on): Likewise.
9352         * modules/error (Depends-on): Likewise.
9353         * modules/git-merge-changelog (Depends-on): Likewise.
9354         Also remove progname.
9356 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
9358         * NEWS: Document the deprecation of the 'progname' module.
9360 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9362         getprogname: new module
9363         This provides a LGPL module for getting the name of the current
9364         program, using the same API found on *BSD systems.
9365         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
9366         * modules/getprogname: New files.
9367         * MODULES.html.sh (Misc): Add getprogname.
9369 2016-09-02  Jim Meyering  <meyering@fb.com>
9371         manywarnings: add -fno-common
9372         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
9373         to the list.  Quoting the manual, "Compiling with -fno-common is
9374         useful on targets for which it provides better performance, or if
9375         you wish to verify that the program will work on other systems that
9376         always treat uninitialized variable declarations this way [putting
9377         it in the data section]."  If diffutils had been using this sooner,
9378         it would have prevented this duplicate declaration issue:
9379         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
9381 2016-08-31  Simon Josefsson  <simon@josefsson.org>
9383         parse-datetime: Fix typo.
9384         * lib/parse-datetime.y (parse_datetime2): Fix typo.
9386 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9388         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
9389         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
9390         GCC 5 and 6 that have __builtin_sub_overflow but not
9391         __builtin_sub_overflow_p.  With the recent changes, these
9392         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
9393         implementation than with INT_SUBTRACT_OVERFLOW implementation,
9394         since the former needs just one runtime comparison whereas the
9395         latter needs two.
9397         strverscmp: sync with glibc
9398         Although this doesn't exactly synchronize with glibc
9399         byte-for-byte, it makes the code behave the same as glibc.
9400         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
9401         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
9402         difference shouldn't matter in practical use.  All uses changed
9403         back to isdigit.
9404         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
9405         (next_state): Now unsigned char array; redo elements.
9406         (result_type): Now signed char array; redo elements.
9407         (__strverscmp): Fix glibc bug 9913 by using new states.
9408         * tests/test-strverscmp.c (main): Test glibc bug 9913.
9410 2016-08-29  Jim Meyering  <meyering@fb.com>
9412         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
9413         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
9414         similarly to how it was done to intprops.h.
9416 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9418         intprops.h: port recent changes to GCC 6.2.0
9419         * lib/intprops.h (__has_builtin): Move earlier.
9420         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
9421         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
9422         the last argument can be null.  All uses changed.
9423         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
9424         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9425         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
9426         and it's not clear which GCC versions it works for.
9427         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
9428         its definiens.
9430         intprops.h: use __typeof__ with GCC 7
9431         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
9432         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
9433         This avoids computing the expression's value (which might overflow!).
9435 2016-08-29  Jim Meyering  <meyering@fb.com>
9437         intprops.h, xalloc-oversized.h: work with gcc 7
9438         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
9439         __builtin_mul_overflow each accept a NULL pointer as the third
9440         argument.  However in gcc 7, that is no longer accepted.
9441         Instead, one must use the "_p"-suffixed names, with which, the
9442         third parameter is no longer a pointer.
9443         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
9444         the definition: not true for gcc 7 and subsequent.
9445         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
9446         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9447         Provide new definitions for gcc 7 and subsequent.
9448         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
9449         that works with gcc-7.
9451         intprops.h: fix missing-backslash problems
9452         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
9453         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
9455 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9457         intprops: fix paren typo on old platforms
9458         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
9459         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
9460         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
9461         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
9462         && !defined LLONG_MAX]:
9463         Remove stray paren.
9465         intprops: port to OpenVMS
9466         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
9467         * doc/posix-headers/limits.texi: Document the problem.
9468         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
9469         Define if not already defined.
9471 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
9473         parse-datetime: improve debug implementation
9474         Follow-up to commit 12ad79069 ("add optional debug printing").
9475         Improve parse-datetime's debug implementation: remove macros,
9476         replace global debug flag variable with a function parameter,
9477         use nstrftime for formatting.
9478         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
9479         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
9480         (parse_datetime2): New function, accepts 'flags' parameter, supporting
9481         debug flag. Existing interface 'parse_datetime' left unmodified.
9482         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
9483         (struct parser_control): add 'parse_datetime_debug' member variable.
9484         (parse_datetime): Call new function 'parse_datetime2' without debug.
9485         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
9486         pc.parse_datetime_debug variable as needed.
9487         (to_year): Accept new flags parameter, instead of using global variable.
9488         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
9489         use struct 'debug' variable instead of global variable.
9490         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
9491         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
9492         correspnding functions directly instead of using macros.
9493         * modules/parse-datetime: Add gnulib's strftime module.
9495 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
9497         c-strcase-tests: port to EBCDIC
9498         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
9499         which assume ASCII encoding semantics to run only in ASCII
9500         mode, as they fail in EBCDIC.
9502         sigpipe-tests: fix typo
9503         * tests/test-sigpipe.sh: C, not B.
9505 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9507         canonicalize-lgpl: fix errno after malloca fails
9508         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
9509         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
9510         * lib/canonicalize-lgpl.c (__realpath):
9511         Don't assume malloca sets errno on failure.
9513 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9515         strtod: port errno handling to z/OS
9516         * lib/strtod.c (strtod): Save and restore errno more reliably.
9518 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
9520         strtod: port to z/OS
9521         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
9522         implementation.
9524 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9526         strtod: port to z/OS
9527         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
9528         implementation.
9530         regex, string: rename to avoid '__string'
9531         * lib/regex.h, lib/string.in.h: Do not use the identifier
9532         '__string', as it is effectively reserved by string.h on z/OS.
9534         c-strcase-tests, wcwidth-tests: depend on c-ctype
9535         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
9536         Add c-ctype.
9538 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
9540         thread: port to z/OS
9541         * lib/glthread/thread.c, lib/glthread/thread.h:
9542         Rudimentary gl_thread support for z/OS.
9544         maint: port tests to z/OS errno behavior
9545         * tests/test-nonblocking-reader.h:
9546         * tests/test-nonblocking-writer.h:
9547         Accommodate z/OS errno code preferences. (I believe this should
9548         still be within spec; IBM is good at following the letter if not
9549         the spirit of such things.)
9551         maint: preprocessor changes to support z/OS
9552         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
9553         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
9554         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
9555         * tests/test-nonblocking-pipe.h:
9557         fclose, strstr-simple, wchar: port to z/OS
9558         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
9559         Changes to the Autoconf M4 code to support z/OS.  Note that
9560         fclose() is broken in a different way on z/OS than it is on other
9561         systems, thus the special-case in fclose.m4.
9563         iconv_open-utf-tests, iconv-tests: port to EBCDIC
9564         * tests/test-iconv-utf.c, tests/test-iconv.c:
9565         Added appropriately conditional #pragmas so that the test strings
9566         in test-iconv-utf.c are correctly interpreted in ASCII instead of
9567         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
9568         addressed in a more portable way by simply rewriting all the ASCII
9569         literal characters as octal escapes, but then you would lose the
9570         partial readability that the strings have now. Also, iconv_open()
9571         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
9573         c-strcase-tests, wcwidth-tests: port to EBCDIC
9574         * tests/test-c-strcasecmp.c: Include c-ctype.h.
9575         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
9576         * tests/test-wcwidth.c: Likewise.
9578 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9580         stdbool: don't require _Bool for C++
9581         Problem reported by David Seifert in:
9582         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
9583         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
9584         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
9585         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
9586         stricter about checking that bool and _Bool are compatible in C.
9588 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
9590         getdelim: remove dependency on realloc-posix
9591         * lib/canonicalize-lgpl.c (alloc_failed)
9592         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
9593         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
9594         Use __set_errno where needed, for consistency.
9595         * lib/getdelim.c (alloc_failed): New function.
9596         (getdelim): Use it.
9598 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
9600         parse-datetime: add optional debug printing
9601         Print parsing information, warnings, and errors to stderr.
9602         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
9603         * lib/parse-datetime.y:
9604         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
9605         (PROGRESS*): Same as DEBUG, for progress reporting.
9606         (dbg_printf): Print message to stderr, with 'date' prefix.
9607         (struct parser_control): Add 'debug_*_seen' variables.
9608         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
9609         (debug_print_current_time, debug_print_relateive_time): Prints the
9610         current/relative date/time value of parser_control.
9611         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
9612         (to_year): Warn about 2-digit year parsing.
9613         (yylex):   Warn about unrecognized words.
9614         (get_effective_timezone): Returns current timezone in minutes.
9615         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
9616         clearly and unambigiously as possible.
9617         (debug_mktime_not_ok): Print detailed information about failed
9618         date/time values.
9619         (parse_datetime): Add DEBUG messages for failures, warnings. Add
9620         PROGRESS messages for status messages.
9621         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
9623 2016-08-06  Jim Meyering  <meyering@fb.com>
9625         tests/init.sh: exclude dash with bad "local" semantics
9626         * tests/init.sh (gl_shell_test_script_): Add a function to
9627         eliminate a shell like "dash" (unlike bash, zsh) that has
9628         surprising/risky "local var='...'" semantics.  Inspired by
9629         the problem and discussion in https://bugs.gnu.org/24116#11.
9631 2016-08-02  Ján Tomko  <jtomko@redhat.com>
9633         maint.mk: expand the prohibit_doubled_word regex
9634         This check has a static list of words that are checked for
9635         repetitions.  Expand it before running the perl script to
9636         avoid using expensive captures.  This decreases the cost
9637         for libvirt from 1.66s to 0.66s.
9638         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
9639         (sc_prohibit_doubled_word): Use it.
9641 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9643         useless-if-before-free: skip non-matching lines early
9644         * build-aux/useless-if-before-free: First match each line with the
9645         simple/quick /\bif\b/ and reject if there is no match. This often
9646         saves the cost of the much more involved regular expression.
9647         For libvirt, this decreases the cost from 1.44s to 1.02s.
9649 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9651         maint.mk: speed up sc_po_check
9652         sc_po_check would skip files based on their names, or on the
9653         existence of files with derived names. Rewrite it to use perl
9654         instead of shell to make the check faster.
9655         * top/maint.mk (perl_translatable_files_list_): Define.
9656         (sc_po_check): Use it.
9658 2016-07-30  Ján Tomko  <jtomko@redhat.com>
9660         maint.mk: speed up require_config_h_first
9661         Instead of spawning three processes per file,
9662         rewrite the check in perl and run it once for all the files.
9663         * top/maint.mk (perl_config_h_first_): Define.
9664         (sc_require_config_h_first): Use it in place of shell code.
9666 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9668         maint.mk: speed up sc_po_check
9669         sc_po_check would skip files based on their names, or on the
9670         existence of files with derived names. Rewrite it to use perl
9671         instead of shell to make the check faster.
9672         * top/maint.mk (perl_translatable_files_list_): Define.
9673         (sc_po_check): Use it.
9675 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9677         obstack: pacify GCC 6 with -Wnull-dereference
9678         Problem reported by Assaf Gordon in:
9679         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
9680         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
9681         Declare with __attribute_noreturn__.
9682         * lib/obstack.h (__attribute_noreturn__): New macro.
9684 2016-07-13  Eric Blake  <eblake@redhat.com>
9686         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
9687         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
9688         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
9690 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
9692         doc: mention glibc SSIZE_MAX buglet
9693         * doc/posix-headers/limits.texi (limits.h): Document the bug.
9695 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
9697         printf-posix: Fix mingw build
9698         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
9699         expression for detecting C symbol prefixes but forgot to qoute square
9700         brackets in the command line arguments for grep.  That way when
9701         building with mingw the condition was false although it ought to be
9702         true instead.  In particular scenarios this led to the following
9703         compile error:
9705             Cannot export rpl_printf: symbol not found
9706             Cannot export rpl_scanf: symbol not found
9707             collect2: error: ld returned 1 exit status
9709         Fix this by properly quoting square brackets.
9711 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
9713         mktime: call tzset as per POSIX
9714         Problem reported by Ludovic Courtès in:
9715         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
9716         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
9717         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
9719 2016-06-26  Pádraig Brady  <P@draigBrady.com>
9721         fts: handle readdir() errors
9722         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
9723         but also upon error when it will also set errno.  Therefore
9724         flag the error case from readdir().  We treat the case where
9725         no items are read the same as if the dir can't be accessed,
9726         i.e. by setting fts_errno to FTS_DNR.
9728 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9730         intprops: port better to GCC 7
9731         GCC 7 __builtin_add_overflow supports a new usage form, where the
9732         last argument is a null pointer, and which merely returns 1 if an
9733         overflow would occur.  This is a constant expression if all
9734         arguments are constants, and should generate faster code when code
9735         needs to be generated.
9736         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
9737         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9738         Use builtin operations if available.
9739         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
9740         operations are available, as it's almost surely faster.
9742 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9744         intprops-test: port to GCC 6
9745         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
9746         since the bug is not fixed in GCC 6.1.
9748 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9750         xalloc-oversized: port to GCC 7; fewer warnings
9751         GCC 7 will have a better way to deal with integer overflow.
9752         Plus, fix a warnings problem reported by Tim Ruehsen in:
9753         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
9754         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
9755         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
9756         For GCC 5, use __xalloc_oversized if both args are constants,
9757         or if pedantic.
9759 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
9761         regex: port to Sun C
9762         Reported by Daiki Ueno.
9763         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
9764         __restrict, in prototype.  This fixes a problem I introduced in
9765         the 2016-02-19 merge from glibc.
9767 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
9769         stdbool: Restore __bool_true_false_are_defined check
9770         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
9771         __bool_true_false_are_defined is still defined, even with C++11.
9773 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
9775         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
9776         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
9778 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
9780         Use GCC_LINT, not lint
9781         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
9782         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
9783         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
9784         Document problem with lint and _Noreturn.
9785         * lib/diffseq.h (IF_LINT, IF_LINT2):
9786         * lib/fts.c (sccsid):
9787         * lib/getndelim2.c (IF_LINT):
9788         * lib/gl_anylinked_list2.h (gl_linked_iterator)
9789         (gl_linked_iterator_from_to):
9790         * lib/gl_anytree_list2.h (gl_tree_iterator)
9791         (gl_tree_iterator_from_to):
9792         * lib/gl_anytree_oset.h (gl_tree_iterator):
9793         * lib/gl_array_list.c (gl_array_iterator)
9794         (gl_array_iterator_from_to):
9795         * lib/gl_array_oset.c (gl_array_iterator):
9796         * lib/gl_carray_list.c (gl_carray_iterator)
9797         (gl_carray_iterator_from_to):
9798         * lib/idcache.c:
9799         * lib/inet_ntop.c (IF_LINT):
9800         * lib/regcomp.c (build_charclass_op, create_tree):
9801         * lib/regex_internal.c (re_acquire_state)
9802         (re_acquire_state_context):
9803         * lib/trigl.c (rcsid):
9804         * lib/trim.c (IF_LINT):
9805         * lib/vasnprintf.c (IF_LINT):
9806         * lib/verify.h (assume):
9807         Treat GCC_LINT like lint.
9809 2016-05-29  Bruno Haible  <bruno@clisp.org>
9811         secure_getenv: Port to many more platforms.
9812         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
9813         functions.
9814         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
9815         for non-BSD Unix platforms and for native Windows.
9816         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
9817         Prompted by a request from Nikos Mavrogiannopoulos.
9819 2016-05-27  Eric Blake  <eblake@redhat.com>
9821         canonicalize: Fix broken probe for realpath.
9822         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
9823         in logic introduced in 54615b95.
9825 2016-05-26  Eric Blake  <eblake@redhat.com>
9827         unsetenv: relax to LGPLv2+
9828         * modules/unsetenv (License): Match setenv license.
9830 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
9832         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
9833         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
9834         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
9835         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
9836         (commonarg, dirargs, dirs, infoarg, generate_ascii)
9837         (generate_html, generate_info, generate_tex, outdir)
9838         (source_extra, split, srcfile, texarg): Move above 'version'.
9839         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
9841 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9843         manywarnings: update for GCC 6.1
9844         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
9845         Add GCC 6.1 options that apply to C.
9846         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
9847         do not apply to C, are obsolescent, etc.
9849 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
9851         glob: size_t overflow checks
9852         * lib/glob.c (__has_builtin): New macro.
9853         (size_add_wrapv, glob_use_alloca): New static functions.
9854         (glob, glob_in_dir): Check for size_t overflow in several places,
9855         and fix some size_t checks that were not quite right.
9857         glob: don't assume INT_MAX < SIZE_MAX
9858         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
9859         latter is not portable to (probably theoretical) hosts where
9860         SIZE_MAX <= INT_MAX.
9862 2016-05-09  Bruno Haible  <bruno@clisp.org>
9864         Fix undefined behaviour in gettext.h.
9865         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
9866         pointer's value after the storage it points to has been freed.
9867         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
9868         Spotted by Coverity.
9870 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9872         git-version-gen: avoid undefined shift
9873         Problem reported by Mosè Giordano in:
9874         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
9875         * build-aux/git-version-gen: Avoid undefined behavior if invoked
9876         with --prefix or --fallback but without a later argument.  While
9877         we're at it, omit unnecessary quotes.
9879 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
9881         glob: merge glibc changes into lib/glob.c
9882         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
9883         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
9884         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
9885           struct dirent [BZ #19779]
9886         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
9887           callback gl_readdir
9888         2015-10-20 Convert miscellaneous function definitions to prototype style
9889         2015-10-20 Convert 113 more function definitions to prototype style
9890           (files with assertions)
9891         2015-06-12 Fix getlogin_r namespace (bug 18527).
9892         2014-02-10 Use glibc_likely instead __builtin_expect.
9893         2013-10-20 When glob pattern contains a trailing slash match only
9894           directories. Fixes bug 10278.
9895         2013-09-04 glob: silence -Wattribute warnings
9896         2013-06-07 Avoid use of "register" as optimization hint.
9897         2012-09-25 Use size_t instead of int for internal variables in glob
9898           (bug 14621)
9899         2011-07-20 Check for overflows in expressions
9900         2011-05-28 Remove unused variable
9901         2011-05-22 Add a few more alloca size checks
9902         2010-03-27 Whitespace fixes
9903         2010-03-27 Fix one more issue with the glob patch
9904         2010-03-24 Fix glob with empty pattern
9905         2008-05-27 Remove useless more "if" tests before "free"
9906         * modules/glob (Depends-on): Add stdint.
9908 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
9910         mktime: port to stricter signed overflow checking
9911         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
9912         (long_int): Require width for INT_MAX * 3 * (seconds per year),
9913         instead of merely for INT_MAX * 2.  In practice platforms that
9914         do the latter also do the former.
9915         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
9916         (shr): New static function, replacing SHR.  All uses changed.
9917         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
9918         and TIME_T_MAX.  All uses changed.
9919         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9920         Use long_int, not time_t.
9921         (long_int_avg): New static function, replacing time_t_avg.
9922         All uses changed.  Round toward positive infinity, as that
9923         generates slightly better code.
9924         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
9925         by INT_ADD_WRAPV.
9926         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
9927         (convert_time): New static function.
9928         (ranged_convert): Use it
9929         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
9930         Use simpler test for loop exit.
9931         (__mktime_internal): Store negative of guessed offset, to simplify
9932         overflow checking.  Remove no-longer-needed test for small time_t
9933         overflows.
9935         mktime: speed up DEBUG_MKTIME benchmarks
9936         Call tzset just once, at the start, rather than for every test
9937         case.  This lets us measure the CPU cost of mktime as opposed to
9938         that of tzset.  This is relevant when TZ is not set and glibc is
9939         being used.  This speeds up tests by a factor of 40 on my Fedora
9940         23 x86-64 platform.
9941         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
9942         to call tzset and as a sanity check.  Later on, use localtime_r
9943         instead of localtime.
9945         mktime: resurrect DEBUG_MKTIME testing
9946         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
9947         Include <string.h>, for strcmp.
9949         mktime: simplify DEBUG_MKTIME
9950         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
9951         Simplify later usage accordingly.
9953         Port mktime_internal offset to unsigned time_t
9954         This avoids some assumptions about wraparound arithmetic on
9955         signed integer overflow.
9956         * lib/mktime-internal.h (mktime_offset_t): New type.
9957         (mktime_internal): Use it in decl.
9958         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
9960         * lib/mktime.c (__mktime_internal, localtime_offset):
9961         * lib/timegm.c (timegm): Use it.
9962         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
9963         (gl_FUNC_MKTIME): Require it.
9965 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
9967         xstrtol: prohibit monstrosities like "1bB"
9968         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
9969         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
9970         "B" only if the first suffix needs a base.
9971         * tests/test-xstrtol.sh: Test this.
9973 2016-04-21  Pádraig Brady  <P@draigBrady.com>
9975         xstrtod: reinstate setting of *result upon ERANGE
9976         * lib/xstrtod.c (XSTRTOD): The user may decide to use
9977         the returned limits upon ERANGE, so allow and document that.
9979 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
9981         xstrtod: modify *result only if no errors
9982         * lib/xstrtod.c (XSTRTOD).
9984 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
9986         btowc: document problems in C locale
9987         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
9988         with mbrtowc.  See: http://bugs.gnu.org/23269#32
9990 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
9992         mktime: improve integer overflow checking
9993         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
9994         (WRAPV): Remove; no longer needed.
9995         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
9996         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
9997         Remove.  Use intprops.h defns instead.
9998         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
9999         Use bool for Boolean, for clarity.
10000         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
10001         detect integer overflow.
10002         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
10004         intprops: check two's complement assumption
10005         Suggested by Eric Blake in:
10006         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
10007         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
10008         short, int, long, and (if available) long long are two's complement.
10009         * modules/intprops (Depends-on): Add 'verify'.
10011         intprops, mktime, strtol: assume two's complement
10012         These macros were not portable to every conforming C11 ones'
10013         complement platform.  It's not worth the hassle of porting to some
10014         platforms that use ones' complement or signed magnitude, as such
10015         platforms are almost purely theoretical nowadays and porting even
10016         to some of them makes the code harder to review for little
10017         practical benefit.  Problem reported by Florian Weimer in:
10018         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
10019         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
10020         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
10021         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
10022         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
10023         (TYPE_SIGNED_MAGNITUDE):
10024         Remove.  All uses rewritten to assume two's complement, which is
10025         all we can reasonably test nowadays anyway.
10026         * top/maint.mk (_intprops_names): Remove the removed macros.
10028 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
10030         stdint: port to strict C11 left shift
10031         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
10032         Pacify clang -Wshift-negative-value, which should be an issue only
10033         on clang setups where stdint.h does not conform to C11 or to C++11.
10034         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
10036 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
10038         mbrtowc: work around glibc bug#19932
10039         Fix mbrtowc so that it never returns -1 in the C locale,
10040         as this conflicts with a future version of POSIX
10041         http://austingroupbugs.net/view.php?id=663#c2738
10042         and causes problems with GNU grep: http://bugs.gnu.org/23234
10043         See glibc bug 19932:
10044         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
10045         * doc/posix-functions/mbrlen.texi (mbrlen):
10046         * doc/posix-functions/mbrtowc.texi (mbrtowc):
10047         Document the glibc bug.
10048         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
10049         Include hard-locale.h, locale.h.
10050         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
10051         if the bug is possible.
10052         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
10053         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
10054         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
10055         * modules/mbrtowc (Depends-on): Add hard-locale.
10056         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
10057         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
10058         * tests/test-mbrtowc5.sh: New file.
10060 2016-04-03  Pedro Alves  <palves@redhat.com>
10062         stdint: detect good enough pre-C++11 stdint.h in C++ mode
10063         When gnulib is configured in C++ mode for a system with a working C99
10064         implementation of stdint.h that predates C++11, gnulib ends up
10065         substituting stdint.h anyway.  This works on most targets, but on e.g.,
10066         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
10067         MinGW is LLP64.  Instead of trying to detect the right types, detect
10068         good-enough-pre-C++11 stdint.h and in such case define
10069         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
10070         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
10071         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
10072         conforms to C99.  If it does, check whether it hides symbols
10073         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
10074         does, define those macros in config.h.
10076 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
10078         argp: merge changes from glibc
10079         Among other things, this should fix problems found by a Coverity
10080         scan and reported by Andrei Borzenkov:
10081         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
10082         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
10083         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
10084         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
10085         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
10086         * lib/argp.h:
10087         Merge changes from glibc.
10088         * tests/test-argp-2.sh: Adjust to match new behavior.
10090 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
10092         stddef: support configuring with g++
10093         Problem reported by Ángel González in:
10094         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
10095         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
10096         Do not define if _GCC_MAX_ALIGN_T is defined.
10098 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
10100         test-framework-sh: minor cleanups
10101         * tests/init.sh (testdir_prefix_): Output a trailing newline,
10102         since strictly speaking POSIX requires this.
10103         (setup_): Do not use the variable 'fail', as that makes the
10104         trace output harder to read ('fail' is typically used by
10105         tests to mean the test failed).  Treat // portably.
10106         Check that new directory is not merely a sibling of the tmp dir.
10107         Avoid unnecessary invocation of tr.
10109         test-framework-sh: revert port to NetBSD 7.0
10110         It was a false alarm; I misinterpreted Assaf Gordon's report.
10111         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
10112         Restore.
10113         (test_dir_): Adjust to mktempd_ change.
10114         (mktempd_): Restore 2nd arg.  Use -t again.
10115         (base_template_, template_, nx_): Resurrect old code.
10117         Port better to Alpine Linux
10118         Its diff implementation does not support -c, but does support -U3.
10119         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
10120         * tests/init.sh (diff_opt_): New var.
10121         (compare_): Prefer diff -U3 to diff -c to plain diff.
10123 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10125         test-framework-sh: port to NetBSD 7.0
10126         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
10127         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
10128         Remove.  All uses removed.
10129         (test_dir_): Adjust to mktempd_ change.
10130         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
10131         (base_template_, template_, nx_): Simplify by hardcoding.
10133 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
10135         gitlog-to-changelog: suppress ignored chatter
10136         * build-aux/gitlog-to-changelog: Do not warn about skipping
10137         an SHA if it would have been ignored anyway.
10139 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
10141         setlocale: add "sv" to Windows language table
10142         * lib/setlocale.c (language_table) [W32]: Add "sv".
10143         Reported in <https://savannah.gnu.org/bugs/?44588>.
10145 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
10147         sys_select: port to new Cygwin
10148         Problem reported by Ken Brown in:
10149         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
10150         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
10151         diagnostics.
10153 2016-03-17  Jim Meyering  <meyering@fb.com>
10155         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
10156         * tests/test-userspec.c (main): Remove unnecessary braces and fix
10157         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
10158           test-userspec.c:176:9: error: statement is indented as if it were \
10159             guarded by... [-Werror=misleading-indentation]
10160                    {
10161                    ^
10162           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
10163                  if (!diag && !T[i].result)
10164                  ^~
10166 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
10168         time_rz: port to clang -Wunused-const-variable
10169         * lib/time_rz.c (TZ): Remove.  All uses removed.
10171         std-gnu11: improve clang support
10172         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
10173         2016-03-15 Also try clang
10174         2016-03-15 Port C11 and C++11 testing to clang
10176         select: port more to Intel 2016.1.150 compiler
10177         Problem reported by Balázs Hajgató in:
10178         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
10179         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
10181 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
10183         select: try to port to 2016.1.150 compiler
10184         Problem reported by Balázs Hajgató in:
10185         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
10186         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
10187         POSIX specifies 'restrict'.
10189 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
10191         localename-tests: memory allocation fixes
10192         * tests/test-localename.c (test_locale_name)
10193         (test_locale_name_thread): Don't call freelocale on a locale
10194         that was the base of a successful newlocale, as that
10195         results in a double free.  Problem reported by Assaf Gordon.
10196         (test_locale_name_thread): Free saved names after use, to pacify
10197         gcc -fsanitize=address.
10199 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
10201         intprops: make .h file license match module
10202         * lib/intprops.h: Change the license wording to match glibc format.
10203         This is what is in modules/intprops anyway.  See:
10204         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
10206 2016-03-08  Eric Blake  <eblake@redhat.com>
10208         acl: fix missing return on Cygwin
10209         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
10210         fall off end of function. Fixes http://bugs.gnu.org/22949
10212 2016-03-05  Bruno Haible  <bruno@clisp.org>
10214         extern-inline: port to PGI CC
10215         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
10216         keyword 'inline'.
10217         Reported by Adam James Stewart in:
10218         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
10220 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10222         signbit: port back to pre-C++11 GCC
10223         * lib/math.in.h (signbit): Do previous change only if
10224         __cplusplus < 201103.  See Jonathan Wakely in:
10225         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
10227 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
10229         mountlist: recognize autofs-mounted remote file systems, too
10230         Originally reported at: https://bugzilla.redhat.com/1309247
10231         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
10232         "-hosts" because it is used by autofs to mount remote file systems.
10234 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
10236         signbit: port to C++ with GCC 6
10237         * lib/math.in.h (signbit) [__cplusplus]:
10238         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
10239         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
10241         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
10243         regex: make it closer to libc
10244         Make Idx a signed type, rather than possibly unsigned.
10245         The unsignedness was not really buying us anything, since the code
10246         overflows for other reasons before getting to PTRDIFF_MAX.  Making
10247         it signed allows us to use -1 and -2 with abandon, like libc does,
10248         thus lessening the number of differences between gnulib and libc.
10249         Also, it should help avoid gratuitous warnings like the one
10250         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
10251         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
10254         regex: merge patches from libc
10256         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
10257         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
10258         Convert miscellaneous function definitions to prototype style.
10259         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
10260         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
10261         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
10262         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
10263         (re_search_internal):
10264         Convert to prototype-style function definition.
10265         Use internal_function for internal functions.
10267 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
10269         stdalign: port to older HP and IBM cc
10270         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
10271         C compilers, by checking their version numbers.  These version
10272         numbers appear in MariaDB and in Qt code that dates way back and
10273         that conditiionally uses the 'aligned' attribute.
10275 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10277         stdalign: port to clang 3.7.0
10278         Problem reported by Herbert J. Skuhra in:
10279         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
10280         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
10281         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
10282         https://llvm.org/bugs/show_bug.cgi?id=26547
10284 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10286         readdir_r: now obsolescent
10287         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
10288         * lib/mountlist.c (read_file_system_list): Add a FIXME.
10290 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10292         misc: port better to gcc -fsanitize=address
10293         Without these patches, ./configure CFLAGS='-fsanitize=address'
10294         would compute incorrect values.  This patch fixes some (but not all)
10295         test failures with recent glibc, with this configuration.
10296         * m4/acl.m4 (gl_ACL_GET_FILE):
10297         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
10298         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
10299         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
10300         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
10301         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
10302         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
10303         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
10304         * m4/getline.m4 (gl_FUNC_GETLINE):
10305         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
10306         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
10307         * m4/regex.m4 (gl_REGEX):
10308         * m4/strndup.m4 (gl_FUNC_STRNDUP):
10309         * tests/test-calloc-gnu.c (main):
10310         * tests/test-duplocale.c (main):
10311         * tests/test-getgroups.c (main):
10312         * tests/test-getline.c (main):
10313         * tests/test-inttostr.c (main):
10314         * tests/test-localename.c (test_locale_name)
10315         (test_locale_name_thread, test_locale_name_environ)
10316         (test_locale_name_default):
10317         * tests/test-regex.c (main):
10318         * tests/test-setlocale1.c (main):
10319         * tests/test-stat.h (test_stat_func):
10320         Free heap-allocated storage before exiting.
10321         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
10322         Don't match *_foo symbols inserted by AddressSanitizer.
10323         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
10325 2016-02-02  Jim Meyering  <meyering@fb.com>
10327         verify-tests: also remove stray test-verify.Tpo
10328         * modules/verify-tests (Makefile.am): Arrange for "make clean"
10329         to remove the test-verify.Tpo file that is left behind by
10330         the automake-generated rule upon compilation failure.
10331         Otherwise, that .Tpo file would cause a failed "make distcheck"
10332         at least for grep.
10334 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10336         std-gnu11: new module
10337         This makes it easier for applications to prefer C11 and C++11
10338         to older variants, when compiling C and C++ code.
10339         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
10340         a nontrivial chunk of GPLed Autoconf source code.
10341         * COPYING: Mention the m4/*.m4 copyright situation.
10342         * MODULES.html.sh (std-gnu11): New module.
10343         * m4/std-gnu11.m4, modules/std-gnu11: New files.
10345 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
10347         get-permissions, strftime: fix grammar in comments
10348         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
10349         some grammar fixes Alan Mackenzie made to GNU Emacs.
10351 2016-01-25  Daiki Ueno  <ueno@gnu.org>
10353         gettext: mark as obsolete
10354         Suggested by Paul Eggert in:
10355         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
10356         * modules/gettext (Status): Mark as obsolete.
10357         (Notice): Suggest to use 'gettext-h' instead.
10358         * modules/gettext-h (Description): Suggest GNU gettext, instead of
10359         the 'gettext' module.
10361 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10363         gnulib-tool: don't give up on ln -s so easily
10364         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
10365         because an earlier one failed.  The targets could be on different
10366         file systems.  Problem reported by KO Myung-Hun in:
10367         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
10369         closedir: fix OS/2-related typos
10370         Problem reported by KO Myung-Hun in:
10371         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
10372         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
10373         in the last couple of changes.
10375 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
10377         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
10378         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
10379         copying a directory.
10381 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10383         regex: treat [x] as x if x is a unibyte encoding error
10384         Problem reported by Aharon Robbins in:
10385         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
10386         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
10387         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
10389         closedir, dirfd, opendir: port to OpenSolaris 5.10
10390         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
10391         * m4/dirfd.m4 (gl_FUNC_DIRFD):
10392         * m4/opendir.m4 (gl_FUNC_OPENDIR):
10393         Don't use ${word##pat} substitution, as it doesn't work in
10394         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
10395         http://bugs.gnu.org/22443#11
10397 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10399         bootstrap: use American spelling
10400         * build-aux/bootstrap: Honor American spelling.
10402 2016-01-22  Karl Berry  <karl@freefriends.org>
10404         * doc/posix-functions/localtime.texi,
10405         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
10407 2016-01-21  Bruno Haible  <bruno@clisp.org>
10409         hash-pjw-bare: fix comment
10410         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
10412         wcwidth: Replace also on OpenBSD 5.8
10413         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
10414         * doc/posix-functions/wcwidth.texi: Update.
10416 2016-01-20  Pádraig Brady  <P@draigBrady.com>
10418         gnu-web-doc-update: fix addition of new files
10419         If there were already added (emnpty) dirs,
10420         then cvs aborts the add with the message:
10421           cvs [add aborted]: there is a version in <./dirname> already
10422         * build-aux/gnu-web-doc-update: Add directories separately
10423         to the addition of files, to avoid the above issue
10424         impacting the addition of files.
10426 2016-01-19  Daiki Ueno  <ueno@gnu.org>
10428         utimens-tests: avoid pulling gettext .m4 files
10429         Although this is not the right fix to the original problem:
10430         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
10431         it makes it possible again for consumer projects to use arbitrary
10432         version of gettext, through the steps described at:
10433         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
10434         See here for details:
10435         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
10436         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
10437         'gettext'.
10438         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
10439         'gettext'.
10441 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10443         regex: pacify static checkers
10444         Problem and draft fix reported by Aharon Robbins in:
10445         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10446         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
10447         Clear memory to pacify static checkers.
10449         regex: fix [ diagnostic
10450         Problem and fix reported by Aharon Robbins in:
10451         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10452         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
10454         regex: fix memory leaks
10455         Problem and draft fix reported by Aharon Robbins in:
10456         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10457         * lib/regcomp.c (build_range_exp, build_charclass_op)
10458         * lib/regex_internal.c (re_dfa_add_node):
10459         Fix memory leak on failure.
10461 2016-01-18  Pádraig Brady  <P@draigBrady.com>
10463         fts: don't unconditionally use leaf optimization for NFS
10464         NFS st_nlink are not accurate on all implementations,
10465         leading to aborts() if that assumption is made.
10466         See <https://bugzilla.redhat.com/1299169>
10467         * lib/fts.c (leaf_optimization_applies): Remove NFS from
10468         the white list, and document the issue.
10470 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10471             KO Myung-Hun  <komh@chollian.net>
10473         gnulib-tool: don't assume ln -s works
10474         * gnulib-tool (func_ln_s): New function.
10475         (func_ln): Use it.
10477 2016-01-15  KO Myung-Hun  <komh@chollian.net>
10479         utimes: detect utimes() correctly on OS/2 kLIBC
10480         utimes() of OS/2 kLIBC has some limitations.
10481         1. OS/2 itself supports a file date since 1980 year in local time.
10482         2. OS/2 itself supports only even seconds for a file time.
10483         3. utimes() of OS/2 kLIBC does not work on an opened file.
10484         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
10485         * doc/posix-functions/utimes.texi: Document the above limitations of
10486         utimes() on OS/2 kLIBC.
10488 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10489             KO Myung-Hun  <komh@chollian.net>
10491         openat_proc_name: port to OS/2 kLIBC
10492         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
10493         instead of /proc/self/fd.
10494         * lib/openat-proc.c (openat_proc_name):
10495         Don't assume file name length is less than INT_MAX.
10496         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
10498 2016-01-14  KO Myung-Hun  <komh@chollian.net>
10500         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
10501         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
10502         definitions of intptr_t and uintptr_t (which use int and unsigned)
10503         to avoid clashes with declarations of system functions like sbrk.
10504         * lib/stdint.in.h (intptr_t, uintptr_t): Check
10505         _INTPTR_T_DECLARED before defining them.
10507         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
10508         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
10509         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
10510         Declare on kLIBC.
10511         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
10512         fd associated with dirp.
10513         (_gl_register_dirp_fd): New. Register fd associated with dirp to
10514         dirp_fd_list.
10515         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
10516         (dirfd): Implemented for kLIBC.
10517         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
10518         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
10519         succeeds.
10520         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
10521         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10522         (REPLACE_DIRFD): Define to 1 if replaced.
10523         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
10524         * modules/closedir (Depends-on): Add dirfd.
10525         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
10526         condition.
10527         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
10528         * modules/opendir (Depends-on): Add dirfd.
10530         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
10531         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
10532         * lib/dup.c (dup_nothrow): New.
10533         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
10534         (klibc_dup2): New.
10535         * lib/fcntl.c (klibc_fcntl): New.
10536         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
10537         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
10538         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
10539         fd.
10541         pipe_filter_ii_execute: port to OS/2 kLIBC
10542         Pipes on kLIBC do not support O_NONBLOCK like Win32.
10543         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
10544         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
10545         Reuse Win32 code on OS/2 kLIBC.
10546         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
10547         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
10549         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
10550         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
10551         static inline function.  The implementation of wcwidth in wcwidth.c
10552         causes a "conflicting types" error.
10553         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
10555         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
10556         spawn() on OS/2 kLIBC is not silly like one on Windows
10557         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
10558         empty string on OS/2 kLIBC.
10560         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
10561         On OS/2 kLIBC, select() works only on sockets.
10562         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
10564         binary-io: don't put fd in binary mode if it is a console on EMX
10565         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
10566         a console on EMX.
10568 2016-01-15  Pádraig Brady  <P@draigBrady.com>
10570         doc: mention unfixed issues with unsupported localtime() values
10571         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
10572         returns nonsense for localtime(2^56).
10573         * doc/posix-functions/localtime_r.texi: Likewise.
10575 2016-01-14  Pádraig Brady  <P@draigBrady.com>
10577         doc: mention setlocale() issues on OpenBSD
10578         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
10579         never fails, and the need to check categories individually.
10581 2016-01-14  Pádraig Brady  <P@draigBrady.com>
10583         sig2str: list all signals on FreeBSD >= 7
10584         FreeBSD >= 7 is contravening POSIX by not defining NSIG
10585         to the maximal statically defined signal value.
10586         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
10587         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
10588         where available, even when NSIG is defined.
10590 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
10592         acl-permissions: port to USE_ACL==0 platforms
10593         I ran into this problem when building bleeding-edge GNU Emacs
10594         with gcc -fsanitize=address on Fedora 23.  On this platform
10595         the ACL library does not pass the 'configure' test and Emacs
10596         then does not build due in part to what appear to be typos in the
10597         ACL part of Gnulib.
10598         * lib/acl-internal.c (free_permission_context):
10599         * lib/acl-internal.h (struct permission_context):
10600         Test whether USE_ACL is nonzero, not whether it is defined.
10602 2016-01-12  Martin Sebor  <msebor@redhat.com>
10604         mktime: rename macro to avoid glibc clash
10605         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
10606         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
10608 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
10610         Port "$@" to OpenIndiana ksh93
10611         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
10612         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
10613         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
10614         bug long-dead shells, so remove the workaround.
10615         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
10616         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10617         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
10618         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
10619         Use "$@" instead of ${1+"$@"}.
10621         Port Universal Time settings to strict POSIX
10622         * build-aux/announce-gen, build-aux/bootstrap:
10623         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
10624         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10625         * build-aux/gnupload, build-aux/mkinstalldirs:
10626         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
10627         * build-aux/update-copyright, build-aux/useless-if-before-free:
10628         * build-aux/vc-list-files, tests/test-strftime.c:
10629         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
10630         but POSIX says the behavior of TZ="UTC" is undefined.
10632 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10634         msvc-inval: fix problem with unset shell var
10635         Problem reported by Karl Berry in:
10636         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
10637         * modules/msvc-inval (Depends-on):
10638         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
10639         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
10641 2016-01-01  Pádraig Brady  <P@draigBrady.com>
10643         tests: for compare_(), use cmp -s where available
10644         * tests/init.sh (compare_): Only fall back to cmp without
10645         the POSIX defined -s option, where this is not available.
10647 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10649         version-etc: new year
10650         * build-aux/gendocs.sh (version):
10651         * doc/gendocs_template:
10652         * doc/gendocs_template_min:
10653         * doc/gnulib.texi:
10654         * lib/version-etc.c (COPYRIGHT_YEAR):
10655         Update copyright dates by hand in templates and the like.
10656         * all files: Run 'make update-copyright'.
10658 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10660         human: fix output buffer overrun by 1
10661         * lib/human.c (human_readable): Fix off-by-one typo in buffer
10662         calculation that could lead to a one-byte buffer overrun.
10664 2015-12-28  Daiki Ueno  <ueno@gnu.org>
10666         maint: fix operator precedence in mbrtowc test
10667         This is a fix for test breakage introduced by commit 45228d96; the
10668         equality expression must be parenthesized when negated with '!',
10669         otherwise we always get:
10671           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
10673         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
10674         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
10676 2015-12-23  James Youngman  <jay@gnu.org>
10678         regexprops-generic: update from regex.h
10679         * doc/regexprops-generic.texi: update by running the regexprops binary
10680         from findutils (the command line is 'regexprops "Regular Expressions"
10681         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
10682         gnulib with GNU grep had made this document out-of-date.
10684 2015-12-23  Pádraig Brady  <P@draigBrady.com>
10686         strftime-tests: avoid false failure on OS X
10687         * tests/test-strftime.c (struct localtime_rz_test): Add an
10688         ahistorical member which is used to warn rather than fail
10689         when tm_isdst isn't set for such entries.  This is the case for
10690         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
10692 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
10694         fts: ensure leaf optimization is used for NFS
10695         NFS provides usable dirent.d_type but not necessarily for all entries
10696         of large directories.  See <https://bugzilla.redhat.com/1252549>
10697         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
10699 2015-12-20  Pádraig Brady  <P@draigBrady.com>
10701         fts: enable leaf optimization for XFS
10702         XFS provides usable dirent.d_type only for DT_DIR,
10703         but the noleaf optimization still applies.
10704         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
10706 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10708         intprops: comment fix
10709         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
10710         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
10712         intprops-test: work around GCC bug 68971
10713         Problem reported by Pádraig Brady in:
10714         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
10715         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
10716         (main): Add a case that better tests 64-bit long in this area.
10718 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
10720         gnulib-tool: allow multiple --local-dir usage
10721         * gnulib-tool: Use --local-dir to construct compound
10722         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
10723         PATH_SEPARATOR early.
10724         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
10725         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
10726         func_determine_path_separator because that needs to be detected
10727         earlier now.
10728         (func_determine_path_separator): New function.
10729         (func_path_foreach, func_path_foreach_inner): New functions.
10730         (func_path_prepend, func_path_append): Likewise.
10731         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
10732         (func_lookup_file, func_all_modules): Use new functions to work
10733         with local_gnulib_path.
10734         (func_modules_in_dir, func_exists_module): New callbacks for
10735         func_path_foreach.
10736         (func_exists_module, func_get_tests_module): Likewise.
10737         (func_is_local_file, func_should_symlink): New helper methods.
10738         (func_add_file, func_update_file): Use new func_should_symlink
10739         instead, DRY.
10740         (func_reconstruct_cached_local_gnulib_path): New helper.
10741         (func_reconstruct_cached_dir): New callback.
10742         (func_import): The cached_local_gnulib_dir renamed to
10743         cached_local_gnulib_path similarly to local_gnulib_dir.
10744         Use new func_reconstruct_cached_local_gnulib_path.
10745         (func_count_relative_local_gnulib_path): New sub-method.
10746         (func_create_testdir): Use func_should_symlink, DRY.
10747         (func_create_megatestdir): Use new functions to work with
10748         local_gnulib_path correctly.
10749         (func_append_local_dir): New helper.
10751 2015-12-08  Pádraig Brady  <P@draigBrady.com>
10753         fix freadptr to work with ungetc on all uClibc configs
10754         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
10755         where GNU coreutils cut(1) generates invalid output on uClibc
10756         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
10757         * lib/freadptr.c (freadptr): Return NULL if there are
10758         ungotten chars.  In this case freadseek() will iterate
10759         again to process the ungotten character.
10761 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
10763         xalloc-oversized: improve performance with GCC 5
10764         * lib/xalloc-oversized.h (xalloc_oversized):
10765         Improve performance with GCC 5 by using __builtin_mul_overflow.
10767 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10769         intprops: new public macro EXPR_SIGNED
10770         Emacs can use this macro, so make it public.
10771         * doc/intprops.texi (Arithmetic Type Properties): Rename from
10772         'Integer Type Determination', since some of these macros apply
10773         to non-integer types.  Clarify what kinds of constant expressions
10774         these macros return.  Say when the arguments can be non-integers.
10775         Mention newly published macro EXPR_SIGNED.
10776         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
10777         make it public.  All uses changed.
10779         intprops: fix typo in clang port
10780         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
10781         '__builtin_add_overflow' that is not caught by compiler.
10783 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
10785         test-timespec: fix typo in previous change
10786         * tests/test-timespec.c (main): Fix typo that reduced test quality.
10788         timespec-sub: fix overflow bug; add tests
10789         * lib/timespec-add.c (timespec_add):
10790         * lib/timespec-sub.c (timespec_sub):
10791         Work even if time_t is narrower than int (a theoretical
10792         possibility).  Redo code for a bit more clarity.
10793         * lib/timespec-sub.c (timespec_sub):
10794         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
10795         * modules/timespec-tests, tests/test-timespec.c: New files.
10797         intprops-test: suppress -Woverlength-strings
10798         Problem reported by Pádraig Brady in:
10799         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
10800         It is not worth the hassle to port this test to compilers that
10801         cannot handle long strings in diagnostics.
10802         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
10804 2015-11-03  Pádraig Brady  <P@draigBrady.com>
10806         quotearg: add quotearg_n_style_colon()
10807         This quotes with default options of the specified style,
10808         but with quoting enabled for instances of ':'.
10809         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
10810         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
10812 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10814         intprops: revise _WRAPV macros, revert _OVERFLOW
10815         The incompatible changes to the _OVERFLOW macros were too much of
10816         a hassle in practice, so revert them.  Instead, change the new
10817         _WRAPV macros to make them closer in behavior to GCC 5's new
10818         builtin_add_overflow etc. functions.  No other software was using
10819         these newly-added macros yet, so this should be OK.
10820         * NEWS: Revert previous change, since the incompatible change
10821         has been reverted, and nobody used the incompatible version.
10822         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
10823         Document revised behavior.
10824         (Integer Range Overflow): Adjust example to match above revisions.
10825         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
10826         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
10827         these can be used in integer constant expressions again.
10828         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
10829         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
10830         needed.
10831         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
10832         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
10833         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
10834         Remove, as they did not seem that useful.
10835         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
10836         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
10837         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
10838         Support new semantics.
10839         (__has_builtin): New macro, if not alreay defined.
10840         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
10841         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
10842         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
10843         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
10844         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
10845         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
10846         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
10847         New macros.
10848         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
10850 2015-11-03  Jim Meyering  <meyering@fb.com>
10852         intprops: add parentheses for when OP has precedence lower than "-"
10853         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
10854         "a OP b" must be parenthesized for when OP is like "<<", which has
10855         lower precedence than the following "-". Reported by Pádraig Brady.
10857 2015-11-03  Pádraig Brady  <P@draigBrady.com>
10859         quotearg: constify get_quoting_style parameters
10860         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
10861         * lib/quotearg.c (get_quoting_style): Likewise.
10863 2015-11-02  Pádraig Brady  <P@draigBrady.com>
10865         quotearg: add support for $'' shell escaping
10866         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
10867         items and descriptions.
10868         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
10869         above types by quoting like "shell", but using $'...' syntax
10870         for non printable characters, which should provide unambiguous
10871         printable output for any input.
10872         * tests/test-quotearg-simple.c: Update accordingly.
10874 2015-11-02  Pádraig Brady  <P@draigBrady.com>
10876         maint: use a more standard return from mbrtowc test
10877         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
10878         from the test program as this is non standard and often
10879         indicates an unhandled case in the test program.
10880         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
10882 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10884         intprops: add WRAPV and const flavors for GCC 5
10885         If available, use GCC 5's builtin functions for efficient integer
10886         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
10887         and safely compute the low-order bits of the correct answer.
10888         A downside of these efficient functions is that they cannot be
10889         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
10890         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
10891         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
10892         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
10893         Document the changes.
10894         (Wraparound Arithmetic): New section.
10895         (Integer Range Overflow):
10896         Put this subsection last, since it's least useful.
10897         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
10898         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
10899         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
10900         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
10901         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
10902         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
10903         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
10904         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
10905         New macros.
10906         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10907         Generate calls to GCC builtins if available, for speed.
10908         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
10909         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
10910         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
10911         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
10912         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
10913         (CHECK_QUOTIENT, CHECK_REMAINDER):
10914         Test WRAPV and CONST flavors (when available) too.
10916 2015-10-30  Pádraig Brady  <P@draigBrady.com>
10918         doc: use extended timezone format in iso-8601 example
10919         * doc/parse-datetime.texi: The standard states that extended format
10920         is to be used consistently throughout.
10921         Note that lib/parse-datetime.y can handle either tz format.
10923 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10925         stdalign: port to Sun C 5.9
10926         * doc/posix-headers/stdalign.texi: Document this.
10927         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
10928         __attribute__ ((__aligned__ (...))).
10930 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
10932         time_rz: fix comment about tzalloc
10933         * lib/time_rz.c (tzalloc): Fix comment.
10935 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10937         stdalign: work around pre-4.9 GCC x86 bug
10938         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
10939         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
10940         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
10942 2015-10-18  Pádraig Brady  <P@draigBrady.com>
10944         maint.mk: sc_tight_scope: remove extraneous expressions
10945         * top/maint.mk (tight_scope): This is not really required since
10946         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
10947         that matches all nm entries.  But it does remove extraneous entries
10948         that may be confusing or cause issue in future maintenance.
10950 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10952         time_rz: return NULL if localtime_r fails
10953         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
10954         while still attempting to pacify bleeding-edge GCC.
10956         fts: port to C11 alignof
10957         * doc/posix-headers/stdalign.texi (stdalign.h):
10958         Document the C11 restriction.
10959         * lib/fts.c: Include stddef.h, for max_align_t.
10960         (fts_alloc): Align using max_align_t, not FTSENT.
10961         * modules/fts (Depends-on): Add stddef.
10963 2015-10-18  Jim Meyering  <meyering@fb.com>
10965         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
10966         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
10967         would see this:
10969         lib/time_rz.c: In function 'localtime_rz':
10970         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
10971           [-Werror=nonnull]
10972                    if (tm && !save_abbr (tz, tm))
10973                        ^
10975         That was complaining about "tm" because it is a parameter that was
10976         declared with the __nonnull__ attribute.
10977         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
10978         result of localtime_r.
10980 2015-10-17  Jim Meyering  <meyering@fb.com>
10982         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
10983         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
10984         name-extraction regexp mistakenly used \S+, and would mistakenly
10985         extract "*F" from "extern int *F()" rather than the desired "F".
10986         Use \w+ instead.
10988 2015-10-17  Jim Meyering  <meyering@fb.com>
10990         maint.mk: sc_tight_scope: factor and support OS X
10991         * top/maint.mk (_gl_tight_scope): Address three issues:
10992         - factor out four instances of code that wraps a string in "^...$"
10993         - allow nm-reported symbol names to have an optional leading "_"
10994         - add "main" to the list of ignored variable names, because on os x,
10995         "main" has nm-reported type "S" in the variable-checking section.
10997 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
10999         safe-alloc-tests: fix typo in license header
11000         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
11002 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
11004         copy-file: fix mem leak in error case
11005         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
11006         upon error opening or performing I/O to the src and dest files.
11008 2015-10-15  Mike Frysinger  <vapier@chromium.org>
11010         localename: control langinfo.h inclusion
11011         This header is only used to work around buggy behavior in old
11012         versions of glibc, so do not include it all the time.  Otherwise
11013         we get build failures on systems that do not provide langinfo.h.
11014         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
11015         in the source later on.
11016         The patch was originally submitted to gettext as:
11017         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
11019 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11021         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
11022         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
11023         * lib/u64.c, lib/unistd.c:
11024         Append 'typedef int dummy;', to pacify compilers that are picky
11025         about empty translation units.
11027 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
11029         accept4-tests: fix to avoid non portable flags
11030         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
11031         as they are the only documented ones, and passing others may trigger
11032         EINVAL (seen on FreeBSD 10.1-RELEASE).
11033         * doc/glibc-functions/accept4.texi: Mention that we don't provide
11034         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
11036 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
11038         gnulib-tool: fix tests of 'extensions' module
11039         This complements f8fe25fab60e3c687a124 commit.
11040         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
11041         emitting of initial gl_EARLY macros.
11042         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
11043         replaced with func_emit_pre_early_macros call.
11045 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
11047         unicase/locale-language: fix typo in utf-8 cookie
11048         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
11049         Problem reported by Zbigniew Jędrzejewski-Szmek.
11051 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
11053         xalloc: do not worry about GCC 5 warning on 32 bit
11054         * lib/xalloc.h: Revert previous change.
11055         I found a better way to fix this in coreutils.
11057 2015-10-02  Pádraig Brady  <P@draigBrady.com>
11059         xalloc: avoid GCC 5.1 warning on 32 bit
11060         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
11061         xalloc_oversized(), which was seen to give this warning
11062         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
11063         when simplifying conditional".
11065 2015-10-02  Daiki Ueno  <ueno@gnu.org>
11067         uniname/uniname-tests: avoid compiler warnings
11068         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
11069         unused local variables.
11070         (test_alias_lookup): Fix alias name display in failure cases.
11072 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11074         c-ctype: do not worry about EBCDIC + char signed
11075         Drop support for EBCDIC with char being signed, as this breaks too
11076         many programs.  Problem reported by Ben Pfaff in:
11077         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
11078         * lib/c-ctype.h: Verify that we are not using EBCDIC with
11079         char being signed.
11080         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
11081         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
11082         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
11083         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
11084         * tests/test-c-ctype.c (test_all):
11085         Simplify by assuming standard char values cannot be negative.
11086         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
11088 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11090         c-ctype: port better to z/OS EBCDIC
11091         Problems reported by Daniel Richard G. in:
11092         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
11093         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
11094         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
11095         (_C_CTYPE_OTHER_CNTRL): New macro.
11096         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
11097         from SCHAR_MIN, as the functions are defined only from values
11098         promoted from char or from unsigned char, not necessarily from
11099         signed char.
11101 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
11103         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
11105         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
11106         and ARFLAGS variables.  Doing this unconditionally could break
11107         later Automake's AM_PROG_AR invocation (at least it's
11108         AC_CHECK_TOOLS call to detect correct 'ar' binary).
11110         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
11111         Amsterdam Compiler Kit, so make the previous code to have effects
11112         only on ACK, and rather automatically call the Automake's
11113         AM_PROG_AR as soon as possible to decide other cases.
11115         References:
11116         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
11118         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
11119         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
11120         is possible, keep setting AR/ARFLAGS to reasonable defaults.
11121         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
11122         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
11123         'extensions' module is used.
11124         * modules/extensions (configure.ac-early): Remove as this snippet
11125         is added to gnulib-comp.m4 earlier anyway.
11127 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11129         sockets: MS Windows initalization fixes
11130         Problem reported by Test User in:
11131         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
11132         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
11133         Correct the endianness.
11134         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
11135         number mismatch, not just on <.  Cleanup before any such failure.
11137 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
11139         gc: fix detection of installed libgcrypt version
11140         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
11141         at least as recent as 1.4.4.  The previously used macro is not
11142         available now, since modules were removed in version 1.6.0.
11144 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11146         c-ctype: rewrite to use inline functions
11147         This simplifies maintenance, since it makes for just one
11148         implementation of each function, letting the compiler have the fun
11149         of optimization.  In practice this works well nowadays with GCC.
11150         E.g., c_isascii might need only three instructions even though the
11151         source code lists every ASCII character individually in a large
11152         switch statement.
11153         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
11154         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
11155         * NEWS: Document the API change.
11156         * lib/c-ctype.c: Drastically simplify, since this now just expands
11157         inline functions.
11158         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11159         (C_CTYPE_INLINE): New macro.
11160         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
11161         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
11162         Verify that either ASCII or EBCDIC is being used.
11163         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
11164         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
11165         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
11166         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
11167         New private macros.
11168         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
11169         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
11170         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
11171         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
11172         (c_tolower, c_toupper): When converting, return the unsigned char,
11173         as that is what z/OS does.
11174         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
11175         of some c-ctype.h macros.
11176         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
11177         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
11178         c_tolower promotion to be compatible with z/OS.
11180 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
11182         gitlog-to-changelog: trim only trailing whitespaces
11183         This is fix for --format regression introduced by commit
11184         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
11185         doubled %n string) had no effect anymore.  This format
11186         specification has been used e.g. by GNU paxuitils (commit
11187         edfd8bcc3).
11189         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
11190         newlines in commmit messages.
11192 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11194         Test that c_iscntrl agrees with iscntrl, etc.
11195         Suggested by Daniel Richard G. in:
11196         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
11197         * modules/c-ctype-tests (Depends-on): Add ctype.
11198         * tests/test-c-ctype.c: Include <ctype.h>.
11199         (NCHARS): New constant.
11200         (test_agree_with_C_locale): New function.
11201         (main): Use it.
11202         (test_all): Use named constants.
11204         c-ctype: improve c_isascii testing
11205         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
11206         Add a test to count the number of ASCII characters.
11208 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11210         savewd: remove SAVEWD_CHDIR_READABLE
11211         It was problematic in the light of file systems that ignore umask.
11212         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
11213         * NEWS: Document this.
11214         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
11215         successful, -1 (setting errno) on failure, rather than something
11216         more complicated than that.
11217         * lib/mkdir-p.c (make_dir_parents):
11218         Do not use SAVEWD_CHDIR_READABLE.
11219         * lib/savewd.c (savewd_chdir):
11220         Remove support for SAVEWD_CHDIR_READABLE.
11221         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
11223         c-ctype: port better to EBCDIC
11224         Problems reported by Daniel Richard G. in
11225         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
11226         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
11227         Include "verify.h".
11228         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
11229         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
11230         Define as enum constants with value false, if not defined, so that
11231         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
11232         code more portable, as both branches of the 'if' are compiled on
11233         all platforms.
11234         (C_CTYPE_EBCDIC): New constant.
11235         Verify that the character set is either ASCII or EBCDIC.
11236         (to_char): New static function.
11237         (c_isascii, c_iscntrl):
11238         Assume standard control-character assignments for EBCDIC.
11239         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
11240         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
11241         Rewrite to use 'if' instead of 'ifdef'.
11242         Use to_char if non-ASCII.  Prefer <= to >=.
11243         Prefer true and false to 1 and 0, for booleans.
11244         (c_iscntrl): Use 'if', not 'ifdef'.
11245         * modules/c-ctype (Depends-on): Add verify.
11246         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
11247         (to_char): New function.
11248         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
11250 2015-09-21  Pádraig Brady  <P@draigBrady.com>
11252         nanosleep: fix return code for interrupted replacement
11253         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
11254         that we return -1 in the case the call is interrupted by a signal,
11255         rather than the current value of 1.
11256         Diagnosed and tested by Daniel Richard G.
11258 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
11260         Diagnose ERE '()|\1'
11261         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
11262         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
11263         track of the set of previously-completed subexpressions available
11264         before the first alternative, and restore this set just before
11265         parsing each subsequent alternative.  This lets us diagnose the
11266         invalid back-reference in the ERE '()|\1'.
11268         regex: merge patches from libc
11270         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11271         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
11272         * lib/regex_internal.h:
11273         Include <libc-lock.h> instead of <bits/libc-lock.h>.
11275         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
11276         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
11277         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
11278         wcscoll.
11279         * lib/regexec.c (check_node_accept_bytes): Likewise.
11281         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
11282         Fix regex wcrtomb namespace (bug 18496).
11283         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
11284         instead of wcrtomb.
11286         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
11287         Fix regex wctype namespace (bug 18495).
11288         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
11289         instead of towlower.
11290         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
11291         instead of iswlower.  Call __towupper instead of towupper.
11292         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
11293         instead of iswalnum.
11295         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
11296         * lib/regcomp.c (parse_bracket_exp): Initialize type to
11297         COLL_SYM in a couple of places to avoid uninitialized variable
11298         wanings on tilegx gcc 4.8.2.
11300         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
11301         * lib/regex_internal.h: Remove NOT_IN_libc.
11303         2014-11-17  Andreas Schwab  <schwab@suse.de>
11304         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
11306         2014-09-11  Roland McGrath  <roland@hack.frob.com>
11307         Move findidx nested functions to top-level.
11308         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
11309         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
11310         Pass new arguments to findidx.
11311         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
11312         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
11313         Don't #include it inside the function.  Pass new arguments to findidx.
11314         * lib/regex_internal.h:
11315         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
11316         (re_string_elem_size_at): Don't #include it inside the function.
11317         Pass new arguments to findidx.
11319         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
11320         Check if DEBUG is defined in regex_internal.c
11321         * lib/regex_internal.c: Check if DEBUG is defined and is set.
11323 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
11325         ceill: detect buggy OpenBSD implementation
11326         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
11327         which returns zero for small values.  Discussed here:
11328         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
11330 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
11332         mountlist: add me_mntroot field on Linux machines
11333         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
11334         mount_entry so Linux machines based on /proc/self/mountinfo can
11335         distinguish between bind mounts and original mounts.  In reality bind
11336         mounts aren't treated differently than mountroot=/ mounts by the
11337         kernel, but the user often wants these bind mounts distinguished.
11338         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
11339         More details at https://pad.lv/1432871
11341 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
11343         doc: Describe to use multiple instances of gnulib
11344         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
11345         instances of gnulib with different modules can be used, for example one
11346         for a lib and another one for associated tools.
11348 2015-09-01  Pádraig Brady  <P@draigBrady.com>
11350         base32: mark function as __attribute__ const
11351         * lib/base32.h (isbase32): Mark __attribute__ const as
11352         suggested by GCC, and consistent with the base64 module.
11354 2015-08-20  Daiki Ueno  <ueno@gnu.org>
11356         gnulib-tool: don't transform binary files with sed
11357         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
11358         .mo and .class files.
11359         Reported by Denis Denisov.
11361 2015-08-10  Daiki Ueno  <ueno@gnu.org>
11363         gperf: respect silent rules
11364         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
11365         V_GPERF_0 for silent rules.
11366         * modules/iconv_open (Makefile.am): Use V_GPERF.
11367         * modules/unicase/locale-language (Makefile.am): Likewise.
11368         * modules/unicase/special-casing (Makefile.am): Likewise.
11369         * modules/unictype/category-byname (Makefile.am): Likewise.
11370         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
11371         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
11372         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
11373         * modules/unictype/property-byname (Makefile.am): Likewise.
11374         * modules/unictype/scripts (Makefile.am): Likewise.
11375         * modules/uninorm/composition (Makefile.am): Likewise.
11377 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
11379         Improve port of stdalign to C++11
11380         Problem reported by Sundaram in:
11381         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
11382         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
11383         (__alignas_is_defined): Define if C++11 or newer.
11385 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
11387         pmccabe2html: fix gawk regex escaping
11388         * build-aux/pmccabe2html: Add one more backslash to properly
11389         escape the gsub replacement value.  Fixes this error:
11390         gawk: ./build-aux/pmccabe2html:425: \
11391         warning: escape sequence `\&' treated as plain `&'
11393 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
11395         time_rz: port to pedantic memcpy
11396         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
11397         that reject memcpy (..., NULL, 0).
11399 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
11401         time_rz: port better to MinGW
11402         Don't change tzname, as this makes MinGW dump core (Bug#21020).
11403         Instead, store the tzname copy in the struct tm_zone object.
11404         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
11405         * lib/strftime.c [!_LIBC]:
11406         * lib/time_rz.c: Include time-internal.h.
11407         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
11408         name from *TZ rather than from TZNAME, doable because *TZ now has
11409         a tzname_copy member.
11410         * lib/time-internal.h: New file, with contents taken from
11411         lib/time_rz.c.  It's separate because strftime.c now accesses
11412         struct tm_zone members.
11413         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11414         New member tzname_copy.
11415         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
11416         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11417         Initialize tzname_copy member.
11418         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
11419         in tzname_copy member.
11420         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
11421         (restore_tzname): Remove; no longer needed.  All calls removed.
11422         * modules/time_rz (Files): Add lib/time-internal.h.
11424         time: port __need_time_t to MinGW
11425         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
11426         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
11428 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11430         strftime: fix newly-introduced bug on Solaris
11431         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
11432         consistently at the start, rather than doing some of the setup at
11433         the start and some in the %Z format spec.  This is cleaner, and
11434         works better with time_rz on platforms like Solaris where struct
11435         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
11436         mktime_z and localtime_rz can mess up the tzname cache.
11438         test-strftime: test for Solaris bug
11439         * modules/strftime-tests (Depends-on): Add strerror.
11440         * tests/test-strftime.c: Include <errno.h>.
11441         (posixtm_test): New function, containing the old 'main'.
11442         (struct tzalloc_test, struct localtime_rz_test): New types.
11443         (TZ, LT): New static vars.
11444         (tzalloc_test): New function.
11445         (main): Rewrite in terms of posixtm_test and tzalloc_test.
11447         time_rz: port to Solaris etc.
11448         Works around a tzname problem on platforms like Solaris that have
11449         tzname but not tm_zone, by setting tzname at the appropriate time
11450         and restoring it later.
11451         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
11452         New static vars.
11453         (save_abbr) [HAVE_TZNAME]: Set them.
11454         (revert_tz) [HAVE_TZNAME]: Clear or use them.
11455         (restore_tzname): New function.
11456         (localtime_rz, mktime_z): Use it.
11458         time_rz: now LGPL
11459         * modules/time_rz (License): Now LGPL, because strftime depends on it.
11461         time_rz: make a constant 'const'
11462         * lib/time_rz.c (local_tz): Now const.
11464         time_rz: fix off-by-one typo
11465         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
11467 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11469         fprintftime, strftime: use timezone_t args
11470         * NEWS: Document the change.
11471         * lib/fprintftime.h (fprintftime):
11472         * lib/strftime.c (extra_args) [my_strftime]:
11473         * lib/strftime.h (nstrftime):
11474         Time zone arg is now of type timezone_t, not int.
11475         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
11476         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
11477         (my_strftime) [emacs && !my_strftime]:
11478         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
11479         Remove; Emacs doesn't need this any more.
11480         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
11481         fprintftime and nstrftime to call tzset.
11482         (ut) [!my_strftime]: Remove, replacing with ...
11483         (tz) [!my_stftime]: ... this new macro.  All uses changed.
11484         (strftime_case_): Use localtime_rz and mktime_z instead
11485         of localtime_r and mktime.
11486         * modules/fprintftime (Depends-on): Add time_rz.
11487         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
11488         * tests/test-strftime.c (main): Adjust to new nstrftime API.
11490         time_rz: new module
11491         * MODULES.html.sh: Add time_rz.
11492         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
11493         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
11494         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
11495         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
11496         New var HAVE_TIMEZONE_T (default 0).
11497         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
11498         New var GNULIB_TIME_RZ (default 0).
11499         * modules/time (time.h): Substitute the new vars.
11501         flexmember: license is now unlimited
11502         * modules/flexmember (License): Change to unlimited,
11503         since its only source file gives an unlimited license.
11505 2015-07-15  Eric Blake  <eblake@redhat.com>
11507         maint: update copyright paper procedures
11508         * config/srclist.txt: Drop outdated files.
11509         * doc/Copyright/conditions.txt: Update to latest.
11510         * doc/Copyright/assign.changes.manual: Delete.
11511         * doc/Copyright/assign.future.manual: Likewise.
11512         * doc/Copyright/assign.manual: Likewise.
11513         * doc/Copyright/assign.translation.manual: Likewise.
11514         * doc/Copyright/disclaim.changes.manual: Likewise.
11515         * doc/Copyright/disclaim.manual: Likewise.
11516         * doc/Copyright/disclaim.program: Likewise.
11518 2015-07-07  Daiki Ueno  <ueno@gnu.org>
11520         localename: fix link error on Illumos
11521         Illumos defines __sun, but does not have getlocalename_l nor the
11522         equivalent.  This partially reverts commit 387c214.
11523         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
11524         available, as well as uselocale.
11525         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
11526         use getlocalename_l if it is not available.
11528 2015-07-07  Daiki Ueno  <ueno@gnu.org>
11530         unistr/uN-strtok-tests: avoid a trivial leak
11531         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
11532         input and delim after the multibyte delimiter tests.
11534 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
11536         file-has-acl, acl-permissions: fix HP-UX typos
11537         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
11538         * lib/file-has-acl.c (file_has_acl):
11539         * lib/set-permissions.c (context_acl_from_mode)
11540         (context_aclv_from_mode, set_acls):
11541         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
11542         They were introduced by the recent ACL changes.
11544         regex: match current GNU grep behavior
11545         These symbols have not matched GNU grep behavior for quite some time.
11546         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
11547         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
11548         Change to match current GNU behavior.
11549         Simplify by expressing it as differences from POSIX BREs and EREs.
11550         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
11552 2015-07-03  Jim Meyering  <meyering@fb.com>
11554         set-permissions.c: adjust acl_from_mode's cpp guard
11555         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
11556         directives identical to those guarding the sole use.
11557         Otherwise, on some systems, we'd get a warning about
11558         the function being defined but not used.
11559         Also, filter through cppi to correct misleading indentation
11560         of cpp directives.
11562 2015-07-03  Pádraig Brady  <P@draigBrady.com>
11564         tests: restrict shells to those that support 'local'
11565         The local keyword is very widely supported and used
11566         in tests in coreutils and grep at least.  Therefore
11567         restrict to testing with shells that support it.
11568         This mainly excludes /bin/sh on Solaris.
11569         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
11571 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
11572         and Daiki Ueno  <ueno@gnu.org>
11574         unistr/uN-strtok: handle multibyte delimiters
11575         Previously, uN_strtok moved PTR to the next unit to the token end.
11576         When DELIM contained a multibyte character, the new position could
11577         be a middle of a multibyte character.
11578         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
11579         after the token.
11580         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
11581         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
11582         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
11583         * modules/unistr/u8-strtok (Depends-on): Depend on
11584         unistr/u8-strmblen.
11585         * modules/unistr/u16-strtok (Depends-on): Depend on
11586         unistr/u16-strmblen.
11587         * modules/unistr/u32-strtok (Depends-on): Depend on
11588         unistr/u32-strmblen.
11589         * tests/unistr/test-u-strtok.h: New file.
11590         * tests/unistr/test-u8-strtok.c: New file.
11591         * tests/unistr/test-u16-strtok.c: New file.
11592         * tests/unistr/test-u32-strtok.c: New file.
11593         * modules/unistr/u8-strtok-tests: New file.
11594         * modules/unistr/u32-strtok-tests: New file.
11595         * modules/unistr/u16-strtok-tests: New file.
11597 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
11599         update-copyright: fix test failure with perl >= 5.22 (trivial)
11600         * build-aux/update-copyright: Escape a literal left curly bracket,
11601         required with perl >= 5.22
11603 2015-07-02  Daiki Ueno  <ueno@gnu.org>
11605         u{16,32}-strstr-tests: relax timeout condition
11606         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
11607         tests can take longer than 5 seconds to complete.
11608         Reported by Dagobert Michelsen in:
11609         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
11610         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
11611         seconds to 10 seconds.
11612         * tests/unistr/test-u32-strstr.c (main): Likewise.
11614 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11616         gnulib-common.m4: change the ARFLAGS default to 'cr'
11617         In some GNU/Linux distributions people started to compile 'ar'
11618         binary with --enable-deterministic-archives (binutils project).
11619         That, however, in combination with previous autotools long time
11620         working default AR{_,}FLAGS=cru causes warnings on such
11621         installations:
11622         ar: `u' modifier ignored since `D' is the default (see `U')
11623         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
11624         set already.
11626 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11628         selinux-h: avoid double free after *getfilecon()
11629         Originally reported by Ben Shelton on bug-tar:
11630         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
11631         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
11632         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
11633         param should be freed by freecon(3) (regardless the return value).
11635 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
11637         fix pty related tests issues on Windows (trivial)
11638         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
11639         however it's still present in tests/ subdirectory of the final project.
11640         Therefore avoid it to pass `make check`.
11641         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
11642         will just return -ENOSYS, so avoid this non applicable test allowing
11643         the build to proceed.
11645 2015-07-01  Pádraig Brady  <P@draigBrady.com>
11647         acl: fix definition of acl_from_mode on FreeBSD
11648         This was causing basic coreutils copy operations to fail
11649         with ENOTSUP or ENOENT error messages.
11650         * lib/acl-internal.h (acl_from_mode): Only define when
11651         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
11652         of acl_from_mode() defined in lib/set-permissions.c to
11653         be used on FreeBSD at least.
11654         * lib/set-permissions.c: Fix up comment spelling,
11655         and a redundant variable assignment; noticed in passing.
11657 2015-06-30  Pádraig Brady  <P@draigBrady.com>
11659         readutmp: port to FreeBSD >= 9
11660         * lib/readutmp.h: Map utmpxname() to setutxdb().
11661         With that coreutils who(1) and pinky(1) tests pass.
11663 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11665         mgetgroups: port to strict OS X
11666         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
11667         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
11668         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
11669         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
11671 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
11673         mgetgroups: port to strict OS X
11674         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
11675         Document the getgrouplist problem.
11676         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
11677         New macro.
11678         (mgetgroups): Use it.
11679         * m4/mgetgroups.m4 (gl_MGETGROUPS):
11680         Check for OS X signature for getgrouplist.
11682 2015-06-29  Jim Meyering  <meyering@fb.com>
11684         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
11685         It started like this when building coreutils' latest on OS X,
11686         invoking ./configure with a nonempty --cache=.cache:
11688           lib/linkat.c:46:42: error: operator '||' has no right operand
11689           lib/linkat.c: In function 'rpl_linkat':
11690           lib/linkat.c:330:27: error: #if with no expression
11692         Here's linkat.c's line 46:
11694           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
11696         Here's some context:
11698           $ grep linkat_nofoll .cache
11699           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
11700           $ grep LINKAT_SYM lib/config.h
11701           #define LINKAT_SYMLINK_NOTSUP
11703         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
11704         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
11705         but that violates a tenet of AC_CACHE_CHECK: it must
11706         have no side effect other than setting its cache variable.
11708         What happens is that when the cache is set, we'd skip the
11709         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
11710         defined to whatever value it happened to have in configure's
11711         environment.  In my case, it was not defined, so this later code:
11713           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
11714             [Define to 1 if linkat can create hardlinks to symlinks])
11716         would emit code with an empty RHS.
11718         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
11719         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
11721 2015-06-28  Jim Meyering  <meyering@fb.com>
11723         mountlist: avoid an unused-label warning on OS X
11724         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
11725         Building on OS X, I saw a warning about the "free_then_fail" label
11726         being unused.  Give it the _GL_UNUSED_LABEL attribute.
11728         error.c: correct printf-style format: %d -> %u
11729         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
11730         rather than %d, to match the type of "line_number", unsigned int.
11732 2015-06-25  Pádraig Brady  <P@draigBrady.com>
11734         fts: avoid reading beyond the heap allocation
11735         GCC 5.1.1 with -O2 and -fsanitize=address reports
11736         a read of size 4 from a heap object of size 3 is indeed invalid,
11737         though this may be due to incorrect padding assumptions by GCC, see:
11738         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11739         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
11740         * modules/fts: Depend on stdalign.
11742 2015-06-24  Pádraig Brady  <P@draigBrady.com>
11744         savedir: avoid undefined behavior in qsort call
11745         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
11746         "runtime error: null pointer passed as argument 1,
11747          which is declared to never be null"
11748         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
11750 2015-06-24  Pádraig Brady  <P@draigBrady.com>
11752         userspec: avoid undefined behavior in gettext call
11753         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
11754         "runtime error: null pointer passed as argument 2,
11755          which is declared to never be null"
11756         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
11758 2015-06-20  Glenn Morris  <rgm@gnu.org>
11760         gitlog-to-changelog: improve gitmerge.el commits
11761         Let the Emacs ChangeLog generation process exclude "skipped"
11762         messages from merge commits (Bug#20717).
11763         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
11765 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11767         wchar: fix MinGW compilation warnings
11768         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
11769         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
11770         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
11772 2015-06-20  Daiki Ueno  <ueno@gnu.org>
11774         uniname/uniname-tests: use pristine data files
11775         For copyright and maintenance reasons, use the data files from UCD
11776         without modification.
11777         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
11778         (getfield): Remove.
11779         (aliases_count): New global variable.
11780         (fill_names): Skip comments and empty lines in the input.  Don't
11781         use getfield.
11782         (fill_aliases): Likewise.
11783         (main): Change the expected command line arguments to:
11784         NAMES... ["--" ALIASES...].
11785         * tests/uniname/test-uninames.sh: Adjust to the change in
11786         test-uninames.c.
11787         * tests/uniname/UnicodeDataNames.txt: Remove.
11788         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
11789         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
11790         file from Unicode 8.0.0.
11792 2015-06-19  Pádraig Brady  <P@draigBrady.com>
11794         linked-list, linkedhash-list: avoid compiler warnings
11795         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
11796         -Werror=suggest-attribute=pure (from GCC 5.1.1).
11798 2015-06-19  Daiki Ueno  <ueno@gnu.org>
11800         libunistring: bump minimum version to 0.9.6
11801         * all modules depending on updated Unicode data: Regenerate.
11802         The modules are listed by a script that does:
11803         - for each file listed by: git show --oneline --name-only 705f4efc
11804           - deduce the containing modules, based on "Files:"
11805         - deduce the modules which depend on the containing modules, based
11806           on "Depends-on:"
11808 2015-06-18  Daiki Ueno  <ueno@gnu.org>
11810         uniname/uniname: update to Unicode 8.0.0
11811         * lib/uniname/uninames.h: Regenerate.
11812         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
11813         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
11815 2015-06-18  Daiki Ueno  <ueno@gnu.org>
11817         libunistring: update to Unicode 8.0.0
11818         * lib/gen-uni-tables.c (SIZEOF): New macro.
11819         (output_numeric): Increase the maximum number of fractions from
11820         128 to 160.  Increase the level3 value width from 7 bits to 8
11821         bits.  Use SIZEOF instead of a hard-coded integer.
11822         (output_blocks): Decrease the cut-off threshold from 0x30000 to
11823         0x28000.
11824         (fill_blocks): Increase the maximum number of blocks from 256 to
11825         384.  Use SIZEOF instead of a hard-coded integer.
11826         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
11827         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
11828         value width.
11829         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
11830         a new case added to LBP22.
11831         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
11832         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
11833         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
11834         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
11835         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
11836         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11837         lib/uniwidth/width.c.
11838         * all generated files under lib/uni* and tests/uni*: Regenerate.
11840 2015-06-16  Pádraig Brady  <P@draigBrady.com>
11842         gnu-web-doc-update: add --mirror to remove stale files
11843         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
11844         out of date files from the CVS server.  Since this is usually
11845         appropriate, a prompt is given when the option is not specified,
11846         along with the `cvs remove` command that would be run.
11848 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11850         acl-permissions: pacify -Wsuggest-attribute=const
11851         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
11852         * lib/acl-internal.h (free_permission_context):
11853         Declare with attribute const if ! (defined USE_ACL &&
11854         (HAVE_ACL_GET_FILE || defined GETACL)).
11856         fsync: document AIX misbehavior
11857         * doc/posix-functions/fsync.texi (fsync):
11858         Document failure on AIX with read-only file descriptor.
11860 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
11862         stdio: Don't redefine gets when using C++
11863         * lib/stdio.in.h (gets): Disable warning on C++.
11865 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
11867         acl-permissions: port to AIX, C89 HP-UX
11868         Problems reported by Michael Felt.
11869         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
11870         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
11871         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
11872         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
11873         Add cast for AIX, whose system calls are declared to accept
11874         char * even though the arguments are really char const *.
11875         * lib/get-permissions.c (get_permissions):
11876         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
11877         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
11878         that broke a build.
11879         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
11880         Rework types to pacify xlc.
11882 2015-06-03  Pádraig Brady  <P@draigBrady.com>
11884         vasprintf-posix: avoid compiling vasnprintf where possible
11885         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
11886         module where not required.  For example on a GNU/Linux system
11887         when gnulib-tool is run with the --conditional-dependencies option.
11889 2015-06-02  Pádraig Brady  <P@draigBrady.com>
11891         file-has-acl: fix build on Mac OS X 10
11892         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
11893         which has an incompatible 6 parameter getxattr() call.
11894         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
11895         call on Mac OS X >= 10.4.
11896         * doc/glibc-functions/fgetxattr.texi: Likewise.
11897         * lib/file-has-acl.c: Revert to more complete combined check.
11898         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
11899         Reported by Jack Howarth.
11901 2015-06-02  Pádraig Brady  <P@draigBrady.com>
11903         prefix-gnulib-mk: remove no longer needed special case
11904         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
11905         continued lib_SOURCES lines are no longer present,
11906         so special case handling of such entries is not required.
11908 2015-06-01  Pádraig Brady  <P@draigBrady.com>
11910         acl: don't depend on the deprecated qacl module
11911         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
11913 2015-06-01  Pádraig Brady  <P@draigBrady.com>
11915         gnulib-tool: concatenate lib_SOURCES to a single line
11916         * gnulib-tool: Refactor the line merging sed logic,
11917         and use that to output a single lib_SOURCES line for each module.
11918         gnulib using projects often postprocess this output to prepend
11919         subdir paths to each item, and having a single line simplifies this
11920         processing allowing better decoupling from the gnulib-tool output.
11922 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
11924         pthread_sigmask: discount system version if a simple macro (trivial)
11925         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
11926         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
11927         function to ensure it's available.
11929 2015-05-31  Pádraig Brady  <P@draigBrady.com>
11931         readlinkat: avoid OS X 10.10 trailing slash bug
11932         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
11933         has this bug.
11934         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
11935         that OS X 10.10 has this function.
11936         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
11937         as done for readlink().
11938         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
11939         trailing slash bug, and assume readlinkat() has the same issue.
11940         Also fix a typo where $gl_cv_decl_readlink_works was tested,
11941         rather than the correct $gl_cv_decl_readlinkat_works.
11943 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
11945         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
11946         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
11947         module rewrite.
11949         acl-permissions: Fix build on Solaris and Cygwin
11950         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
11951         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
11952         ace_entries variables have moved into struct permission_context but
11953         they were still accessed as local variables here.
11955 2015-05-29  Pádraig Brady  <P@draigBrady.com>
11957         linkat: avoid OS X 10.10 trailing slash with symlink bug
11958         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
11959         causes the symlink to be dereferenced, and if it points
11960         to a non existent file, that file will be created as
11961         a hard link to "path1".
11962         This fixes a test failure in test-linkat.c.
11963         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
11964         this case.  The existing workaround in linkat.c for
11965         trailing slash issues, suffices for this case.
11966         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
11967         the list of platforms with trailing slash issues.
11969 2015-05-28  Pádraig Brady  <P@draigBrady.com>
11971         unlinkat: handle ignoring of ".." on Darwin 14
11972         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
11973         on Mac OS X 10.10, where it ignores paths with a trailing "..",
11974         so handle in the same manner.
11975         * m4/unlinkat.m4: Comment on this Darwin issue.
11976         * doc/posix-functions/unlink.texi: Update the latest version
11977         where the issue was seen.
11978         * doc/posix-functions/unlinkat.texi: Mention this issue.
11979         Fixes a test failure in test-unlinkat.c.
11981 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
11983         qacl: split into qcopy-acl and qset-acl
11984         Emacs needs the former, but not the latter.
11985         * modules/acl-permissions: New file, containing most of the old qacl.
11986         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
11987         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
11988         * modules/qcopy-acl, modules/qset-acl: New files.
11989         * MODULES.html.sh (File system functions):
11990         Mention the new modules, and mention qacl while we're at it.
11992 2015-05-27  Glenn Morris  <rgm@gnu.org>
11994         gitlog-to-changelog: new option --ignore-line
11995         (This patch is imported from the GNU Emacs master.)
11996         This option ignores individual commit lines matching a pattern.
11997         * build-aux/gitlog-to-changelog: Add --ignore-line option.
11999 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
12001         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
12002         Implement get_permissions and set_permissions primitives for getting all
12003         the permissions of a file, storing them, and later setting them. (In the
12004         minimal case, the permissions consist only of a file mode.) Reimplement
12005         qset_acl and qcopy_acl based on these new primitives: this avoids code
12006         duplication and makes error handling more consistent.
12007         The Solaris and Cygwin code still uses duplicate code paths for setting
12008         a file mode while making sure that no acls exist and setting an explicit
12009         acl; this is no worse than before, but could be cleaned up.  The AIX
12010         code still doesn't read ACLs, it only makes sure that acls don't get in
12011         the way when setting a file mode.
12012         * lib/acl-internal.h (struct permission_context): New data structure.
12013         (get_permissions, set_permissions, free_permission_context): Declare.
12014         * lib/acl-internal.c (free_permission_context): New helper function.
12015         * lib/get-permissions.c (get_permissions): New helper function split off
12016         from qcopy_acl.
12017         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
12018         AIX, set a file's permissions based only on a file mode.
12019         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
12020         other platforms construct a temporary acl from the file mode and set
12021         that acl in the same way as setting an acl read from the source file.
12022         This should help avoid code duplication and inconsistent / buggy
12023         behavior.
12024         (set_acls): New helper function Split off from qcopy_acl.
12025         (chmod_or_fchmod): Moved here from qset-acl.c.
12026         (set_permissions): New helper function.
12027         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
12028         set_permissions.
12029         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
12030         * modules/qacl: Add get-permissions.c and set-permissions.c.
12032         file-has-acl: Split feature tests again (Bug#20667)
12033         * lib/file-has-acl.c: Instead of testing for
12034         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
12035         define them when needed.
12036         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
12037         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
12039 2015-05-27  Pádraig Brady  <P@draigBrady.com>
12041         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
12042         This avoids a conflict with "FORTIFY_SOURCE" variants
12043         of the string functions when they're replaced on NetBSD-6.0.1
12044         and Darwin-14.3.0 at least.
12045         * lib/string.in.h: Avoid including our "lib/string.h" while
12046         including the system <string.h>.
12048 2015-05-26  Eric Blake  <eblake@redhat.com>
12050         stdio: limit __gnu_printf__ witness to gcc 4.4+
12051         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
12052         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
12054         error: use correct printf attributes on mingw
12055         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
12057         inttypes: force correct mingw PRIdMAX even without <stdio.h>
12058         * modules/inttypes (Depends-on): Require extensions, so that mingw
12059         always uses GNU style inttypes.
12060         * lib/inttypes.in.h: On mingw, include <stdio.h>.
12062         stdio: fix probe on mingw under gcc 5.1
12063         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
12064         around new gcc preprocessor rules.
12066 2015-05-07  Glenn Morris  <rgm@gnu.org>
12068         gitlog-to-changelog: parse "Tiny-change"
12069         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
12070         "Copyright-paperwork-exempt".  (Bug#20324)
12072 2015-05-06  Pádraig Brady  <P@draigBrady.com>
12074         doc: document glibc posix_fallocate() issues
12075         * doc/posix-functions/posix_fallocate.texi: Mention the
12076         glibc efficiency problems and issues with NFS.
12078 2015-05-05  Karl Berry  <karl@freefriends.org>
12080         * build-aux/gendocs.sh (usage): document new css default
12081         for HTML (--htmlarg).
12083 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
12085         extern-inline: no need for workaround in GCC 5.1
12086         * doc/extern-inline.texi (extern inline):
12087         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
12088         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
12089         around these bugs in GCC 5.1 and later.  Maybe in a decade or
12090         two we can remove these workarounds.
12092 2015-04-28  Pádraig Brady  <P@draigBrady.com>
12094         eealloc, pagealign_alloc, xalloc: avoid clang warnings
12095         Avoid [-Wunknown-attributes] warnings like:
12096         warning: unknown attribute '__alloc_size__' ignored
12097         * lib/xalloc.h: Don't use the __alloc_size__  attribute
12098         with clang, as support has been fully removed as of clang 3.5:
12099         https://github.com/llvm-mirror/clang/commit/c047507a
12100         * lib/eealloc.h: Likewise.
12101         * lib/pagealign_alloc.h: Likewise.
12103 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12105         tests: pacify GCC 5.1's stricter printf checking
12106         * tests/test-dirname.c (main):
12107         * tests/test-getaddrinfo.c (simple):
12108         * tests/test-getlogin.c (main):
12109         * tests/test-getndelim2.c (main):
12110         * tests/test-inttostr.c (CK):
12111         * tests/test-md5.c (main):
12112         * tests/test-read-file.c (main):
12113         * tests/test-sha1.c (main):
12114         Fix mismatches between printf format and value signedness.
12115         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
12116         Remove, as CAST_VAL always returned a value of type uintmax_t.
12118         fts: port to GCC 5.1 with --enable-gcc-warnings
12119         Without this fix, GCC 5.1 (correctly) warns about a subscript
12120         error on the fts_name component of FTSENT.  It's actually a
12121         flexible member, so define it that way on C99 or later hosts.
12122         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
12123         structure that now has a flexible array member.
12124         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
12125         (FTSENT): fts_name is now flexible on C99-or-later platforms.
12126         * modules/fts (Depends-on): Add flexmember.
12128 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12130         file-has-acl: port to CentOS 6
12131         Problem reported by Tom G. Christensen in:
12132         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
12133         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
12134         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
12135         HAVE_GETXATTR.
12136         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
12137         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
12138         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
12139         file-has-acl.c actually needs.
12141 2015-04-26  Pádraig Brady  <P@draigBrady.com>
12143         file-has-acl: always return false when ACLs aren't supported
12144         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
12145         change the GNU/Linux getxattr path, to transform "not supported"
12146         errors to a false return rather than an error.  This is handled
12147         within file_has_acl() due to the platform specific tests to
12148         determine if ACLs are not supported.
12150 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12152         gettext: propagate po/Makefile.in.in too
12153         * build-aux/po/Makefile.in.in: Copy from latest gettext.
12154         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
12155         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
12156         between Makefile.in.in and the gettext-runtime m4 files.
12158 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12160         file-has-acl: new module, split from acl
12161         And add a new module file-has-acl-tests to match.
12162         I ran into a problem with the recent changes to the acl module,
12163         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
12164         When using the fixed version with Emacs, I discovered that
12165         file-has-acl wasn't separated out well enough for Emacs (e.g., it
12166         had multiple libraries, but needed only one), so I fixed that too.
12167         * NEWS: Document this incompatible change.
12168         * modules/file-has-acl, modules/file-has-acl-tests: New files.
12169         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
12170         Initialize gl_need_lib_has_acl.
12171         (gl_FUNC_ACL): Require it.
12172         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
12173         Move the file-has-acl.c-relevant stuff to ...
12174         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
12175         use_xattrs = 0' typo, and omit some needless work.  Set
12176         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
12177         when gl_FUNC_ACL is called.
12178         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
12179         (Link): Remove $(LIB_HAS_ACL).
12180         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
12181         (check_PROGRAMS): Move stuff relevant to file-has-acl to
12182         modules/file-has-acl-tests.
12183         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
12185         manywarnings: add GCC 5.1 warnings
12186         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
12187         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
12188         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
12189         -Wsuggest-override, -Wuse-without-only.  Change
12190         -Wnormalized=... operands to match 5.1.
12191         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
12192         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
12193         -Wdiscarded-qualifiers, -Wformat-signedness,
12194         -Wincompatible-pointer-types, -Wint-conversion,
12195         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
12196         -Wshift-count-negative, -Wshift-count-overflow,
12197         -Wsizeof-array-argument, -Wsuggest-final-methods,
12198         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
12199         and add -Warray-bounds=2 as a special case.
12201 2015-04-21  Simon Josefsson  <simon@josefsson.org>
12203         doc: update FDL template to match FDL examples.
12204         * doc/alloca-opt.texi:
12205         * doc/alloca.texi:
12206         * doc/c-ctype.texi:
12207         * doc/c-strcase.texi:
12208         * doc/c-strcaseeq.texi:
12209         * doc/c-strcasestr.texi:
12210         * doc/c-strstr.texi:
12211         * doc/c-strtod.texi:
12212         * doc/c-strtold.texi:
12213         * doc/ctime.texi:
12214         * doc/error.texi:
12215         * doc/gcd.texi:
12216         * doc/gnulib-tool.texi:
12217         * doc/inet_ntoa.texi:
12218         * doc/intprops.texi:
12219         * doc/lib-symbol-visibility.texi:
12220         * doc/maintain.texi:
12221         * doc/parse-datetime.texi:
12222         * doc/quote.texi:
12223         * doc/regexprops-generic.texi:
12224         * doc/standards.texi: Remove spurious 'with' in FDL license
12225         template.
12227 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
12229         lstat: fix cross-compilation 'ln -s' problem
12230         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
12231         Have the test program call 'symlink' rather than a separate
12232         script run 'ln -s'; this is more likely to work in
12233         cross-compilation environments.  Reported by Pavel Fedin in:
12234         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
12236 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
12238         gendocs.sh: default to a common CSS style sheet for HTML output
12239         * build-aux/gendocs.sh (htmlarg): Change default value.
12241 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
12243         gnulib-tool: output bold attribute more portably
12244         * gnulib-tool (func_show_module_list): Change hexadecimal
12245         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
12246         encoded numbers as arguments to `printf' is not portable,
12247         and is not claimed by POSIX.  This is the case with FreeBSD.
12249 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
12251         qacl: Simplify HP-UX acl_nontrivial check
12252         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
12253         acl_nontrivial. Check if the acl has at most three entries instead (it must
12254         have exactly three entries according to the HP-UX documentation). Ignore
12255         uids and gids as long as an entry is either for a user (i.e., the owner),
12256         a group (i.e., the owning group), or others.
12257         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
12258         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
12260 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
12262         acl: On Linux, check for acls without libacl
12263         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
12264         library function to check for the presence of acls, avoiding a library.
12265         * lib/file-has-acl.c: Include xattr headers if we have them.
12266         (file_has_acl): On Linux, use getxattr().
12267         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
12268         file_has_acl(). Check for xattr headers and getxattr().
12270 2015-04-14  Ángel González  <keisial@gmail.com>
12272         tempname: avoid unused parameter warnings (trivial)
12273         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
12274         (try_nocreate): Likewise.
12276 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
12278         fseeko: fix build failure on NetBSD >= 6 (trivial)
12279         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
12280         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
12282 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12284         gitlog-to-changelog: port to MS-Windows
12285         * build-aux/gitlog-to-changelog (git_dir_option):
12286         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
12287         MS-Windows Perl.  Reported by Eli Zaretskii in:
12288         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
12290 2015-04-07  Karl Berry  <karl@gnu.org>
12292         gendocs: new option --tex for passing args to texi2dvi.
12293         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
12294         (TEXI2DVI): cut to just command name.
12295         (usage): mention new option, and update copyright.
12296         <generate_tex>: use it.
12298 2015-04-07  Karl Berry  <karl@gnu.org>
12300         * config/srclistvars.sh (GETTEXT): new definition.
12301         * config/srclist.txt: use it for gettext .m4 files.
12302         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
12303         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
12304         and continuing into April.
12306 2015-04-07  Daiki Ueno  <ueno@gnu.org>
12308         uniname/uniname-tests: fix failure due to alias
12309         Reported by Jack Howarth in:
12310         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
12311         * tests/uniname/test-uninames.c (name_has_alias): New function.
12312         (test_inverse_lookup): Exclude character name with valid alias,
12313         from randomly generated character names.
12314         (main): Fill unicode_aliases before calling test functions.
12316 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
12318         hash: remove deprecated hash_insert0 function
12319         * lib/hash.h (hash_insert0): Remove deprecated function.
12320         * lib/hash.c (hash_insert0): Likewise.
12322 2015-04-02  Pádraig Brady  <P@draigBrady.com>
12324         mountlist: remove dependency on libmount
12325         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
12326         directly, rather than depending on libmount, which has many
12327         dependencies due to its dependence on libselinux, as detailed at:
12328         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
12329         Note we restrict this to __linux__ as that's probably where this
12330         interface will remain.  If ever porting, it would be best
12331         to first pull the makedev() wrapper from coreutils to a gnulib module.
12332         Note also we don't add a getline dependency to the mountlist module,
12333         as all Linux versions are sufficient.
12335 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
12337         stddef: port to pre-C11 GCC on x86
12338         On this platform, max_align_t should have an alignment of 8 even
12339         though the storage alignments of double, long, etc. max out at 4.
12340         Inspired by a comment of Andreas Schwab's here:
12341         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
12342         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
12343         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
12344         * tests/test-stddef.c: Test __alignof__ too, if available.
12346 2015-03-24  Pádraig Brady  <P@draigBrady.com>
12348         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
12349         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
12351 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
12353         yesno: make EOL optional in ENABLE_NLS case also (trival)
12354         * lib/yesno.c (yesno): Check for EOL before replacing.
12355         * tests/test-yesno.sh: Add a test case (test along with gettext).
12357 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12359         fdopendir-tests: test it does not close its arg
12360         * tests/test-fdopendir.c (main): Test that fdopendir does not
12361         close its argument.  From a suggestion by David Grayson in:
12362         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
12364 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12366         gitlog-to-changelog: trim trailing white space
12367         * build-aux/gitlog-to-changelog (main):
12368         Trim trailing white space from commit message lines.
12369         This is helpful for processing the GNU Emacs repository,
12370         which dates back to 1985 and contains a lot of such lines.
12372         gitlog-to-changelog: new option --ignore-matching
12373         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
12374         Support new option --ignore-matching=PAT, which ignores all
12375         commit messages whose first line matches PAT.
12377 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12379         fdopendir: port better to MinGW
12380         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
12381         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
12382         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
12383         * modules/fdopendir (Depends-on): Add dirfd.
12385 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
12387         fdopendir: fix typo in comment
12388         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
12390 2015-03-09  Eric Blake  <eblake@redhat.com>
12392         error: document all entry points provided
12393         * doc/glibc-functions/error_print_progname.texi
12394         (error_print_progname): Mention the error module.
12395         * doc/glibc-functions/error_at_line.texi (error_at_line):
12396         Likewise.
12397         * doc/glibc-functions/error_message_count.texi
12398         (error_message_count): Likewise.
12399         * doc/glibc-functions/error_one_per_line.texi
12400         (error_one_per_line): Likewise.
12402 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
12404         vasnprintf: pacify clang 3.5.0
12405         Problem reported by Werner Lemberg in:
12406         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
12407         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
12408         The casts aren't needed, since the characters in question are ASCII.
12410 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12412         glob, etc.: port to MSVC v18 on MS-Windows 8.1
12413         * lib/dirent--.h (GNULIB_defined_opendir):
12414         * lib/dirent.in.h (GNULIB_defined_opendir)
12415         (GNULIB_defined_closedir):
12416         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
12417         #undef only if Gnulib defined it.
12419         poll: port to MSVC v18 on MS-Windows 8.1
12420         Problem reported by Gisle Vanem in:
12421         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
12422         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
12423         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
12424         Add sys_socket.
12426 2015-02-24  Pádraig Brady  <P@draigBrady.com>
12428         tests: support stderr verification with returns_()
12429         * tests/init.sh (returns_): Disable tracing for this wrapper
12430         function, so that stderr of the wrapped command is unchanged,
12431         allowing for verification of the contents.
12433 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
12435         passfd: avoid valgrind uninitalised data warning
12436         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
12437         to include just the fd we've initialized, rather than including
12438         the extra space used for alignment.
12440 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12442         uniwbrk/u32-wordbreaks-tests: fix copyright
12443         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
12445         dup2: doc and test for Android bug
12446         Reported by Kevin Cernekee in:
12447         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
12448         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12449         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
12451 2015-02-23  Kevin Cernekee  <cernekee@google.com>
12453         Replace dup2() on Android
12454         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
12455         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
12456         fails.  Using rpl_dup2() fixes this because it has an explicit test
12457         for this condition.
12459 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
12461         Android doesn't define RLIM_SAVED_*
12462         Portability problem reported by Kevin Cernekee in:
12463         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
12464         * doc/posix-headers/sys_resource.texi (sys/resource.h):
12465         Mention the portability problem.
12466         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
12467         Define if not defined.
12468         * m4/dup2.m4 (gl_FUNC_DUP2):
12469         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12470         Likewise.
12472 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12474         vasnprintf-posix-tests: use consistent test
12475         * tests/test-vasnprintf-posix.c (test_function):
12476         Use "<" in assert instead of "<=", for consistency with other tests.
12478 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12480         printf, isinf, etc.: noncanonical != NaN
12481         Do not require that isinf, printf, etc. treat noncanonical
12482         values as NaNs.  Instead, require only that they do not crash.
12483         Problem reported by Joseph Myers in:
12484         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
12485         * doc/posix-functions/dprintf.texi (dprintf):
12486         * doc/posix-functions/fprintf.texi (fprintf):
12487         * doc/posix-functions/isfinite.texi (isfinite):
12488         * doc/posix-functions/isinf.texi (isinf):
12489         * doc/posix-functions/isnan.texi (isnan):
12490         * doc/posix-functions/printf.texi (printf):
12491         * doc/posix-functions/snprintf.texi (snprintf):
12492         * doc/posix-functions/sprintf.texi (sprintf):
12493         * doc/posix-functions/vdprintf.texi (vdprintf):
12494         * doc/posix-functions/vfprintf.texi (vfprintf):
12495         * doc/posix-functions/vprintf.texi (vprintf):
12496         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12497         * doc/posix-functions/vsprintf.texi (vsprintf):
12498         Document this.
12499         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
12500         * m4/isinf.m4 (gl_ISINFL_WORKS):
12501         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
12502         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
12503         * tests/test-isfinite.c (test_isfinitel):
12504         * tests/test-isinf.c (test_isinfl):
12505         * tests/test-isnan.c (test_long_double):
12506         * tests/test-isnanl.h (main):
12507         * tests/test-snprintf-posix.h (test_function):
12508         * tests/test-sprintf-posix.h (test_function):
12509         * tests/test-vasnprintf-posix.c (test_function):
12510         * tests/test-vasprintf-posix.c (test_function):
12511 o       Test only that noncanonical values do not cause crashes, not that
12512         they are treated as NaNs.  In some cases this means a larger
12513         output buffer is needed.
12515 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
12517         fts: remove redundant close() (trivial)
12518         * lib/fts.c (fts_read): Remove redundant call to close().
12519         Spotted by coverity.
12521 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12523         getdtablesize: port better for Android
12524         Problem reported by Kevin Cernekee in:
12525         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
12526         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
12527         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
12528         Instead, just use getrlimit, taking care to avoid Cygwin bug.
12530         poll: fixes for large fds
12531         * lib/poll.c (poll): Don't check directly for NFD too large.
12532         Don't rely on undefined behavior in FD_SET when an arg exceeds
12533         FD_SETSIZE.  Always set revents afterwards, even if to zero.
12534         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
12535         as that makes the test a bit stricter.
12537 2015-02-19  Kevin Cernekee  <cernekee@google.com>
12539         fcntl: Fix cross compiling
12540         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
12541         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
12543 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12545         dup2, fcntl: cross-compile better for Android
12546         Problem reported by Kevin Cernekee in:
12547         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
12548         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
12549         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
12550         there's little need to cross-compile for older kernels nowadays.
12551         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
12552         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
12554 2015-02-18  Pádraig Brady  <P@draigBrady.com>
12556         getopt: don't crash on memory exhaustion
12557         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
12558         memory exhaustion.  In the _LIBC case we use alloca() as is
12559         already done in glibc, so we don't need to consider the separate
12560         error path in that awkward case.  Also fix a memory leak when
12561         ambiguous options are present.
12562         Reported by Tobias Stoeckmann
12564 2015-02-17  Mike Miller  <mtmiller@ieee.org>
12566         tempname: allow compilation with C++ (trivial)
12567         * lib/tempname.h [C++]: Specify extern "C" linkage.
12568         * lib/tempname.h (try_tempname):
12569         * lib/tempname.c (__try_tempname, __gen_tempname):
12570         Rename 'try' to 'tryfunc'.
12572 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12574         dup2, fcntl: port to AIX
12575         * m4/dup2.m4 (gl_FUNC_DUP2):
12576         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12577         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
12578         The former works on AIX 7.1 but the latter does not.
12579         Also, this may work better with Android; see:
12580         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
12582 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12584         getdtablesize, dup2, fcntl: port to Android
12585         Problem reported by Kevin Cernekee in:
12586         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
12587         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
12588         Mention that getdtablesize doesn't work on Android.
12589         * lib/getdtablesize.c: Use getrlimit substitute only if
12590         getdtablesize is declared.  This should suffice for Cygwin
12591         while not breaking Android.
12592         * m4/dup2.m4 (gl_FUNC_DUP2):
12593         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12594         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
12595         standardized but the latter is not, and sysconf works on Android.
12596         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
12597         Also check that getdtablesize is declared.
12598         This removes the need for a special case for Android.
12600 2015-02-16  Kevin Cernekee  <cernekee@google.com>
12602         localename: Implement gl_locale_name_thread_unsafe for Android
12603         * lib/localename.c: Android API level >= 21 supports two hardcoded
12604         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
12605         the internal __locale_t struct.
12607 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
12609         fts: avoid crash when a cycle is added while traversing
12610         This could be triggered by auto-mounting a recursive bind mount.
12611         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
12612         * lib/fts.c (fts_read): Avoid removing the original hash table item
12613         when leaving a directory that caused a cycle, and preserve the FTS_DC
12614         flag.
12616 2015-02-16  Daiki Ueno  <ueno@gnu.org>
12618         uniname/uniname: support character alias
12619         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
12620         Generate one-way mapping from aliases to codepoints in the
12621         generated tables.  Special case variation selectors to reduce
12622         table size.
12623         * lib/uniname/uniname.c (unicode_character_name): Special case
12624         variation selectors.
12625         (unicode_name_character): Special case variation selectors and
12626         their aliases.
12627         * lib/uniname/uninames.h: Regenerate.
12628         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
12629         * modules/uniname/uniname-tests (Files): Add
12630         tests/uniname/NameAliases.txt.
12631         * tests/uniname/test-uninames.c: Mark as static.
12632         (ALIASLEN): Define.
12633         (struct unicode_alias): New struct.
12634         (unicode_aliases): New variable.
12635         (fill_aliases): New function.
12636         (test_alias_lookup): New test function.
12637         (main): Run the 'test_alias_lookup' test if the second argument is
12638         given.
12639         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
12640         second argument.
12642 2015-02-11  Kevin Cernekee  <cernekee@google.com>
12644         Fix FILE struct compatibility with Android API level >= 21
12645         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
12646         __sferror.  Recent versions of Bionic's stdio.h no longer define
12647         __sferror.
12648         * lib/fbufmode.c: Likewise.
12649         * lib/fflush.c: Likewise.
12650         * lib/fpurge.c: Likewise.
12651         * lib/freadable.c: Likewise.
12652         * lib/freadahead.c: Likewise.
12653         * lib/freading.c: Likewise.
12654         * lib/freadptr.c: Likewise.
12655         * lib/freadseek.c: Likewise.
12656         * lib/fseeko.c: Likewise.
12657         * lib/fseterr.c: Likewise.
12658         * lib/fwritable.c: Likewise.
12660         Assume unbroken ungetc() on Android
12661         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
12662         test case passed when running on an Android host, and the code
12663         hasn't really changed since 2009.
12665         getdtablesize: Fix Android build
12666         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
12667         versions have this symbol in the .so library (at least 32-bit
12668         platforms) but are missing the declaration in the header file,
12669         causing the m4 logic to guess incorrectly.
12671         localename: Fix Android build
12672         * modules/localename (Depends-on): Add langinfo.
12674         getugroups: Fix Android build
12675         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
12676         functions.
12678         euidaccess: Fix Android build
12679         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
12680         AT_EACCESS gets declared.
12682         linkat_nofollow: Add fallback case for cross compiling
12683         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
12685         net_if: Handle content-free <net/if.h> system headers
12686         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
12687         struct if_nameindex.  If not, enable the replacement header.
12689         signal_h: Fix Android build
12690         * lib/signal.in.h: Add Android to the list of platforms that declare
12691         pthread_sigmask() in <pthread.h> instead of <signal.h>.
12693         duplocale: Fix Android build of duplocale-tests
12694         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
12695         is included by test-duplocale.c (but not by duplocale.c).
12696         * modules/duplocale-tests (configure.ac): Check for monetary.h.
12697         * tests/test-duplocale.c: Skip test if monetary.h is absent.
12698         * doc/posix-headers/monetary.texi: Add Android to the list of
12699         platforms missing monetary.h.
12701 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12703         tests: avoid recent -Werror=unused-variable regression in test-locale
12704         * tests/test-locale.c (main): Reference the variable to avoid the
12705         "unused variable" warning.
12707 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12709         maint: various whitespace cleanups in tempname
12710         * lib/tempname.c: Normalize spacing and line length.
12711         * lib/tempname.h: Likewise.
12712         * modules/tempname: Likewise.
12714 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12716         tests: provide returns_() to simplify exit status checking
12717         * tests/init.sh (returns_): A new function for use in tests,
12718         to allow for easier checking of return values, where you expect
12719         a command to exit with failure status.  By checking for a particular
12720         exit code, you don't hide any crashes for example.
12722 2015-02-11  Pádraig Brady  <P@draigBrady.com>
12724         mountlist: only use libmount when specified
12725         There are currently many shared libs dependencies introduced by
12726         libmount with associated runtime and virt mem overhead.
12727         Therefore don't enable by default.
12728         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
12730 2015-02-08  Daiki Ueno  <ueno@gnu.org>
12732         uniname/unimame-tests: don't link with -lunistring
12733         * modules/uniname/uniname-tests (Makefile.am): Don't link against
12734         $(LIBUNISTRING).  Document the rationale why we need to
12735         conditionalize the test.
12737 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
12739         fstrcmp: don't assume strlen < INT_MAX
12740         * lib/fstrcmp.c: Include stddef.h and stdint.h.
12741         (uintptr_t): Remove, as we're now assuming stdint.
12742         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
12743         Prefer ptrdiff_t to int when the value could exceed INT_MAX
12744         if the input string is long.
12745         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
12746         uintptr_t to size_t when the underlying value is a pointer casted
12747         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
12748         * modules/fstrcmp (Depends-on): Add stdint.
12750         diffseq: prefer ptrdiff_t to ssize_t
12751         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
12752         ptrdiff_t is the natural type for signed indexes.
12753         On a few older platforms, ssize_t is narrower than size_t.
12755         xalloc: fix typo that suppressed warnings
12756         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
12757         This typo, introduced a couple of years ago, mistakenly suppressed
12758         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
12759         -Wmissing-declarations warnings.
12761         full-read: fix license notice typo
12762         * lib/full-read.h: Remove a stray line in the license notice.
12763         Reported by Sam Ellis in: http://bugs.gnu.org/19808
12765         crypto/gc: fix a -Wswitch warning
12766         Reported by Bruce Korb in:
12767         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
12768         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
12770 2015-02-03  Pádraig Brady  <P@draigBrady.com>
12772         gnulib-tool: fix handling of patch(1) diagnostics
12773         * gnulib-tool: Send diagnostics from patch(1) to stderr,
12774         as otherwise gnulib-tool will reparse that output and attempt
12775         to lookup modules.
12777 2015-02-03  Pádraig Brady  <P@draigBrady.com>
12779         bootstrap: exit immediately upon gnulib-tool failure
12780         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
12781         This was noticed when gnulib-tool exited early due to failure
12782         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
12783         but various confusing errors were then given as the build proceeded.
12785 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
12787         symlinkat: include all required header files
12788         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
12789         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
12790         Reported at https://savannah.gnu.org/bugs/index.php?44151
12791         and by Jack Howarth.
12793 2015-01-29  Pádraig Brady  <P@draigBrady.com>
12795         localename: support Solaris 12 and illumos
12796         * lib/localename.c (gl_locale_name_thread_unsafe): call
12797         getlocalename_l() on newer __sun platforms.
12798         Reported by Alexander Pyhalov.
12799         Fix suggested by Rich Burridge.
12801 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
12803         locale: fix tests on illumos (trivial)
12804         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
12805         so move from global scope to main().
12807 2015-01-24  Daiki Ueno  <ueno@gnu.org>
12809         unictype: avoid undefined left-shift behavior
12810         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
12811         gcc's -fsanitize=shift and running its tests triggered:
12812           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
12813             places cannot be represented in type 'int'
12814         Cast LHS to 'unsigned int' after integer promotion.
12815         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
12816         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
12818 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12820         libunistring: bump version of unitypes dependants
12821         Due to the header file search order, all the headers which depend
12822         on unitypes.h need to be generated, when the preinstalled
12823         libunistring is older.
12824         * modules/unicase/base (configure.ac): Bump minimum version to
12825         0.9.4.
12826         * modules/uniconv/base (configure.ac): Likewise.
12827         * modules/unilbrk/base (configure.ac): Likewise.
12828         * modules/uninorm/base (configure.ac): Likewise.
12829         * modules/unistdio/base (configure.ac): Likewise.
12830         * modules/unistr/base (configure.ac): Likewise.
12831         * modules/uniwbrk/base (configure.ac): Likewise.
12832         * modules/uniwidth/base (configure.ac): Likewise.
12834 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12836         unictype/category-none: fix link with libunistring
12837         Since _UC_CATEGORY_NONE is not a public symbol, it will be
12838         prefixed with "libstring_" when compiled as part of libunistring.
12839         To avoid undefined symbol at link time, increase the minimum
12840         version when the dependant modules are updated.
12841         * modules/unictype/category-none (configure.ac): Bump minimum
12842         version to 0.9.5.
12844 2015-01-20  Daiki Ueno  <ueno@gnu.org>
12846         unitypes: fix build with installed libunistring
12847         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
12848         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
12849         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
12851 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12853         time: port to MinGW32 3.21
12854         Problem reported by Eli Zaretskii in:
12855         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
12856         * lib/time.in.h:
12857         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
12858         * modules/time (Depends-on):
12859         Fall back on unistd.h if the other include files don't define
12860         struct timespec.
12862         update-copyright: apply to self
12863         * build-aux/update-copyright: Fix copyright date.  How ironic!
12865 2015-01-15  Daiki Ueno  <ueno@gnu.org>
12867         libunistring: update to Unicode 7.0.0
12868         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
12869         Manichaean names.
12870         * lib/unictype/joininggroup_name.h: Likewise.
12871         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
12872         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
12873         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
12874         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
12875         (fill_arabicshaping, joining_group_as_c_identifier): Support those
12876         enum values.
12877         (is_property_alphabetic): Accept newly added characters to
12878         cuneiform numeric signs.
12879         (is_property_default_ignorable_code_point): Reject U+0605.
12880         (FIELDLEN): Increase from 120 to 160.
12881         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
12882         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
12883         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
12884         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
12885         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
12886         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
12887         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
12888         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
12889         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
12890         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
12891         U+1E8D0..U+1E8D6.
12892         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
12893         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12894         lib/uniwidth/width.c.
12895         * all generated files under lib/uni* and tests/uni*: Regenerate.
12897 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12899         libunistring: update to Unicode 6.3.0
12900         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
12901         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
12902         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
12903         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
12904         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
12905         Update WB5, WB9, WB10, WB13a, and WB13b.
12906         * tests/uniwbrk/test-uc-wordbreaks.c
12907         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
12908         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
12909         (UC_BIDI_PDI): New enumeration values.
12910         (bidi_category_byname): Support those enum values.
12911         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
12912         dedicated property assigned.
12913         (is_property_case_ignorable): Check 0x0027.
12914         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
12915         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
12916         (output_wbp): Support those enum values.
12917         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
12918         (UC_BIDI_PDI): New enumeration values.
12919         * lib/unictype/bidi_byname.gperf: Add those property names.
12920         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
12921         U+180E, U+1A1B, and U+2066..U+2069.
12922         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12923         lib/uniwidth/width.c.
12924         * all generated files under lib/uni* and tests/uni*: Regenerate.
12926 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12928         libunistring: update to Unicode 6.2.0
12929         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
12930         (unilbrk_table): Adjust table size.
12931         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
12932         for LBP_RI.
12933         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
12934         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
12935         Normalize table index skipping ignored properties.
12936         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
12937         WBP_EXTEND and WBP_FORMAT, which are now computed without using
12938         the table.
12939         * lib/uniwbrk/wbrktable.h: Adjust table size.
12940         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
12941         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
12942         Support rule GB8a.
12943         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
12944         * tests/unigbrk/test-uc-is-grapheme-break.c
12945         (graphemebreakproperty_to_string): Support GBP_RI.
12946         * tests/uniwbrk/test-uc-wordbreaks.c
12947         (wordbreakproperty_to_string): Support WBP_RI.
12948         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
12949         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
12950         (output_lbp): Support LBP_RI.  Adjust some characters changed from
12951         LBP_AL to LBP_ID.
12952         (output_lbp): Support LBP_RI.
12953         (WBP_RI): New enumeration value.
12954         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
12955         (output_wbp): Support WBP_RI.
12956         (GBP_RI): New enumeration value.
12957         (output_gbp_test, fill_org_gbp): Support GBP_RI.
12958         * all generated files under lib/uni* and tests/uni*: Regenerate.
12960 2015-01-14  Daiki Ueno  <ueno@gnu.org>
12962         libunistring: update to Unicode 6.1.0
12963         * lib/gen-uni-tables.c (output_joining_group): Switch to
12964         3-level table to accommodate joining groups defined with higher
12965         codepoint value.  Since there are only 88 groups defined in
12966         Unicode 7.0.0, use 7-bit packed format for level3 entries.
12967         (get_lbp): Update for Unicode 6.1.0.
12968         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
12969         3-level table.
12970         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
12971         joining group name.
12972         * lib/unictype/joininggroup_name.h: Likewise.
12973         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
12974         (unilbrk_table): Adjust table size.
12975         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
12976         for LBP_HL.
12977         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
12978         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
12979         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
12980         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
12981         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
12982         U+302E..U+302F.
12983         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12984         lib/uniwidth/width.c.
12985         * all generated files under lib/uni* and tests/uni*: Regenerate.
12986         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
12988 2015-01-15  Daiki Ueno  <ueno@gnu.org>
12990         uniwbrk/u32-wordbreaks-tests: add conformance test
12991         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
12992         tests/uniwbrk/test-uc-wordbreaks.c,
12993         tests/uniwbrk/test-uc-wordbreaks.sh, and
12994         tests/uniwbrk/WordBreakTest.txt.
12995         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
12996         test-uc-wordbreaks to $(check_PROGRAMS), and define
12997         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
12998         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
12999         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
13001 2015-01-15  Daiki Ueno  <ueno@gnu.org>
13003         uniwbrk: ignore Extended/Format characters at BOL not BOS
13004         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
13005         characters if the previous character property is one of
13006         WBP_NEWLINE, WBP_CR, and WBP_LF.
13008 2015-01-11  Jim Meyering  <meyering@fb.com>
13010         test-strstr.c: avoid a trivial leak
13011         * tests/test-strstr.c (main): Free haystack.
13013         update-copyright: recognize groff's \(co marker
13014         * build-aux/update-copyright (circle_c_re): Also accept
13015         uses of \(co, as found in gzip.1.
13017 2015-01-08  Pádraig Brady  <P@draigBrady.com>
13019         maint.mk: fix compatibility with OS X nm
13020         * top/maint.mk (_gl_tight_scope): Use the -g option to
13021         show exported items rather than the -e option which is
13022         ignored on all platforms except OS X where it gives an error.
13023         Reported by Assaf Gordon.
13025 2015-01-07  KO Myung-Hun  <komh@chollian.net>
13027         localcharset: improve charset detection on OS/2
13028         Use system codepage when appropriate.  Map OS/2 codepages to
13029         GNU canonical charset names if possible.
13030         * lib/config.charset: Don't output aliases if "$os" is os2*.
13031         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
13032         result for OS/2.
13033         (locale_charset) [OS2]: Use system codepage if codeset is omitted
13034         from the locale name which is neither "C" nor "POSIX".
13036 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
13038         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
13039         This reverts the last patch but one, as it shouldn't be needed now
13040         that the typo is fixed.
13041         * lib/count-leading-zeros.h (count_leading_zeros_ll):
13042         * lib/count-trailing-zeros.h:
13043         * lib/count-one-bits.h:
13044         Go back to using 64-bit intrinsics.
13046         count-leading-zeros: fix pragma typos
13047         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
13048         Fix typos in declaration of intrinsics when _MSC_VER.
13050 2015-01-06  Pádraig Brady  <P@draigBrady.com>
13052         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
13053         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
13054         intrinsics in this case.
13055         * lib/count-trailing-zeros.h: Likewise.
13056         * lib/count-one-bits.h: Likewise.
13058 2015-01-06  Daiki Ueno  <ueno@gnu.org>
13060         uniname/uniname: update to Unicode 7.0.0
13061         To accommodate new characters added since Unicode 5.1.0, this
13062         changes the internal representation of codepoint ranges.
13063         Previously, we grouped codepoint ranges by manually assigned 4-bit
13064         tag, which only allowed 16 groups.  This removes the limitation by
13065         switching to binary search on a table.  For the detail rationale
13066         and the benchmark results, see:
13067         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
13068         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
13069         to INDEX, as it no longer represents a codepoint.
13070         (range): New struct.
13071         (main): Switch to intervals list from a bit-pattern based
13072         classification.
13073         * lib/uniname/uninames.h: Regenerate.
13074         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
13075         * modules/uniname/base (configure.ac): Bump minimum version to
13076         0.9.5.
13077         * modules/uniname/uniname (configure.ac): Bump minimum version to
13078         0.9.5.
13080 2015-01-05  Eric Blake  <eblake@redhat.com>
13082         doc: update INSTALL from autoconf
13083         * doc/install.texi: Resync from autoconf.
13084         * doc/INSTALL: Reflect recent autoconf update.
13085         * doc/INSTALL.ISO: Likewise.
13086         * doc/INSTALL.UTF-8: Likewise.
13088         stdio: fix use of PRIdMAX on modern mingw
13089         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
13090         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
13091         to work with modern mingw.
13093 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
13095         pthread: detect git mingw builds with only partial pollution
13096         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
13097         pollution, as seen temporarily in Fedora 21.
13099 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13101         lib-symbol-versions: cache script check
13102         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
13103         Cache the check for linker version scripts.
13104         From a suggestion by Christophe Curis in:
13105         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
13107 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
13109         maint: fix grammar nits in propername (trivial change)
13110         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
13111         and use an adequate verb and tense.
13113 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
13115         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13116         * module/gendocs: Add 'doc/gendocs_template_min'.
13118         * build-aux/gendocs.sh: Change email addresses and upstream URLs
13119         from to Gnulib's.
13120         (scripturl, templateurl): Adjust accordingly.
13122 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13124         gendocs: copyright date and version fix
13125         Reported by Karl Berry in:
13126         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
13127         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
13128         Fix copyright date.
13129         * build-aux/gendocs.sh (scriptversion): Update.
13131 2015-01-01  Karl Berry  <karl@gnu.org>
13133         * doc/install.texi,
13134         * build-aux/mdate-sh,
13135         * build-aux/depcomp,
13136         * build-aux/config.guess,
13137         * build-aux/config.sub,
13138         * build-aux/ar-lib,
13139         * build-aux/compile: revert copyright updates (some from last
13140         year) in slaved files.
13142 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13144         version-etc: new year
13145         * doc/gnulib.texi:
13146         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
13147         * all files: Run 'make update-copyright'.
13149 2014-12-30  Pádraig Brady  <P@draigBrady.com>
13151         xstrtol: ensure errno is reset
13152         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
13153         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
13155         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
13157 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13159         utimens: fix dependency typo
13160         * modules/utimens (Depends-on): Remove 'assure'.
13161         This bug was introduced in the recent 'assure' patch.
13163 2014-12-22  Eric Blake  <eblake@redhat.com>
13165         docs: mention why libgen.h is bad
13166         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
13168 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13170         assure: new module
13171         This works better than 'assert' when compiling with -DNDEBUG,
13172         as it avoids some compiler diagnostics in that case.
13173         Reported by Norihiro Tanaka in:
13174         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
13175         * MODULES.html.sh (func_all_modules): Add 'assure'.
13176         * lib/assure.h, modules/assure: New files.
13177         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
13178         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
13179         Prefer 'assure' to 'assert'.
13180         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
13181         * modules/chdir-long, modules/cycle-check, modules/fchdir:
13182         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
13183         Depend on 'assure'.
13185 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
13187         stdalign: port better to HP compilers
13188         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
13189         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
13191         stdalign: work around Apple GCC 4.0 bug
13192         Reported by David Fang in:
13193         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
13194         * lib/stdalign.in.h (_Alignas):
13195         * m4/stdalign.m4 (gl_STDALIGN_H):
13196         Do not use aligned attribute with GCC 4.0 on Apple.
13198 2014-12-16  Pádraig Brady  <P@draigBrady.com>
13200         getcwd: fix test failure on OS X 10.9
13201         * m4/getcwd-path-max.m4: Avoid the replacement if it
13202         won't be effective due to the PATH_MAX limitation of lstat().
13203         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
13204         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
13205         for this case for use in tests, and also exclude this
13206         case when setting REPLACE_GETCWD.
13207         * tests/test-getcwd.c (test_long_name): Restrict the
13208         tested path length so that lstat() will not be passed
13209         a path greater than PATH_MAX.
13210         Also key a test condition on HAVE_OPENAT_SUPPORT rather
13211         than AT_FDCWD, since the latter is set unconditionally
13212         since Sep 2009 in commit 52c658e9.
13214 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
13216         parse-datetime: avoid a compiler warning with byacc (trivial)
13217         * lib/parse-datetime.y (yylex): Use the same prototype in the
13218         function definition as the declaration, to avoid a -Wstrict-prototypes
13219         warning seen when using byacc.
13221 2014-12-12  Daiki Ueno  <ueno@gnu.org>
13223         unicase/locale-language-tests: fix LOCALE_FR test
13224         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
13225         a French locale with traditional encoding.
13226         Reported by umerqayam in:
13227         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
13229 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
13231         stddef: support C11's max_align_t
13232         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
13233         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
13234         Do not undef, as that might cause max_align_t to be defined twice.
13235         Instead, change use to check for _GL_STDDEF_WINT_T too.
13236         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
13237         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
13238         Check for max_align_t.
13239         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
13240         * modules/stddef-tests (Depends-on): Add stdalign.
13241         * tests/test-stddef.c: Test max_align_t.
13243 2014-12-11  Daiki Ueno  <ueno@gnu.org>
13245         unistd: fix iOS check conditional
13246         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
13247         as 0 or 1 in <TargetConditionals.h>, and the previous check always
13248         yielded true on non-iOS environment.
13249         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
13250         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
13251         they are defined.
13253 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
13255         posixtm: avoid compiler warning in a better way
13256         * lib/posixtm.c (IF_LINT): Remove.
13257         (year, posix_time_parse):
13258         Return true (not 0) if successful.  All callers changed.
13259         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
13261 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
13263         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
13264         started with '/' on EMX.
13266 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
13268         freopen: workaround freopen() on OS/2 kLIBC
13269         * lib/freopen.c (rpl_freopen): Workaround.
13270         * m4/freopen.m4: Add os2* case.
13272         get_shared_library_fullname: port to EMX
13273         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
13274         on EMX, respectively.
13275         (_DLL_InitTerm): New on EMX.
13276         (get_shared_library_fullname): Implement on EMX.
13278         find_executable: port to EMX
13279         * lib/progreloc.c (find_executable): Implement on EMX.
13281         sched: check struct sched_param in spawn.h as well
13282         * lib/sched.in.h: Include spawn.h on kLIBC.
13283         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
13285 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
13287         bootstrap: Allow perl modules in $buildreq
13288         * build-aux/bootstrap: Add case for perl modules.
13290 2014-12-08  Pádraig Brady  <P@draigBrady.com>
13292         apply _GL_ATTRIBUTE_PURE to some inline functions
13293         clang 3.4.2 flagged these inline functions as pure
13294         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
13295         * lib/sig-handler.h (get_handler): Likewise.
13296         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
13297         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
13299 2014-12-06  Pádraig Brady  <P@draigBrady.com>
13301         vasnprintf: fix potential use after free
13302         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
13303         flagged by clang-analyzer 3.4.2.
13305 2014-12-05  Pádraig Brady  <P@draigBrady.com>
13307         filevercmp, posixtm: avoid compiler warnings with -O3
13308         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
13309         * lib/posixtm.c: (IF_LINT): Define.
13310         (posix_time_parse): Use it to void a "may be used uninitialized"
13311         warning, seen only with -O3.
13313 2014-12-05  Bruno Haible  <bruno@clisp.org>
13315         Fix LDBL80_WORDS macro on big endian platforms.
13316         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
13317         LDBL80_WORDS macro.
13318         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13319         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13320         * tests/test-isfinite.c (test_isfinitel): Likewise.
13321         * tests/test-isinf.c (test_isinfl): Likewise.
13322         * tests/test-isnan.c (test_long_double): Likewise.
13323         * tests/test-isnanl.h (main): Likewise.
13324         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
13325         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
13326         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
13327         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
13328         Reported by Pádraig Brady.
13330 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
13332         git-version-gen: do not print new line characters
13333         * build-aux/git-version-gen: Use printf instead of echo and tr.
13335         gnulib-tool: recognize x:* as an absolute path
13336         * gnulib-tool (func_gnulib_dir): Add ?:* case.
13337         (func_relconcat): Likewise.
13339 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
13341         argp: avoid extraneous translation and mem leak with empty pre doc
13342         * lib/argp-help.c (argp_doc): Never translate the empty string,
13343         when "\v" is the first or last character of the string, as that
13344         has a reserved meaning to return the header info from a po file.
13345         This also fixes a small memory leak in the !post case.
13346         The issue can be seen with this command for example:
13347         LC_MESSAGES=en_US grub2-mknetdir --help
13349 2014-11-27  Daiki Ueno  <ueno@gnu.org>
13351         uniname/uniname-tests: skip if system's libunistring is used
13352         * modules/uniname/uniname-tests (Makefile.am): Skip test if
13353         uniname/uniname module is not compiled.
13355 2014-11-27  Pádraig Brady  <P@draigBrady.com>
13357         printf: fix configure check on big endian systems
13358         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
13360 2014-11-22  Daiki Ueno  <ueno@gnu.org>
13362         pipe-filter-gi, pipe-filter-ii: port to AIX
13363         On AIX 7.1, 'select' is defined as static and cannot be referred
13364         to from inline function.
13365         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
13366         the definition...
13367         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
13368         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
13370 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13372         gitlog-to-changelog: add --until
13373         * build-aux/gitlog-to-changelog: Support new --until option.
13374         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
13376 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
13378         extern-inline: update commentary about GCC bugs
13379         * m4/extern-inline.m4: Add another GCC bug number to comments.
13381 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13383         gen-uni-tables: untabify
13384         * lib/gen-uni-tables.c: Untabify.
13386 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13388         gen-uni-tables: check out-of-range values added to 3-level tables
13389         * lib/gen-uni-tables.c (output_category, output_bidi_category)
13390         (output_joining_type, output_ident_category): Check out-of-range
13391         values added to 3-level tables.
13393 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13395         gen-uni-tables: utilize 'assert'
13396         * lib/gen-uni-tables.c: Include <assert.h>.
13397         (output_category, output_combclass, output_decimal_digit_test)
13398         (output_decimal_digit, output_digit_test, output_digit)
13399         (output_numeric, get_mirror_value, fill_properties)
13400         (fill_property30, is_property_alphabetic)
13401         (is_property_default_ignorable_code_point)
13402         (is_property_uppercase, is_property_lowercase)
13403         (is_property_cased, is_property_case_ignorable)
13404         (is_property_changes_when_lowercased, is_property_iso_control)
13405         (is_property_math, fill_arabicshaping, output_joining_group)
13406         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
13407         (output_wbp, fill_org_gbp, get_decomposition)
13408         (output_decomposition, fill_composition_exclusions)
13409         (debug_output_composition_tables, output_composition_tables)
13410         (redistribute_casefolding_rules, output_casing_rules): Use
13411         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
13412         reporting.
13414 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13416         gen-uni-tables: cosmetic improvements
13417         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
13418         variables specification.
13419         (is_outdigit): Remove unused function.
13421 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
13423         fcntl-h-tests: port to PA-RISC GNU/Linux
13424         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
13426 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13428         fts: port to C89
13429         Problem reported for MSVC 16 by Gisle Vanem in:
13430         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
13431         * lib/fts.c (fts_build): Avoid declaration before statement.
13433 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
13435         unistd: port to iOS
13436         Problem reported by André Klitzing in:
13437         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
13438         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
13440 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13442         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
13443         Problem reported by Alan Modra in:
13444         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
13445         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
13446         Always cast the function arg, reverting this part of the previous
13447         change.
13449 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13451         obstack: avoid potentially-nonportable function casts
13452         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
13453         Remove, replacing with ...
13454         (call_chunkfun, call_freefun): New static functions.
13455         All uses changed.  Avoid potentially-nonportable casts.
13456         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
13457         (_obstack_begin_worker): Omit last two args, since they
13458         rely on potentially-nonportable casts.  All callers changed.
13459         * lib/obstack.h (_OBSTACK_CAST): New macro.
13460         Use it everywhere the old API used a potentially-nonportable cast.
13461         The new API doesn't cast.
13462         (struct obstack): Use unions rather than requiring
13463         potentially-nonportable casts.
13464         (obstack_chunkfun, obstack_freefun): Return void.
13466 2014-11-03  Alan Modra  <amodra@gmail.com>
13468         obstack: fix macro return values
13469         * lib/obstack.h (obstack_next_free): Return void *.
13470         (obstack_1grow_fast, obstack_blank_fast): Return void.
13471         For __GNUC__ macros:
13472         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
13473         For !__GNUC__ macros:
13474         (obstack_make_room, obstack_grow, obstack_grow0)
13475         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
13477 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13479         obstack: do not assume system-supplied obstack is size_t safe
13480         * m4/obstack.m4: New file.
13481         * modules/obstack (Files): Add it.
13483         obstack: port to platforms that #define __alignof__
13484         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
13485         not if !_LIBC.  We don't know of any platforms that #define
13486         __alignof__, but it might be useful in tests.  Conversely,
13487         glibc assumes GCC.
13489 2014-11-03  Pádraig Brady  <P@draigBrady.com>
13491         linkat: don't unconditionally replace on GNU/Linux
13492         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
13493         was redundant for a few reasons.  It was present to support compiling
13494         on new systems but running on the old narrow window of Linux 2.6.1[67].
13495         It setup and cleaned up test files which weren't actually used.
13496         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
13497         implicit in the following check.
13499 2014-11-03  Pádraig Brady  <P@draigBrady.com>
13501         linkat: wrap to handle symlinks on OS X 10.10
13502         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
13503         but not usable because it doesn't support creating hardlinks
13504         to symlinks.  Therefore add a generic test for this capability
13505         and fallback to our emulation if linkat() fails with ENOTSUP.
13507 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13509         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
13510         * doc/posix-functions/open.texi (open):
13511         * doc/posix-functions/openat.texi (openat):
13512         Document that these functions do not set errno to ELOOP when
13513         a symlink is opened with O_NOFOLLOW.
13515 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
13517         obstack: add NEWS entry for recent incompatible changes
13518         * NEWS: Describe recent changes.
13520 2014-10-30  Pádraig Brady  <P@draigBrady.com>
13522         mountlist: don't use libmount to decide on dummy/remote
13523         * lib/mountlist.c (read_file_system_list): Don't use the libmount
13524         routines to determine whether a file system is dummy or remote,
13525         as they're not currently compatible.  For example the remoteness
13526         is determined on file system type (for which the list seems incomplete),
13527         rather than simply checking for a ':' in the device name.
13528         Also libmount currently determines that 'tmpfs' is a dummy file system
13529         even though it has associated storage.
13531 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13533         obstack: prefer __alignof__ to alignof
13534         This is for portability to pre-4.7 GCC when compiling glibc.
13535         See Joseph S. Myers in:
13536         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
13537         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
13538         New macro, defined by including and using <alignof.h>.
13539         (MAX): New macro.
13540         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
13541         Do not use enums as they are not portable to some broken compilers.
13542         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
13544         obstack: prefer alignof to calculating alignments by hand
13545         * lib/obstack.c: Include <stdalign.h>.
13546         (struct fooalign): Remove.
13547         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
13548         * modules/obstack (Depends-on): Add stdalign.
13550 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
13552         obstack: use size_t alignments and check for overflow
13553         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
13554         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
13555         * lib/obstack.h (struct obstack.alignment_mask):
13556         Use _OBSTACK_SIZE_T, not int, for alignments.
13557         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
13558         overflows, e.g., when adding the alignment.
13560 2014-10-29  Alan Modra  <amodra@gmail.com>
13562         obstack: 64-bit obstack support, part 3
13563         This finally enables full 64-bit obstack support.  The glibc
13564         shared library specific code is removed from obstack.c too, and
13565         the error handling code conditionally compiled under control of
13566         another macro, _OBSTACK_NO_ERROR_HANDLER.
13567         * lib/obstack.h: Include string.h earlier.
13568         (_OBSTACK_INTERFACE_VERSION): Define.
13569         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
13570         * lib/obstack.c: Don't include shlib-compat.h.
13571         (OBSTACK_INTERFACE_VERSION): Delete.
13572         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
13573         glibc code is compatible with version 2.  Don't include stdio.h for
13574         __GNU_LIBRARY.
13575         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
13576         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
13577         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
13578         glibc shared library specific source.
13580         obstack: 64-bit obstack support, part 2
13581         This gets us 4G obstack support, without changing ABI
13582         compatibility, apart from possibly introducing some
13583         signed/unsigned comparison warnings in code that uses obstack.h.
13584         a) Replace "int" size parameters, return values, and macro local vars
13585            with _OBSTACK_SIZE_T, an "unsigned int" for now.
13586         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
13587         c) Make all obstack macros checking available room use obstack_room.
13588            "next_free + desired > chunk_limit" may wrap the lhs for chunks
13589            allocated near the top of memory.
13590         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
13591         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
13592         in place of "int" size parameters, return values and local vars.
13593         (_CHUNK_SIZE_T): Define.
13594         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
13595         union use an _OBSTACK_SIZE_T integer type.
13596         For __GNUC__ versions of the following macros...
13597         (obstack_room): Rename local var.
13598         (obstack_make_room): Use obstack_room.
13599         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13600         obstack_int_grow, obstack_blank): Likewise.
13601         (obstack_finish): Use unsigned comparison when comparing aligned
13602         next_free against chunk_limit.
13603         (obstack_free): Cast OBJ to remove possible const qualifier.
13604         For !__GNUC__ versions of the following macros...
13605         (obstack_make_room): Use obstack_room.
13606         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13607         obstack_int_grow, obstack_blank): Likewise.
13608         (obstack_finish): Use unsigned comparision when comparing aligned
13609         next_free against chunk_limit.
13610         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
13611         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
13612         _OBSTACK_SIZE_T.
13613         (_obstack_begin, _obstack_begin_1): Likewise.
13614         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
13615         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
13617         obstack: 64-bit obstack support, part 1
13618         a) Correct calls to alloc function, to use a size_t arg.  "long" is
13619            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
13620            and "size_t" 64 bits.
13621         b) Consolidate _obstack_begin and _obstack_begin1 code.
13622         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
13623         use "size_t" rather than "long".
13624         (_obstack_begin, _obstack_begin1): Likewise.
13625         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
13626         obstack_chunkfun): Update alloc function casts.
13627         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
13628         (chunkfun_type, freefun_type): New typdefs.
13629         (_obstack_begin_worker): Split out from ..
13630         (_obstack_begin, _obstack_begin_1): ..here.
13632         obstack: tidy part 2
13633         a) Don't be concerned about "not polluting the namespace with stddef.h
13634            symbols" in obstack.h, since gnulib string.h includes stddef.h
13635            anyway, and it seems unlikely that anyone would care.
13636         b) Don't roll our own slow memcpy in _obstack_newchunk.
13637         c) Rename obstack_free to _obstack_free.  This makes the naming
13638            consistent with other obstack functions and obviates the need for
13639            __obstack_free.  Ancient obstack.c defined both obstack_free and
13640            _obstack_free.  We continue to do that for _LIBC via an alias.
13641         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
13642            is clever, but nowadays gcc warns on undefined macros.  You'll get
13643            an undefined macro warning if simulating an old gcc with -U__GNUC__
13644            -U__GNUC_MINOR__ -D__GNUC__=1.
13645         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
13646         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
13647         (__obstack_free): Delete, update refs.
13648         (_obstack_free): Rename from obstack_free.
13649         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
13650         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
13651         * lib/obstack.c: Don't include stddef.h.
13652         (COPYING_UNIT): Delete.
13653         (_obstack_begin): Formatting fix.
13654         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
13655         (_obstack_free): Rename from __obstack_free, update alias.  Move
13656         undef of obstack_free to where it is needed.
13658         obstack: tidy part 1
13659         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
13660            to me, and result in overlong lines after later patches.
13661         b) Move error handling code, to avoid a forward declaration and to
13662            simplify later patches in this series.
13663         * lib/obstack.h (struct obstack <temp>): Rename fields of union
13664         and update all uses.
13665         * lib/obstack.c: Include stdlib.h earlier.
13666         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
13667         in file.
13668         (print_and_abort): Remove now redundant forward declaration.
13670 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13672         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
13673         Without this change, in bleeding-edge fileutils Autoconf complains
13674         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
13675         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
13676         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
13677         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
13679 2014-10-24  Daiki Ueno  <ueno@gnu.org>
13681         iconv: avoid false detection of non-working iconv
13682         The INBUF arguments of iconv can be either 'const char **'
13683         or 'char **'.  If CC is g++, the difference causes a compile error
13684         and thus leads to a false detection of non-working iconv.
13685         Reported by Eli Zaretskii and Werner LEMBERG in:
13686         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
13687         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
13688         iconv.  Bump serial number.
13690 2014-10-23  Pádraig Brady  <P@draigBrady.com>
13692         bootstrap: print more diagnostics for missing programs
13693         * build-aux/bootstrap: only suppress stderr when checking for
13694         alternative program names.  This supports programs issuing non
13695         standard error messages.
13697 2014-10-23  Pádraig Brady  <P@draigBrady.com>
13699         bootstrap: only update the gnulib submodule
13700         * build-aux/bootstrap: Restrict the "submodule update" command
13701         to the gnulib path.
13703 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13705         symlinkat: port to AIX 7.1
13706         * doc/posix-functions/symlinkat.texi (symlinkat):
13707         Mention AIX porting problem.
13708         * lib/symlinkat.c: Always include errno.h.
13709         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
13710         * lib/unistd.in.h (symlinkat): Add replacement machinery.
13711         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
13712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
13713         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
13714         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
13715         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
13717         readlinkat: port to AIX 7.1
13718         * doc/posix-functions/readlink.texi (readlink):
13719         * doc/posix-functions/readlinkat.texi (readlinkat):
13720         Mention AIX porting problem.
13721         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
13722         New function.
13723         * lib/unistd.in.h (readlinkat): Add replacement machinery.
13724         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
13725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
13726         * modules/readlinkat (configure.ac): Also compile replacement
13727         if REPLACE_READLINKAT.
13728         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
13730 2014-10-12  Karl Berry  <karl@gnu.org>
13732         * doc/posix-functions/dirname.texi: remove spurious {.
13734 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
13736         basename, dirname: Improve documentation.
13737         * doc/posix-functions/basename.texi: Mention dirname module and
13738         base_name() function.
13739         * doc/posix-functions/dirname.texi: Mention dir_name() and
13740         mdir_name() functions.
13741         Suggested by Werner LEMBERG <wl@gnu.org>.
13743 2014-09-24  Jim Meyering  <meyering@fb.com>
13745         exclude: declare exclude_patopts static
13746         * lib/exclude.c (exclude_patopts): Declare static,
13747         to avoid triggering a -Wmissing-prototypes warning.
13748         The alternative (declaring it in the .h file) would
13749         require publicizing the private "struct patopts".
13751 2014-09-21  Werner Lemberg  <wl@gnu.org>
13753         dirname: support compilation with C++
13754         * lib/dirname.h: Add necessary C linkage declarations.
13756 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13758         qsort_r: include <config.h>
13759         Problem reported by Tom G. Christensen in:
13760         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
13761         * lib/qsort.c [!_LIBC]: Include <config.h> first.
13763 2014-09-16  Dylan Cali  <calid1984@gmail.com>
13765         avltree-list: avoid compiler warnings (trivial)
13766         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
13767         -Werror=suggest-attribute=pure.
13768         * lib/gl_array_list.c: Likewise.
13769         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
13770         declaration to avoid -Werror=missing-prototypes.  This is not added
13771         to a header as only exported for tests.  Add (void) to the
13772         check_invariants() call to indicate we're discarding the result
13773         in this context which avoids -Werror=unused-value.  Note we don't
13774         use ignore_value here to avoid a dependency as we know we'll not
13775         be adding __attribute__((warn_unused_result)) to check_invariants().
13776         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
13778 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
13780         qsort_r: new module, for GNU-style qsort_r
13781         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
13783 2014-09-15  Werner LEMBERG  <wl@gnu.org>
13785         strerror_r-posix: support compilation with C++
13786         * lib/strerror_r.c: Add necessary C linkage declarations.
13788 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
13790         fcntl-h: fix compilation with Intel C++ compiler (trivial)
13791         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
13793 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
13795         mountlist: use /proc/self/mountinfo when available
13796         Use libmount to propagate device IDs provided by Linux in
13797         /proc/self/mountinfo.  This will give more accurate output when
13798         using df in chroot'ed environments as the device IDs are not
13799         determined by stat() which may be inaccurate within the chroot.
13800         * lib/mountlist.c (read_file_system_list): Use the libmount routines
13801         from util-linux to parse "/proc/self/mountinfo" or fall back to
13802         standard getmntent() processing.
13803         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
13804         getmntent() is used, as is the case on GNU/Linux.
13806 2014-09-07  Eric Wong  <normalperson@yhbt.net>
13808         users.txt: add cmogstored
13809         cmogstored has used gnulib since the beginning in 2012 to support
13810         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
13812 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
13814         Trivial change.
13815         * gnulib-tool: Use same options as build-aux/bootstrap to download
13816         PO files.
13818 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
13820         Trivial change.
13821         * gnulib-tool: Fallback to wget when rsync of PO files fails.
13823 2014-09-04  Eric Blake  <eblake@redhat.com>
13825         maintainer-makefile: add syntax check for useless ';;'
13826         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
13828 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
13830         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
13831         Problem reported by Assaf Gordon in:
13832         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
13833         Apparently Ubuntu is doing some fancy link-time optimization
13834         that doesn't work with -lpthread but does work with -pthread.
13835         Work around the bug by preferring -pthread to -lpthread.
13836         * m4/pthread.m4 (gl_PTHREAD_CHECK):
13837         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
13838         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13839         Treat -pthread like -lpthread.
13841 2014-09-04  Eric Blake  <eblake@redhat.com>
13843         error: drop spurious semicolon
13844         * lib/error.c (__error_at_line): Fix ';;'.
13846 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13848         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
13849         * m4/gnulib-common.m4 (AC_C_RESTRICT):
13850         Override AC_C_RESTRICT unconditionally.
13851         Update from autoconf, incorporating:
13852         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
13853         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
13855 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13857         manywarnings: add GCC 4.9 warnings
13858         Also, make it easier to maintain this in the future.
13859         * build-aux/gcc-warning.spec: Add -Wabi-tag,
13860         -Wconditionally-supported, -Wdelete-incomplete,
13861         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
13862         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
13863         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
13864         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
13865         only for older GCC versions that need them.  Handle
13866         -Wnormalized=nfc specially, so that the 'comm' command used
13867         for maintenance doesn't get confused.
13869 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13871         vasnprintf: fix bugs in width computation
13872         * lib/vasnprintf.c (VASNPRINTF):
13873         Rework previous change, which introduced a bug,
13874         to avoid the warning in a different way.
13875         Avoid undefined behavior if the width arg is less than -INT_MAX.
13876         Avoid unnecessary use of HAS_WIDTH local.
13878 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
13880         vasnprintf: Avoid signed/unsigned comparison warning.
13881         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
13882         compare end addr of generated string w/ maximum end addr.
13884 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
13886         parse-datetime: Avoid pointer difference.
13887         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
13888         instead of calculating difference of pointers.  This removes an
13889         annoying warning, devoid of any use.
13891 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13893         qsort_r: new module, for GNU-style qsort_r
13894         This works even on FreeBSD, which has an incompatible qsort_r API.
13895         * MODULES.html.sh: Add it.
13896         * doc/glibc-functions/qsort_r.texi: It's now supported.
13897         * lib/qsort.c: New file, taken from glibc with minor changes
13898         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
13899         removed.
13900         * lib/qsort_r.c: New file, compiled only on FreeBSD.
13901         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
13902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
13903         * modules/qsort_r, modules/qsort_r-tests: New files.
13904         * modules/stdlib (Makefile): Set up its defaults.
13905         * tests/test-qsort_r.c: New file.
13907 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
13909         vla: new module
13910         GNU RCS can use this, mostly for documentation I expect.  See:
13911         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
13912         * MODULES.html.sh: Add vla.
13913         * lib/vla.h, modules/vla: New files.
13915 2014-08-07  Daiki Ueno  <ueno@gnu.org>
13917         localename: make gl_locale_name_thread really thread-safe on Windows
13918         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
13919         "glthread/lock.h".
13920         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
13921         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
13923 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
13925         getpass: don't assume struct termios
13926         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
13927         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
13928         * lib/getpass.c (getpass): Port to systems lacking struct termios.
13930         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
13931         Problem reported by Jonas 'Sortie' Termansen in:
13932         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
13933         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
13934         Implement via sysconf for platforms that lack getdtablesize.
13936         vararrays: modernize AC_C_VARARRAYS for C11
13937         This backports a change I recently made to Autoconf.
13938         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
13939         VLAs are not supported, as this is what C11 does.  The old macro
13940         HAVE_C_VARARRAYS is still defined if they are supported, but is
13941         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
13943 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
13945         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
13946         * build-aux/install-reloc (func_create_wrapper): Also wrap
13947         strerror-override, stat, stat.
13949 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13951         sys_select: fix FD_ZERO problem on Solaris 10
13952         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
13953         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
13954         to expand to an expression that invoked memset without necessarily
13955         including <string.h>.  The problem was that the first include
13956         defined _SYS_TIME_H, causing the second include to short-circuit.
13957         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
13958         Also, fix what appears to be a cut-and-paste typo, by replacing
13959         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
13960         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
13962         accept: document Solaris 10 type glitch
13963         * doc/posix-functions/accept.texi (accept): Mention that
13964         Solaris 10 'accept' takes void * last arg, not socklen_t *.
13966 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
13968         extern-inline: port to FreeBSD, DragonFly
13969         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
13970         is present if either __DragonFly__ or __FreeBSD__ is defined.
13971         FreeBSD problem reported by Andrey Borzenkov in:
13972         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
13973         Also, worry about __APPLE__ only if __MACH__ is also defined,
13974         as this is more consistent with the rest of gnulib.
13975         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
13976         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
13978 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13980         regex: Make #if/#ifdef usage consistent for DEBUG
13981         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
13982         of the inconsistent usage of #if and #ifdef as that works with
13983         both Glibc and Gnulib's style.
13985 2014-07-31  Eric Blake  <eblake@redhat.com>
13987         openat-die: use _Noreturn markup
13988         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
13989         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
13990         _Noreturn.
13992 2014-07-30  Eric Blake  <eblake@redhat.com>
13994         test-open: port to cygwin, which lacks Fortify
13995         * tests/test-open.h (ALWAYS_INLINE): New macro.
13996         (__always_inline): Don't abuse internal symbol on non-glibc.
13998 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
14000         localename: Enforce declarations before statements.
14001         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
14002         first statement.
14004 2014-07-18  Jim Meyering  <meyering@fb.com>
14006         test-userspec: don't look up numeric user names
14007         * tests/test-userspec.c: I found a system for which getpwnam("0")
14008         returned a pointer to a non-root user's entry, and that made the
14009         test fail.
14010         (T): Prefix each numeric input with "+", to inhibit lookup.
14012 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
14014         localcharset, localename: MS-Windows support for non-default locales
14015         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
14016         falling back on the default system codepage, try extracting
14017         the codepage from what 'setlocale' returns.  This allows to
14018         take into account changes of the codeset due to non-default
14019         locale set by a previous call to 'setlocale'.
14020         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
14021         Define if not already defined.
14022         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
14023         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
14024         current locale by calling 'setlocale', then converting the
14025         locale name into LCID by calling 'get_lcid'.  This allows to
14026         take into account changes in the current locale from the
14027         default one, in contrast to GetThreadLocale.
14029 2014-07-14  Daiki Ueno  <ueno@gnu.org>
14031         announce-gen: avoid failure when Digest::SHA is installed
14032         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
14033         Digest::SHA1->new in print_checksums fails.
14034         * build-aux/announce-gen (digest_classes): New associative array
14035         for available message digest implementations.
14036         (print_locations): Use it.
14038 2014-07-13  Pádraig Brady  <P@draigBrady.com>
14040         gettext: revert "update macros to version 0.19"
14041         This reverts commit 9b9370ca, as it currently requires that
14042         developers of any project that explicitly uses the gettext module
14043         or implicitly uses it through the utimens-tests or
14044         futimens-tests modules, use gettext >= 0.19.
14045         However there are some stability and availablity issues with
14046         that version at present.  We can reinstate this soon, when stability
14047         is addressed and packages are more readily available.
14049 2014-07-12  Jim Meyering  <meyering@fb.com>
14051         regex: don't deref NULL upon heap allocation failure
14052         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
14053         failure in one more place.
14054         To trigger the segfault, configure grep -with-included-regex,
14055         build it, and run these commands:
14056         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
14057         I discovered this while replying to a private report from
14058         Jens Schleusener about excessive memory consumption by grep
14059         when using a regular expression like the one above.
14061 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
14063         regex: fix memory leak in compiler
14064         Fix by Andreas Schwab in:
14065         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
14066         * lib/regcomp.c (parse_reg_exp): Deallocate partially
14067         constructed tree before returning error.
14069 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
14071         announce-gen: avoid perl warnings
14072         * build-aux/announce-gen: add two minor checks to avoid
14073         "use of uninitialized value" warnings when command-line parameters are
14074         missing.
14076 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
14078         localename: avoid -Wsuggest-attribute={const,pure} warnings
14079         * lib/localename.c (string_has): Tag internal function as pure.
14080         * lib/localename.h (gl_locale_name_default): Tag extern declaration
14081         as const when appropriate.
14083 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
14085         nl_langinfo: Fix last change.
14086         * lib/nl_langinfo.c (includes): Drop redundant include.
14088 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14090         error: Fix -Wundef warnings in glibc
14091         * lib/error.c [_LIBC]: Define default macros for
14092         glibc.
14093         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
14094         Check _LIBC before STRERROR_R_CHAR_P.
14096         error: Sync from glibc master
14097         * lib/error.c [_LIBC]: Remove INTUSE usage.
14098         (error_tail): Remove unused macro ALLOCA_LIMIT.
14099         Fix potential buffer overflow.  Fix potential NULL dereference
14100         in strcmp.
14102 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
14104         nl_langinfo: fix build under mingw
14105         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
14107 2014-07-09  Andrew D Warshall  <warshall@99main.com>
14109         mountlist: do not classify a bind-mounted dir entry as "dummy"
14110         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
14111         1-argument getmntent() (instead of assuming absence).
14113 2014-07-08  Eric Blake  <eblake@redhat.com>
14115         maint.mk: less syntax-check noise when SIGPIPE is ignored
14116         * top/maint.mk (_sc_header_without_use)
14117         (sc_require_config_h_first): Parse full list.
14119 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
14120             Paul Eggert  <eggert@cs.ucla.edu>
14122         nl_langinfo: CODESET on MS-Windows and more items from localeconv
14123         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
14124         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
14125         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
14126         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
14127         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
14128         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
14129         Include <stdio.h> if Microsoft Windows.
14130         Include <time.h> if !REPLACE_NL_LANGINFO.
14131         (ctype_codeset): New function, taken from rpl_nl_langinfo,
14132         and with improvements for Microsoft Windows.
14133         (rpl_nl_langinfo): Use it.
14134         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
14135         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
14136         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
14137         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
14138         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
14139         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
14140         corresponding values returned by 'localeconv'.  Compute the values
14141         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
14142         'strftime' with a suitable struct tm value.
14144 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14146         Bruno Haible has stepped down as maintainer.
14147         See Karl Berry in:
14148         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
14149         Daiki Ueno has volunteered to maintain libunistring; see:
14150         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
14151         * modules/gen-uni-tables, modules/libunistring:
14152         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
14153         * modules/unicase/base, modules/unicase/cased:
14154         * modules/unicase/empty-prefix-context:
14155         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
14156         * modules/unicase/locale-language, modules/unicase/special-casing:
14157         * modules/unicase/tocasefold, modules/unicase/tolower:
14158         * modules/unicase/totitle, modules/unicase/toupper:
14159         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
14160         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
14161         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
14162         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
14163         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
14164         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
14165         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
14166         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
14167         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
14168         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
14169         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
14170         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
14171         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
14172         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
14173         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
14174         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
14175         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
14176         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
14177         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
14178         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
14179         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
14180         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
14181         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
14182         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
14183         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
14184         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
14185         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
14186         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
14187         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
14188         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
14189         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
14190         * modules/unicase/ulc-casexfrm, modules/unicodeio:
14191         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
14192         * modules/uniconv/u16-conv-to-enc:
14193         * modules/uniconv/u16-strconv-from-enc:
14194         * modules/uniconv/u16-strconv-from-locale:
14195         * modules/uniconv/u16-strconv-to-enc:
14196         * modules/uniconv/u16-strconv-to-locale:
14197         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
14198         * modules/uniconv/u32-strconv-from-enc:
14199         * modules/uniconv/u32-strconv-from-locale:
14200         * modules/uniconv/u32-strconv-to-enc:
14201         * modules/uniconv/u32-strconv-to-locale:
14202         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
14203         * modules/uniconv/u8-strconv-from-enc:
14204         * modules/uniconv/u8-strconv-from-locale:
14205         * modules/uniconv/u8-strconv-to-enc:
14206         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
14207         * modules/unictype/bidicategory-all:
14208         * modules/unictype/bidicategory-byname:
14209         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
14210         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
14211         * modules/unictype/bidiclass-byname:
14212         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
14213         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
14214         * modules/unictype/block-all, modules/unictype/block-list:
14215         * modules/unictype/block-of, modules/unictype/block-test:
14216         * modules/unictype/category-C, modules/unictype/category-Cc:
14217         * modules/unictype/category-Cf, modules/unictype/category-Cn:
14218         * modules/unictype/category-Co, modules/unictype/category-Cs:
14219         * modules/unictype/category-L, modules/unictype/category-LC:
14220         * modules/unictype/category-Ll, modules/unictype/category-Lm:
14221         * modules/unictype/category-Lo, modules/unictype/category-Lt:
14222         * modules/unictype/category-Lu, modules/unictype/category-M:
14223         * modules/unictype/category-Mc, modules/unictype/category-Me:
14224         * modules/unictype/category-Mn, modules/unictype/category-N:
14225         * modules/unictype/category-Nd, modules/unictype/category-Nl:
14226         * modules/unictype/category-No, modules/unictype/category-P:
14227         * modules/unictype/category-Pc, modules/unictype/category-Pd:
14228         * modules/unictype/category-Pe, modules/unictype/category-Pf:
14229         * modules/unictype/category-Pi, modules/unictype/category-Po:
14230         * modules/unictype/category-Ps, modules/unictype/category-S:
14231         * modules/unictype/category-Sc, modules/unictype/category-Sk:
14232         * modules/unictype/category-Sm, modules/unictype/category-So:
14233         * modules/unictype/category-Z, modules/unictype/category-Zl:
14234         * modules/unictype/category-Zp, modules/unictype/category-Zs:
14235         * modules/unictype/category-all, modules/unictype/category-and:
14236         * modules/unictype/category-and-not, modules/unictype/category-byname:
14237         * modules/unictype/category-longname, modules/unictype/category-name:
14238         * modules/unictype/category-none, modules/unictype/category-of:
14239         * modules/unictype/category-or, modules/unictype/category-test:
14240         * modules/unictype/category-test-withtable:
14241         * modules/unictype/combining-class:
14242         * modules/unictype/combining-class-all:
14243         * modules/unictype/combining-class-byname:
14244         * modules/unictype/combining-class-longname:
14245         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
14246         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
14247         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
14248         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
14249         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
14250         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
14251         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
14252         * modules/unictype/digit, modules/unictype/joininggroup-all:
14253         * modules/unictype/joininggroup-byname:
14254         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
14255         * modules/unictype/joiningtype-all:
14256         * modules/unictype/joiningtype-byname:
14257         * modules/unictype/joiningtype-longname:
14258         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
14259         * modules/unictype/mirror, modules/unictype/numeric:
14260         * modules/unictype/property-all, modules/unictype/property-alphabetic:
14261         * modules/unictype/property-ascii-hex-digit:
14262         * modules/unictype/property-bidi-arabic-digit:
14263         * modules/unictype/property-bidi-arabic-right-to-left:
14264         * modules/unictype/property-bidi-block-separator:
14265         * modules/unictype/property-bidi-boundary-neutral:
14266         * modules/unictype/property-bidi-common-separator:
14267         * modules/unictype/property-bidi-control:
14268         * modules/unictype/property-bidi-embedding-or-override:
14269         * modules/unictype/property-bidi-eur-num-separator:
14270         * modules/unictype/property-bidi-eur-num-terminator:
14271         * modules/unictype/property-bidi-european-digit:
14272         * modules/unictype/property-bidi-hebrew-right-to-left:
14273         * modules/unictype/property-bidi-left-to-right:
14274         * modules/unictype/property-bidi-non-spacing-mark:
14275         * modules/unictype/property-bidi-other-neutral:
14276         * modules/unictype/property-bidi-pdf:
14277         * modules/unictype/property-bidi-segment-separator:
14278         * modules/unictype/property-bidi-whitespace:
14279         * modules/unictype/property-byname:
14280         * modules/unictype/property-case-ignorable:
14281         * modules/unictype/property-cased:
14282         * modules/unictype/property-changes-when-casefolded:
14283         * modules/unictype/property-changes-when-casemapped:
14284         * modules/unictype/property-changes-when-lowercased:
14285         * modules/unictype/property-changes-when-titlecased:
14286         * modules/unictype/property-changes-when-uppercased:
14287         * modules/unictype/property-combining:
14288         * modules/unictype/property-composite:
14289         * modules/unictype/property-currency-symbol:
14290         * modules/unictype/property-dash:
14291         * modules/unictype/property-decimal-digit:
14292         * modules/unictype/property-default-ignorable-code-point:
14293         * modules/unictype/property-deprecated:
14294         * modules/unictype/property-diacritic:
14295         * modules/unictype/property-extender:
14296         * modules/unictype/property-format-control:
14297         * modules/unictype/property-grapheme-base:
14298         * modules/unictype/property-grapheme-extend:
14299         * modules/unictype/property-grapheme-link:
14300         * modules/unictype/property-hex-digit:
14301         * modules/unictype/property-hyphen:
14302         * modules/unictype/property-id-continue:
14303         * modules/unictype/property-id-start:
14304         * modules/unictype/property-ideographic:
14305         * modules/unictype/property-ids-binary-operator:
14306         * modules/unictype/property-ids-trinary-operator:
14307         * modules/unictype/property-ignorable-control:
14308         * modules/unictype/property-iso-control:
14309         * modules/unictype/property-join-control:
14310         * modules/unictype/property-left-of-pair:
14311         * modules/unictype/property-line-separator:
14312         * modules/unictype/property-logical-order-exception:
14313         * modules/unictype/property-lowercase, modules/unictype/property-math:
14314         * modules/unictype/property-non-break:
14315         * modules/unictype/property-not-a-character:
14316         * modules/unictype/property-numeric:
14317         * modules/unictype/property-other-alphabetic:
14318         * modules/unictype/property-other-default-ignorable-code-point:
14319         * modules/unictype/property-other-grapheme-extend:
14320         * modules/unictype/property-other-id-continue:
14321         * modules/unictype/property-other-id-start:
14322         * modules/unictype/property-other-lowercase:
14323         * modules/unictype/property-other-math:
14324         * modules/unictype/property-other-uppercase:
14325         * modules/unictype/property-paired-punctuation:
14326         * modules/unictype/property-paragraph-separator:
14327         * modules/unictype/property-pattern-syntax:
14328         * modules/unictype/property-pattern-white-space:
14329         * modules/unictype/property-private-use:
14330         * modules/unictype/property-punctuation:
14331         * modules/unictype/property-quotation-mark:
14332         * modules/unictype/property-radical:
14333         * modules/unictype/property-sentence-terminal:
14334         * modules/unictype/property-soft-dotted:
14335         * modules/unictype/property-space:
14336         * modules/unictype/property-terminal-punctuation:
14337         * modules/unictype/property-test, modules/unictype/property-titlecase:
14338         * modules/unictype/property-unassigned-code-value:
14339         * modules/unictype/property-unified-ideograph:
14340         * modules/unictype/property-uppercase:
14341         * modules/unictype/property-variation-selector:
14342         * modules/unictype/property-white-space:
14343         * modules/unictype/property-xid-continue:
14344         * modules/unictype/property-xid-start:
14345         * modules/unictype/property-zero-width, modules/unictype/scripts:
14346         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
14347         * modules/unictype/syntax-c-whitespace:
14348         * modules/unictype/syntax-java-ident:
14349         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
14350         * modules/unigbrk/u16-grapheme-breaks:
14351         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
14352         * modules/unigbrk/u32-grapheme-breaks:
14353         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
14354         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
14355         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
14356         * modules/unigbrk/uc-is-grapheme-break:
14357         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
14358         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
14359         * modules/unilbrk/u16-width-linebreaks:
14360         * modules/unilbrk/u32-possible-linebreaks:
14361         * modules/unilbrk/u32-width-linebreaks:
14362         * modules/unilbrk/u8-possible-linebreaks:
14363         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
14364         * modules/unilbrk/ulc-possible-linebreaks:
14365         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
14366         * modules/uniname/uniname, modules/uninorm/base:
14367         * modules/uninorm/canonical-decomposition:
14368         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
14369         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
14370         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
14371         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
14372         * modules/uninorm/nfkc, modules/uninorm/nfkd:
14373         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
14374         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
14375         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
14376         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
14377         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
14378         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
14379         * modules/unistdio/base, modules/unistdio/u-printf-args:
14380         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
14381         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
14382         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
14383         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
14384         * modules/unistdio/u16-u16-sprintf:
14385         * modules/unistdio/u16-u16-vasnprintf:
14386         * modules/unistdio/u16-u16-vasprintf:
14387         * modules/unistdio/u16-u16-vsnprintf:
14388         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
14389         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
14390         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
14391         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
14392         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
14393         * modules/unistdio/u32-u32-asnprintf:
14394         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
14395         * modules/unistdio/u32-u32-sprintf:
14396         * modules/unistdio/u32-u32-vasnprintf:
14397         * modules/unistdio/u32-u32-vasprintf:
14398         * modules/unistdio/u32-u32-vsnprintf:
14399         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
14400         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
14401         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
14402         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
14403         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
14404         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
14405         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
14406         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
14407         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
14408         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
14409         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
14410         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
14411         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
14412         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
14413         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
14414         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
14415         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
14416         * modules/unistr/u16-check, modules/unistr/u16-chr:
14417         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
14418         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
14419         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
14420         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
14421         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
14422         * modules/unistr/u16-move, modules/unistr/u16-next:
14423         * modules/unistr/u16-prev, modules/unistr/u16-set:
14424         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
14425         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
14426         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
14427         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
14428         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
14429         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
14430         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
14431         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
14432         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
14433         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
14434         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
14435         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
14436         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
14437         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
14438         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
14439         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
14440         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
14441         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
14442         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
14443         * modules/unistr/u32-next, modules/unistr/u32-prev:
14444         * modules/unistr/u32-set, modules/unistr/u32-startswith:
14445         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
14446         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
14447         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
14448         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
14449         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
14450         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
14451         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
14452         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
14453         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
14454         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
14455         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
14456         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
14457         * modules/unistr/u8-check, modules/unistr/u8-chr:
14458         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
14459         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
14460         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
14461         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
14462         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
14463         * modules/unistr/u8-next, modules/unistr/u8-prev:
14464         * modules/unistr/u8-set, modules/unistr/u8-startswith:
14465         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
14466         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
14467         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
14468         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
14469         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
14470         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
14471         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
14472         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
14473         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
14474         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
14475         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
14476         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
14477         * modules/uniwbrk/base, modules/uniwbrk/table:
14478         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
14479         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
14480         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
14481         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
14482         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
14483         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
14484         * modules/uniwidth/width, modules/utf16-ucs4:
14485         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
14486         * modules/utf8-ucs4-unsafe:
14487         Change maintainer from Bruno Haible to Daiki Ueno.
14488         This is my guess at the libunistring modules; please feel free
14489         to fix if I guessed incorrectly.
14490         * modules/accept4, modules/acl, modules/acos, modules/acosf:
14491         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
14492         * modules/areadlink, modules/array-list, modules/array-mergesort:
14493         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
14494         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
14495         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
14496         * modules/binary-io, modules/bison-i18n, modules/btowc:
14497         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
14498         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
14499         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
14500         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
14501         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
14502         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
14503         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
14504         * modules/closedir, modules/concat-filename, modules/copy-file:
14505         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
14506         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
14507         * modules/csharpcomp-script, modules/csharpexec:
14508         * modules/csharpexec-script, modules/ctype, modules/diffseq:
14509         * modules/dprintf, modules/dprintf-posix, modules/dup:
14510         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
14511         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
14512         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
14513         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
14514         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
14515         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
14516         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
14517         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
14518         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
14519         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
14520         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
14521         * modules/findprog, modules/findprog-lgpl, modules/floor:
14522         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
14523         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
14524         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
14525         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
14526         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
14527         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
14528         * modules/freadable, modules/freadahead, modules/freadptr:
14529         * modules/freadseek, modules/freopen, modules/frexp:
14530         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
14531         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
14532         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
14533         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
14534         * modules/ftello, modules/full-read, modules/full-write:
14535         * modules/fwritable, modules/fwriteerror, modules/gcd:
14536         * modules/get-rusage-as, modules/get-rusage-data:
14537         * modules/getdtablesize, modules/getrusage, modules/gettext:
14538         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
14539         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
14540         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
14541         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
14542         * modules/iconv, modules/iconv-h, modules/iconv_open:
14543         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
14544         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
14545         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
14546         * modules/integer_length_ll, modules/ioctl, modules/isatty:
14547         * modules/isblank, modules/isnand, modules/isnand-nolibm:
14548         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
14549         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
14550         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
14551         * modules/javaexec, modules/javaexec-script, modules/javaversion:
14552         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
14553         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
14554         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
14555         * modules/lib-symbol-visibility, modules/libsigsegv:
14556         * modules/linked-list, modules/linkedhash-list, modules/list:
14557         * modules/localcharset, modules/locale, modules/localeconv:
14558         * modules/localename, modules/lock, modules/log, modules/log-ieee:
14559         * modules/log10, modules/log10-ieee, modules/log10f:
14560         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
14561         * modules/log1p, modules/log1p-ieee, modules/log1pf:
14562         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
14563         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
14564         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
14565         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
14566         * modules/logf, modules/logf-ieee, modules/login_tty:
14567         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
14568         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
14569         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
14570         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
14571         * modules/mbscspn, modules/mbsinit, modules/mbslen:
14572         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
14573         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
14574         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
14575         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
14576         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
14577         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
14578         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
14579         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
14580         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
14581         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
14582         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
14583         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
14584         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
14585         * modules/posix_spawn, modules/posix_spawn-internal:
14586         * modules/posix_spawn_file_actions_addclose:
14587         * modules/posix_spawn_file_actions_adddup2:
14588         * modules/posix_spawn_file_actions_addopen:
14589         * modules/posix_spawn_file_actions_destroy:
14590         * modules/posix_spawn_file_actions_init:
14591         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
14592         * modules/posix_spawnattr_getpgroup:
14593         * modules/posix_spawnattr_getschedparam:
14594         * modules/posix_spawnattr_getschedpolicy:
14595         * modules/posix_spawnattr_getsigdefault:
14596         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
14597         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
14598         * modules/posix_spawnattr_setschedparam:
14599         * modules/posix_spawnattr_setschedpolicy:
14600         * modules/posix_spawnattr_setsigdefault:
14601         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
14602         * modules/pow, modules/powf, modules/printf-frexp:
14603         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
14604         * modules/progname, modules/propername, modules/pselect:
14605         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
14606         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
14607         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
14608         * modules/read, modules/readdir, modules/readlink:
14609         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
14610         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
14611         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
14612         * modules/relocatable-script, modules/remainder:
14613         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
14614         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
14615         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
14616         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
14617         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
14618         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
14619         * modules/setlocale, modules/sh-quote, modules/shutdown:
14620         * modules/signal, modules/signbit, modules/sigpipe:
14621         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
14622         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
14623         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
14624         * modules/snippet/link-warning, modules/snippet/unused-parameter:
14625         * modules/snprintf, modules/snprintf-posix, modules/spawn:
14626         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
14627         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
14628         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
14629         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
14630         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
14631         * modules/streq, modules/strerror_r-posix, modules/striconv:
14632         * modules/striconveh, modules/striconveha, modules/strncat:
14633         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
14634         * modules/sublist, modules/sys_resource, modules/sys_utsname:
14635         * modules/sys_wait, modules/system-posix, modules/system-quote:
14636         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
14637         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
14638         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
14639         * modules/truncf, modules/truncf-ieee, modules/truncl:
14640         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
14641         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
14642         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
14643         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
14644         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
14645         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
14646         * modules/wait-process, modules/waitpid, modules/wcpcpy:
14647         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
14648         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
14649         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
14650         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
14651         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
14652         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
14653         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
14654         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
14655         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
14656         * modules/write, modules/xconcat-filename, modules/xlist:
14657         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
14658         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
14659         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
14660         * modules/y0, modules/y1, modules/yn:
14661         Remove Bruno Haible as maintainer; if he's the sole maintainer,
14662         change the maintainer to 'all'.  Let's hope someone volunteers.
14664 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
14666         mktime: merge #if/#ifdef usage from glibc
14667         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
14668         as that works with both Glibc's and Gnulib's style.
14669         See thread starting at Siddhesh Poyarekar's bug report at:
14670         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
14672 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
14674         git-version-gen: improve option descriptions
14675         * build-aux/git-version-gen: Mention that --prefix and --fallback
14676         have a mandatory argument.
14678 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
14680         regex: fix memory leak in compiler
14681         Fix by Andreas Schwab in:
14682         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
14683         * lib/regcomp.c (parse_expression): Deallocate partially
14684         constructed tree before returning error.
14686         regex: merge patch from libc
14687         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
14688         Combine __USE_BSD and __USE_SVID into __USE_MISC.
14689         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
14691 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14693         acl: port to gcc -Wredundant-decls
14694         From a request by Dmitry Antipov in:
14695         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
14696         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
14697         "#ifndef _GL_ACL_H".
14699 2014-06-11  Bruce Korb  <bkorb@gnu.org>
14700         Jim Meyering  <meyering@fb.com>
14702         parse-duration: eliminate 68-year duration limit
14703         * lib/parse-duration.c: Include "intprops.h".
14704         (TIME_MAX): Rename to MAX_DURATION and define to
14705         TYPE_MAXIMUM(time_t).
14706         * modules/parse-duration (Depends-on): Add intprops.
14707         Reported by Jonas 'Sortie' Termansen.
14709 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14711         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
14712         * modules/pthread (Depends-on): Add 'extensions', as it defines
14713         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
14714         (configure.ac-early): New section.
14715         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
14716         it is no longer needed.
14718 2014-06-14  Pádraig Brady  <P@draigBrady.com>
14720         pthread: define thread-safe macros on some platforms
14721         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
14722         for thread-safe operation on some platforms.
14724 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14726         regex: don't be multithreaded if USE_UNLOCKED_IO.
14727         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
14728         * lib/regex_internal.h: Do not use multithreaded version if
14729         USE_UNLOCKED_IO is defined.  This is a hack, but it works
14730         around a porting bug with coreutils 8.22 on AIX 7.1.
14732 2014-06-11  Daiki Ueno  <ueno@gnu.org>
14734         gettext: update macros to version 0.19
14735         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
14736         depend on gl_EXTERN_INLINE and drop support for older Bison
14737         versions.
14739 2014-06-10  Pádraig Brady  <P@draigBrady.com>
14741         select,poll: fix console handle check on windows 8
14742         lib/poll.c (IsConsoleHandle): Change from testing the lower
14743         2 bits of the handle to the more expensive but accurate syscall.
14744         lib/select.c: Likewise.
14746 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
14748         select: fix waiting on anonymous pipes on MS-Windows
14749         * lib/select.c (rpl_select): Fall back to polling when select()
14750         indicates there is nothing to check, while due to the timeout not
14751         expiring, activity is indicated on one of the handles.
14752         Also clear the TIMEOUT argument if the timer does expire.
14754 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
14756         times: fix to return non constant value on MS-Windows
14757         * lib/times.c (times): Don't use the process creation time,
14758         rather clock() which on windows returns the number of
14759         clock ticks since the process started.
14761 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
14763         isatty: fix to work on windows 8
14764         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
14765         2 bits of the handle to the more expensive but accurate syscall.
14767 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14769         maint: fix typo in fdl.texi
14770         * doc/fdl.texi: Fix typo (missing '@').
14771         Somehow this was in fdl.texi but not fdl-1.3.texi.
14773 2014-06-06  Ben Walton  <bdwalton@gmail.com>
14775         mountlist: avoid hasmntopt const type warning on solaris
14776         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
14777         with char * instead of const char *.  Passing the constant string
14778         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
14779         to avoid the warning.
14781 2014-06-04  Eric Blake  <eblake@redhat.com>
14783         maintainer-makefile: delete obsolete code
14784         * top/maint.mk (build_aux): Drop old code, as threatened.
14786         maintainer-makefile: avoid spurious error messages
14787         * top/maint.mk (syntax-check): Guard definition and use of
14788         $(shell) by whether Makefile is present.
14790 2014-06-03  Ben Walton  <bdwalton@gmail.com>
14792         rename: avoid unused-but-set-variable compiler warning
14793         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
14794         it is possible that dst_exists may be set but not used.  Mark it with
14795         the unused attribute to avoid compiler warnings.
14797 2014-06-02  Ben Walton  <bdwalton@gmail.com>
14799         rename: mark a label as potentially unused
14800         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
14801         by marking the out label as potentially unused.
14802         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
14804 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14806         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
14807         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
14809 2014-06-02  Ben Walton  <bdwalton@gmail.com>
14811         acl: apply pure attribute to two functions
14812         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
14813         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
14815 2014-06-01  Pádraig Brady  <P@draigBrady.com>
14817         gnulib-common.m4: add _GL_UNUSED_LABEL
14818         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
14819         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
14821 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
14823         dup2, fcntl, fcntl-h: port to AIX 7.1
14824         This fixes some porting problems discovered when testing the latest
14825         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
14826         in grep but it could be important for other applications.
14827         * doc/posix-functions/dup2.texi:
14828         * doc/posix-functions/fcntl.texi:
14829         * doc/posix-headers/fcntl.texi:
14830         Document AIX bugs.
14831         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
14832         Define to 0 if outside 'int' range.
14833         * m4/dup2.m4 (gl_FUNC_DUP2):
14834         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14835         Check for getdtablesize.  If it's available, test a value just
14836         outside its range instead of testing 1000000.  When cross-compiling,
14837         guess that AIX will fail this improved test.
14839 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
14841         printf, config.rpath: Port to FreeBSD 10.
14842         Problem reported by Tijl Coosemans in:
14843         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
14844         * build-aux/config.rpath (hardcode_libdir_flag_spec)
14845         (hardcode_direct): Simplify FreeBSD configuration.
14846         (library_names_spec): Don't mishandle FreeBSD 10+.
14847         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
14848         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
14849         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
14850         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
14851         Don't mishandle FreeBSD 10+ when cross-compiling.
14853         ftoastr: work around compiler bug in IBM xlc 12.1
14854         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
14855         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
14856         around a compiler bug in IBM xlc 12.1.0.0: it complains
14857         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
14858         _GL_FLT_PREC_BOUND.'
14860 2014-05-30  Kieran Colford  <colfordk@gmail.com>
14862         valgrind-tests: fixed misleading help message
14863         * m4/valgrind-tests.m4: The help message generated by configure
14864         implied that valgrind was disabled by default, which it wasn't.
14865         Adjusted the help message using s/enable/disable/ to clarify.
14867 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
14869         isfinite, isinf, isnan tests: fix for little-endian PowerPC
14870         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
14871         first double of a PowerPC "double double" pair.
14872         * tests/test-isinf.c (test_isinfl): Likewise.
14873         * tests/test-isnan.c (test_long_double): Likewise.
14874         * tests/test-isnanl.h (main): Likewise.
14875         * tests/test-signbit.c (test_signbitl): Likewise.
14877 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14879         exclude-tests: port to AIX 7.1
14880         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
14881         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
14882         the regex code uses locks.
14884 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
14886         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
14887         Without this fix, Emacs would sometimes call sigprocmask instead
14888         of pthread_sigmask, which is a no-no in multithreaded applications.
14889         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
14890         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14891         Suppress check for pthread_sigmask working without -lpthread if
14892         the application always links with -lpthread.  Do not link with
14893         $LIBMULTITHREAD if gl_THREADLIB is not defined.
14894         * m4/timer_time.m4 (gl_TIMER_TIME):
14895         Require gl_THREADLIB only if it is defined.  Do not append
14896         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
14898 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
14900         gnulib-tool: wget translations using --no-verbose rather than --quiet
14901         This allows the user to see error messages if any (--quiet hides them)
14902         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
14904 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
14906         gnulib-tool: adjust translation wget to avoid a https redirection
14907         Context: http://translationproject.org/latest/gnulib redirects to
14908            https://translationproject.org/latest/gnulib/
14909         Rationale: if the user falls back to wget, she doesn't have rsync and
14910         is probably in a minimal build environment, where packages such as
14911         'ca-certificates' are missing as well, resulting in a failed (and
14912         difficult to detect since ignored) translation initial fetch.
14913         Consequently let's avoid https if possible, and add the missing
14914         trailing slash.  This also avoids an unnecessary 302 redirection.
14915         * gnulib-tool: Add trailing slash to gnulib URL.
14917 2014-05-22  Pádraig Brady  <P@draigBrady.com>
14919         getlogin_r-tests: check return value rather than errno
14920         * tests/test-getlogin_r.c (main): As per POSIX we should be
14921         verifying the return value from getlogin_r() rather than errno.
14923 2014-05-22  Pádraig Brady  <P@draigBrady.com>
14925         getlogin_r-tests: fix various issues in recent change
14926         * tests/test-getlogin_r.c: Include required headers that were
14927         missed in recent commit eec20b4e.
14928         Also consistently check the errno rather than the return value from
14929         getlogin_r as POSIX only specifies that non zero is returned on error.
14930         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
14932 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14934         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
14935         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
14936         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
14937         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
14938         * lib/spawn-pipe.c:
14939         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
14940         and then 'int open64(const char *, int, ...);', which means the
14941         declaration for 'open' gets lost if we later '#undef open'.
14942         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
14943         where the compilation reported the non-fatal error "In function
14944         'openat_proc_name' ... warning: implicit declaration of function
14945         'open'".  In this case the error is relatively harmless, but in
14946         other cases it might not be so minor.
14948 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14950         xalloc: don't potentially generate invalid code for xmemdup calls
14951         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
14952         this function can initialize the newly-allocated storage with new
14953         pointers, which means this function is not malloc-like.  See:
14954         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
14956 2014-05-19  Pádraig Brady  <P@draigBrady.com>
14958         getlogin_r-tests: avoid false failure under sudo/ssh etc.
14959         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
14960         changes from commit 97249cf29 to not depend on environment variables.
14962 2014-05-18  Pádraig Brady  <P@draigBrady.com>
14964         getlogin-tests: avoid false failure under cron
14965         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
14966         since that's not what's under test.  Centos 6 was seen to return
14967         EINVAL for ttyname() when run from cron.
14969 2014-05-16  Jim Meyering  <meyering@fb.com>
14971         mbrtowc.m4: fix a comment typo
14972         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
14973         emitted documentation string.
14975 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14977         mbrlen, mbrtowc: fix bug with empty input
14978         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
14979         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
14980         so this is mainly for documentation.
14981         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
14982         (gl_FUNC_MBRTOWC): Use it.
14983         * tests/test-mbrtowc.c (main): Test for the bug.
14985 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
14987         doc: document mbrtowc and mbrlen problem with empty input
14988         * doc/posix-functions/mbrlen.texi (mbrlen):
14989         * doc/posix-functions/mbrtowc.texi (mbrtowc):
14990         Document portability problem when the input string is empty.  See:
14991         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
14993         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
14994         Problem reported by Eli Zaretskii in:
14995         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
14996         * doc/posix-functions/execl.texi (execl):
14997         * doc/posix-functions/execle.texi (execle):
14998         * doc/posix-functions/execlp.texi (execlp):
14999         * doc/posix-functions/execv.texi (execv):
15000         * doc/posix-functions/execve.texi (execve):
15001         * doc/posix-functions/execvp.texi (execvp):
15002         Mention spawn+exit problem on non-Cygwin Windows platforms.
15004 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
15006         getlogin-tests: avoid false failure under sudo/ssh etc.
15007         * modules/getlogin-tests (configure.ac): Check for ttyname().
15008         * tests/test-getlogin.c (main): Don't depend on environment variables
15009         to correlate with getlogin(), since sudo and ssh etc. can tamper
15010         with the LOGNAME and USER env vars.  Instead lookup the name from
15011         the uid associated with the stdin tty.
15013 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15015         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
15016         These were found when building the latest grep snapshot on IRIX 6.5.
15017         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
15018         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
15019         never used later.
15020         * lib/quotearg.c (quoting_options_from_style):
15021         * lib/xstrtol.c (__xstrtol):
15022         Use enum instead of 0, to pacify IRIX 6.5 cc.
15024 2014-04-18  Pádraig Brady  <P@draigBrady.com>
15026         gitlog-to-changelog: revert inclusion of git-log-fix file
15027         * build-aux/git-log-fix: Delete dummy file.
15028         * modules/gitlog-to-changelog: Don't reference (overwrite)
15029         the project specific git-log-fix file.
15031 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
15033         maint.mk: Relax the copyright check to cater for non FSF projects
15034         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
15035         to not require the "Free" suffix after the copyright years.
15037 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
15039         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
15040         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
15041         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
15042         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
15043         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
15045 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
15047         exclude: port to strict C99
15048         Strict C does not allow converting a function pointer to void *
15049         and vice versa.  Pass a pointer to a function pointer instead.
15050         * lib/exclude.c (add_exclude_file):
15051         Pass the address of the function pointer.
15052         (call_addfn): And deference the address here, to match.
15054 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
15056         regex: do not depend on malloc-gnu
15057         * modules/regex (Depends-on): Remove malloc-gnu.
15058         It's no longer needed, because of the 2012-12-29 patch
15059         "regex: port to hosts where malloc (0) == NULL".
15060         Reported by Nathan Kennedy in:
15061         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
15063 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
15065         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
15066         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
15067         * doc/posix-functions/expl.texi: Mention the workaround.
15069 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
15071         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
15072         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
15073         size to be zero even when the pointer is nonnull.  This
15074         accommodates the use case where P is malloc (0) and *PN is 0 on a
15075         host where malloc (0) yields nonnull.
15077 2014-04-09  Eric Blake  <eblake@redhat.com>
15079         fts: avoid unnecessary strlen calls
15080         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
15082 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15084         fts: avoid unnecessary strlen calls
15085         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
15086         when that can be faster than strlen.
15088 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15090         fts: avoid unnecessary strlen calls
15091         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
15092         (fts_build): Store the length of the dp->d_name entry in a local variable
15093         instead of calling strlen() several times via the above, removed macro.
15094         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
15095         run by ~4%, yet this reduces the execution time by about a third if run
15096         via "ltrace -c rm -rf some-dir".
15098 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15100         obstack: Remove ancient NeXTSTEP gcc support conditional
15101         This change will ease merging with glibc.  The "#if ... __NEXT__"
15102         causes a warning with -Wundef which glibc now enables by default.
15103         Problem reported by Will Newton in
15104         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
15105         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
15106         so go with that.
15107         * lib/obstack.h (__extension__):
15109 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15111         obstack: merge with glibc changes
15112         * lib/obstack.c, lib/obstack.h: Merge from glibc.
15113         This is mostly indenting and commentary changes.
15114         Instances of 'register' have been removed.
15116 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15118         strftime: wrap macros in "do {...} while(0)"
15119         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
15120         this macro in "do {...} while(0)" to prevent false use as a
15121         single statement, e.g., in an un-braced "{}" else-block.
15122         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
15123         (strftime_case_): Remove 'else' after 'goto' - which was the
15124         only non-fatal, un-braced use of one of the above macros.
15125         Spotted by coverity (NESTING_INDENT_MISMATCH).
15127 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15129         modechange: avoid memory leaks for invalid octal modes
15130         * lib/modechange.c (mode_compile): During the parsing of
15131         notations like +40, free the 'mc' buffer for invalid mode
15132         strings like +17777 (greater than the maximum octal mode),
15133         =18 (bad octal mode characters) or u=1 ('affected' with
15134         octal modes).
15135         Reproducer, e.g.:
15136             $ valgrind --leak-check=full chmod +17777 file
15137         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
15138         add notations +40, 00440, etc.".
15139         Spotted by coverity (RESOURCE_LEAK).
15141 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15143         gitlog-to-changelog: include a dummy git-log-fix file
15144         Problem reported by Nathan Stratton Treadway in:
15145         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
15146         * build-aux/git-log-fix: New file.
15148 2014-03-13  Jim Meyering  <meyering@fb.com>
15150         gitlog-to-changelog: also include the file, git-log-fix
15151         * modules/gitlog-to-changelog (Files): Add git-log-fix.
15152         Reported by Assaf Gordon.
15154 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
15156         regex: port to OS X 10.8.5 en_US.UTF-8 locale
15157         This fixes a bug when ignoring case and when comparing the
15158         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
15159         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
15160         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
15161         titlecase letter is neither lowercase nor uppercase, but
15162         uppercasing the titlecase letter (via towupper) yields the
15163         uppercase letter, so the two letters should match when ignoring case.
15164         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
15165         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
15166         Don't test whether a character is lowercase before uppercasing it.
15168 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
15170         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
15171         This is basically one of the options Bruno Haible proposed in:
15172         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
15173         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
15174         * lib/stdint.in.h: Use it.
15175         * modules/stdint (Depends-on): Add sys_types.
15177 2014-02-26  Pádraig Brady  <P@draigBrady.com>
15179         parse-datetime: fix crash or infloop in TZ="" parsing
15180         * lib/parse-datetime.y (parse_datetime): Break out of the
15181         TZ="" parsing loop once the second significant " is found.
15182         Also skip over any subsequent whitespace to be consistent
15183         with the non TZ= case.
15184         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
15186 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
15188         savedir: new symbol for fast-read version
15189         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
15190         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
15191         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
15192         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
15194 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
15196         unistd: port readlink to Mac OS X 10.3.9
15197         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
15198         around self-include problem in Mac OS X 10.3.9 when combined with
15199         readlink module.  Problem reported by Klaus Zietler in
15200         <http://bugs.gnu.org/16825>.
15202 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15204         diffseq: remove TOO_EXPENSIVE heuristic
15205         Problem with diffutils reported by Vincent Lefevre in
15206         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
15207         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
15208         Although appropriate for circa-1993 hardware, these days the heuristic
15209         seems to be more trouble than it's worth.
15210         * lib/diffseq.h: Modernize citations.
15211         (struct context): Remove member too_expensive.
15212         All uses changed.
15213         (struct partition): Remove members lo_minimal, hi_minimal.
15214         All uses changed.
15215         (diag, compareseq): Remove arg find_minimal.  All uses changed.
15216         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
15217         1993 to make 'diff' run faster (but not as well) on large inputs.
15218         These days, computers are fast enough that it's typically better
15219         to run slower but more accurately.
15220         * lib/fstrcmp.c: Remove duplicate comment.
15221         * lib/fstrcmp.c (strcmp_bounded):
15222         * lib/git-merge-changelog.c (compute_differences):
15223         Adjust to diffseq.h changes.
15224         * NEWS: Document the change.
15226         savedir: simplify by using stpcpy
15227         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
15228         (streamsavedir): Use stpcpy instead.
15229         * modules/savedir (Depends-on): Add stpcpy.
15231 2014-02-21  Pádraig Brady  <P@draigBrady.com>
15233         spawn: fix link error on uclibc
15234         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
15235         to incorporate -lrt if needed (on uclibc for example).
15236         * modules/posix_spawn: Reference the substituted LIB.
15238 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
15239         timer: fix uClibc detection of threading
15240         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
15241         enabled in uClibc.
15243 2014-02-21  Eric Blake  <eblake@redhat.com>
15245         maintainer-makefiles: provide AC_PROG_SED for older autoconf
15246         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
15248 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
15250         exclude: add support for posix regexps
15252         This commit adds support for POSIX extended regular expressions
15253         and fixes a long-standing memory leak (pattern buffer was never
15254         freed).  It also implements a new interface function to read
15255         exclude patterns from a FILE, which passes an additional parameter
15256         to its callback function, thereby allowing to preserve its state
15257         between invocations.
15259         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
15260         (pattern_buffer): New struct.
15261         (exclude): New member patbuf.
15262         (exclude_add_pattern_buffer): New function.
15263         (free_exclude_segment): Free regexps.
15264         (free_exclude): Free allocated pattern buffers.
15265         (exclude_patopts): New function.
15266         (file_pattern_matches): Use exclude_patopts.
15267         (add_exclude): support regexps.
15268         (add_exclude_fp): New function.
15269         (add_exclude_file): Rewrite using add_exclude_fp.
15270         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
15271         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
15272         (add_exclude_fp)
15273         (add_exclude_file): Rewrite using add_exclude_fp.
15274         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
15275         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
15276         (add_exclude_fp)
15277         (exclude_add_pattern_buffer): New prototypes.
15278         * modules/exclude: Depends on regex and filename.
15280 2014-02-20  Eric Blake  <eblake@redhat.com>
15282         maintainer-makefiles: use $(SED) for syntax check
15283         * modules/maintainer-makefile (configure.ac): Check for sane sed.
15284         * top/maint.mk: Change sed to $(SED).
15286 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
15287             Paul Eggert  <eggert@cs.ucla.edu>
15289         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
15290         Patch based on an idea by Dick Streefland in
15291         <https://savannah.gnu.org/patch/?7892>.
15292         * NEWS: Document this.
15293         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
15294         (direntry_t, comparison_function): New types.
15295         (direntry_cmp_name): New function.
15296         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
15297         (streamsavedir, savedir): New arg OPTION.
15298         (streamsavedir): Simplify memory allocation.
15299         (fdsavedir): Remove.
15300         * lib/savedir.h (enum savedir_option): New type.
15301         (streamsavedir, savedir): New arg OPTION.
15302         (fdsavedir): Remove.
15304 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
15306         file-type: add support for doors and other less-common file types
15307         Problem with S_ISDOOR reported by Rich Burridge.
15308         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
15309         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
15310         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
15312 2014-01-23  Eric Blake  <eblake@redhat.com>
15314         pthread: work around winpthread header pollution on mingw
15315         * lib/time.in.h: Move pthread workarounds...
15316         * lib/pthread.in.h: ...here.
15317         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
15318         detect macro pollution on mingw.
15319         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
15321 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15323         qacl: check for fchmod
15324         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
15325         and qset-acl.c both use HAVE_FCHMOD.
15327 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
15329         fdopen-tests: port to Tru64
15330         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
15331         descriptor that is not open, as POSIX doesn't specify the
15332         resulting behavior and the test does not work on Tru64.
15333         Problem reported by Steven M. Schweda in:
15334         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
15336         stdalign: port to HP-UX compilers
15337         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
15338         if __HP_cc or __HP_aCC are nonzero.
15340 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15342         strtoimax: port to platforms lacking 'long long'
15343         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
15344         check whether strtoll is declared, which causes the C file to
15345         wrongly report an error.  Problem reported by Steven M. Schweda in:
15346         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
15347         * lib/strtoimax.c (strtoull):
15348         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
15349         (strtoll): Declare only if HAVE_LONG_LONG_INT.
15351 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
15353         relocatable-perl: fix texi syntax
15354         * doc/relocatable-maint.texi: Escape braces.
15356 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
15358         relocatable-perl: like relocatable-script, but for Perl scripts
15359         * build-aux/relocatable.pl.in: Add.
15360         * doc/relocatable-maint.texi: Add documentation.
15361         * modules/relocatable-perl: Add.
15363 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
15365         tests: fix export bug in previous patch
15366         Problem reported by Jim Meyering.
15367         * tests/init.sh (re_shell): New var, which is exported instead of
15368         re_shell_.
15370         tests: simplify porting to Solaris 10 /bin/sh
15371         Some test cases in 'grep' need a shell that groks '$(';
15372         export re_shell_ for their benefit.  Problem reported for 'grep'
15373         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
15374         * tests/init.sh (re_shell_): Export if it's used.
15376 2014-01-06  Eric Blake  <eblake@redhat.com>
15378         md5, sha1, sha256, sha512: support older autoconf
15379         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
15380         for autoconf < 2.63b.
15382         include_next: port to autoconf 2.63
15383         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
15385 2014-01-04  Jim Meyering  <meyering@fb.com>
15387         maint: add a gnulib-local rule to keep non-ascii out of .texi files
15388         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
15389         so that "make sc_maint" will ding anyone who puts non-ascii
15390         in any of gnulib's .texi files.
15392 2014-01-03  Jim Meyering  <meyering@fb.com>
15394         freadable, fwritable, fwriting: declare with the "pure" attribute
15395         * lib/freadable.h (freadable): Declare with the "pure" attribute.
15396         * lib/fwritable.h (fwritable): Likewise.
15397         * lib/fwriting.h (fwriting): Likewise.
15398         Suggested by Bruno Haible.
15400         maint.mk: adapt openat.h-include-without-use test
15401         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
15402         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
15403         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
15404         With this change, running "make sc_maint" in gnulib's top-level
15405         directory now passes for me.
15407 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15409         doc: use ASCII in .texi files where UTF-8 isn't needed
15410         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
15411         * doc/posix-functions/setkey.texi, doc/regex.texi:
15412         Use ASCII input, not UTF-8.
15414 2014-01-02  Jim Meyering  <meyering@fb.com>
15416         freading: declare with the "pure" attribute
15417         * lib/freading.h (freading): Declare with the "pure" attribute.
15419         manywarnings: remove -Wmudflap
15420         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
15421         it is no longer supported in gcc-4.9-to-be.
15423 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15425         relocatable-script: remove unused code
15426         Problem reported by Reuben Thomas in:
15427         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
15428         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
15430 2014-01-01  Jim Meyering  <meyering@fb.com>
15432         maint: fix public-submodule-commit to work with newer git
15433         * top/maint.mk (public-submodule-commit): Remove excess quoting.
15434         We were over-quoting the test arguments, and somewhere prior to
15435         version 1.8.5.2.229, git stopped removing those excess quotes,
15436         which made the test fail, since the unexpanded strings would
15437         always differ; using GIT_TRACE=1 confirmed that the git merge-base
15438         command wasn't even being run.
15440 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15442         doc: update main copyright year
15443         * doc/gnulib.texi: Update copyright date.
15445 2014-01-01  Eric Blake  <eblake@redhat.com>
15447         version-etc: new year
15448         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
15449         * all files: run 'make update-copyright'
15451 2013-12-24  Eric Blake  <eblake@redhat.com>
15453         passfd: give nicer error for recvfd at eof
15454         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
15455         * tests/test-passfd.c (main): Enhance test to cover this.
15457 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15459         gettimeofday: port recent C++ fix to Emacs
15460         Without this further patch, Emacs won't build due to
15461         the portcheck failing.  Also, this simplifies the patch a bit.
15462         * lib/time.in.h (localtime, gmtime): Don't replace unless
15463         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
15464         * lib/time.in.h (localtime, gmtime):
15465         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
15466         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15467         * modules/time (time.h):
15468         Don't worry about the possibility of localtime and gmtime
15469         being absent; they're present in all C libraries we know about.
15470         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15471         Don't assume sys_time is present and has been initialized.
15472         Instead, use a hack that should work even if it hasn't been.
15473         Don't use a portcheck for gmtime or localtime; this supports
15474         the hack.
15475         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
15477 2013-12-17  John W. Eaton  <jwe@gnu.org>
15479         gettimeofday: fix C++ crosscompilation
15481         Never replace gmtime and localtime by macros when compiling with
15482         C++, this prevents <ctime> from being included.
15484         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
15485         define gmtime and localtime as preprocessor macros.  Instead
15486         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
15487         REPLACE_LOCALTIME substitutions.
15488         * lib/time.in.h: Declare gmtime and localtime when needed.
15489         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
15490         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
15491         * modules/time: Depend on gettimeofday, and substitute the above
15492         variables in time.h.
15494 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15496         qacl: port to Windows better
15497         See Eli Zaretskii in
15498         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
15499         * lib/file-has-acl.c (acl_access_nontrivial):
15500         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
15501         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
15503 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
15505         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
15506         * lib/gl_openssl.h: Cast void pointers to a specific type.
15508 2013-12-07  Pádraig Brady  <P@draigBrady.com>
15510         open-tests: fix build failure with -Werror=old-style-declaration
15511         * tests/test-open.h: Reorder the inline to avoid the issue.
15513 2013-12-07  Pádraig Brady  <P@draigBrady.com>
15515         md5, sha1, sha256, sha512: fix link error with partial libcrypto
15516         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
15517         init time, so that if early checks find crypto routines,
15518         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
15519         avoiding link failures.
15521 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15523         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
15524         This provides a new way to specify the default for
15525         gl_CRYPTO_CHECK, one that is reflected in the --help message.
15526         Emacs uses this, as well as the old way.
15527         This attempts to implement a suggestion by Pádraig Brady in
15528         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
15529         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
15530         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
15532         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
15533         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
15534         Add support for a new option, --with-openssl=auto, which causes
15535         the library to be used if available and silently ignored if not.
15536         Add support to allow configure.ac to specify its own
15537         default, by setting with_openssl_default before invoking gl_INIT.
15539 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
15541         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
15542         Problem reported by Daiki Ueno in:
15543         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
15544         * tests/test-open.h (__always_inline):
15545         New macro, if not already defined.
15546         (test_open): Use it.
15548 2013-12-04  Eric Blake  <eblake@redhat.com>
15550         include_next: minimize code duplication
15551         * modules/include_next (Depends-on): Add absolute-header.
15552         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
15553         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
15555 2013-12-04  Pádraig Brady  <P@draigBrady.com>
15557         getcwd: fix compile error in configure check
15558         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
15560 2013-12-04  Pádraig Brady  <P@draigBrady.com>
15562         regex: suppress core dumps from detection code
15563         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
15564         to suppress core dumps that may well occur on glibc systems.
15565         These core dumps might not be cleaned up automatically, or could
15566         trigger some system core dump handling logic.
15568 2013-12-03  Pádraig Brady  <P@draigBrady.com>
15570         md5, sha1, sha256, sha512: support mandating use of openssl
15571         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
15572         description, to list the now 3 separate options.  also don't
15573         mention the default=no, since this is implicit given the option
15574         is described as --with-openssl rather than --without-openssl.
15575         If projects change the default they're free to document that.
15576         with --with-openssl[=yes] we now error out when the specified
15577         hash algorithm is not available in libcrypto.
15579 2013-12-03  Ivailo  <xakepa10@gmail.com>
15581         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
15582         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
15583         -Wformat-nonliteral checks, as these edge cases are part of the test.
15585 2013-12-03  Eric Blake  <eblake@redhat.com>
15587         regex: avoid glibc deadlock during configure
15588         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
15589         glibc bug 15078 in turn triggers bug 16159.
15590         Reported by Michal Privoznik.
15592 2013-12-02  Pádraig Brady  <P@draigBrady.com>
15594         md5, sha1, sha256, sha512: use openssl routines if available.
15595         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
15596         routines will be used if available, requiring apps to link @LIB_CRYPTO@
15597         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
15598         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
15599         in the standard system location.
15600         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
15601         * m4/sha256.m4: Likewise with SHA256.
15602         * m4/sha512.m4: Likewise with SHA512.
15603         * m4/md5.m4: Likewise with MD5.
15604         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
15605         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
15606         * lib/sha256.h: Likewise with SHA256.
15607         * lib/sha512.h: Likewise with SHA512.
15608         * lib/md5.h: Likewise with MD5.
15609         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
15610         * lib/sha256.c: Likewise with SHA256.
15611         * lib/sha512.c: Likewise with SHA512.
15612         * lib/md5.c: Likewise with MD5.
15613         * modules/crypto/sha1 (Link:): Add the new optional lib.
15614         (Depends-on:): Add dependency on extern-inline.
15615         * modules/crypto/sha256: Likewise.
15616         * modules/crypto/sha512: Likewise.
15617         * modules/crypto/md5: Likewise.
15618         * modules/crypto/sha1-tests: Reference the lib here too.
15619         * modules/crypto/md5-tests: Likewise.
15620         * modules/crypto/gc-des-tests: Likewise.
15621         * modules/crypto/gc-hmac-md5-tests: Likewise.
15622         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15623         * modules/crypto/gc-hmac-sha256-tests: Likewise.
15624         * modules/crypto/gc-hmac-sha512-tests: Likewise.
15625         * modules/crypto/gc-md5-tests: Likewise.
15626         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15627         * modules/crypto/gc-sha1-tests: Likewise.
15628         * modules/crypto/gc-tests: Likewise.
15629         * modules/crypto/hmac-md5-tests: Likewise.
15630         * modules/crypto/hmac-sha1-tests: Likewise.
15631         * modules/crypto/hmac-sha256-tests: Likewise.
15632         * modules/crypto/hmac-sha512-tests: Likewise.
15634 2013-11-29  RV1971  <rv1971@web.de>
15636         base64: (trivial) fix compilation regression on some compilers
15637         * lib/base64.c: Don't return the void function,
15638         instead split to a separate return statement.
15640 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15642         ignore-value: revert previous code change
15643         * lib/ignore-value.h (ignore_value): Use __extension__ and
15644         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
15645         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
15646         Change the comment to try to explain this better.
15648 2013-11-27  Pádraig Brady  <P@draigBrady.com>
15650         selinux-h: improve stub types and add more stub functions
15652         * lib/se-selinux.in.h: Change security_context_t to a typedef
15653         rather than a define, as it's a pointer type and so is better
15654         as a typedef to avoid issues declaring multiple variables
15655         with the comma operator.  Also add stub for string_to_security_class().
15656         * lib/se-context.in.h: Add stub functions for
15657         context_{type,range,role,user}_get().
15659 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15661         ignore-value: prefer GCC version back through 2.0
15662         The code didn't match the comments, so I did a bit of software
15663         archaeology.  GCC 2.0 seems to support __extension__ and
15664         __typeof__, so fix both code and comments to use 2.0.
15665         * lib/ignore-value.h (ignore_value): Use __extension__ and
15666         __typeof__ for GCC 2.0 through 3.3, too.
15668 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
15670         pty: Activate the signature wrapper of forkpty.
15671         The intended preprocessor macro HAVE_FORKPTY is
15672         never defined, yet `lib/forkpty.c' depends on it.
15674         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
15675         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
15676         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
15678 2013-11-18  Jim Meyering  <meyering@fb.com>
15679         and Paul Eggert  <eggert@cs.ucla.edu>
15681         quotearg: don't attempt to store 1 << 31 into an "int"
15682         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
15683         gcc's new -fsanitize=undefined and running its tests triggered some
15684         new test failures due to undefined behavior, all with this diagnostic:
15685           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
15686             cannot be represented in type int
15687         Rather than shifting "1" left to form a mask, shift the bits right and
15688         simply use "1" as the mask.
15690 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
15692         error: depend on stdio
15693         Problem reported by Nikos Mavrogiannopoulos in
15694         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
15695         * modules/error (Depends-on): Add stdio.
15697 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
15699         * doc/relocatable-maint.texi (Supporting Relocation): Improve
15700         wording.
15701         Reported by Reuben Thomas <rrt@sc3d.org>.
15703 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
15705         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
15706         New function and macro, to work around _DARWIN_C_SOURCE problem.
15707         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
15709 2013-11-11  Pádraig Brady  <P@draigBrady.com>
15711         base64: provide a fast path for encoding well sized buffers
15712         Avoid conditionals in the base64 encoding loop,
15713         which was seen to give 60% better throughput.
15714         * lib/base64.c (base64_encode_fast): A new function to be called
15715         when we don't want to NUL terminate, and we have enough space
15716         in the output to encode the given input.
15717         (base64_encode): Call the _fast() version when appropriate.
15718         Also remove a redundant mask with 0x3F on the first encoded byte.
15720 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15722         extern-inline: port better to OS X 10.9
15723         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
15724         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
15725         OS X 10.9, except for g++ where the bug is still present.
15726         See <http://trac.macports.org/ticket/41033>.
15728 2013-11-08  Eric Blake  <eblake@redhat.com>
15730         fpending: fix regression on DragonFly BSD
15731         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
15732         * lib/fpending.h (__fpending): Don't declare twice.
15733         Reported by GW in
15734         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
15736 2013-11-05  Jim Meyering  <meyering@fb.com>
15738         hash: relax license to LGPLv2+, for libguestfs
15739         * modules/hash (License): Change from GPL to LGPLv2+.
15741 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15743         intprops: port to Oracle Studio c99
15744         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
15745         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
15747 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15749         obstack: pacify HP C
15750         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
15751         warning "conversion from pointer to smaller integer" from HP
15752         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
15753         C89 or later nowadays, so cast to void instead of int.  Privately
15754         reported by H.Merijn Brand.  Also, change header to match glibc's,
15755         to make checking against glibc easier.
15757 2013-10-29  Jim Meyering  <meyering@fb.com>
15759         maint.mk: prefer gpgv2 over gpgv
15760         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
15761         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
15762         Reported by Gary Vaughan.
15764 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15766         isnan: port to VAX
15767         Reported by John Klos for NetBSD-5/VAX in
15768         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
15769         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
15770         (FUNC): Use it.
15772 2013-10-28  Jim Meyering  <meyering@fb.com>
15774         gnulib-tool: protect against CDPATH
15775         * gnulib-tool: Many "cd" built-in functions print a directory name
15776         to stdout when CDPATH is set, e.g.,
15777           $ bash -c 'CDPATH=/; cd tmp'
15778           /tmp
15779         Unset it, when possible.  Prompted by a comment from Bruce Korb.
15781         maint.mk: restore functionality removed by recent change...
15782         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
15783         the context of a shallow-cloned gnulib repository: "git describe"
15784         would fail in such a directory.  However, that change made it so
15785         the reported gnulib revision no longer includes the version number
15786         or a commit count, even when run from a full clone.
15787         * top/maint.mk (gnulib-version): Use the full "git describe"
15788         output when possible, e.g., the form above, rather than the
15789         abbreviated, no-tag, no-commit-count string, and fall back to
15790         using a 10-byte hash, rather than the default minimal-length
15791         hash prefix, since while the minimal-length one may be fine today,
15792         it is likely not to be unique for very long.
15794 2013-10-26  Jim Meyering  <meyering@fb.com>
15796         maint.mk: fix "release" target to build _version
15797         This fixes a bug in README-release whereby following the outlined
15798         steps, one would publish a tarball whose programs would report
15799         --version output not consistent with the package version number.
15800         This bug caused grep-2.15 to produce a grep program whose
15801         --version option made it print 2.14.56-1e3d rather than 2.15.
15802         * top/maint.mk (release): Making this target build "_version"
15803         ensures that the new version number is reflected in configure.
15805 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
15807         install-reloc: Support multi-binary installation.
15808         * build-aux/install-reloc: Support installing multiple programs in
15809         one invocation, as done by Automake starting with commit
15810         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
15811         Haible <bruno@clisp.org>, archived at
15812         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
15813         Reported by Sylvain <beuc@gnu.org>.
15815 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15817         selinux-h: Really build without selinux when library is missing.
15818         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
15819         continue without selinux, as already told in the warning message.
15821 2013-10-21  Jim Meyering  <meyering@fb.com>
15823         regex: also remove dependency on HAVE_WCSCOLL
15824         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
15826 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
15828         xfreopen: Fix typo. s/frepoen/freopen/
15829         * lib/xfreopen.c: Fix description.
15830         * modules/xfreopen: Likewise.
15832 2013-10-21  Jim Meyering  <meyering@fb.com>
15834         regex: don't depend on wcscoll
15835         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
15836         It is no longer used.
15838 2013-10-20  Jim Meyering  <meyering@fb.com>
15840         error: add the printf attribute to a static function
15841         * lib/error.c (error_tail): Add the printf attribute, to placate
15842         gcc's -Werror=suggest-attribute=format option.
15844 2013-09-30  Jim Meyering  <meyering@fb.com>
15846         fpending, obstack, strerror-override: use pure+const function attrs
15847         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
15848         * lib/obstack.c (_obstack_allocated_p): Likewise.
15849         * lib/obstack.h (_obstack_memory_used): Likewise.
15850         (_obstack_memory_used): Likewise.
15851         * lib/strerror-override.h (strerror_override): Declare with
15852         the "const" attribute.
15854 2013-10-18  Eric Blake  <eblake@redhat.com>
15856         extern-inline: make safe for -Wundef usage
15857         Reported by Vladimir 'phcoder' Serbinenko in
15858         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
15859         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
15861 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15863         mkfifo-tests, etc.: allow HP-UX 11.11 bug
15864         Problem reported by Daniel Richard G. in
15865         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
15866         * doc/posix-functions/mkfifo.texi (mkfifo):
15867         * doc/posix-functions/mkfifoat.texi (mkfifoat):
15868         * doc/posix-functions/mknod.texi (mknod):
15869         * doc/posix-functions/mknodat.texi (mknodat):
15870         Document the HP-UX 11.11 bug.
15871         * tests/test-mkfifo.h (test_mkfifo):
15872         Allow the HP-UX 11.11 bug.
15874 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15876         acl: allow cross-compilation to Gentoo
15877         Problem reported by Gabriel Marcano in
15878         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
15879         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
15880         test only whether it links.
15882 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15884         mgetgroups: remove dependency on realloc-gnu
15885         The dependency violates the comment in realloc-gnu, which
15886         says that tests can't depend on realloc-gnu; some tests depend
15887         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
15888         Problem reported by Daniel Richard G. in
15889         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
15890         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
15891         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
15892         not realloc-gnu.
15894 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15896         regex-tests: port to HP-UX 11.11
15897         Problem reported by Daniel Richard G. in
15898         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
15899         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
15901 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15903         verify: document some 'assume' pitfalls
15904         * doc/verify.texi (Compile-time Assertions):
15905         Mention that 'assume (E)' can sometimes slow things down.
15906         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
15908 2013-10-10  Eric Blake  <eblake@redhat.com>
15910         strtoumax: fix typo in previous commit.
15911         * modules/strtoumax (Depends-on): Fix typo.
15912         * modules/strtoimax (Depends-on): Likewise.
15914 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15916         strtoumax: port to Solaris 8
15917         This problem was introduced in the recent HP-UX patch.
15918         Reported by Tom G. Christensen in
15919         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
15920         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
15921         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
15923 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
15925         strtoimax, strtoumax: port to HP-UX 11.11
15926         Problem reported by Daniel Richard G. in
15927         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
15928         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
15929         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
15930         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
15931         REPLACE_STRTOUMAX.
15932         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
15933         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
15934         Replace the function if defined as a macro but not as a function.
15935         * modules/inttypes-incomplete (inttypes.h): Substitute
15936         REPLACE_STRTOUMAX.
15937         * modules/strtoumax (configure.ac): Replace strtoumax if
15938         REPLACE_STRTOUMAX.
15940 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15942         strtoimax: port to HP-UX 11.11
15943         Problem reported by Daniel Richard G.
15944         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
15945         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
15946         they might clash with inttypes.h.
15948 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15950         New module 'count-trailing-zeros'.
15951         * MODULES.html.sh: Mention it.
15952         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
15953         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
15954         * modules/count-trailing-zeros-tests:
15955         * tests/test-count-trailing-zeros.c:
15956         New files.
15958         count-leading-zeros: port to MSC; support types wider than 64 bits
15959         The ideas behind the MSC port are stolen from Emacs.
15960         * lib/count-leading-zeros.h:
15961         Don't include verify.h: it's no longer needed, as types wider than
15962         64 bits are now supported.
15963         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
15964         performance with MSC.  All uses changed.  Do not assume that TYPE
15965         has at most 64 bits.
15966         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
15967         All uses changed.  Fold the subtraction from 31 into the table.
15969         count-one-bits: port to MSC; support types wider than 64 bits
15970         The ideas behind the MSC port are stolen from Emacs.
15971         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
15972         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
15973         Don't include verify.h: it's no longer needed, as types wider than
15974         64 bits are now supported.
15975         (COUNT_ONE_BITS_GENERIC): New macro.
15976         (popcount_supported) [_MSC_VER]: New inline function.
15977         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
15978         performance with MSC.  All uses changed.  Do not assume that TYPE
15979         has at most 64 bits.
15980         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
15982 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
15984         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
15985         * lib/mountlist.c (read_file_system_list): fix leak of directory
15986         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
15988 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15990         tests: improve diagnostic when an assertion fails
15991         * tests/macros.h (ASSERT): Report the assertion that failed.
15993 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15995         verify: new macro 'assume'
15996         This is taken from Emacs, and should be generally useful.
15997         * doc/verify.texi (assume): Document it.
15998         * lib/verify.h (assume): New macro.
15999         (__has_builtin): Expand to 0 if not defined.
16001 2013-09-26  Eric Blake  <eblake@redhat.com>
16003         dup2, dup3: work around another cygwin crasher
16004         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
16005         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
16006         * tests/test-dup2.c (main): Likewise.
16007         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
16008         * lib/dup3.c (dup3): Likewise.
16009         * doc/posix-functions/dup2.texi (dup2): Document it.
16010         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16012         getdtablesize: work around cygwin issue
16013         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
16014         * modules/getdtablesize (configure.ac): Build replacement.
16015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
16016         * modules/unistd (Makefile.am): Expose the witness.
16017         * lib/unistd.in.h (getdtablesize): Declare replacement.
16018         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
16019         * tests/test-getdtablesize.c (main): Test it.
16020         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
16022 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
16024         pmccabe2html: escaping of special characters
16025         Escape all '<', '>', and '&' in HTML output.
16026         * build-aux/pmccabe2html (html_fnc): Call gsub()
16027         instead of sub() to capture all '<', '>', and '&'.
16028         Neither of '<' and '>' is special in a regexp,
16029         so first arguments to gsub() are corrected. Also,
16030         in replacement strings, ampersand must be escaped.
16031         Finally, '&' must be handled first, then '<' and '>'.
16033 2013-09-24  Eric Blake  <eblake@redhat.com>
16035         manywarnings: enable nicer gcc warning messages
16036         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
16037         some -f options for optimal warnings.
16039 2013-09-21  Jim Meyering  <meyering@fb.com>
16041         timespec: use the new TIMESPEC_RESOLUTION in a few more places
16042         * lib/timespec-add.c (timespec_add): Also replace 999999999
16043         with TIMESPEC_RESOLUTION - 1.
16044         * lib/timespec-sub.c (timespec_sub): Likewise.
16046 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
16048         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
16049         Problem reported by Dagobert Michelsen via Eric Blake in
16050         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
16051         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
16052         not AC_COMPILE_IFELSE.
16054 2013-09-23  Eric Blake  <eblake@redhat.com>
16056         configmake: support new --runstatedir option
16057         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
16058         even if autoconf was too old to provide the command line option.
16059         * modules/configmake (Makefile.am): Propagate it to .h file.
16061 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16063         ctype, string: depend on extern-inline
16064         This is needed to complete the recent OS X fixes.
16065         Also, fix related documentation as suggested by Eric Blake.
16066         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
16067         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
16068         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
16069         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
16070         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
16071         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
16072         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
16073         * doc/posix-functions/toupper.texi:
16074         List the 'ctype' gnulib module.
16075         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
16076         * doc/posix-functions/strncpy.texi:
16077         List the 'string' gnulib module.
16078         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
16079         Add string.
16080         * modules/ctype, modules/string (Depends-on): Add extern-inline.
16082 2013-09-19  Pádraig Brady  <P@draigBrady.com>
16084         userspec: support optional parameters to parse_user_spec()
16085         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
16086         then avoid group processing and treat the full spec as a user.
16087         (parse_with_separator): Allow the USERNAME and GROUPNAME to
16088         be optional params (NULL), in which case they're ignored.
16090 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
16092         timespec: new function make_timespec, and new constants
16093         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
16094         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
16095         (make_timespec): New function.
16096         * lib/dtotimespec.c (dtotimespec):
16097         * lib/timespec-add.c (timespec_add):
16098         * lib/timespec-sub.c (timespec_sub):
16099         * lib/utimens.c (validate_timespec):
16100         * lib/utimensat.c (rpl_utimensat):
16101         Use these new constants and functions.
16103         stdio: OS X port of putc_unlocked + extern inline
16104         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
16105         * doc/posix-functions/putc_unlocked.texi:
16106         * doc/posix-functions/putchar_unlocked.texi:
16107         Document this portability problem.
16109         signal: OS X port of sigaddset etc. + extern inline
16110         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
16111         (sigismember): #undef on problematic Apple platforms.
16112         * doc/posix-functions/sigaddset.texi:
16113         * doc/posix-functions/sigdelset.texi:
16114         * doc/posix-functions/sigemptyset.texi:
16115         * doc/posix-functions/sigfillset.texi:
16116         * doc/posix-functions/sigismember.texi:
16117         Document this portability problem.
16119         extern-inline: do not always suppress extern inline on OS X
16120         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
16121         extern inline on Apple only if the particular compile-time
16122         configuration is known to have the problem.
16123         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
16124         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
16125         other Gnulib modules.
16127         extern-inline: document fixes for ctype and wctype macros
16128         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
16129         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
16130         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
16131         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
16132         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
16133         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
16134         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
16135         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
16136         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
16137         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
16138         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
16139         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
16140         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
16141         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
16142         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
16143         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
16144         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
16145         * doc/posix-functions/strncpy.texi:
16146         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
16147         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
16148         Document that Gnulib fixes portability problems with these
16149         functions on OS X 10.8 and earlier when called from plain inline
16150         or extern inline functions.
16152 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
16154         fflush, freadahead, fseeko: Fix for Android
16155         Suggested by Bruno Haible in:
16156         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
16157         * lib/stdio-impl.h: Use local __sfileext definition.
16159 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
16161         pmccabe2html: Portability to other awk versions.
16162         The functions systime() and strftime() are available
16163         in Gawk only.  Properly close two HTML-tags 'style'
16164         and 'span'.
16165         * build-aux/pmccabe2html (BEGIN): Store timing
16166         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
16167         systime() in HTML_COMMENT.
16168         (html_header): Correctly close tag 'style'.
16169         (END): Replace strftime() by CHRONOS_TIME.  Close
16170         tag 'span' correctly, not as 'div'.
16172 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16174         getgroups: statement without effect
16175         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
16176         Change equality conditional to expected assignment.
16178 2013-09-09  Eric Blake  <eblake@redhat.com>
16180         glob: fix compilation
16181         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
16183 2013-09-07  Eric Blake  <eblake@redhat.com>
16185         glob: fix build for platforms without __THROW
16186         * lib/glob.in.h (__THROW): Add definition again.
16188 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
16190         regex-quote: fix buffer access out of bounds
16191         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
16192         * lib/regex-quote.c (regex_quote_spec_pcre):
16193         Fix typo that resulted in an out-of-bounds read.
16195 2013-09-04  Eric Blake  <eblake@redhat.com>
16197         glob: avoid -Wattribute warnings on glibc
16198         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
16199         __THROWNL, not __THROW, on static functions.
16200         * lib/glob.in.h (__THROW): Adjust...
16201         (__THROWNL): ...accordingly.
16203 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16205         headers: check that _GL_INLINE_HEADER_BEGIN is defined
16206         Suggested by Bruce Korb in:
16207         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
16208         * doc/extern-inline.texi (extern inline):
16209         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
16210         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
16211         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
16212         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
16213         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
16214         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
16215         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
16216         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
16217         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
16218         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
16219         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
16220         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
16221         * lib/xtime.h:
16222         Check that _GL_INLINE_HEADER_BEGIN is defined.
16224 2013-08-29  Pádraig Brady  <P@draigBrady.com>
16226         bootstrap: remove the --version requirement from ancillary tools
16227         * build-aux/bootstrap (check_exists): A new refactored function to
16228         determine if a command exists.
16229         (find_tool): Use the new function which does not require the
16230         --version option to be supported.
16231         (check_versions): Use the new function.
16233 2013-08-26  Simon Josefsson  <simon@josefsson.org>
16235         gc: support HMAC-SHA256 and HMAC-SHA512.
16236         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
16237         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
16238         functions.
16239         (gc_hmac_md5): Use symbolic constant.
16240         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
16241         (gc_hmac_sha256, gc_hmac_sha512): New functions.
16242         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
16243         * m4/sha256.m4: Protect against empty expansion.
16244         * m4/sha512.m4: Likewise.
16245         * lib/hmac-sha256.c: New file.
16246         * lib/hmac-sha512.c: Likewise.
16247         * m4/gc-hmac-sha256.m4: Likewise.
16248         * m4/gc-hmac-sha512.m4: Likewise.
16249         * m4/gc-sha256.m4: Likewise.
16250         * m4/gc-sha512.m4: Likewise.
16251         * modules/crypto/gc-hmac-sha256: Likewise.
16252         * modules/crypto/gc-hmac-sha256-tests: Likewise.
16253         * modules/crypto/gc-hmac-sha512: Likewise.
16254         * modules/crypto/gc-hmac-sha512-tests: Likewise.
16255         * modules/crypto/hmac-sha256: Likewise.
16256         * modules/crypto/hmac-sha256-tests: Likewise.
16257         * modules/crypto/hmac-sha512: Likewise.
16258         * modules/crypto/hmac-sha512-tests: Likewise.
16259         * tests/test-gc-hmac-sha256.c: Likewise.
16260         * tests/test-gc-hmac-sha512.c: Likewise
16261         * tests/test-hmac-sha256.c: Likewise.
16262         * tests/test-hmac-sha512.c: Likewise
16264 2013-08-24  Daiki Ueno  <ueno@gnu.org>
16266         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
16267         of AC_CHECK_DECLS.
16269 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16271         selinux-at: omit unnecessary include
16272         * lib/selinux-at.c: Don't include dosname.h; not needed, since
16273         this source file doesn't use its macros, and subsidiary files that
16274         use the macros already include it.
16276 2013-08-21  Eric Blake  <eblake@redhat.com>
16278         d-ino: avoid false negative on symlink
16279         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
16280         Reported by Stephane Chazelas.
16282 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
16284         bootstrap: port to OpenBSD sed
16285         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
16286         does not interpret `-' as a file argument to mean stdin.
16288 2013-08-15  Eric Blake  <eblake@redhat.com>
16290         warnings: minor optimization
16291         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
16293         warnings: check -Wfoo rather than -Wno-foo
16294         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
16295         -Wno-, test if the compiler recognizes the positive form instead.
16297 2013-08-15  Karl Berry  <karl@gnu.org>
16299         * config/srclist-update: add option "doclicense" to placate
16300         pulling *.texi files from Emacs.  Write terse usage
16301         documentation at the top.
16303 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
16305         xvasprintf-tests: port to GCC with hardening flags
16306         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
16307         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
16308         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
16310 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16312         fpending: port to recent Cygwin change to stdio_ext.h
16313         Reported by LRN in
16314         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
16315         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
16316         just declare __fpending unless it's a macro.
16317         A duplicate decl shouldn't hurt.
16318         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
16319         call compiles and links, instead of separately checking for
16320         decl and lib function.
16321         * modules/fpending (configure-ac):
16322         Adjust to fpending.m4's renaming of shell variable.
16324 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16326         sys_time: port to OpenBSD
16327         * lib/sys_time.in.h: Simply delegate to the system's header
16328         in the BSDish cases as well.  Problem reported by Mike Miller in
16329         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
16330         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
16331         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
16332         wider than time_t.
16334 2013-08-09  Pádraig Brady  <P@draigBrady.com>
16336         bootstrap: support checksum utils having -c but not --status
16337         * build-aux/bootstrap: Only look for sha1sum if updating po files.
16338         Add sha1 to the list of supported checksum utils since it's now
16339         supported through adjustments below.
16340         (update_po_files): Remove the use of --status
16341         in a way that will suppress all error messages, but since this is
16342         only used to minimize updates, it shouldn't cause an issue.
16343         Exit early if there is a problem updating the po file checksums.
16344         (find_tool): Remove the check for --version support as this
16345         is optional as per commit 86186b17.  Don't even check for the
16346         presence of the command as if that is needed, it's supported
16347         through configuring prerequisites in bootstrap.conf.
16348         Prompt that when a tool isn't found, one can define an environment
16349         variable to add to the hardcoded search list.
16351 2013-08-05  Jim Meyering  <meyering@fb.com>
16353         regex: port to non-glibc/lock-using systems
16354         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
16355         system with GNULIB_LOCK would fail due to absence of the
16356         included "glthread/lock.h".  This would affect any package
16357         for which the "lock" module is used only by the regex module,
16358         and not explicitly used.
16359         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
16360         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
16361         Add a dependency on the "lock" module.
16363 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16365         localecharset: make locale_charset thread-safe on Mac OS X
16366         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
16367         instead of MB_CUR_MAX.
16369 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16371         gettext: update to version 0.18.3
16372         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
16373         require AC_PROG_SED to allow user to specify custom sed command when
16374         generating en@quot PO file.
16376 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
16378         bootstrap: use correct source when copying build-aux files
16379         * build-aux/bootstrap (gnulib_extra_files): This variable is
16380         relative to upstream gnulib layout, not downstream.
16382 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
16384         tmpdir: fix bug in VMS port
16385         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
16386         See Steven M. Schweda in
16387         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
16389 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16391         tmpdir: port to VMS, to // != /, and to long dirs
16392         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
16393         __secure_getenv, so that we're more like the glibc version.
16394         All uses changed.
16395         (path_search): Don't put slash after directory if __VMS.
16396         Problem reported by Steven M. Schweda in
16397         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
16398         Simplify code to add slash; no need for a loop.
16399         Do not remove trailing slash from "//".
16400         Do not assume dlen <= INT_MAX.
16402 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16404         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
16405         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
16406         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
16407         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
16409         accept4, dup3, pipe2: port to Cygwin
16410         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
16411         * lib/accept4.c (accept4) [O_BINARY]:
16412         * lib/dup3.c (dup3) [O_BINARY]:
16413         * lib/pipe2.c (pipe2) [O_BINARY]:
16414         Use set_binary_mode, not setmode.
16415         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
16416         * modules/binary-io (Depends-on): Remove module indicator.
16417         These last two bits undo the previous change to pipe2 and binary-io.
16419 2013-07-09  Pádraig Brady  <P@draigBrady.com>
16421         mountlist: add support for deallocating returned list entries
16422         * lib/mountlist.c (free_mount_entry): A new exported function
16423         to deallocate a mount list entry.
16424         (read_file_system_list): Refactor to use the new deallocation function.
16425         Suggested by Anton Ovchinnikov.
16427 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16429         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
16430         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
16431         * lib/stdalign.in.h (_Alignas, _Alignof):
16432         Port to FreeBSD 9.1, and to C11 and C++11.
16433         (_Alignas): Also support ICC.
16434         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
16435         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
16437 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16439         fnmatch: don't goto over declaration
16440         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
16441         undefined behavior for goto over a declaration.
16442         Problem reported by Charlie Brown in
16443         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
16445         pipe2: decouple from binary-io a bit
16446         This is for Emacs, which needs pipe2 but not binary-io.
16447         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
16448         * modules/binary-io (Depends-on): Add module indicator.
16450 2013-07-03  Eric Blake  <eblake@redhat.com>
16452         mgetgroups: relax license to LGPLv2+
16453         * modules/getugroups (License): Change from GPLv3+.
16454         * modules/mgetgroups (License): Likewise.
16455         * modules/getgroups (License): Change from LGPLv3+.
16457         xalloc-oversized: relax license to LGPLv2+
16458         * modules/xalloc-oversized (License): Change from GPLv3+.
16460         nproc: relax license to LGPLv2+
16461         * modules/nproc (License): Change from LGPLv3+.
16463         bootstrap: honor --no-git
16464         * build-aux/bootstrap: Don't even try to use git when user is
16465         pointing to a static checkout.
16467 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16469         ignore-value: port to gcc -pedantic
16470         * lib/ignore-value.h (ignore_value):
16471         Port to gcc -pedantic, by using __extension__.
16472         Reindent as per usual gnulib style nowadays.
16473         Simplify GCC version check.
16475 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16477         extern-inline: port to gcc -std=c89
16478         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
16479         Do not use __gnu_inline__ if pedantic and pre-C99.
16481 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
16483         doc: document extern-inline
16484         * doc/extern-inline.texi: New file.
16485         * doc/gnulib.texi (alloca-opt): Include it.
16486         * m4/extern-inline.m4: Move some comments to documentation,
16487         and others closer to what they describe.
16489         doc: chatter less
16490         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
16491         (updated-stamp): Use it.  This causes 'make' to output just
16492         one file name rather than zillions.
16494         fflush, fseeko: port to musl cross-compiles
16495         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
16496         on some implementation that (1) is not known to be buggy,
16497         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
16498         cross-compiled to so we can't easily check for lack of
16499         conformance.  This is for cross-compiling to musl.
16500         Reported by Rich Felker in
16501         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
16502         * m4/fclose.m4 (gl_FUNC_FCLOSE):
16503         * m4/fflush.m4 (gl_FUNC_FFLUSH):
16504         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
16505         Adjust to above change.
16506         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
16507         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
16508         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
16509         known not to work, or unknown.
16511 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16513         msvc-inval: port to mingw-w64
16514         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
16515         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
16516         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
16518 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
16520         getcwd-lgpl: port to Tru64
16521         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
16522         Problem reported by Steven M. Schweda in
16523         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
16525         tests: port large-fd POSIX spawn tests to OS X
16526         Problem reported by Daiki Ueno in
16527         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
16528         * tests/test-posix_spawn_file_actions_addclose.c:
16529         * tests/test-posix_spawn_file_actions_adddup2.c:
16530         * tests/test-posix_spawn_file_actions_addopen.c:
16531         Include <limits.h>, for OPEN_MAX, if available.
16532         (big_fd): New static function.
16533         (main): Use it.
16535 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
16537         tests/nap.h: use an adaptive delay to avoid ctime update issues
16538         The recent change in nap.h (5191133e) decreased the probability of lost
16539         races to about a third, however such problems could still be observed
16540         in virtual machines and openSUSE's OBS.
16541         Before, nap() detected the needed time once empirically and then used
16542         that delay (together with a small correction multiplier) in further
16543         calls.  This problem has been reported and discussed several times,
16544         including guesses about possible kernel issues:
16545         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
16546         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
16547         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
16548         http://bugs.gnu.org/12820
16549         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
16550         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
16551         Now, nap() avoids the race alltogether by verifying on a reference
16552         file whether a timestamp difference has happened.
16553         * tests/nap.h (nap_fd): Define file descriptor variable for the
16554         witness file.
16555         (nap_works): Change return value to bool.  Change passing
16556         the old file's status by value instead of by reference as this function
16557         does no longer update that timestamp; rename the function argument from
16558         st to old_st.  Remove the local variables cdiff and mdiff because that
16559         function now returns true/false instead of the precise delay.
16560         (guess_delay): Remove function.
16561         (clear_tmp_file): Add new function to close and unlink the witness file.
16562         (nap): Instead of re-using the delay which has been calculated during
16563         the first call, avoid the race by actually verifying that a timestamp
16564         difference can be observed on the current file system.  Use an adaptive
16565         approach for the delay to minimize execution time.  Assert that the
16566         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
16567         = 2^31 - 1 = 2.1s.
16568         Use atexit to call clear_tmp_file when the process terminates.
16570 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16572         sig2str: port to C++
16573         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
16574         Reported by Daniel J Sebald in
16575         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
16577 2013-05-30  Eric Blake  <eblake@redhat.com>
16579         docs: mention cygwin shortcoming in <sys/un.h>
16580         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
16582         vasnprintf: silence mingw compiler warning
16583         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
16585 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16587         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
16588         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
16589         This fixes a porting bug I recently reintroduced in regex, and
16590         some other instances that I discovered while testing the fix.
16591         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
16592         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
16593         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
16594         with an empty argument if this is a pedantic pre-C99 GCC.
16595         * lib/verify.h: Do not use _Static_assert if this is a pedantic
16596         pre-C11 GCC.
16598         regex: adapt to locking regime instead of depending on pthread
16599         Instead of depending on pthread, adapt to whatever thread
16600         modules are in use.  Problem reported by Ludovic Courtès in
16601         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
16602         and by Mats Erik Andersson in
16603         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
16604         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16605         Support either the 'lock' module, or the 'pthread' module, or
16606         no module.
16607         (lock_lock, lock_unlock): New macros.
16608         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
16609         * modules/lock, modules/pthread (configure.ac): Add module indicator.
16610         * modules/regex (Depends-on): Remove pthread.
16612 2013-05-22  Eric Blake  <eblake@redhat.com>
16614         getgroups: document portability issues
16615         * doc/glibc-functions/initgroups.texi (initgroups): Mention
16616         multithread safety.
16617         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
16618         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
16619         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
16620         getugroups.
16621         * doc/posix-functions/getgroups.texi (getgroups): Mention
16622         multithread safety and mgetgroups.
16624 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
16626         test-lchown, test-chown: also skip test if chown fails with EPERM
16627         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
16628         skip this test, to handle FAT file systems.
16629         * tests/test-chown.h (test_chown): Likewise.
16631 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16633         regex: fix dfa race in multithreaded uses
16634         Problem reported by Ludovic Courtès in
16635         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
16636         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16637         New macros.  All uses of __libc_lock_define, __libc_lock_init
16638         changed to use the first two of these.
16639         (__libc_lock_lock, __libc_lock_unlock): New macros, for
16640         non-glibc platforms.
16641         (struct re_dfa_t): Define the lock unconditionally.
16642         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
16643         '#ifdef _LIBC"s.
16644         * modules/regex (Depends-on): Add pthread, if we use the
16645         included regex.
16647         * lib/regcomp.c: Do actions that are not needed for glibc,
16648         but may be needed elsewhere.
16649         (regfree, re_compile_internal): Destroy the lock.
16650         (re_compile_internal): Check for lock-initialization failure.
16652         malloca: port to compilers that reject size-zero arrays
16653         This fixes a bug introduced in my previous patch.
16654         * lib/malloca.c (struct preliminary_header): Use an int
16655         rather than a character array of size int; that's simpler.
16656         (struct header): Remove, replacing with ...
16657         (union header): New type.  This avoids the need for declaring a
16658         character array of size zero, which is not allowed on some platforms.
16659         All uses changed.
16661 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
16663         parse-datetime, tests: don't use "string" + int
16664         Recent versions of 'clang' complain about C source code that
16665         uses expressions of the form '"string literal" + integer',
16666         I guess on the theory that it's confusing for readers who are
16667         used to C++.  On those grounds I suppose it's OK to make this
16668         minor style change.
16669         * lib/parse-datetime.y (parse_datetime):
16670         * tests/test-fchdir.c (main):
16671         * tests/test-snprintf-posix.h (test_function):
16672         * tests/test-snprintf.c (main):
16673         * tests/test-vasnprintf-posix.c (test_function):
16674         * tests/test-vasnprintf.c (test_function):
16675         * tests/test-vsnprintf.c (main):
16676         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
16677         Rewrite '"str" + E' to '&"str"[E]'.
16679 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
16681         argmatch: port to C++
16682         * lib/argmatch.h [__cplusplus]: Add extern "C".
16684         argp: typo fix
16685         * lib/argp-help.c: Typo in comment.
16687 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
16689         manywarnings: update for GCC 4.8.0
16690         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
16691         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
16692         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
16693         -Wmissing-noreturn, as they are duplicates of other warnings.
16694         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
16695         was documented to be flaky in earlier versions of GCC.
16697         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
16698         * tests/test-spawn.c (main):
16699         * tests/test-sys_socket.c (main):
16700         * tests/test-sys_wait.c (main):
16701         Don't have a switch value that isn't covered by a case.
16703         getaddrinfo-tests: port --enable-gcc-warnings to clang
16704         * tests/test-getaddrinfo.c (simple):
16705         Avoid casts from looser to stricter-aligned pointers.
16707         thread: port --enable-gcc-warnings to clang
16708         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
16709         Include <signal.h>, to pacify a warning about pthread_sigmask.
16711         stdio: use __REDIRECT for fwrite, fwrite_unlocked
16712         * lib/stdio.in.h (fwrite):
16713         When working around bug 11959, use __REDIRECT rather than '#define
16714         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
16715         fix the -Wunused-value issue with clang, and it works with GCC too.
16716         Problem with targeting reported by Eric Blake in
16717         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
16718         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
16719         debugging the fwrite issue.
16721         stdio: port --enable-gcc-warnings to clang
16722         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
16723         since the GCC workaround for fwrite does not pacify clang.
16725         sig2str: port --enable-gcc-warnings to clang
16726         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
16728         obstack: port --enable-gcc-warnings to clang
16729         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
16730         Avoid casts from looser to stricter-aligned pointers.
16732         memchr2: port --enable-gcc-warnings to clang
16733         * lib/memchr2.c (memchr2):
16734         Avoid casts from looser to stricter-aligned pointers.
16736         mbsstr: port --enable-gcc-warnings to clang
16737         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
16738         Avoid casts from looser to stricter-aligned pointers.
16740         malloca: port --enable-gcc-warnings to clang
16741         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
16742         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
16744         inttostr: port --enable-gcc-warnings to clang
16745         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
16747         warnings: port to clang
16748         Problem reported by Daniel P. Berrange via Eric Blake in
16749         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
16750         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
16751         (gl_WARN_ADD): Use it.
16753 2013-05-11  Jim Meyering  <meyering@fb.com>
16755         quotearg: do not read beyond end of buffer
16756         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
16757         end of an ARG for which no length was specified.  With an N-byte
16758         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
16759         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
16760         via coreutils' misc/sort-debug-keys.sh test and detected by running
16761         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
16762         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
16763         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
16764         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
16765         characters correctly."
16767 2013-05-11  Daiki Ueno  <ueno@gnu.org>
16769         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
16770         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
16771         compilation target is Mac OS X 10.6.
16772         Problem reported by parafin and Andoni Morales in
16773         <http://savannah.gnu.org/bugs/?37844> and
16774         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
16776 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
16778         mkdir-p: remove assumptions about umask and mode
16779         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
16780         umask is 0, or that MODE is a subset of MODE_BITS.
16782 2013-05-10  Eric Blake  <eblake@redhat.com>
16784         maint.mk: catch more abuse of HAVE_DECL in syntax-check
16785         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
16787 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
16789         deps: require Automake >= 1.9.6 in generated Makefile fragments
16791         That is the same minimal version required in the DEPENDENCIES file.
16792         Moreover, the old code generated a requirement of Automake >= 1.5,
16793         and that is an insanely outdated version.
16795         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
16796         * tests/havelib/rpathlx/Makefile.am: Likewise.
16797         * tests/havelib/rpathly/Makefile.am: Likewise.
16798         * tests/havelib/rpathlyx/Makefile.am: Likewise.
16799         * tests/havelib/rpathlz/Makefile.am: Likewise.
16800         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
16801         * tests/havelib/rpathx/Makefile.am: Likewise.
16802         * tests/havelib/rpathy/Makefile.am: Likewise.
16803         * tests/havelib/rpathz/Makefile.am: Likewise.
16805 2013-05-08  Eric Blake  <eblake@redhat.com>
16807         bootstrap: AC_INIT may have more than four parameters
16808         * build-aux/bootstrap (extract_package_name): Correctly extract
16809         non-empty tarname field.  Avoid range in regex.
16810         Based on a report by Sami Kerola <kerolasa@iki.fi>.
16812 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16814         qacl: port to MS-Windows port of GNU Emacs
16815         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
16816         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
16817         port of GNU Emacs.  Problem reported by Eli Zaretskii in
16818         <http://bugs.gnu.org/14295#14>.
16820 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
16822         acl: include quote.h
16823         * lib/copy-acl.c: Include quote.h.
16824         * lib/set-acl.c: Likewise.
16826 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
16828         fchownat, renameat, unlinkat: update statat dependencies
16829         These modules use statat and lstatat, not fstatat; so depend on
16830         the statat module, which was split out recently from fstatat.
16831         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
16832         * modules/renameat: Likewise.  Also delete fstat.
16833         URL: http://bugs.gentoo.org/468790
16835 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
16837         Assume gnulib is checked out from Git, not CVS
16839         In fact, access to the gnulib repository through CVS has been
16840         disabled, or more precisely, got broken and was never restored; see:
16841         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
16843         Note that support for CVS is not removed completely and unthinkingly
16844         by this change: only support for CVS checkouts of gnulib itself is
16845         removed.  For example, the 'bootstrap' script still cater to .cvsingore
16846         files and CVS directories, for the benefit of those poor gnulib clients
16847         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
16849         * gnulib-tool: Simplify accordingly.
16850         * posix-modules: Likewise.
16851         * MODULES.html.sh: Likewise.
16852         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
16853         repository.
16854         * doc/gnulib-intro.texi: Likewise.
16855         * doc/gnulib-readme.texi: Likewise.
16856         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
16857         sample '.gitignore' file rather than a sample '.cvsignore'.
16858         * NEWS: Update.
16859         * m4/extensions.m4: While at it, remove a comment mistakenly referring
16860         to "CVS Autoconf" rather than "git Autoconf".
16862 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
16864         utimensat-tests, etc.: try to fix some races
16865         Problem reported by Bernhard Voelker in
16866         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
16867         I don't know whether this patch fixes that race condition, but it
16868         fixes *some* race conditions, so it should be a win.
16869         * modules/chown-tests (Depends-on):
16870         * modules/fchownat-tests (Depends-on):
16871         * modules/fdutimensat-tests (Depends-on):
16872         * modules/futimens-tests (Depends-on):
16873         * modules/lchown-tests (Depends-on):
16874         * modules/stat-time-tests (Depends-on):
16875         * modules/utimens-tests (Depends-on):
16876         * modules/utimensat-tests (Depends-on):
16877         Depend on nanosleep, not usleep.
16878         * modules/chown-tests (test_chown_LDADD):
16879         * modules/lchown-tests (test_lchown_LDADD):
16880         * modules/stat-time-tests (test_stat_time_LDADD):
16881         New macro.
16882         * modules/fchownat-tests (test_fchownat_LDADD):
16883         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
16884         * modules/futimens-tests (test_futimens_LDADD):
16885         * modules/utimens-tests (test_utimens_LDADD):
16886         * modules/utimensat-tests (test_utimensat_LDADD):
16887         Add $(LIB_NANOSLEEP).
16888         * modules/stat-time-tests (Files): Add tests/nap.h.
16889         * tests/nap.h: Include <limits.h>, for INT_MAX.
16890         (lt_mtime): Remove.
16891         (diff_timespec): New function.
16892         (get_stat): Rename from get_mtime.  All callers changed.
16893         (nap_works): Determine the needed delay by inspecting the
16894         file system's timestamp jumps; this should be more reliable.
16895         Look at both mtime and ctime, and take the maximum of the two jumps.
16896         (nap_works, guess_delay):
16897         Return a nanosecond count, not a microsecond count.
16898         All callers changed.
16899         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
16900         failure.
16901         (nap): Multiply the guess by 1.125, to accommodate the case where
16902         the file system's clock is a bit slower than nanosleep's clock.
16903         * tests/test-stat-time.c (BASE): New macro.
16904         Include nap.h.
16905         (nap): Remove; nap.h now defines this.  This removes a duplicate
16906         implementation of 'nap'.
16908         utimens, utimensat: work around Solaris UTIME_OMIT bug
16909         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
16910         Linux kernel 2.6.32 does.  Work around it in the same way.
16911         * doc/posix-functions/futimens.texi (futimens):
16912         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
16913         * lib/utimens.c (fdutimens, lutimens):
16914         * lib/utimensat.c (rpl_utimensat): Work around the bug.
16916         gettext: now it's your responsibility to add -I$(top_builddir)/intl
16917         Formerly, it was your responsibility to do this for all Makefile.ams
16918         other than Gnulib's.  Now it's your responsibility to do it for
16919         Gnulib's Makefile.am, too.
16920         * NEWS: Document this.
16921         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
16923         acl: include errno.h to get errno
16924         Reported by Daiki Ueno in
16925         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
16926         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
16928 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
16930         tests: don't assume getdtablesize () <= 10000000
16931         * modules/cloexec-tests:
16932         * modules/dup2-tests:
16933         * modules/dup3-tests:
16934         * modules/nonblocking-tests:
16935         * modules/posix_spawn_file_actions_addclose-tests:
16936         * modules/posix_spawn_file_actions_adddup2-tests:
16937         * modules/posix_spawn_file_actions_addopen-tests:
16938         * modules/unistd-safer-tests:
16939         Depend on the getdtablesize module.
16940         * tests/test-cloexec.c:
16941         * tests/test-dup-safer.c:
16942         * tests/test-dup2.c:
16943         * tests/test-dup3.c:
16944         * tests/test-fcntl.c:
16945         * tests/test-nonblocking.c:
16946         * tests/test-posix_spawn_file_actions_addclose.c:
16947         * tests/test-posix_spawn_file_actions_adddup2.c:
16948         * tests/test-posix_spawn_file_actions_addopen.c:
16949         Don't assume getdtablesize () <= 10000000.
16951 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
16953         extern-inline: work around bug in Sun c99
16954         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
16955         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
16957 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
16959         qacl: new module, broken out from the acl module
16960         This is for GNU Emacs, which wants the acl functions but does
16961         not want 'error' invoked when they fail.
16962         * lib/acl-internal.h: Do not include error.h, quote.h.
16963         (ENOSYS, ENOTSUP): Remove; no longer needed.
16964         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
16965         * lib/acl.h: Include <stdbool.h>.
16966         (acl_errno_valid): New function.
16967         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
16968         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
16969         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
16970         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
16971         (ACL_INTERNAL_INLINE): Remove; no longer needed.
16972         * lib/file-has-acl.c (file_has_acl):
16973         * lib/qcopy-acl.c (qcopy_acl):
16974         * lib/qset-acl.c (qset_acl):
16975         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
16976         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
16977         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
16978         lib/file-has-acl.c, m4/acl.m4 to qacl module.
16979         Add lib/set-acl.c.
16980         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
16981         Add qacl.
16982         (configure.ac): Move gl_FUNC_ACL to qacl module.
16983         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
16984         Rename set-mode-acl.c to set-acl.c.
16985         * lib/acl-errno-valid.c: New file.
16986         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
16987         copy_acl function remains in copy-acl.c.
16988         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
16989         (_): Remove; not needed.
16990         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
16991         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
16992         * modules/qacl: New file, moved from the old modules/acl.
16993         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
16994         Remove set-mode-acl.c, copy-acl.c.
16995         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
16997         alignof, intprops, malloca: port better to IBM's C compiler
16998         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
16999         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
17000         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
17002 2013-04-25  Daiki Ueno  <ueno@gnu.org>
17004         wctype-h: fix gettext link error on mingw
17005         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
17006         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
17007         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
17008         rpl_towupper and rpl_towupper.
17010 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
17012         regex-tests, regex: allow glibc re_search behavior
17013         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
17014         re_search input data to make the multi-character collating element
17015         in it clearly visible, and treat re_search return code 0 as valid.
17016         * m4/regex.m4 (gl_REGEX): Likewise.
17018 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
17020         stdalign: doc fix
17021         * doc/posix-headers/stdalign.texi (stdalign.h):
17022         Gnulib doesn't support '_Alignof expr'.
17024 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
17026         stdalign: port to stricter ISO C11
17027         ISO C11 says that _Alignof's operand must be a parenthesized type.
17028         Problem reported by Eli Zaretskii in
17029         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
17030         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
17031         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
17033 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
17035         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
17036         Problem reported by Marco Atzeri in
17037         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
17038         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
17039         Simply delegate to the system <sys/select.h> in this case too.
17040         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
17041         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
17042         be needed on Solaris either.
17043         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
17044         Simply delegate to the system <sys/time.h> in this case.
17046 2013-03-19  Karl Berry  <karl@gnu.org>
17048         * build-aux/gnupload: check for erroneous (with gnupload) use of
17049         ftp-upload.gnu.org, tweak help.
17051 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17053         copy-file, rpmatch: fix problems found by cppcheck
17054         Reported by Arno Onken in
17055         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
17056         * lib/rpmatch.c (try): Fix memory leak.
17057         * lib/copy-file.c: Include "ignore-value.h".
17058         (qcopy_file_preserving): Ignore chown value.
17059         * modules/copy-file (Depends-on): Add ignore-value.
17061 2013-01-27  Jim Meyering  <jim@meyering.net>
17063         prefix-gnulib-mk: give better diagnostics
17064         * build-aux/prefix-gnulib-mk: Don't just "die".
17065         Give better diagnostics upon failure.
17067 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
17069         putenv: port to Solaris 10
17070         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
17071         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
17072         is not what is wanted here.
17073         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
17074         declaration, not for its existence.
17076 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
17078         mktime: fix configure typo
17079         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
17081 2013-03-12  Eric Blake  <eblake@redhat.com>
17083         regex-tests: skip UTF-8 test on mingw
17084         * modules/regex-tests (Depends-on): Add localcharset.
17085         * tests/test-regex.c (main): Use it to skip test on mingw.
17087 2013-03-11  Eric Blake  <eblake@redhat.com>
17089         tests: make it easier to bypass alarm time in debugger
17090         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
17091         * tests/test-memmem.c (main): Likewise.
17092         * tests/test-passfd.c (main): Likewise.
17093         * tests/test-ptsname.c (main): Likewise.
17094         * tests/test-ptsname_r.c (main): Likewise.
17095         * tests/test-strcasestr.c (main): Likewise.
17096         * tests/test-strstr.c (main): Likewise.
17098         regex: port to mingw's recent addition of undeclared alarm
17099         * doc/posix-functions/alarm.texi (alarm): Document that alarm
17100         exists but still doesn't work in newer mingw.
17101         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
17102         not existence.  Ensure SIGALRM is not trapped.
17103         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
17104         * m4/regex.m4 (gl_REGEX): Likewise.
17105         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
17106         * tests/test-regex.c (main): Use correct probe for alarm.
17108         putenv: avoid compilation warning on mingw
17109         * lib/putenv.c (_unsetenv): Protect variable declaration.
17110         (putenv): Fix indentation.
17112 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
17114         unistd: don't prevent Tru64 Unix from using gnulib strtod.
17115         * lib/unistd.in.h: be careful not to include un-needed system
17116         stdlib.h from here, because that prevents gnulib stdlib.h from
17117         defining rpl_strtod correctly.
17119 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
17121         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
17122         changesets, but for the 'precision 0' test.
17123         * tests/test-vasprintf-posix.c (test_function): Don't insist on
17124         round-to-even, since POSIX says rounding is implementation-defined
17125         and OS X 10.8.2 rounds 1.51 to 1 here.
17127         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
17128         changeset.
17129         * tests/test-vasprintf-posix.c (test_function): Don't insist on
17130         round-to-even, since POSIX says rounding is implementation-defined
17131         and OS X 10.8.2 rounds 1.5 to 1 here.
17133 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
17135         vasnprintf-posix-tests: allow rounding 1.5 to 1
17136         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
17137         round-to-even, since POSIX says rounding is implementation-defined
17138         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
17139         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
17141         bootstrap: port to FreeBSD
17142         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
17143         that treat '--' differently.  Reported by Mats Erik Andersson in
17144         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
17146 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
17148         regex: rename remaining __attribute calls to __attribute__.
17149         2012-02-25 changed definition of __attribute, but left some uses
17150         unchanged, preventing compilation of regex module on most non-gcc
17151         environments.
17152         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
17153         (lookup_collation_sequence_value, build_range_exp)
17154         (build_collating_symbol): Set attributes with newly renamed
17155         __attribute__ decorator.
17156         * lib/regex_internal.c (re_string_peek_byte_case)
17157         (re_node_set_compare, re_node_set_contains): Likewise.
17158         * lib/regexec.c (acquire_init_state_context): Likewise.
17160 2013-03-06  Bruno Haible  <bruno@clisp.org>
17162         execute: Revert last change, but use a different condition.
17163         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
17164         on Windows.
17166 2013-03-05  Eric Blake  <eblake@redhat.com>
17168         execute: drop dead code
17169         * lib/execute.c (nonintr_close, nonintr_open): Delete.
17171 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
17173         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
17174         * m4/non-recursive-gnulib-prefix-hack.m4
17175         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
17176         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
17177         <http://bugs.gnu.org/10305#237>.
17179 2013-03-04  Eric Blake  <eblake@redhat.com>
17181         test-getsockopt: avoid compiler warning
17182         * tests/test-getsockopt.c (includes): Ensure close is declared.
17184 2013-03-02  Bruno Haible  <bruno@clisp.org>
17186         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
17187         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
17189 2013-03-02  Bruno Haible  <bruno@clisp.org>
17191         gettext: Update to version 0.18.2.
17192         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
17193         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
17194                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
17196 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17198         regex: merge patches from libc
17200         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17201         * lib/regex_internal.h (__attribute__): Rename from __attribute.
17202         All uses changed.
17203         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
17204         (re_string_wchar_at, re_string_elem_size_at):
17205         Mark function as possibly unused.
17207         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
17208         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
17209         elements compare against the byte sequence of it, not its name.
17211 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
17213         putenv: port better to native Windows
17214         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
17215         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
17216         (_unsetenv): Use _putenv if available.
17217         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
17218         a bit less likely to cause damage.
17219         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
17220         Fix the wrong value with SetEnvironmentVariable.
17221         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
17222         code better.
17224 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17226         regex: ignore old-style-definition warnings
17227         * lib/regex.c: Add pragma to ignore these warnings.
17228         Problem reported for GNU tar by Pavel Raiskup.
17230 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
17232         getcwd: support coreutils better
17233         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
17234         but this might not be correct in coreutils, which disables
17235         the raw decl checks.  Problem reported by Nagendra in
17236         <http://bugs.gnu.org/10305#192>.
17237         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
17238         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
17239         Test the getcwd function, not any macro, since getcwd.c wants the
17240         function.
17241         * m4/getcwd.m4 (gl_FUNC_GETCWD):
17242         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
17243         compile, as might happen if there's a macro but no function.
17245         strtod: support coreutils better
17246         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
17247         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
17248         disables the raw decl checks.  This assumes there is an underlying
17249         strtod, but that's a safe assumption these days.
17250         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
17252         mountlist: port to HP NonStop
17253         Reported by Joachim Schmitz in
17254         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
17255         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
17256         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
17258 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
17260         extern-inline: avoid compilation error with HP-UX cc
17261         Reported by Richard Lloyd in
17262         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
17263         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
17264         Suppress extern inline with HP-UX cc.  This should be safe,
17265         though it may hurt performance.  Perhaps someone with some HP-UX
17266         experience can come up with a higher-performance fix.
17268 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17270         putenv: fix heap corruption with mixed putenv/_putenv
17271         Problem reported by Michael Goffioul in
17272         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
17273         * lib/putenv.c (putenv) [HAVE__PUTENV]:
17274         Rely on _putenv to allocate the new environment.
17275         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
17276         * modules/putenv (configure.ac): Use it.
17278 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
17280         unsetenv etc.: port to Solaris 11 + GNU Emacs
17281         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
17282         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
17283         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
17284         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
17285         idea but is too painful to fix right now), and without this gnulib
17286         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
17287         compiling unsetenv.c on Solaris 11.  Fix the problem for
17288         unsetenv.c, and fix other similar occurrences.
17290 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17292         secure_getenv: fix C++ declaration typo
17293         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
17294         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
17295         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
17297 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17299         careadlinkat: stop exporting careadlinkatcwd
17300         Only Emacs used it directly, and Emacs no longer needs it.
17301         * NEWS: Document this simplification.
17302         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
17303         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
17304         for readlink.
17305         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
17306         Don't include stdlib.h; no longer needed.
17307         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
17308         * lib/relocwrapper.c: Adjust comment to match new dependencies.
17309         * modules/areadlink (Depends-on): Add readlink.
17310         (Maintainer): Add self.
17311         * modules/careadlinkat (Depends-on): Remove readlink.
17313         extensions: port better to HP-UX
17314         This is merged from git Autoconf.
17315         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17316         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
17317         so that it's compatible with the value used when compiling.
17319         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
17320         Problem reported by Mats Erik Andersson in
17321         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
17322         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
17323         openpty function exists, not merely when we intend to replace it.
17324         This corrects the 2013-01-31 patch, which mistakenly defined
17325         HAVE_OPENPTY even on hosts that lacked it.
17327 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
17329         secure_getenv: fix include typo
17330         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
17332         secure_getenv: port better to FreeBSD and Solaris
17333         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
17334         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
17335         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
17336         This works better on BSDish platforms.
17337         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
17338         Test for issetugid if __secure_getenv is missing.
17340 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17342         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
17343         Some of these changes are merged in from git Autoconf.
17344         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17345         When deciding whether to define _XOPEN_SOURCE, inspect the
17346         preprocessor macro __hpux instead of the more-heavyweight
17347         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
17348         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
17349         as the key for __EXTENSIONS__.
17351         unistd: avoid namespace pollution on non-glibc systems
17352         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
17353         This avoids namespace pollution on non-glibc systems, by causing
17354         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
17355         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
17356         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
17358 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17360         tmpdir: use secure_getenv
17361         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
17362         Define to secure_getenv, not getenv.
17363         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
17364         as that's now secure_getenv's job.
17365         * modules/tmpdir (Depends-on): Add secure_getenv.
17367         tempname: use secure_getenv
17368         * lib/tempname.c (__secure_getenv) [!_LIBC]:
17369         Define to secure_getenv, not getenv.
17370         * modules/tempname (Depends-on):
17371         Add secure_getenv.
17373         secure_getenv: new module
17374         * MODULES.html.sh (Extra functions based on ANSI C 89):
17375         Add secure_getenv.
17376         * doc/glibc-functions/secure_getenv.texi: New file.
17377         * doc/gnulib.texi: Include it.
17378         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
17379         New files.
17380         * lib/stdlib.in.h (secure_getenv): New decl.
17381         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
17382         * modules/stdlib (stdlib.h):
17383         Add secure_getenv checks.
17385 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17387         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
17388         Reported for OS X 10.8.2 by Assaf Gordon in
17389         <http://bugs.gnu.org/13516>.
17390         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
17391         !HAVE_OPENAT && !HAVE_FDOPENDIR.
17392         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
17393         so that they can be kept in sync more easily.  Avoid PATH_MAX
17394         test on the Hurd.  Sync from test-getcwd.c for errno tests after
17395         mkdir or chdir failure.
17396         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
17397         lib/getcwd.c.
17398         (test_abort_bug): Do not test for the deep directory bug unless we
17399         have openat support.  Avoid PATH_MAX test on the Hurd.
17401         regex-tests, regex: fix bug: memset undeclared
17402         * tests/test-regex.c: Don't include regex.h twice.  Include
17403         string.h, to declare memset.  Christensen's report also mentioned
17404         this issue.
17405         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
17406         test-regex.c, to avoid future problems like this.  Remove
17407         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
17408         twice.
17410         regex-tests: fix link errors on older Solaris
17411         These need to link with @LIBINTL@ to get libintl_gettext.
17412         Problem reported by Tom G. Christensen in
17413         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
17414         * modules/regex-tests (test_regex_LDADD): New macro.
17416 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17418         regex-tests: new module
17419         * modules/regex-tests, tests/test-regex.c: New files.
17421         regex: fix off-by-one error in configure test
17422         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
17424 2013-01-31  Eric Blake  <eblake@redhat.com>
17426         regex: avoid infinite configure test
17427         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
17429 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
17431         openpty: fix bug where HAVE_OPENPTY wasn't defined
17432         See the thread starting at:
17433         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
17434         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
17435         openpty function exists, not merely when we intend to replace it.
17437 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17439         sys_time: port to Solaris 2.6
17440         There is a circularity problem on Solaris 2.6, where <time.h> includes
17441         <sys/time.h> for struct timespec.  The include nesting is gnulib
17442         <time.h>, system <time.h>, gnulib <sys/time.h>, system
17443         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
17444         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
17445         <sys/siginfo.h>; the last, innermost file needs struct
17446         timestruc_t, which is defined in <sys/time.h>, which has not been
17447         fully parsed.  Problem reported by Tom G. Christensen in
17448         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
17449         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
17450         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
17451         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
17452         uses split double-inclusion guards.
17454 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17456         regex: test for buffer overrun
17457         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
17458         for the just-fixed regex bug.
17460 2013-01-29  Andreas Schwab  <schwab@suse.de>
17462         regex: fix buffer overrun in regexp matcher [BZ #15078]
17463         * lib/regexec.c (extend_buffers): Add parameter min_len.
17464         (check_matching): Pass minimum needed length.
17465         (clean_state_log_if_needed): Likewise.
17466         (get_subexp): Likewise.
17468 2013-01-28  Pádraig Brady  <P@draigBrady.com>
17470         mountlist: don't consider "devtmpfs" as dummy
17471         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
17472         as there is storage associcated with it.
17474 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
17476         futimens-tests, utimens-tests: Depend on gettext.
17477         This works around a problem introduced in my 2013-01-12 patch,
17478         which added @LIBINTL@ to these modules.
17479         * modules/futimens-tests (Depends-on):
17480         * modules/utimens-tests (Depends-on): Add gettext.
17482 2013-01-26  Eric Blake  <eblake@redhat.com>
17484         test-getpeername: fix typo
17485         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
17487 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
17489         bootstrap: remove the need for a sorted .gitignore file
17490         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
17491         rename to insert_if_absent(), so that we don't need or generate
17492         a sorted .gitignore file.  We do require a .gitignore with no
17493         existing duplicate entries and enforce that.
17494         (sort_patterns): Remove this function as we now use the simpler
17495         technigue of inserting blacklist entries at the top of the file,
17496         assuming gnulib won't be inserting !whitelist entries.
17498 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17500         readlinkat: don't depend on gl_FUNC_OPENAT
17501         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
17502         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
17503         renameat.m4, symlinkat.m4; but one thing at a time.
17505         statat: new module, split out from fstatat
17506         GNU Emacs needs the POSIX-specified fstatat, but not the
17507         gnulib-specified statat and lstat.  Split the latter two into a
17508         new module 'statat'.
17509         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
17510         * lib/openat.h, lib/statat.c (STATAT_INLINE):
17511         Rename from FSTATAT_INLINE. All uses changed.
17512         * modules/fstatat (Files): Remove lib/statat.c.
17513         (gl_MODULE_INDICATOR([fstatat])): Remove.
17514         (lib_SOURCES): Remove.
17515         (Maintainer): Add self.
17516         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
17517         * tests/test-fstatat.c (BASE): Don't define if already defined.
17518         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
17520 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17522         tests: don't assume fd 99 is closed
17523         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
17524         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
17525         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
17526         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
17527         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
17528         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
17529         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
17530         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
17531         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
17532         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
17533         * tests/test-fwrite.c, tests/test-getpeername.c:
17534         * tests/test-getsockname.c, tests/test-getsockopt.c:
17535         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
17536         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
17537         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
17538         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
17539         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
17540         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
17541         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
17542         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
17543         * tests/test-unlinkat.c, tests/test-unlockpt.c:
17544         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
17545         Close file descriptor 99, instead of assuming it's already closed.
17547 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17549         stpncpy: port to OS X 10.8
17550         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
17551         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
17553 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17555         unistd: port to recent mingw
17556         * lib/unistd.in.h: Remove special invocation convention for mingw,
17557         which breaks for the latest mingw version.  See John W. Eaton in
17558         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
17560         largefile: port better to Mac OS X 10.5
17561         This patch is backported from Autoconf git.
17562         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
17563         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
17564         with ino_t size being different for configuration time versus
17565         build/run time.  Problem reported by PHO in
17566         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
17568 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17570         doc: clarify -Werror
17571         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
17572         clarify that it's intended for developers, not for ordinary builds,
17573         and mention --enable-gcc-warnings as one possible use.
17575 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
17577         stdint: fix build with Android's Bionic fox x86
17578         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
17579         was already included as _SSIZE_T_DEFINED_ might also be defined
17580         in include/machine/_types.h, which is included by stdio.h
17582 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
17584         net_if-tests: port to Solaris 7 + GCC 3.4.6
17585         Problem reported by Tom G. Christensen in
17586         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
17587         * tests/test-net_if.c (ni): Move to next the code that uses it,
17588         so that it's declared only if needed.
17590 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17592         net_if-tests: port to older Solaris
17593         Problem reported by Tom G. Christensen in
17594         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17595         * modules/net_if-tests (NET_IF_LIB): New substitution.
17596         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
17597         (HAVE_IF_NAMEINDEX): New C macro.
17598         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
17600         system-quote-tests: port to older Solaris
17601         Problem reported by Tom G. Christensen in
17602         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17603         * tests/test-system-quote-child.c (fopen, fread): Undef.
17605         c-xvasprintf etc.: fix link errors on older Solaris
17606         These need to link with @LIBINTL@ to get libintl_gettext.
17607         Problem reported by Tom G. Christensen in
17608         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17609         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
17610         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
17611         * modules/futimens-tests (test_futimens_LDADD):
17612         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
17614 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17616         locale: port to Solaris 2.6 and 7 + GNU gettext
17617         * lib/locale.in.h: Just include_next <locale.h> when
17618         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
17619         when combining the localename module with GNU gettext 0.18.2.
17620         Problem reported by Tom G. Christensen in
17621         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
17623 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17625         stdlib: port to Solaris 2.6
17626         Also, the code worked on Solaris 7 through 9 only by accident.
17627         Problem reported by Tom G. Christensen in
17628         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
17629         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
17630         simply include the system stdlib.h.
17631         * lib/getopt.in.h (__need_system_stdlib_h):
17632         * lib/pthread.in.h (__need_system_stdlib_h):
17633         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
17634         Define when including <stdlib.h>, to avoid problems at least for
17635         the pthread case on Solaris 2.6 and 7.  These .h files can get by
17636         with the system stdlib.h.
17638 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
17640         doc: update main copyright year
17641         * doc/gnulib.texi: Update copyright date.
17643         doc: improve ISO 8601 discussion
17644         * doc/parse-datetime.texi (Combined date and time of day items):
17645         Specify more carefully what formats are supported and what is
17646         done with excess precision.
17648 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
17650         doc: avoid small caps
17651         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
17652         they're more trouble than they're worth.  Suggested by Karl Berry
17653         in <http://bugs.gnu.org/13360>.
17655         regex: conform to strict C
17656         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
17657         From Aharon Robbins.
17659         gnulib-tool: fix incompatibility with autopoint 0.18.2
17660         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
17661         Problem reported by Tom G. Christensen in
17662         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
17664 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
17666         fprintftime: bring back and reword fwrite comment
17667         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
17669         stdio: remove now-unnecessary stdio.c
17670         Since stdio.in.h no longer uses inline functions, we no longer
17671         need to compile the extern versions.
17672         * lib/stdio.c: Remove.
17673         * modules/stdio (Files): Remove lib/stdio.c.
17674         (lib_SOURCES): Remove.
17676         unicodeio: depend on stdio, not ignore-value
17677         * lib/unicodeio.c: Do not include ignore-value.h.
17678         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
17679         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
17681         fprintftime: depend on stdio, not ignore-value
17682         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
17683         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
17684         since the stdio module arranges to silence that warning now.
17685         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
17687 2012-10-04  Simon Josefsson  <simon@josefsson.org>
17689         stdint-tests: Fix expanded-before-required-warning.
17690         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
17692 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17694         fwrite: silence __wur only for older glibc versions
17695         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
17696         This will help us remove this workaround some time in the far future.
17698 2013-01-03  Eric Blake  <eblake@redhat.com>
17700         fwrite: silence __wur without using inline
17701         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
17702         just gcc, and in a way that avoids inline issues.
17703         * modules/stdio (Depends-on): Drop extern-inline.
17705 2013-01-03  Jim Meyering  <jim@meyering.net>
17707         update-copyright: avoid copyright notice date corruption
17708         Given a sequence of copyright year numbers in which the final
17709         one was a two-digit number that happened to be a substring of
17710         a preceding four-digit year number, we would mistakenly update
17711         the substring (from two- to four-digit) rather than the two-digit
17712         number at the end, which, combined with the addition of the current
17713         4-digit year number would yield two 5-digit year numbers, e.g.,
17714         here, it would convert the first "99" to "1999, 2013" rather than
17715         the final one:
17716           1991, 99
17717           11999, 20131, 1999
17718         * build-aux/update-copyright: Tighten a regexp.
17719         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
17720         Reported by Joseph Myers in
17721         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
17723 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17725         regex: omit needless signed-pointer casts
17726         * lib/regcomp.c (build_charclass, build_charclass_op):
17727         Use char *, not unsigned char *, for class name and extra.
17728         The char values are always nonnegative so there's no need to
17729         insist on unsigned char * here, and using char * removes the need
17730         for casts.  Reported by Aharon Robbins in
17731         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17733         regex: support Gawk, which never uses alloca
17734         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
17735         Do not include in this case.  Gawk doesn't supply a substitute
17736         alloca.h and doesn't need one.
17738         regex: port __libc_lock_define usage to C89
17739         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
17740         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
17741         does not conform to C89, as it has an empty macro argument.
17742         Reported by Aharon Robbins in
17743         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17745 2013-01-01  Eric Blake  <eblake@redhat.com>
17747         maint: update all copyright year number ranges
17748         Run "make update-copyright".
17750         version-etc: bump copyright year reported in --version
17751         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
17753 2012-12-31  Eric Blake  <eblake@redhat.com>
17755         sigprocmask-tests: skip test if pid is unexpectedly large
17756         * tests/test-sigprocmask.c (main): Add range check.
17758         git-version-gen: avoid test -z portability glitch
17759         * build-aux/git-version-gen: Prefer portable test spelling, since
17760         git-version-gen is run on more than just developer machines.
17762 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
17764         git-version-gen: add --fallback option to use if git is not present
17765         * build-aux/git-version-gen: Add support for the new option --fallback,
17766         which comes into play when there is no $tarball_version_file and
17767         git is not working.
17768         (scriptversion): Update.
17770         maint.mk: handle missing git with more grace
17771         * top/maint.mk (no-submodule-changes, public-submodule-commit):
17772         Quietly proceed if git is not present.
17774 2012-12-31  Eric Blake  <eblake@redhat.com>
17776         dup2: work around cygwin bug
17777         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
17778         * lib/dup2.c (rpl_dup2): Work around it.
17779         * doc/posix-functions/dup2.texi (dup2): Document it.
17781 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17783         regex: remove unnecessary dependency on localcharset.h
17784         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
17785         hasn't been needed for years.
17786         * modules/regex (Depends-on): Remove localcharset.
17788         regex: revert single-byte change
17789         * lib/regexec.c (check_node_accept_bytes): Revert previous change
17790         to this function.  This was alredy fixed in a different way, at
17791         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
17792         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
17793         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
17795         regex: simplify based on Gawk version
17796         * lib/regex_internal.c (re_dfa_add_node): Simplify.
17797         Reported by Aharon Robbins in
17798         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17800 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17802         regex: check that pattern char is single-byte
17803         Reported by Aharon Robbins in
17804         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17805         * lib/regexec.c (check_node_accept_bytes):
17806         Return 0 if the pattern string has a multibyte character here.
17808         regex: implement rational ranges
17809         Reported by Aharon Robbins in
17810         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17811         * lib/regcomp.c (build_range_exp) [!_LIBC]:
17812         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
17813         Implement rational ranges.
17815         regex: avoid redefining __wctype
17816         Reported by Aharon Robbins in
17817         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17818         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
17819         #undef before defining.
17821         regex: port to hosts where malloc (0) == NULL
17822         Reported by Aharon Robbins in
17823         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17824         * lib/regex_internal.c (re_node_set_alloc):
17825         Don't assume that malloc (0) yields nonnull.
17826         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
17827         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
17828         * modules/regex (Files): Add m4/eealloc.m4.
17830         regex: port to C89
17831         Reported by Aharon Robbins in
17832         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
17833         * lib/regcomp.c (init_word_char): Declaration before statement.
17835         regex: merge glibc changes
17836         Also, copy the license wording from glibc.  This simplifies
17837         merging changes.  gnulib-tool will change the wording to GPL as
17838         appropriate, when importing it to other packages.  The only
17839         glibc change made since the last merge, which needs merging, is:
17840         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
17841         * lib/regex_internal.h (gettext): Remove use of INTUSE.
17843         * users.txt: Add Emacs.
17845         doc: omit mention of version when not needed
17846         * doc/gnulib-intro.texi (Portability and Application Code):
17847         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
17848         Don't mention particular dates or versions when not necessary, so
17849         that the documentation won't go out of date so quickly.
17851         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
17853 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
17855         bootstrap: pass --force to autoreconf.
17856         * build-aux/bootstrap (AUTORECONFFLAGS): New.
17857         Add "--force" so that Automake's ylwrap and other such tools
17858         be updated at each bootstrap invocation.
17859         Use it.
17861 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17863         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
17864         The earlier patch forgot to update one of the #if conditions, causing
17865         a problem on Debian testing i386 reported by Mats Erik Andersson
17866         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
17867         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
17868         (__argp_fmtstream_puts, argp_fmtstream_puts)
17869         (__argp_fmtstream_write, argp_fmtstream_write)
17870         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
17872         * doc/gnulib-readme.texi: Minor fixups.
17873         (Portability guidelines): Modernize URLs.  Remove some repetition.
17874         (Indent with spaces not TABs): Reword to avoid too-long lines.
17875         Remove some '@ifset standalone' stuff that isn't used.
17877         * doc/gnulib-readme.texi (Portability guidelines):
17878         ctype.h, not ctime.h.
17880         Correct name of POSIX.1-2001.
17881         * doc/posix-functions/fgetc.texi (fgetc):
17882         * doc/posix-functions/fgets.texi (fgets):
17883         * doc/posix-functions/fread.texi (fread):
17884         * doc/posix-functions/fscanf.texi (fscanf):
17885         * doc/posix-functions/getc.texi (getc):
17886         * doc/posix-functions/getchar.texi (getchar):
17887         * doc/posix-functions/scanf.texi (scanf):
17888         POSIX.1-2001, not POSIX-2001.
17890         doc: move README into manual
17891         * README: Move contents to new file doc/gnulib-readme.texi.
17892         Replace with a one-line summary.
17893         * doc/gnulib.texi (Brief Overview): New section,
17894         with old intro preface.  Include gnulib-readme.texi for contents.
17895         (Philosophy): Rename from "Introduction", since this
17896         section no longer introduces the rest.  Write a new preface.
17897         * doc/gnulib-readme.texi: New file, with the old contents of
17898         README texinfo-ized.  This way, the README info appears
17899         in the online and printed manual.
17901 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
17903         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
17904         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
17905         c_vasprintf() prototype.
17907 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
17909         c-vasprintf: Fix "empty declaration" warning reported by GCC.
17910         * lib/c-vasprintf.h: Remove stray semicolon.
17912 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17914         gettext: avoid obsolete macro AM_PROG_MKDIR_P
17915         It is obsolete and is planned to be removed from Automake 1.14; see
17916         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
17917         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
17918         (installdirs-data, installdirs-data-yes):
17919         Use $(MKDIR_P), not $(mkdir_p).
17920         * m4/intl.m4 (AM_INTL_SUBDIR):
17921         * m4/po.m4 (AM_PO_SUBDIRS):
17922         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
17924 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17926         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
17927         On this platform, we are not optimizing but we are using
17928         the substitute for extern inlines, so compile as if
17929         C99-style extern inline, or a substitute, is available.
17930         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
17931         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
17932         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
17933         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
17934         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
17935         Declare as ARGP_FS_EI, not as extern.
17936         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
17937         (__option_is_short, _option_is_end, __option_is_end)
17938         [!_LIBC && __USE_EXTERN_INLINES]:
17939         Declare as ARGP_EI, not as extern.
17941 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17943         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
17944         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
17945         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
17946         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
17947         ...), as the latter is fatal with older Autoconfs.
17948         Problem reported and fix suggested by Eric Blake in thread starting at
17949         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
17951 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17953         AC_PROG_MKDIR_P: don't workaround if not buggy
17954         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
17955         Define only for Autoconf versions before 2.62.
17956         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
17957         undocumented m4_PACKAGE_VERSION, for consistency with the
17958         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
17959         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
17960         was introduced in 2.62.
17962 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
17964         New 'c-*printf' modules for formatted output in C locale.
17966         New module 'c-vasnprintf'.
17967         * modules/c-vasnprintf: New file.
17968         * lib/c-vasnprintf.c: New file.
17969         * lib/c-vasnprintf.h: New file.
17971         New module 'c-snprintf'.
17972         * modules/c-snprintf: New file.
17973         * modules/c-snprintf-tests: New file.
17974         * lib/c-snprintf.c: New file.
17975         * lib/c-snprintf.h: New file.
17976         * tests/test-c-snprintf.c: New file.
17977         * tests/test-c-snprintf.sh: New file.
17979         New module 'c-vsnprintf'.
17980         * modules/c-vsnprintf: New file.
17981         * modules/c-vsnprintf-tests: New file.
17982         * lib/c-vsnprintf.c: New file.
17983         * lib/c-vsnprintf.h: New file.
17984         * tests/test-c-vsnprintf.c: New file.
17985         * tests/test-c-vsnprintf.sh: New file.
17987         New module 'c-vasprintf'.
17988         * modules/c-vasprintf: New file.
17989         * modules/c-vasprintf-tests: New file.
17990         * lib/c-asprintf.c: New file.
17991         * lib/c-vasprintf.c: New file.
17992         * lib/c-vasprintf.h: New file.
17993         * tests/test-c-vasprintf.c  +: New file.
17994         * tests/test-c-vasprintf.sh: New file.
17996         New module 'c-xvasprintf'.
17997         * modules/c-xvasprintf: New file.
17998         * modules/c-xvasprintf-tests: New file.
17999         * lib/c-xasprintf.c: New file.
18000         * lib/c-xvasprintf.c: New file.
18001         * lib/c-xvasprintf.h: New file.
18002         * tests/test-c-xvasprintf.c: New file.
18003         * tests/test-c-xvasprintf.sh: New file.
18005 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18007         argp: better 'inline'
18008         Use extern-inline module to declare extern inline functions.
18009         This avoids some bogus warning diagnostics.  Problem discovered
18010         when modifying GNU tar to use the manywarnings module.
18011         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
18012         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
18013         Define based on extern-inline.
18014         * modules/argp (Depends-on): Add extern-inline.
18016 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18018         filemode, sys_stat: Handle MPX files a la AIX.
18019         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
18020         * lib/sys_stat.in.h (S_ISMPX): New macro.
18021         * tests/test-sys_stat.c: Add tests for MPX files.
18023 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18025         x-to-1: honor $PERL
18026         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
18027         a chance to use his preferred version of Perl.  This is typically
18028         required by Darwin users whose default /usr/bin/perl does not have all
18029         the libraries required by help2man, and who need to use their MacPorts
18030         installation of Perl instead.
18032 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
18034         gnu-web-doc-update: add all the new files, even in new directories
18035         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
18036         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
18037         Use it.
18038         (main): Don't use cvsutils to get the list of unknown files,
18039         just add all the existing files and directories.
18041 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
18043         gnu-web-doc-update: improve --help
18044         * build-aux/gnu-web-doc-update: Move comments into --help.
18046 2012-12-07  Eric Wong  <normalperson@yhbt.net>
18048         mountlist: recognize more "dummy" file systems
18049         * lib/mountlist.c (ME_DUMMY_0):
18050         Add these dummy FS names to the list:
18051         - "debugfs" virtual filesystem for kernel debugging
18052         - "devpts" PTY slave filesystem
18053         - "devtmpfs" device filesystem on top of tmpfs/ramfs
18054         - "fusectl" control filesystem for FUSE
18055         - "mqueue" enumerates POSIX message queues
18056         - "rpc_pipefs" kernel <-> userspace bridge for NFS
18057         - "sysfs" is for exporting kernel objects
18058         - "devfs" device filesystem for Linux 2.4 and FreeBSD
18060 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
18062         extern-inline: avoid incompatibility with Darwin Libc
18063         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
18064         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
18065         Problem reported by Akim Demaille in
18066         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
18068 2012-12-11  Simon Josefsson  <simon@josefsson.org>
18070         gnupload: Work with GnuPG using gpg-agent (for smartcards).
18071         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
18072         let it handle password prompting.
18074 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
18076         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
18077         * lib/canonicalize.c (canonicalize_filename_mode):
18078         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
18079         fetching the current directory.  Don't overrun the beginning of
18080         rpath if there's no slashes after the MS-Windows drive letter.
18082 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
18084         maint.mk: avoid extra forks
18085         * top/maint.mk (_cfg_mk): The GNU make manual documents that
18086         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
18087         So use that instead of "$(shell test -f FILE && echo FILE)".
18089 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18091         vasnprintf: fix ASCII_ONLY typo
18092         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18093         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18094         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18095         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
18096         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
18098 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18100         list, oset, xlist, xoset: fix extern inline issue with C99
18101         This was introduced by my recent changes for 'inline'.
18102         Problem reported for gettext by Daiki Ueno in
18103         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
18104         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
18105         (gl_list_nx_create, gl_list_size, gl_list_node_value)
18106         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
18107         (gl_list_previous_node, gl_list_get_at)
18108         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
18109         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
18110         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
18111         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
18112         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
18113         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
18114         (gl_list_iterator_free, gl_sortedlist_search)
18115         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
18116         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
18117         (gl_sortedlist_remove):
18118         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
18119         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
18120         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
18121         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
18122         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
18123         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
18124         (gl_list_add_at, gl_sortedlist_add):
18125         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
18126         Wrap these extern decls inside "#if 0", because they are implemented
18127         as inline functions, and extern inline is not what's wanted here.
18128         It would simplify these .h files to remove the extern decls entirely,
18129         although a downside would be less-clear separation between
18130         specification and implementation.
18132 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
18134         sys_stat: no 'static inline'
18135         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
18136         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
18138         extern-inline: no 'static inline'
18139         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
18140         Do not require AC_C_INLINE.
18141         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
18142         'static inline', for older compilers.
18144         snippet/warn-on-use: no 'static inline'
18145         * build-aux/snippet/warn-on-use.h:
18146         Remove unnecessary 'inline' in comment.
18148         rbtree-list, rbtreehash-list: no 'static inline'
18149         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
18150         * lib/gl_anytree_list2.h (node_at):
18151         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
18152         (gl_oset_first, add_nodes_to_buckets):
18153         Now static, not static inline.
18155         regex: no 'static inline'
18156         * lib/regex_internal.c (calc_state_hash):
18157         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
18158         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
18159         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
18160         Now static, not static inline.
18161         (inline) [__GNUC__ < 3 && _LIBC]:
18162         Remove macro; no longer needed.
18164         xvasprintf: no 'static inline'
18165         * lib/xvasprintf.c (xstrcat):
18166         Now static, not static inline.
18167         * m4/xvasprintf.m4 (gl_XVASPRINTF):
18168         Do not require AC_C_INLINE.
18170         parse-datetime, parse-duration: no 'static inline'
18171         * lib/parse-datetime.y (to_uchar):
18172         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
18173         (scale_n_add):
18174         Now static, not static inline.
18175         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
18176         * modules/parse-duration (configure.ac):
18177         Do not require AC_C_INLINE.
18179         getaddrinfo: no 'static inline'
18180         * lib/getaddrinfo.c (validate_family):
18181         Now static, not static inline.
18182         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
18183         Do not require AC_C_INLINE.
18185         ftruncate, fts, lstat, openat, raise: no 'static inline'
18186         * lib/ftruncate.c (chsize_nothrow):
18187         * lib/fts.c (opendirat, diropen):
18188         * lib/lstat.c (orig_lstat):
18189         * lib/openat.c (orig_openat):
18190         * lib/raise.c (raise_nothrow):
18191         Now static, not static inline.
18192         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
18193         * m4/fts.m4 (gl_FUNC_FTS_CORE):
18194         * m4/lstat.m4 (gl_PREREQ_LSTAT):
18195         * m4/openat.m4 (gl_PREREQ_OPENAT):
18196         * m4/raise.m4 (gl_PREREQ_RAISE):
18197         Do not require AC_C_INLINE.
18199         fflush, stat: no 'static inline'
18200         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18201         (clear_ungetc_buffer, disable_seek_optimization)
18202         (restore_seek_optimization, update_fpos_cache):
18203         * lib/stat.c (orig_stat):
18204         Now static, not static inline.
18205         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
18206         (update_fpos_cache):
18207         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
18208         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
18209         * m4/stat.m4 (gl_PREREQ_STAT):
18210         Do not require AC_C_INLINE.
18212         error, filevercmp: no 'static inline'
18213         * lib/error.c (is_open, flush_stdout):
18214         * lib/filevercmp.c (order):
18215         Now static, not static inline.
18216         * m4/error.m4 (gl_PREREQ_ERROR):
18217         * modules/filevercmp (configure.ac):
18218         Do not require AC_C_INLINE.
18220         dup, execute, fatal-signal, etc.: no 'static inline'
18221         * lib/dup.c (dup_nothrow):
18222         * lib/execute.c (nonintr_close, nonintr_open):
18223         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
18224         * lib/fopen.c (orig_fopen):
18225         * lib/freadseek.c (freadptrinc):
18226         * lib/freopen.c (orig_freopen):
18227         * lib/fstat.c (orig_fstat, fstat_nothrow):
18228         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
18229         (get_rusage_as_via_iterator):
18230         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
18231         * lib/getdtablesize.c (_setmaxstdio_nothrow):
18232         * lib/isatty.c (_isatty_nothrow):
18233         * lib/open.c (orig_open):
18234         * lib/read.c (read_nothrow):
18235         * lib/sigprocmask.c (signal_nothrow):
18236         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
18237         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
18238         * lib/wait-process.c (unregister_slave_subprocess):
18239         * lib/write.c (write_nothrow):
18240         Now static, not static inline.
18241         * lib/spawn-pipe.c (nonintr_open): Define only if
18242         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
18243         * m4/dup.m4 (gl_PREREQ_DUP):
18244         * m4/execute.m4 (gl_EXECUTE):
18245         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
18246         * m4/fopen.m4 (gl_PREREQ_FOPEN):
18247         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
18248         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
18249         * m4/fstat.m4 (gl_PREREQ_FSTAT):
18250         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
18251         * m4/isatty.m4 (gl_PREREQ_ISATTY):
18252         * m4/open.m4 (gl_PREREQ_OPEN):
18253         * m4/read.m4 (gl_PREREQ_READ):
18254         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
18255         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
18256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
18257         * m4/wait-process.m4 (gl_WAIT_PROCESS):
18258         * m4/write.m4 (gl_PREREQ_WRITE):
18259         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
18260         Do not require AC_C_INLINE.
18262         c-strtod, memcoll, readutmp: no 'static inline'
18263         * lib/c-strtod.c (c_locale):
18264         * lib/memcoll.c (strcoll_loop):
18265         * lib/readutmp.c (desirable_utmp_entry):
18266         Now static, not static inline.
18267         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
18268         * m4/memcoll.m4 (gl_MEMCOLL):
18269         * m4/readutmp.m4 (gl_READUTMP):
18270         Do not require AC_C_INLINE.
18272         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
18273         * lib/arctwo.c (to_uchar):
18274         * lib/md4.c (set_uint32):
18275         * lib/md5.c (set_uint32):
18276         * lib/sha1.c (set_uint32):
18277         * lib/sha256.c (set_uint32):
18278         * lib/sha512.c (set_uint64):
18279         Now static, not static inline.  This is a bit simpler, and doesn't
18280         affect performance with GCC and default optimization.
18281         * m4/arctwo.m4 (gl_ARCTWO):
18282         * m4/md4.m4 (gl_MD4):
18283         * m4/md5.m4 (gl_MD5):
18284         * m4/sha1.m4 (gl_SHA1):
18285         * m4/sha256.m4 (gl_SHA256):
18286         * m4/sha512.m4 (gl_SHA512):
18287         Do not require AC_C_INLINE.
18289         cond, lock, thread: better 'inline'
18290         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
18291         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
18292         New macros.  Use them instead of static inline, for header functions.
18293         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
18294         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
18295         * lib/glthread/lock.c (gl_waitqueue_init)
18296         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
18297         * lib/glthread/thread.c (get_current_thread_handle):
18298         Change 'static inline' to 'inline'.
18299         * lib/glthread/cond.h, lib/glthread/thread.h:
18300         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18301         * m4/cond.m4 (gl_COND):
18302         * m4/lock.m4 (gl_PREREQ_LOCK):
18303         * m4/thread.m4 (gl_THREAD):
18304         Do not require AC_C_INLINE.
18305         * modules/cond, modules/thread (Depends-on): Add extern-inline.
18307         chdir-long, cycle-check, savewd: better 'inline'
18308         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
18309         (find_non_slash):
18310         * lib/cycle-check.c (is_zero_or_power_of_two):
18311         * lib/savewd.c (savewd_delegating):
18312         Change 'static inline' to 'inline'.
18313         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
18314         Replace all remaining uses of 'static inline' with it.
18315         * lib/savewd.h:
18316         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18317         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
18318         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
18319         * m4/savewd.m4 (gl_SAVEWD):
18320         Do not require AC_C_INLINE.
18321         * modules/savewd (Depends-on): Add extern-inline.
18323         base32, base64: no need for 'inline'
18324         * lib/base32.c (to_uchar, get_8, decode_8):
18325         * lib/base64.c (to_uchar, get_4, decode_4):
18326         Change 'static inline' to 'inline'.
18327         * m4/base32.m4 (gl_PREREQ_BASE32):
18328         * m4/base64.m4 (gl_PREREQ_BASE64):
18329         Do not require AC_C_INLINE.
18331         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
18332         * lib/gl_array_oset.c (gl_array_nx_add_at):
18333         (gl_array_remove_at):
18334         * lib/gl_linkedhash_list.c (hash_resize_after_add)
18335         (add_to_bucket, remove_from_bucket):
18336         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
18337         Change 'static inline' to 'static', as it's simpler to omit
18338         'inline' unless there's a significant performance advantage.
18340         list, oset, xlist, xoset, xsublist: simplify via extern inline
18341         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
18342         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
18343         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
18344         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
18345         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
18346         New macro.  Replace all uses of 'static inline' with it.
18347         [HAVE_INLINE]: Implement functions as *_INLINE functions,
18348         instead of as macros FOO that are defined to static inline
18349         functions FOO_inline.
18350         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
18351         * lib/gl_xsublist.c:
18352         Reimplement from scratch, by defining the corresponding *_INLINE
18353         macro and including the corresponding .h file.  This is simpler.
18354         * modules/list, modules/oset, modules/xlist, modules/xoset:
18355         (Files): Remove m4/gl_list.m4.
18356         (configure.ac): Remove gl_LIST.
18357         * m4/gl_list.m4: Remove.
18358         * modules/list, modules/oset, modules/xlist, modules/xoset:
18359         * modules/xsublist:
18360         (Depends-on): Depend on extern-inline, not inline.
18362         xalloc: better 'inline'
18363         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
18364         New macro.  Replace all uses of 'static inline' with it.
18365         (static_inline): Remove.
18366         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
18367         Let 'extern inline' do the work automatically, instead of doing
18368         it by hand.
18369         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
18370         Remove.  All uses removed.
18371         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
18373         gethrxtime: better 'inline'
18374         * lib/xtime.c: New file.
18375         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
18376         * lib/xtime.h (XTIME_INCLUDE):
18377         New macros.  Replace all uses of 'static inline' with them.
18378         * lib/gethrxtime.c (gethrxtime): Define only if
18379         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
18380         this source file is now always compiled, because of the extern inline.
18381         * lib/gethrxtime.h, lib/xtime.h:
18382         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18383         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
18384         if gethrtime works, as they're not needed in that case.
18385         (gl_XTIME): Do not require AC_C_INLINE.
18386         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
18387         compiled now.  Move the check into gl_GETHRXTIME.
18388         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
18389         (Depends-on): Add extern-inline.
18390         (configure.ac): gethrxtime is always compiled now.
18391         (lib_SOURCES): Add gethrxtime.c.
18393         wctype-h: better 'inline'
18394         * lib/wctype-h.c: New file.
18395         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
18396         New macro.  Replace all uses of 'static inline' with it.
18397         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18398         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
18399         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
18400         (Depends-on): Add extern-inline.
18402         unistd: better 'inline'
18403         * lib/unistd.c: New file.
18404         * lib/unistd.in.h (_GL_UNISTD_INLINE):
18405         New macro.  Replace all uses of 'static inline' with it.
18406         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18407         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
18408         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
18409         (Depends-on): Add extern-inline.
18411         sys_socket: better 'inline'
18412         * lib/sys_socket.c: New file.
18413         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
18414         New macro.  Replace all uses of 'static inline' with it.
18415         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
18417         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
18418         (Depends-on): Add extern-inline.
18420         stdio: better 'inline'
18421         * lib/stdio.c: New file.
18422         * lib/stdio.in.h (_GL_STDIO_INLINE):
18423         New macro.  Replace all uses of 'static inline' with it.
18424         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18425         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
18426         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
18427         (Depends-on): Add extern-inline.
18429         sigaction: better 'inline'
18430         * lib/sig-handler.c: New file.
18431         * lib/sig-handler.h (SIG_HANDLER_INLINE):
18432         New macro.  Replace all uses of 'static inline' with it.
18433         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18434         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
18435         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
18436         (Depends-on): Add extern-inline.
18438         selinux-h: better 'inline'
18439         * lib/se-context.c, lib/se-selinux.c: New files.
18440         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
18441         * lib/se-context.in.h (SE_CONTEXT_INLINE):
18442         New macro.  Replace all uses of 'static inline' with it.
18443         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18444         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
18445         New macro.  Replace all uses of 'static inline' with it.
18446         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18447         * modules/selinux-h (Files, lib_SOURCES):
18448         Add lib/se-context.c, lib/se-selinux.c.
18449         (Depends-on): Add extern-inline.
18450         (configure.ac): Do not require AC_C_INLINE.
18452         pthread: better 'inline'
18453         * lib/pthread.c: New file.
18454         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
18455         New macro.  Replace all uses of 'static inline' with it.
18456         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18457         * m4/pthread.m4 (gl_PTHREAD_CHECK):
18458         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
18459         * modules/pthread (Files): Add lib/pthread.c.
18460         (Depends-on): Add extern-inline.
18462         math: better 'inline'
18463         * lib/math.c: New file.
18464         * lib/math.in.h (_GL_MATH_INLINE):
18465         New macro.  Replace all uses of 'static inline' with it.
18466         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18467         * m4/math_h.m4 (gl_MATH_H):
18468         Do not require AC_C_INLINE.
18469         * modules/math (Files, lib_SOURCES):
18470         Add lib/math.c.
18471         (Depends-on): Add extern-inline.
18473         count-one-bits: better 'inline'
18474         * lib/count-one-bits.c: New file.
18475         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
18476         New macro.  Replace all uses of 'static inline' with it.
18477         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18478         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
18479         Do not require AC_C_INLINE.
18480         * modules/count-one-bits (Files, lib_SOURCES):
18481         Add lib/count-one-bits.c.
18482         (Depends-on): Add extern-inline.
18484         count-leading-zeros: better 'inline'
18485         * lib/count-leading-zeros.c: New file.
18486         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
18487         New macro.  Replace all uses of 'static inline' with it.
18488         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18489         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
18490         Do not require AC_C_INLINE.
18491         * modules/count-leading-zeros (Files, lib_SOURCES):
18492         Add lib/count-leading-zeros.c.
18493         (Depends-on): Add extern-inline.
18495         bitrotate: better 'inline'
18496         * lib/bitrotate.c: New file.
18497         * lib/bitrotate.h (BITROTATE_INLINE):
18498         New macros.
18499         Replace all uses of 'static inline' with them.
18500         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18501         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
18502         (Depends-on): Add extern-inline.
18503         (configure.ac): Do not require AC_C_INLINE.
18505 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
18507         maint.mk: avoid gratuitous failure
18508         Reported by Stefano Lattarini in
18509         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
18510         * top/maint.mk (public-submodule-commit): Quote more safely.
18512 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
18514         canonicalize, canonicalize-lgpl: support MS-Windows file names
18515         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
18516         for test cases, which it'd be nice to add at some point.
18517         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
18518         * lib/canonicalize.c (canonicalize_filename_mode):
18519         * lib/canonicalize-lgpl.c (__realpath):
18520         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
18521         slash is at the beginning of the file name.  Use ISSLASH, instead
18522         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
18523         the first character with '/'.  Test for
18524         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
18525         with a drive letter.
18526         * lib/canonicalize.c (SLASHES): New macro.
18527         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
18529 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
18531         fts: introduce FTS_VERBATIM
18532         * lib/fts_.h (FTS_VERBATIM): New bit flag.
18533         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
18534         * lib/fts.c (fts_open): Honor it.
18536 2012-11-09  Pádraig Brady  <P@draigBrady.com>
18538         getlogin-tests: allow errno == ENXIO
18539         * tests/test-getlogin.c (main): Skip tests if getlogin fails
18540         with errno == ENXIO (No controlling tty).
18541         getlogin_r-tests: Likewise. Also allow errno == ENOENT
18542         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
18543         with errno == ENOENT.  This was reported to happen in various
18544         situations on GNU/Linux.
18546 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
18548         getlogin-tests: allow errno == ENOENT
18549         * tests/test-getlogin.c (main): Skip tests if getlogin fails
18550         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
18551         when running a test in an Emacs shell buffer.
18553 2012-11-08  Jim Meyering  <jim@meyering.net>
18555         tests/nap.h: avoid warning about unused variable
18556         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
18558         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
18559         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
18560         white space before each of the special-cased file names, to avoid
18561         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
18562         in http://bugs.gnu.org/12830.
18564 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18566         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
18567         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
18568         fails with errno == EBADF when fd is opened with O_PATH.
18569         Reported by Jim Meyering in
18570         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
18571         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
18572         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
18574 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18576         test-utimens: speed up by taking shorter naps
18577         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
18578         New functions.
18579         (nap): Use them, to do a better job of guessing the delay.
18580         On Fedora 17 with ext4 atop md atop hard disks, this made
18581         test-utimens run 10x faster, because the test napped for
18582         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
18583         <http://bugs.gnu.org/12820#11>.
18585 2012-11-07  Jim Meyering  <jim@meyering.net>
18587         mountlist.c: fix a compilation failure
18588         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
18589         I introduced while transforming commit v0.0-7683-g613bcb6
18591 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18593         errno: port to LynxOS 178 2.2.2
18594         Problem reported by Joel Brobecker in
18595         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
18596         * doc/posix-headers/errno.texi (errno.h): Document this.
18597         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
18598         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
18599         Supply a string for EILSEQ.
18600         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
18602 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18604         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
18605         Linux kernel 2.6.39 introduced O_PATH (see
18606         <http://lwn.net/Articles/433854/>) and this is a better fallback
18607         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
18608         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
18609         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
18610         * lib/fcntl.in.h (O_ACCMODE):
18611         * tests/test-fcntl-h.c (main):
18612         Do not reject O_ACCMODE merely because it has more than the
18613         minimal number of bits, as POSIX allows extensions here.
18615 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
18617         mountlist: do not classify a bind-mounted dir entry as "dummy"
18618         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
18619         the "none"-testing clause.
18620         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
18621         exception for bind-mounted directories.
18623 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
18625         quote: provide a means to escape strings with nul characters
18626         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
18627         (quote, quote_n): Rename formal arguments for consistency with
18628         quotearg.
18630 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18632         test-raise: don't assume 199 is an invalid signal
18633         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
18635         sh-quote-tests: port to Solaris 9
18636         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
18637         Problem reported by Dagobert Michelsen in
18638         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
18640 2012-10-28  Jim Meyering  <jim@meyering.net>
18642         maint.mk: rename a new configurable variable
18643         * top/maint.mk (_gl_translatable_string_re): Rename from
18644         translation-markers: _gl_ prefix to insulate from user Makefile code,
18645         and the _re suffix to inform that it's a regular expression.
18647 2012-10-26  Eric Blake  <eblake@redhat.com>
18649         maint.mk: let packages tweak sc_po_check pattern
18650         * top/maint.mk (sc_po_check): Add translation-markers, to allow
18651         finding files with other translation markers.
18653 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18655         euidaccess: speed up 'configure' on GNU hosts
18656         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
18657         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
18658         it's needed only in this case.  Use AC_CHECK_DECLS, not
18659         AC_CHECK_DECLS_ONCE.
18660         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
18661         or AC_REQUIRE for AC_FUNC_GETGROUPS.
18663         * lib/regexec.c (re_search_internal): Fix grammar in comment.
18665 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18667         fchmodat, fchownat, fstatat: port to non-inlining compilers
18668         Problem reported for FreeBSD 9 by Jim Meyering in
18669         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
18670         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
18671         New files, which define FCHMODAT_INLINE etc.
18672         * lib/fchmodat.c (FCHMODAT_INLINE):
18673         * lib/fchownat.c (FCHOWNAT_INLINE):
18674         * lib/fstatat.c (FSTATAT_INLINE):
18675         Remove, as chmodat.c etc. now do this.
18676         * modules/fchmodat (Files): Add lib/chmodat.c.
18677         * modules/fchownat (Files): Add lib/chownat.c.
18678         * modules/fstatat (Files): Add lib/statat.c.
18680 2012-10-15  Jim Meyering  <jim@meyering.net>
18682         fchmodat.c, fchownat.c: compile-impeding typos
18683         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
18684         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
18685         Introduced in commit v0.0-7636-gd202279.
18687 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18689         fcntl-h: support GNU flags like O_IGNORE_CTTY
18690         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
18691         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
18692         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
18693         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
18694         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
18695         Define to 0 if not already defined.
18696         * tests/test-fcntl-h.c: Test these new flags.
18698 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18700         faccessat, etc.: support AT_FDCWD-only use
18701         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
18702         this function only if its first argument is AT_FDCWD.
18703         Emacs wants faccessat for AT_EACCESS but not for any first-arg
18704         values other than AT_FDCWD, so it doesn't want all the openat
18705         machinery with fchdir etc.
18706         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
18707         * modules/fstatat, modules/mkdirat, modules/openat (Files):
18708         * modules/unlinkat (Files):
18709         Remove lib/openat-priv.h, as at-internal supplies this file.
18710         Removing this file here allows us to support programs like Emacs
18711         that avoid at-internal.
18713         faccessat: speed up 'configure' on mainstream hosts
18714         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
18715         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
18716         since it's only on unusual platforms that we need to check for
18717         'access', and it's better not to slow 'configure' down on all
18718         platforms.
18720         faccessat: port to Solaris 10
18721         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
18722         Needed on Solaris 10, which doesn't have AT_EACCESS,
18723         so we need the Gnulib fcntl.h, which defines it.
18725 2012-10-14  Pádraig Brady  <P@draigBrady.com>
18726         canonicalize: fix C89 compilation
18727         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
18728         declarations so C89 is supported.  Also remove the comment
18729         referencing memorty allocation as the suggested feature could
18730         not be implemented as suggested.
18731         Reported by Michael Goffioul.
18733 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18735         group-member: omit unnecessary dependencies
18736         This is for Emacs, which has its own allocator and where we
18737         don't want to use xalloc.
18738         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
18739         since we no longer use xmalloc.  Do not include stdbool.h, since
18740         the changes below happen to remove the only use of bool.
18741         (GROUPBUF_SIZE): New constant.
18742         (struct group_info): Remove n_groups member.  Add groupbuf member.
18743         This lets us get the groups without using malloc, usually.
18744         (free_group_info, get_group_info): Adjust to this.
18745         (get_group_info): Return the number of groups found, or -1 on error.
18746         Use plain malloc not xmalloc, and treat its failure as if there
18747         are no groups, as the user already loses in case of error.
18748         (group_member): Simplify, based on changes to get_group_info.
18749         * modules/group-member (Depends-on): Remove dependencies on
18750         xalloc and stdbool.  Add dependency on xalloc-oversized.
18752 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
18754         gethrxtime: port to C++
18755         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
18757 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
18759         ptsname: fix macro-name typo
18760         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
18762 2012-10-03  Simon Josefsson  <simon@josefsson.org>
18764         inttostr: Relax license.
18765         * modules/inttostr (License): Change from LGPL to LGPLv2+.
18767 2012-10-03  Eric Blake  <eblake@redhat.com>
18769         ptsname_r: support ptys returned by FreeBSD posix_openpt
18770         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
18771         lives in /dev/pts/.
18773 2012-10-02  Eric Blake  <eblake@redhat.com>
18775         pselect: reject invalid file descriptors
18776         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
18777         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
18778         * modules/pselect (Depends-on): Add dup2.
18779         * doc/posix-functions/pselect.texi (pselect): Document this.
18781         select: reject invalid file descriptors
18782         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
18783         * lib/select.c (rpl_select) [!win32]: Work around it.
18784         * modules/select (Depends-on): Add dup2.
18785         * doc/posix-functions/select.texi (select): Document this.
18787         select: enhance test
18788         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
18789         New functions.
18790         (test_function): Enhance test.
18791         (do_select_bad_fd): Avoid any stale errno values.
18793         ptsname: reject invalid file descriptors
18794         http://www.austingroupbugs.net/view.php?id=503
18795         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
18796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
18797         * modules/stdlib (Makefile.am): Replace witness.
18798         * lib/stdlib.in.h (ptsname): Allow for replacement.
18799         * modules/ptsname (configure.ac): Trigger replacement.
18800         * doc/posix-functions/ptsname.texi (ptsname): Document this.
18802 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
18804         hash-pjw-bare: new module
18805         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
18806         * lib/hash-pjw-bare.h: Likewise.
18807         * modules/hash-pjw-bare: New file.
18808         * MODULES.html.sh (Misc): Add it.
18810 2012-10-02  Eric Blake  <eblake@redhat.com>
18812         manywarnings: cater to more gcc infelicities
18813         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
18814         -Wuninitialized without -O.
18816 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
18818         select, poll tests: Make setsockopt invocation effective.
18819         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
18820         the bind() call.
18821         * tests/test-select.h (open_server_socket): Likewise.
18823 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
18825         sockets, sys_stat: restore AC_C_INLINE
18826         This undoes the 2012-09-22 patch.
18827         * m4/sockets.m4 (gl_SOCKETS):
18828         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
18829         Restore AC_C_INLINE, since MSVC requires __inline or _inline
18830         and does not support plain 'inline'.  Reported by Bruno Haible in
18831         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
18833 2012-09-30  Bruno Haible  <bruno@clisp.org>
18835         localeconv tests: Avoid test failure on OpenIndiana.
18836         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
18837         skip the 'grouping' and 'mon_grouping' tests.
18838         Reported by Jim Meyering.
18840 2012-09-30  Bruno Haible  <bruno@clisp.org>
18842         havelib: Follow libtool developments.
18843         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
18844         Suggested by Simon Josefsson.
18846 2012-09-29  Jim Meyering  <meyering@redhat.com>
18848         fstatat.c: fix a compile-impeding typo
18849         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
18850         Introduced in commit v0.0-7636-gd202279.
18851         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
18853 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
18855         extern-inline: provide a -Wundef safe config.h
18856         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
18857         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
18858         to produce a -Wundef warning free config.h.
18860 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18862         hash-pjw: relax license to LGPLv2+
18863         * modules/hash-pjw (License): Relax, with consent of author.
18865 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
18867         maint.mk: fix strict vs. lazy variable issues with RELEASE
18868         * top/maint.mk (_equal): New function.
18869         (member_check): Strip the result to avoid spurious spaces.
18870         (url_dir_list): Do not use ifeq, which is strict, as it will
18871         require RELEASE_TYPE to be defined.
18872         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
18873         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
18874         (announcement_Cc_alpha,announcement_mail_headers_alpha)
18875         (announcement_Cc_beta,announcement_mail_headers_beta)
18876         (announcement_Cc_stable,announcement_mail_headers_stable): these.
18877         (release): Do not depend on $(release-type), as it forces its
18878         evaluation.  Bounce to it.
18880 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
18882         maint.mk: formatting changes
18883         * top/maint.mk: Indent bodies of if's.
18885 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
18887         maint.mk: factor the validation of RELEASE_TYPE
18888         With help from Jim Meyering.
18889         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
18890         * top/maint.mk (_empty, _sp): Move their definition earlier.
18891         (member-check, release-type): New.
18892         Use the latter instead of $(RELEASE_TYPE).
18893         Remove now useless local checks.
18895 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
18897         maint.mk: provide "make upload" to ease uploading
18898         See
18899         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
18900         Do not depend simply on the current $(VERSION), as there may have been
18901         new commits since the tarball generation.  Rather, rely on $(RELEASE),
18902         as "make release-commit" already does.
18904         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
18905         "make TYPE".
18907         * top/maint.mk (upload_command, upload, release): New.
18908         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
18909         (VERSION): first word of $(RELEASE) is always right.
18910         (emit_upload_commands): Adjust.
18911         * top/README-release: Update.
18913 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
18915         maint.mk: silent rules
18916         With help from Stefano Lattarini.
18917         * top/maint.mk (writable-files): Use $(AM_V_GEN).
18918         (announcement): Use $(AM_V_at).
18920 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
18922         localename: port gl_locale_name_thread_unsafe to FreeBSD
18923         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
18924         and use the simpler FreeBSD implementation on Mac OS X as well.
18925         Original idea suggested by Ed Maste in
18926         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
18928 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18930         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
18931         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
18932         * lib/mbuiter.c, lib/xsize.c: New files.
18933         * lib/binary-io.h (BINARY_IO_INLINE):
18934         * lib/eealloc.h (EEALLOC_INLINE):
18935         * lib/mbfile.h (MBFILE_INLINE):
18936         * lib/mbiter.h (MBITER_INLINE):
18937         * lib/mbuiter.h (MBUITER_INLINE):
18938         * lib/xsize.h (XSIZE_INLINE):
18939         New macros.
18940         Replace all uses of 'static inline' with them.
18941         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18942         * m4/eealloc.m4 (gl_EEALLOC):
18943         * m4/mbfile.m4 (gl_MBFILE):
18944         * m4/mbiter.m4 (gl_MBITER):
18945         * m4/xsize.m4 (gl_XSIZE):
18946         Do not require AC_C_INLINE.
18947         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
18948         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
18949         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
18950         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
18951         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
18952         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
18953         * modules/binary-io, modules/eealloc, modules/mbfile:
18954         * modules/mbiter, modules/mbuiter:
18955         (Depends-on): Add extern-inline.
18957         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
18958         * lib/pipe-filter-aux.c: New file.
18959         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
18960         Replace all uses of 'static inline' with it.
18961         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18962         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
18963         (filter_retcode): No real need for inline here.
18964         * modules/pipe-filter-gi, modules/pipe-filter-ii:
18965         (Files): Add lib/pipe-filter-aux.c.
18966         (Depends-on): Add extern-inline.
18967         (configure.ac): Do not require AC_C_INLINE.
18968         (lib_SOURCES): Add pipe-filter-aux.c.
18970         fdutimensat: omit unnecessary AC_C_INLINE
18971         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
18973         fchmodat, fchownat, fstatat: use extern-inline
18974         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
18975         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
18976         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
18977         New macros.
18978         * lib/openat.h:
18979         Replace all uses of 'static inline' with them.
18980         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18981         * modules/fchmodat, modules/fchownat, modules/fstatat:
18982         * modules/openat-h:
18983         (Depends-on):
18984         Add extern-inline.
18985         (configure.ac): Remove AC_C_INLINE.
18987         acl, mbchar, priv-set: use extern-inline
18988         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
18989         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
18990         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
18991         New macros.
18992         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
18993         Replace all uses of 'static inline' with it.
18994         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18995         * m4/acl.m4 (gl_FUNC_ACL):
18996         * m4/mbchar.m4 (gl_MBCHAR):
18997         * m4/priv-set.m4 (gl_PRIV_SET):
18998         Remove AC_C_INLINE, since 'inline' is no longer used directly.
18999         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
19000         Add extern-inline.
19002         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
19003         * m4/sockets.m4 (gl_SOCKETS):
19004         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
19005         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
19006         environments where it's already guaranteed to work, so we needn't
19007         check for it at 'configure'-time.
19009         tls-tests: omit unnecessary 'inline'
19010         * tests/test-tls.c (perhaps_yield): No longer inline.
19011         Simplicity and portability trump efficiency in test cases.
19013         utimens-tests: avoid unnecessary 'inline'
19014         * modules/fdutimensat-tests (configure.ac):
19015         * modules/futimens-tests (configure.ac):
19016         * modules/utimens-tests (configure.ac):
19017         * modules/utimensat-tests (configure.ac):
19018         Remove AC_C_INLINE.
19019         * tests/test-utimens-common.h (ctime_compare):
19020         No longer inline.  Simplicity and portability trump efficiency here.
19022         misc: don't limit commentary to inline functions
19023         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
19024         * lib/xalloc-oversized.h, lib/xsize.h:
19025         Contrast macros to functions in general, not just to inline functions,
19026         when the commentary does not apply only to inline functions.
19028 2012-09-20  Jim Meyering  <meyering@redhat.com>
19030         non-recursive-gnulib-prefix-hack: new module
19031         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
19032         the file that originated in Bison.
19033         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
19034         largely copied from a snippet that resided in bison's configure.ac.
19035         * modules/non-recursive-gnulib-prefix-hack: New file.
19036         * MODULES.html.sh (Support for maintaining and releasing projects):
19037         Add it.
19039 2012-09-18  Jim Meyering  <meyering@redhat.com>
19041         maint.mk: generalize _gl_tight_scope for non-recursive make
19042         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
19043         that *.h would describe additional .h files in the directory
19044         specified by $(_gl_TS_dir).  I.e., add this...
19045         (_gl_TS_other_headers): New variable.
19047         maint.mk: exempt trailing blanks found in "binary" files
19048         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
19049         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
19050         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19052 2012-09-17  Jim Meyering  <meyering@redhat.com>
19054         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
19055         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
19056         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
19057         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19059 2012-09-17  Jim Meyering  <meyering@redhat.com>
19061         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
19062         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
19063         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
19064         It is not in the same category as "exit (0)" or "exit (1)", and
19065         besides, I know of no symbolic name for that 77.  Reported by
19066         Richard W.M. Jones in
19067         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19069 2012-09-17  Jim Meyering  <meyering@redhat.com>
19071         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
19072         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
19073         all uses of #define, not just those that start in column 1.
19074         Richard W.M. Jones reported a false positive in
19075         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19077 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19079         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
19080         * lib/localcharset.c (locale_charset) [DARWIN7]:
19081         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
19082         as these two values are incompatible.  Problem reported by Max Horn.
19083         For more discussion, please see
19084         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
19086         doc: document sticky-EOF issue
19087         * doc/posix-functions/fgetc.texi (fgetc):
19088         * doc/posix-functions/fgets.texi (fgets):
19089         * doc/posix-functions/fread.texi (fread):
19090         * doc/posix-functions/fscanf.texi (fscanf):
19091         * doc/posix-functions/getc.texi (getc):
19092         * doc/posix-functions/getchar.texi (getchar):
19093         * doc/posix-functions/scanf.texi (scanf):
19094         Mention that glibc and default Solaris do not conform to
19095         C99 and POSIX-2001 or later, with respect to how getchar
19096         etc. behave when feof reports nonzero.
19098 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
19100         poll: fix poll(0, NULL, msec)
19101         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
19102         but nfd is 0.  In that case poll should behave like select.
19104 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
19105             Paolo Bonzini  <bonzini@gnu.org>
19107         poll: fix for systems that can't recv() on a non-socket
19108         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
19109         is readable.  In this case POLLHUP will not be supported.
19110         * doc/posix-functions/poll.texi: Document this.
19112 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
19114         poll/select: document portability problems not fixed by Gnulib.
19115         * doc/posix-functions/poll.texi: poll does not work well on
19116         pipes under Windows.  It has the same limitations as select on
19117         BeOS.
19118         * doc/posix-functions/select.texi: select does not work well
19119         on pipes under Windows.
19121 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19123         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
19124         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
19125         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
19126         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
19128 2012-09-06  Eric Blake  <eblake@redhat.com>
19130         net_if: give more details about the bug being fixed
19131         * doc/posix-headers/net_if.texi: Add clarification.
19133 2012-09-05  Eric Blake  <eblake@redhat.com>
19135         net_if: new module
19136         * modules/net_if: New module, borrowing ideas from netinet_in.
19137         * m4/net_if_h.m4: New file.
19138         * lib/net_if.in.h: Likewise.
19139         * doc/posix-headers/net_if.texi (net/if.h): Document it.
19140         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19141         * tests/test-net_if.c: Make function checks conditional.
19142         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
19144 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
19146         readutmp: fix non-portable UT_PID use
19147         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
19148         Use `UT_PID (u) > 0' as absolute condition.
19150 2012-09-04  Jim Meyering  <meyering@redhat.com>
19152         fts: reduce two or more trailing spaces to just one, usually
19153         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
19154         or more slashes, trim all but the final one.  But if a name consists
19155         solely of two slashes, don't modify it.  If it consists solely of
19156         three or more slashes, strip all but one.
19158         This is part of the solution to a minor problem with rm:
19159         it would print a bogus ELOOP diagnostic when failing to remove
19160         the slash-decorated name of a symlink-to-directory:
19162             $ mkdir d && ln -s d s && env rm -r s/
19163             rm: cannot remove 's': Too many levels of symbolic links
19165         With the change below and a trivial don't-trim-trailing-slashes
19166         adjustment to remove.c, it does this:
19168             $ env rm -r s/
19169             rm: cannot remove 's/': Not a directory
19171         Improved by: Eric Blake
19173         fts: when there is no risk of overlap, use memcpy, not memmove
19174         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
19176 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19178         stdbool: be more compatible with mixed C/C++ compiles
19179         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
19180         Define to bool, true, false, respectively, as GCC's builtin
19181         stdbool.h does.  Problem reported by Michael Goffioul in
19182         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
19184 2012-08-28  Jim Meyering  <meyering@redhat.com>
19186         revert last change: it was not needed
19187         * tests/test-vc-list-files-git.sh: There's already a test for
19188         a working git, just below.
19190 2012-08-28  Jim Meyering  <meyering@redhat.com>
19192         tests: test-vc-list-files-git.sh: skip if git is not available
19193         * tests/test-vc-list-files-git.sh: Skip this test when git is
19194         not available.
19196 2012-08-26  Bruno Haible  <bruno@clisp.org>
19198         gnulib-tool: Remove no-op option --no-changelog.
19199         * gnulib-tool (func_usage): Don't mention --no-changelog.
19200         (do_changelog): Remove variable.
19201         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19203 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19205         doc: remove fdl-1.2.texi
19206         It is no longer used or maintained, and its use of @acronym
19207         is problematic.  See the thread containing
19208         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
19209         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
19210         * doc/old-licenses/fdl-1.2.texi: Remove.
19212         execinfo: port to FreeBSD
19213         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
19214         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
19215         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
19216         * modules/execinfo (Link): Add $(LIB_EXECINFO).
19218 2012-08-23  Jim Meyering  <meyering@redhat.com>
19220         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
19221         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
19222         to placate gcc's -Wold-style-declaration.
19224 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19226         doc: do not use @acronym
19227         * doc/inet_ntoa.texi (inet_ntoa):
19228         * doc/parse-datetime.texi (Seconds since the Epoch)
19229         (Specifying time zone rules):
19230         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
19231         Don't use @acronym.  Problem reported by John Darlington in
19232         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
19234 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19236         stdnoreturn: port to newer GCCs
19237         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
19238         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
19239         Problem reported by Jim Meyering in
19240         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
19241         Also, rename the 'test' function to a void a clash with the
19242         already-supplied 'main' function; this fixes a bug that incorrectly
19243         rejected GCC 4.7.1's <stdnoreturn.h>.
19244         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
19245         Document GCC problem.
19247 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
19249         pipe-filter: fix comment typo
19250         * lib/pipe-filter.h: Mention correct function.
19252 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
19254         execinfo: new module
19255         This is for Emacs.  Currently, it provides a no-effect stub
19256         on all platforms where it does not already work.
19257         It already works on glibc-based systems, and on Solaris 11.
19258         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
19259         New files.
19260         * doc/glibc-headers/execinfo.texi (execinfo.h):
19261         * MODULES.html.sh (Misc): Document it.
19263 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19265         extern-inline: support old GCC 'inline'
19266         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
19267         if available.  This applies to GCC versions 2.7 through 4.2, or
19268         when newer GCC is using -fgnu89-inline.  The goal is to address
19269         some of the performance issues mentioned by Bruno Haible in
19270         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
19272 2012-08-20  Eric Blake  <eblake@redhat.com>
19274         maint.mk: avoid redundant file name in message
19275         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
19276         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
19277         (sc_makefile_path_separator_check): Remove bogus $(ME).
19279 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
19281         timer-time: fix link order when static linking on glibc
19282         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
19283         _after_ -lrt so that it's significant.
19285 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19287         timespec: omit unnecessary AC_C_INLINE
19288         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
19290         stat-time: omit unnecessary AC_C_INLINE
19291         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
19292         Do not require AC_C_INLINE.
19294         ignore-value: omit unnecessary AC_C_INLINE
19295         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
19297         sys_select: avoid 'static inline'
19298         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
19300         mktime: avoid 'static inline'
19301         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
19302         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
19304 2012-08-19  Bruno Haible  <bruno@clisp.org>
19306         gnulib-tool: Improve coding style.
19307         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
19308         func_emit_lib_Makefile_am.
19309         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19311 2012-08-19  Bruno Haible  <bruno@clisp.org>
19313         gnulib-tool: Fix indentation.
19314         * gnulib-tool (func_import): Fix indentation.
19316 2012-08-19  Bruno Haible  <bruno@clisp.org>
19318         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
19319         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
19320         on the list of removed files.
19322 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19324         test-parse-datetime: avoid glibc leap-second glitch
19325         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
19326         with the 2012 rules.  Problem reported by Bruce Dubbs in
19327         <http://bugs.gnu.org/12206>.
19329 2012-08-14  Bruno Haible  <bruno@clisp.org>
19331         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
19332         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
19333         from argument.
19334         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19336 2012-08-14  Eric Blake  <eblake@redhat.com>
19338         ldexp: relax license
19339         * modules/ldexp (License): Trivial relax, since the module only
19340         provides a permissively licensed m4 file.
19342 2012-08-13  Bruno Haible  <bruno@clisp.org>
19344         gnulib-tool: Fix persistence of --witness-c-macro option.
19345         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
19346         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19348 2012-08-11  Eric Blake  <eblake@redhat.com>
19350         count-leading-zeros: use a lookup table on non-gcc compilers
19351         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
19352         alternate implementation, suggested by Jim Meyering.
19354 2012-08-10  Eric Blake  <eblake@redhat.com>
19356         count-leading-zeros: new module
19357         * modules/count-leading-zeros: New module.
19358         * m4/count-leading-zeros.m4: New file.
19359         * lib/count-leading-zeros.h: Likewise.
19360         * modules/count-leading-zeros-tests: New test.
19361         * tests/test-count-leading-zeros.c: New file.
19362         * MODULES.html.sh (Integer arithmetic functions): Document it.
19364 2012-08-07  Simon Josefsson  <simon@josefsson.org>
19365             Jim Meyering  <meyering@redhat.com>
19367         maintainer-makefile: Fix syntax error with dash.
19368         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
19369         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
19371 2012-08-05  Jim Meyering  <meyering@redhat.com>
19373         extern-inline: also ignore -Wmissing-declarations
19374         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
19375         required with gcc-4.8.0-to-be.
19377         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
19378         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
19379         for /error ?([^,]*)/.  This avoids false-positives for strings like
19380         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
19382 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
19384         gnumakefile: better interaction with Automake-NG
19385         * modules/gnumakefile [Makefile.am]: The makefiles generated by
19386         Automake-NG always contain a definition of VPATH, even in non-VPATH
19387         builds (its value being simply '.' in that case).  So, in the
19388         'clean-GNUmakefile' rule, to determine whether running under a
19389         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
19390         '$(VPATH)' expands to the empty string.
19392 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
19394         base64: Use extern C scope in header file, for C++.
19395         * lib/base64.h: Add C++ namespace protection.
19397 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
19399         stat-time, timespec, u64: support naive out-of-dir builds
19400         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
19401         Use '#include "foo.h"', not '#include <foo.h>', when including
19402         one's own interface.  This works better when configuring with
19403         out-of-directory builds, since packages need not add an
19404         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
19406 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19408         utimens: use extern-inline
19409         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
19410         * lib/utimens.h: Add copyright notice, since this is now large enough
19411         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19412         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
19413         * modules/utimens (Depends-on): Add extern-inline.
19415         u64: use extern-inline
19416         * lib/u64.c: New file.
19417         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19418         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
19419         * modules/u64 (Files): Add lib/u64.c.
19420         (Depends-on): Add extern-inline.
19421         (configure.ac): No need to require AC_C_INLINE, since extern-inline
19422         does that now.
19423         (lib_SOURCES): Add u64.c.
19425         timespec: use extern-inline
19426         * lib/timespec.c: New file.
19427         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19428         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
19429         * modules/timespec (Files): Add lib/timespec.c.
19430         (Depends-on): Add extern-inline.
19431         (lib_SOURCES): Add timespec.c.
19433         stat-time: use extern-inline
19434         * lib/stat-time.c: New file.
19435         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19436         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
19437         * modules/stat-time (Files): Add lib/stat-time.c.
19438         (Depends-on): Add extern-inline.
19439         (lib_SOURCES): Add stat-time.c.
19441         extern-inline: new module
19442         * modules/extern-inline, m4/extern-inline.m4: New files.
19443         This is for better support of 'extern inline' a la ISO C99,
19444         with a portable alternative on compilers that do not support
19445         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
19446         of the Emacs executable, when compiled with debugging disabled,
19447         which is a typical way that Emacs is built while developing.
19449 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
19451         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
19452         * build-aux/do-release-commit-and-tag: Move variable definitions
19453         together.
19454         ($branch): Instead of defaulting to "master", default to the current
19455         branch (as gnu-web-doc-update does).
19456         (help): Display the current values of the option arguments.
19457         * top/maint.mk (release-commit): New.
19458         * top/README-release: Simplify the corresponding step.
19460 2012-07-30  Eric Blake  <eblake@redhat.com>
19462         passfd: fix comment on recvfd
19463         * lib/passfd.c (recvfd): Fix comment.
19464         Reported by Jann Horn <jannhorn@googlemail.com>.
19466 2012-07-30  Jim Meyering  <meyering@redhat.com>
19468         maint.mk: avoid a sub-shell
19469         * top/maint.mk (release-prep): Remove unneeded sub-shell.
19471 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19473         maint.mk: use silent-rules support from Automake
19474         * top/maint.mk (news-check, vc-diff-check, announcement)
19475         (no-submodule-changes, alpha beta stable, release-prep)
19476         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
19478 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19480         maint.mk: provide a web-manual-update target
19481         * top/maint.mk: here.
19482         * top/README-release: Use it to simplify the web manual update step.
19484 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19486         README-release: shorten the circuit to post a news
19487         * top/README-release: Point directly to the news submission form.
19489 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19491         gnu-web-doc-update: fix --help
19492         * build-aux/gnu-web-doc-update: The information "top level" was written
19493         twice.
19495 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19497         maint.mk: absolute VPATH issue
19498         * top/maint.mk (release-prep): Help Git find .git/.
19499         From Jim Meyering.
19501 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19503         gitlog-to-changelog: fix previous change
19504         * build-aux/gitlog-to-changelog: Fix condition.
19505         Add missing ";".
19507 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19509         gitlog-to-changelog: don't expect .git to be in $srcdir
19510         Reported by Bruno Haible.
19511         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
19512         * build-aux/gitlog-to-changelog (&git_dir_option): New.
19513         Use it.
19515 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19517         maint.mk: absolute VPATH build fix
19518         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
19519         $(srcdir) is not a parent of $(builddir).
19521 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
19523         clean-temp: Fix memory leak.
19524         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
19525         'files' members of tmpdir.
19527 2012-07-27  Jim Meyering  <meyering@redhat.com>
19529         maint.mk: new rule: refresh-gnulib-patches
19530         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
19531         Use this rule to refresh them.
19532         * top/maint.mk (refresh-gnulib-patches): New rule.
19534 2012-07-24  Bruno Haible  <bruno@clisp.org>
19536         gnulib-tool: Fix handling of inctests variable.
19537         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
19538         Reported by Nick Bowler <nbowler@elliptictech.com>.
19540 2012-07-22  Bruno Haible  <bruno@clisp.org>
19542         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
19543         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
19544         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
19545         Remove exemption for getpass.h.
19546         Suggested by Eric Blake.
19548 2012-07-20  Eric Blake  <eblake@redhat.com>
19550         verify: document conflict with -Wnested-externs
19551         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
19553         maint.mk: forbid exit(-1)
19554         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
19556 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
19558         fsusage: port back to Solaris
19559         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
19560         error (fsd not declared) on Solaris 10.  Reported privately by
19561         Andrew Borodin.
19563 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
19565         gnu-web-doc-update: fix error messages
19566         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
19568         gnu-web-doc-update: check the requirements.
19569         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
19570         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
19571         * build-aux/bootstrap (find_tool): Comment change.
19573 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
19575         maint.mk: minor simplication.
19576         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
19577         for default values.
19579 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
19581         gitlog-to-changelog: VPATH build issues
19582         If builddir is not a subdirectory of srcdir, running git from it will
19583         fail.
19584         * build-aux/gitlog-to-changelog (--srcdir): New option.
19586 2012-07-15  Bruno Haible  <bruno@clisp.org>
19588         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
19589         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
19590         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
19591         Remove exemption for fpending.h.
19592         Suggested by Eric Blake.
19594 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19596         pthread_sigmask: fix bug on FreeBSD 9
19597         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
19598         Include string.h.
19599         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
19600         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
19601         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
19602         but pthread_sigmask (1729, NULL, NULL) returns zero.
19603         See <http://bugs.gnu.org/11884>.
19604         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
19605         by inspecting whether the main call changed the old mask.
19607 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
19609         README-release: make it more legible
19610         * top/README-release: Improve typography slightly.
19612 2012-07-15  Jim Meyering  <meyering@redhat.com>
19614         maint: require that each sc_... command start with "@"
19615         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
19616         "make sc_maint" helps us avoid this nit.
19618 2012-07-15  Jim Meyering  <meyering@redhat.com>
19620         maint.mk: add leading "@" to quiet new "make syntax-check" rule
19621         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
19623 2012-07-13  Eric Blake  <eblake@redhat.com>
19625         maint.mk: new syntax check for HAVE_DECL checks
19626         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
19627         * cfg.mk
19628         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
19629         Exempt some false positives.
19630         Based on a report by Karel Zak.
19632         argp: make HAVE_DECL usage consistent
19633         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
19634         macros, not whether they are defined.
19635         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
19636         convention with other declaration checks.
19637         Reported by Karel Zak, with suggestions from Paul Eggert.
19639         stat-time: relax license to LGPLv2+
19640         * modules/stat-time (License): Relax, with consent of all authors.
19642         strndup: fix m4 usage error
19643         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
19644         defined, to either 0 or 1.
19645         Reported by Karel Zak.
19647 2012-07-11  Jim Meyering  <meyering@redhat.com>
19649         maint: enable the sc_avoid_if_before_free syntax-check rule
19650         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
19651         (if_before_free_offenders_): Define.
19652         (if_before_free_basename_re_): Define.
19653         Exempt current files with useless if-before-free.
19655 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
19657         gettext: do not assume '#define ... defined ...' behavior
19658         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
19659         Do not use '#define FOO ... defined BAR ...', as the C standard says
19660         it's not portable to expect that this works after macro expansion.
19661         Problem reported for gzip by Steven M. Schweda in
19662         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
19664 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19666         getloadavg: clean out old Emacs and Autoconf cruft
19667         See Glenn Morris in <http://bugs.gnu.org/11905>.
19668         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
19669         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
19670         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
19671         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
19673 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
19675         bootstrap: let warn be like tests/init.sh's warn_
19676         Reported by Jim Meyering.
19677         * build-aux/bootstrap (warn): Remove, replaced by...
19678         (warnf_, warn_): these.
19679         Adjust callers.
19680         Shorten messages that no longer fit in 80 columns.
19682 2012-07-09  Bruno Haible  <bruno@clisp.org>
19684         getopt: Simplify after Emacs changed.
19685         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
19686         (gl_GETOPT_IFELSE): Remove macro.
19688 2012-07-09  Jim Meyering  <meyering@redhat.com>
19690         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
19691         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
19693         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
19694         Bugs in both of those conspired to make the
19695         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
19696         _sc_search_regexp's handling of non-empty $in_files would filter
19697         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
19698         choice of in_files value meant there would be no match in most
19699         projects, due to the presence of two or more Makefile.in files.
19700         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
19701         Fix a bug in how a non-empty $$in_files was processed:
19702         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
19703         in spite of the name, it's a regexp, not a list of file names.
19705 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19707         getloadavg, getopt: fix commentary re configure.in
19708         Autoconf is deprecating the name 'configure.in', so change it to
19709         to the new name 'configure.ac' in a couple of places.
19710         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
19711         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
19712         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
19713         Emacs has renamed it to configure.ac, and it no longer refers
19714         to these macros anyway.
19716         timespec: mark functions with const attributes
19717         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
19718         Mark with _GL_ATTRIBUTE_CONST.
19720 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
19722         canonicalize[-lgpl]: handle "guessing" values when cross-building
19723         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19724         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
19725         matches "*yes" instead of just "yes".  Regression introduced in commit
19726         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
19728 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
19729             Bruno Haible  <bruno@clisp.org>
19731         canonicalize: make the right guess when cross-compiling to GNU
19732         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
19733         determine whether cross-compiling to glibc systems, so as to
19734         include GNU/Hurd.
19736 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19738         timespec-sub: avoid duplicate include
19739         * lib/timespec-sub.c: Do not include <config.h> twice.
19740         Reported by Juanma Barranquero.
19742 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
19744         bootstrap: use a more consistent error reporting scheme
19745         * build-aux/bootstrap (warn, die): New.
19746         Use them.
19748 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19750         sys_time: allow too-wide tv_sec
19751         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
19752         timeval even if tv_sec is wider than time_t.  This allows
19753         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
19754         as without this patch gnulib replaces struct timeval
19755         and OpenBSD futimes therefore has a type mismatch.
19756         * doc/posix-headers/sys_time.texi: Mention this.
19758         pthread: check for both pthread_create and pthread_join
19759         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
19760         alter the check so that it tests for both pthread_create and
19761         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
19762         Suggested by Bruno Haible and Richard Yao in
19763         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
19765         parse-datetime: doc tuneup
19766         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
19767         spacing issues.
19769 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
19771         do-release-commit-and-tag: fix the previous commit
19772         * build-aux/do-release-commit-and-tag: Actually the test was right,
19773         but the comment and the error message were misleading.
19774         Fix comment, and improve error message.
19775         Perform check first, so that NEWS is not modified uselessly.
19777         do-release-commit-and-tag: fix typo
19778         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
19779         _not_ start with a stub.
19781 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19783         pthread: check for pthread_create, not pthread_join
19784         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
19785         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
19786         pthread_join in libc.  I hope this removes the need for all the
19787         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
19788         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
19790 2012-07-04  Jim Meyering  <meyering@redhat.com>
19792         parse-datetime: fix failure to diagnose invalid input
19793         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
19794         rather than diagnosing the invalid input.  Now it reports this:
19795         date: invalid date '\260'
19796         * lib/parse-datetime.y (to_uchar): Define.
19797         (yylex): Don't sign-extend "other" bytes.
19798         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
19799         Thanks to Bruno Haible for the patch to this file.
19800         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
19801         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
19803 2012-07-03  Jim Meyering  <meyering@redhat.com>
19805         bootstrap: do not require now-removed build-aux/missing
19806         Now that build-aux/missing is, er, missing, bootstrap would
19807         silently fail.
19808         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
19809         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
19810         no longer part of gnulib.
19811         Diagnose the failure.
19813 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19815         alloca: add support for HP NonStop TNS/E native
19816         * lib/alloca.in.h (alloca): Support the new host.
19817         From a suggestion by Joachim Schmitz in
19818         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
19820 2012-07-02  Pádraig Brady  <P@draigBrady.com>
19822         fsusage: remove code not needed on non GNU/Linux systems.
19824         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
19825         Don't include headers no longer needed in this case.
19826         * lib/fsusage.c [STAT_STATVFS &&
19827         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
19828         STAT_STATFS2_FRSIZE to exclude code not used in this case.
19830 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
19832         fsusage: include files needed for glibc 2.6 fallback
19833         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
19834         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
19835         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
19836         Problem reported by Ludovic Courtès in
19837         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
19839         fsusage: avoid needless check on GNU/Linux
19840         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
19841         on GNU/Linux systems, since it can't possibly work.
19843 2012-07-01  Bruno Haible  <bruno@clisp.org>
19845         log: Fix an autoconf >= 2.64 warning.
19846         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
19847         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19849 2012-06-28  Bruno Haible  <bruno@clisp.org>
19851         log10f: Fix possible configuration problem.
19852         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
19853         $LOGF_LIBM.
19854         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19856 2012-06-28  Bruno Haible  <bruno@clisp.org>
19858         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
19859         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
19860         not gl_cv_func_unlink_works.
19861         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
19863 2012-06-27  Eric Blake  <eblake@redhat.com>
19865         config: drop scripts that automake says are not independent
19866         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
19867         * build-aux/elisp-comp: Delete.
19868         * build-aux/missing: Likewise.
19869         * build-aux/ylwrap: Likewise.
19870         * modules/elisp-comp: Likewise.
19871         * MODULES.html.sh: Drop mention of elisp-comp.
19872         * NEWS: Mention this.
19874 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
19876         root-uid: new module
19877         This is for portability to Tandem's NonStop Kernel.
19878         * lib/root-uid.h, modules/root-uid: New files.
19879         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
19880         * lib/write-any-file.c, tests/test-sethostname2.c:
19881         Include "root-uid.h".
19882         * lib/euidaccess.c (euidaccess):
19883         * lib/pt_chown.c (main):
19884         * lib/unlinkdir.c (cannot_unlink_dir):
19885         * lib/write-any-file.c (can_write_any_file):
19886         * m4/mknod.m4 (gl_FUNC_MKNOD):
19887         * tests/test-sethostname2.c (geteuid, main):
19888         Don't assume ROOT_UID == 0.
19889         * modules/euidaccess (Depends-on):
19890         * modules/pt_chown (Depends-on):
19891         * modules/sethostname-tests (Depends-on):
19892         * modules/unlinkdir (Depends-on):
19893         * modules/write-any-file (Depends-on):
19894         Add root-uid.
19896         regex: use locale-independent comparison for codeset name
19897         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
19898         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
19899         for codeset name.
19900         * lib/regex_internal.h: Do not include <strings.h>, since we
19901         no longer use strcasecmp.
19902         * modules/regex (Depends-on): Remove strcase.
19904 2012-06-23  Bruno Haible  <bruno@clisp.org>
19906         getopt-posix: No longer guarantee that option processing is resettable.
19907         * doc/posix-functions/getopt.texi: Drop description of problem with
19908         internal state. Fix info about mingw and msvc9.
19909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
19910         option processing by getopt(). Run three test programs instead of one.
19911         Simplify cross-compilation guess.
19912         * NEWS: Mention the change.
19913         Reported by Rich Felker <dalias@aerifal.cx>.
19915 2012-06-26  Bruno Haible  <bruno@clisp.org>
19917         argp, regex: Ensure strcasecmp gets declared.
19918         * lib/argp-help.c: Include <strings.h>.
19919         * lib/regex_internal.h: Likewise.
19920         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
19922 2012-06-24  Bruno Haible  <bruno@clisp.org>
19924         ptsname_r: Make it consistent with ptsname on AIX.
19925         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
19926         implementation as for OSF/1.
19927         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
19928         a pty master.
19930         ptsname_r: Make it consistent with ptsname on OSF/1.
19931         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
19932         OSF/1.
19934 2012-06-24  Bruno Haible  <bruno@clisp.org>
19936         ttyname_r: Fix result on OSF/1, Solaris.
19937         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
19939 2012-06-24  Bruno Haible  <bruno@clisp.org>
19941         ptsname_r: Add support for Solaris.
19942         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
19943         Solaris.
19945         ptsname_r: Fix test failure on native Windows.
19946         * modules/ptsname_r (Depends-on): Add isatty.
19948         ptsname_r: Fix test failures on IRIX, Solaris.
19949         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
19950         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
19951         accordingly.
19952         * lib/ptsname_r.c: Include <fcntl.h>.
19953         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
19954         set errno if fd is invalid.
19955         * tests/test-isatty.c (main): Update comments.
19957 2012-06-24  Bruno Haible  <bruno@clisp.org>
19959         ptsname test: Extend test.
19960         * tests/test-ptsname.c: Include <errno.h>.
19961         (main): Test behaviour with invalid file descriptor.
19963 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19965         time: fix obsolete comment
19966         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
19967         reference to HAVE_STRUCT_TIMESPEC in comment.
19969 2012-06-23  Bruno Haible  <bruno@clisp.org>
19971         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
19972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
19973         does not handle abbreviated long options with equivalent
19974         disambiguations, set gl_replace_getopt to yes.
19975         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
19977 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
19979         time_r: fix typo that always overrode localtime_r decl
19980         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
19981         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
19982         not in a standard include.
19984 2012-06-22  Bruno Haible  <bruno@clisp.org>
19986         Write "Mac OS X" instead of "MacOS X".
19987         * README: Write "Mac OS X" instead of "MacOS X".
19988         * build-aux/bootstrap: Likewise.
19989         * build-aux/install-reloc: Likewise.
19990         * lib/acl-internal.h: Likewise.
19991         * lib/acl_entries.c: Likewise.
19992         * lib/argp-ba.c: Likewise.
19993         * lib/argp-pv.c: Likewise.
19994         * lib/config.charset: Likewise.
19995         * lib/copy-acl.c: Likewise.
19996         * lib/csharpexec.c: Likewise.
19997         * lib/euidaccess.c: Likewise.
19998         * lib/fbufmode.c: Likewise.
19999         * lib/fflush.c: Likewise.
20000         * lib/file-has-acl.c: Likewise.
20001         * lib/filemode.h: Likewise.
20002         * lib/fpurge.c: Likewise.
20003         * lib/freadable.c: Likewise.
20004         * lib/freadahead.c: Likewise.
20005         * lib/freading.c: Likewise.
20006         * lib/freadptr.c: Likewise.
20007         * lib/freadseek.c: Likewise.
20008         * lib/fseeko.c: Likewise.
20009         * lib/fseterr.c: Likewise.
20010         * lib/fsusage.c: Likewise.
20011         * lib/fwritable.c: Likewise.
20012         * lib/fwriting.c: Likewise.
20013         * lib/get-rusage-as.c: Likewise.
20014         * lib/get-rusage-data.c: Likewise.
20015         * lib/getdomainname.c: Likewise.
20016         * lib/idpriv-drop.c: Likewise.
20017         * lib/idpriv-droptemp.c: Likewise.
20018         * lib/localcharset.c: Likewise.
20019         * lib/locale.in.h: Likewise.
20020         * lib/localename.c: Likewise.
20021         * lib/mbsrtowcs-state.c: Likewise.
20022         * lib/nproc.c: Likewise.
20023         * lib/passfd.c: Likewise.
20024         * lib/posix_openpt.c: Likewise.
20025         * lib/printf-parse.c: Likewise.
20026         * lib/progreloc.c: Likewise.
20027         * lib/safe-read.h: Likewise.
20028         * lib/safe-write.h: Likewise.
20029         * lib/sched.in.h: Likewise.
20030         * lib/set-mode-acl.c: Likewise.
20031         * lib/signal.in.h: Likewise.
20032         * lib/stdint.in.h: Likewise.
20033         * lib/stdio-impl.h: Likewise.
20034         * lib/stdlib.in.h: Likewise.
20035         * lib/strtod.c: Likewise.
20036         * lib/sys_select.in.h: Likewise.
20037         * lib/tcgetsid.c: Likewise.
20038         * lib/unistd.in.h: Likewise.
20039         * lib/unlockpt.c: Likewise.
20040         * lib/vasnprintf.c: Likewise.
20041         * lib/vma-iter.c: Likewise.
20042         * lib/wcsrtombs-state.c: Likewise.
20043         * m4/acl.m4: Likewise.
20044         * m4/acosl.m4: Likewise.
20045         * m4/asinl.m4: Likewise.
20046         * m4/atanl.m4: Likewise.
20047         * m4/c-stack.m4: Likewise.
20048         * m4/cosl.m4: Likewise.
20049         * m4/expl.m4: Likewise.
20050         * m4/extensions.m4: Likewise.
20051         * m4/fdatasync.m4: Likewise.
20052         * m4/fmal.m4: Likewise.
20053         * m4/frexp.m4: Likewise.
20054         * m4/frexpf.m4: Likewise.
20055         * m4/frexpl.m4: Likewise.
20056         * m4/fsusage.m4: Likewise.
20057         * m4/getdomainname.m4: Likewise.
20058         * m4/getloadavg.m4: Likewise.
20059         * m4/getopt.m4: Likewise.
20060         * m4/gettext.m4: Likewise.
20061         * m4/gnulib-common.m4: Likewise.
20062         * m4/intdiv0.m4: Likewise.
20063         * m4/intlmacosx.m4: Likewise.
20064         * m4/largefile.m4: Likewise.
20065         * m4/ldexpl.m4: Likewise.
20066         * m4/link-follow.m4: Likewise.
20067         * m4/locale-ar.m4: Likewise.
20068         * m4/locale-fr.m4: Likewise.
20069         * m4/locale-ja.m4: Likewise.
20070         * m4/locale-tr.m4: Likewise.
20071         * m4/locale-zh.m4: Likewise.
20072         * m4/locale_h.m4: Likewise.
20073         * m4/lock.m4: Likewise.
20074         * m4/logl.m4: Likewise.
20075         * m4/mathfunc.m4: Likewise.
20076         * m4/minus-zero.m4: Likewise.
20077         * m4/mktime.m4: Likewise.
20078         * m4/mmap-anon.m4: Likewise.
20079         * m4/multiarch.m4: Likewise.
20080         * m4/nanosleep.m4: Likewise.
20081         * m4/nocrash.m4: Likewise.
20082         * m4/poll.m4: Likewise.
20083         * m4/printf-frexpl.m4: Likewise.
20084         * m4/printf.m4: Likewise.
20085         * m4/signbit.m4: Likewise.
20086         * m4/sinl.m4: Likewise.
20087         * m4/sqrtl.m4: Likewise.
20088         * m4/strerror_r.m4: Likewise.
20089         * m4/tanl.m4: Likewise.
20090         * m4/threadlib.m4: Likewise.
20091         * m4/ttyname_r.m4: Likewise.
20092         * m4/unlink.m4: Likewise.
20093         * m4/visibility.m4: Likewise.
20094         * m4/wcwidth.m4: Likewise.
20095         * tests/minus-zero.h: Likewise.
20096         * tests/test-alloca-opt.c: Likewise.
20097         * tests/test-copy-acl.sh: Likewise.
20098         * tests/test-copy-file.sh: Likewise.
20099         * tests/test-fdatasync.c: Likewise.
20100         * tests/test-file-has-acl.sh: Likewise.
20101         * tests/test-flock.c: Likewise.
20102         * tests/test-fsync.c: Likewise.
20103         * tests/test-localename.c: Likewise.
20104         * tests/test-malloca.c: Likewise.
20105         * tests/test-nonblocking-pipe.h: Likewise.
20106         * tests/test-nonblocking-socket.h: Likewise.
20107         * tests/test-openpty.c: Likewise.
20108         * tests/test-posix_openpt.c: Likewise.
20109         * tests/test-ptsname.c: Likewise.
20110         * tests/test-ptsname_r.c: Likewise.
20111         * tests/test-sameacls.c: Likewise.
20112         * tests/test-select.h: Likewise.
20113         * tests/test-set-mode-acl.sh: Likewise.
20114         * tests/test-snprintf-posix.h: Likewise.
20115         * tests/test-sprintf-posix.h: Likewise.
20116         * tests/test-strtod.c: Likewise.
20117         * tests/test-time.c: Likewise.
20118         * tests/test-vasnprintf-posix.c: Likewise.
20119         * tests/test-vasprintf-posix.c: Likewise.
20120         * doc/acl-resources.txt: Likewise.
20121         * doc/**/*.texi: Likewise.
20122         Reported by Max Horn <max@quendi.de>.
20124 2012-06-22  Bruno Haible  <bruno@clisp.org>
20126         grantpt: Relax requirement regarding invalid file descriptors.
20127         * lib/grantpt.c: Don't include <fcntl.h>.
20128         (grantpt): Don't verify the validity of the file descriptor.
20129         * modules/grantpt (Depends-on): Remove fcntl-h.
20130         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
20131         file descriptors.
20132         * doc/posix-functions/grantpt.texi: Document more platforms on which
20133         grantpt succeeds for invalid file descriptors.
20134         Reported by Rich Felker <dalias@aerifal.cx>.
20136 2012-06-22  Bruno Haible  <bruno@clisp.org>
20138         fbufmode test: Don't test unportable behaviour.
20139         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
20140         (main): Invoke it three times.
20141         Reported by Szabolcs Nagy <nsz@port70.net>
20142         and Rich Felker <dalias@aerifal.cx>.
20144 2012-06-21  Bruno Haible  <bruno@clisp.org>
20146         gnulib-tool: Refactor inctests variable.
20147         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
20148         (func_modules_transitive_closure,
20149         func_modules_transitive_closure_separately,
20150         func_import, func_create_testdir): Update.
20152         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
20153         * gnulib-tool: Accept option --without-tests.
20154         (func_usage): Document --without-tests option. Rearrange.
20155         (inctests): Normalize according to the mode.
20156         * NEWS: Mention the change.
20157         Suggested by Simon Josefsson.
20159 2012-06-21  Bruce Korb  <bkorb@gnu.org>
20161         parse-duration test: Avoid spurious output.
20162         * tests/test-parse-duration.sh: Reindent with leading tabs.
20164 2012-06-21  Jim Meyering  <meyering@redhat.com>
20166         maint: disable the strncpy prohibition
20167         * cfg.mk: Do not prohibit strncpy here.
20169 2012-06-21  Bruno Haible  <bruno@clisp.org>
20171         nonblocking: Avoid compilation error on mingw64.
20172         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
20173         fscanf.
20174         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
20175         * modules/vfscanf (configure.ac): Likewise.
20176         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
20177         definition only if stdio.h has prepared it.
20178         Reported by Daniel P. Berrange <berrange@redhat.com>.
20180 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
20182         gnulib-tool: Use readlink if it is available.
20183         * gnulib-tool (func_readlink): Choose function more appropriately.
20185 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
20187         posixtm-tests: port to buggy compiler
20188         Problem reported by Simon Josefsson in
20189         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
20190         * modules/posixtm-tests (Depends-on): Add stdint.
20191         * tests/test-posixtm.c (struct posixtm_test.t_expected):
20192         Now of type int_least64_t, not int64_t, both because that's
20193         what INT64_C returns and because int_least64_t works even
20194         on 72-bit hosts.
20195         (T): Use INT64_C on constants outside the traditional int range,
20196         to work around compiler bug noted by Simon.
20198         mktime: fix integer overflow in 'configure'-time test
20199         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
20200         after integer overflow.  Problem reported by Rich Felker in
20201         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
20202         Also, don't look for further instances of a bug if we've already
20203         found one instance; this helps 'configure' run faster.
20205 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
20207         tmpfile, clean-temp: Fix invocation of GetVersionEx.
20208         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
20209         GetVersionEx correctly.
20210         * lib/clean-temp.c (supports_delete_on_close): Likewise.
20212 2012-06-20  Bruno Haible  <bruno@clisp.org>
20214         fdopen: Allow implementations that don't reject invalid fd arguments.
20215         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
20216         succeeds.
20217         Reported by Rich Felker <dalias@aerifal.cx>.
20219 2012-06-20  Simon Josefsson  <simon@josefsson.org>
20221         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
20222         bring in LIBINTL.
20224 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
20226         init.sh: do not rely on autoupated PWD
20227         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
20228         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
20229         Although Nelson's bug was not necessarily fixed by this patch,
20230         it seems wise to make the change for safety.
20231         * tests/init.sh (path_prepend_): Do not rely on PWD updating
20232         automagically after 'cd'; this is not reliable on older shells.
20233         (setup_): Fail if we cannot cd to temporary directory.
20235 2012-06-19  Bruno Haible  <bruno@clisp.org>
20237         stat, fstat: Avoid warnings on mingw64.
20238         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
20239         redefining.
20240         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
20241         Reported by Daniel P. Berrange <berrange@redhat.com>.
20243 2012-06-19  Bruno Haible  <bruno@clisp.org>
20245         stdioext: Add support for musl libc.
20247         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
20248         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
20250         * m4/fseterr.m4: New file.
20251         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
20252         function exists.
20253         * modules/fseterr (Files): Add m4/fseterr.m4.
20254         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
20255         __fseterr does not exist.
20256         (Makefile.am): Remove fseterr.c from lib_SOURCES.
20258         * lib/freadable.h: Update comment.
20260         * lib/fwritable.h: Update comment.
20262         * lib/freading.h: Update comment.
20264         * lib/fwriting.h: Update comment.
20266         * m4/freadahead.m4: New file.
20267         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
20268         that function exists.
20269         * modules/freadahead (Files): Add m4/freadahead.m4.
20270         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
20271         __freadahead does not exist.
20272         (Makefile.am): Remove freadahead.c from lib_SOURCES.
20274         * m4/freadptr.m4: New file.
20275         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
20276         function exists.
20277         * modules/freadptr (Files): Add m4/freadptr.m4.
20278         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
20279         __freadptr does not exist.
20280         (Makefile.am): Remove freadptr.c from lib_SOURCES.
20282         * m4/freadseek.m4: New file.
20283         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
20284         exists.
20285         * modules/freadseek (Files): Add m4/freadseek.m4.
20286         (configure.ac): Invoke gl_FUNC_FREADSEEK.
20288         * lib/fpurge.c (fpurge): Update comment.
20290         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
20292 2012-06-19  Bruno Haible  <bruno@clisp.org>
20294         *printf-posix: Put more info into config.log.
20295         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
20296         exit code into config.log.
20298 2012-06-19  Bruno Haible  <bruno@clisp.org>
20300         getopt-gnu: Fix exit code overflow in autoconf test.
20301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
20302         to keep them below < 128.
20304 2012-06-17  Jim Meyering  <meyering@redhat.com>
20306         maint.mk: fix typo in code to derive GPG key at release time
20307         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
20309 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
20311         regex: avoid warning when pointers are not long
20312         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
20313         and uintptr_t, not long, for portability to hosts where pointers and
20314         long have different sizes.  Issue noted by Daniel P. Berrange in
20315         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
20316         and fix suggested by Bruno Haible in
20317         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
20319 2012-06-17  Bruno Haible  <bruno@clisp.org>
20321         dummy: Relicense into the public domain.
20322         * modules/dummy (License): Set to "public domain".
20323         Suggested by Reuben Thomas.
20325 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
20327         announce-gen: VPATH issues
20328         * build-aux/announce-gen (--srcdir): New option, used to trim the
20329         $srcdir part of the path from $builddir to NEWS.
20330         * top/maint.mk (announcement): Adjust.
20332 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
20334         gnu-web-doc-update: VPATH builds
20335         * build-aux/gnu-web-doc-update (--builddir): New option.
20336         Revamp the handling of options.
20337         Prefer $(...) to `...`.
20338         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
20339         the template, and it is GNU mktemp specific.
20340         Prefer set -e to long series of &&.
20341         Restore the initial git branch, not "master".
20342         Properly initialize submodules (don't rely only on bootstrap).
20343         Do not reconfigure blindly, use config.status.
20344         * top/README-release: Update instructions for gnu-web-doc-update.
20346 2012-06-11  Jim Meyering  <meyering@redhat.com>
20348         maint.mk: revert most of the previous change re "all these"
20349         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
20350         For rationale, see the discussion at
20351         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
20353 2012-06-10  Karl Berry  <karl@gnu.org>
20355         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
20357         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
20359 2012-06-10  Bruce Korb  <bkorb@gnu.org>
20361         parse-duration: Relicense under LGPLv2+.
20362         * modules/parse-duration (License): Change to LGPLv2+.
20364 2012-06-10  Jim Meyering  <meyering@redhat.com>
20366         maint.mk: prohibit common grammar error: "all these"
20367         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
20368         the list of prohibited word sequences.  It should be "all of these".
20369         * lib/tempname.c (__gen_tempname): Fix one of them.
20371 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20373         do-release-commit-and-tag: support VPATH builds
20374         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
20375         (noteworthy): Defined earlier to factor its value.
20376         (noteworthy_stub): New.
20377         Use it to factor.
20378         (help_version): Split into...
20379         (help, version): these.
20380         Adjust the option processing part.
20381         Support "--option=value" in addition to "--option value".
20382         (builddir): New.
20383         (--builddir): New option.
20384         * top/README-release: Document this.
20385         Reword slightly so that the reader cannot understand that he
20386         has to do these steps before calling do-release-commit-and-tag.
20388 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20390         readme-release: also require announce-gen and maintainer-makefile
20391         * modules/readme-release (Depends-on): here.
20392         * modules/announce-gen, modules/do-release-commit-and-tag,
20393         modules/gnu-web-doc-update, modules/maintainer-makefile
20394         (Description): Point to readme-release.
20396 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20398         maint.mk: fix VPATH issues.
20399         * top/maint.mk (news-check): GNU Make understand $< very well.
20400         (release-prep): NEWS is in $(srcdir).
20402 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
20404         readme-release: require the promoted modules.
20405         * modules/readme-release (Depends-on): Add
20406         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
20407         in this text.
20409 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20410             Bruno Haible  <bruno@clisp.org>
20412         error, strerror-override: Support mingw64 from Fedora 17.
20413         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
20414         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
20415         EINPROGRESS.
20416         * lib/strerror-override.h (strerror_override): Test it.
20417         * lib/strerror-override.c (strerror_override): Likewise.
20418         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
20420 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20421             Bruno Haible  <bruno@clisp.org>
20423         error, strerror-override: Support mingw64 from Fedora 17.
20424         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
20425         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
20426         * lib/strerror-override.h (strerror_override): Test it.
20427         * lib/strerror-override.c (strerror_override): Likewise.
20429 2012-06-03  Bruno Haible  <bruno@clisp.org>
20431         error, strerror-override: Support new errno values from POSIX:2008.
20432         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
20433         ENOTRECOVERABLE.
20434         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
20435         platforms.
20436         * lib/strerror-override.c (strerror_override): Conditionalize the
20437         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
20438         * lib/strerror-override.h (strerror_override): Declare also if
20439         GNULIB_defined_EOWNERDEAD is defined.
20440         * tests/test-errno.c (e130, e131): New variables.
20441         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
20442         ENOTRECOVERABLE.
20443         Reported by Paolo Bonzini.
20445 2012-05-31  Jim Meyering  <meyering@redhat.com>
20447         savewd: add missing dependency on sys_wait module
20448         * modules/savewd (Depends-on): Add sys_wait, needed at least
20449         for MSVC.  Report and suggested change by Michael Goffioul.
20451 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20453         system-quote-tests: port to CentOS 5
20454         Problem reported by Tom G. Christensen in
20455         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
20456         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
20458 2012-05-29  Jim Meyering  <meyering@redhat.com>
20460         maint: fix typos in comments and ChangeLog
20461         Culprits identified and fixed mostly automatically using these commands:
20462         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
20463         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
20464         using http://github.com/lyda/misspell-check
20465         * ChangeLog: Fix typos.
20466         * doc/solaris-versions: Likewise.
20467         * lib/regexec.c (re_search_stub): Likewise.
20468         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20470 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20472         manywarnings: remove duplicate -Wmultichar entry
20473         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
20474         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
20475         so keep the entry marked as documented.
20477 2012-05-27  Karl Berry  <karl@gnu.org>
20479         * config/srclist.txt (mktime.c): remove last libc sync,
20480         perhaps just temporarily.
20482 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
20484         regex: don't assume uint64_t or uint32_t
20485         * lib/regcomp.c (init_word_char): Don't assume that the types
20486         uint64_t and uint32_t exist.  The C standard doesn't guarantee
20487         them, and on some 32-bit compilers there is no uint64_t.
20488         Problem reported by Gianluigi Tiesi in
20489         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
20491 2012-05-25  Jim Meyering  <meyering@redhat.com>
20493         maint.mk: add strncpy-prohibiting syntax-check rule
20494         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
20496 2012-05-24  Jim Meyering  <meyering@redhat.com>
20498         maint.mk: compute $(gpg_key_ID) more portably
20499         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
20500         That use of sed is not portable to some fringe systems.
20501         Reported by Paul Eggert in
20502         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
20504 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20506         mktime: sync from glibc
20507         * config/srclist.txt: Uncomment mktime.c.
20508         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
20509         First, indent with tabs, since glibc uses tabs and doesn't want to
20510         change and we'd rather be identical to glibc.  Also, two small
20511         coding changes:
20512         (isdst_differ): Use &&, not &, as && is the usual style.
20513         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
20514         for clarity.
20516 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20518         announce-gen: du -h is more portable than du --human
20519         * build-aux/announce-gen (sizes): Invoke du with -h instead
20520         of --human.  Accept leading white space in its output.
20522 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20524         announce-gen: Improve diagnostics.
20525         * build-aux/announce-gen: When parsing command line options,
20526         prefer "announce-gen: option --release-type requires an argument"
20527         to "Option release-type requires an argument".
20529 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20531         maint.mk: gpg_key_ID: use sed more portably
20532         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
20533         the closing brace.
20534         (refresh-po): Fuse two sed invocations into one.
20536 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
20538         gitlog-to-changelog: support the log message format used in Bison.
20539         * build-aux/gitlog-to-changelog: Support --strip-tab and
20540         --strip-cherry-picked.
20542 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20544         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
20545         the rest of the current time slice to another thread in the current
20546         process. So if the thread that feeds the file decscriptor we're
20547         polling is not in the current process, we get busy-waiting.
20548         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
20549         Patch from Theodore Leblond.
20550         * lib/select.c: Split polling out of the loop that sets the output
20551         fd_sets.  Check for zero result and loop if the wait timeout is
20552         infinite.
20554 2012-05-21  Simon Josefsson  <simon@josefsson.org>
20556         select: Fix build error on IRIX 6.5.
20557         * lib/select.c: Include stddef.h for NULL.
20559 2012-05-21  Simon Josefsson  <simon@josefsson.org>
20561         gc: fix libgcrypt detection on older machines.
20562         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
20563         copyright years because the file has been distributed every year
20564         since it was created.
20566 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
20568         crypto: fix bug in large buffer handling
20569         Problem reported by Serge Belyshev for glibc in
20570         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
20571         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
20572         * lib/md4.c (md4_process_block):
20573         * lib/md5.c (md5_process_block):
20574         * lib/sha1.c (sha1_process_block):
20575         * lib/sha256.c (sha256_process_block):
20576         Don't assume the buffer length is less than 2**32.
20577         * lib/sha512.c (sha512_process_block): Likewise.
20578         Here, the bug is present only in the rare case where the host does
20579         not support uint64_t or where size_t is wider than 64 bits.
20580         Use u64size to work around the problems.
20581         * lib/u64.h (u64size): New macro.
20583 2012-05-15  Pádraig Brady  <P@draigBrady.com>
20585         fsusage: fix block size returned on older Linux 2.6
20587         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
20588         which is available since Linux 2.6.
20589         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
20590         when the member is available so it can be used as a fallback.
20591         * doc/posix-functions/statvfs.texi: Mention the hang issue
20592         on Linux < 2.6.36.
20594 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20596         bootstrap: suppress stderr chatter
20597         * build-aux/bootstrap (insert_sorted_if_absent, main program):
20598         Omit unnecessary chatter to stderr.  The main program chatter
20599         was there only inadvertantly.
20601         bootstrap: .gitignore files created by autopoint, libtool
20602         I ran into this problem when bootstrapping the latest diffutils.
20603         After './bootstrap', 'git status' reported lots of untracked files
20604         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
20605         autopoint and do not need to be version-controlled.
20606         * build-aux/bootstrap: Put into .gitignore the files that
20607         autopoint and libtool create, by keeping track of files that exist
20608         after but not before these programs are run.
20609         (version_controlled_file): Move up.  2nd arg is now full file
20610         name, not base name; this is more convenient.  Put CVS at the end,
20611         as it's now somewhat deprecated.
20613 2012-05-14  Jim Meyering  <meyering@redhat.com>
20615         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
20616         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
20617         definition.  Reported by Bruno Haible.
20619 2012-05-13  Bruno Haible  <bruno@clisp.org>
20620             Paul Eggert  <eggert@cs.ucla.edu>
20622         binary-io: Define set_binary_mode function.
20623         * lib/binary-io.h (set_binary_mode): New function.
20624         (SET_BINARY): Define in terms of set_binary_mode.
20625         * modules/binary-io (configure.ac): Require AC_C_INLINE.
20626         * tests/test-binary-io.c (main): Accept an argument, and test either
20627         set_binary_mode or SET_BINARY depending on the argument.
20628         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
20629         argument. Clean up also t-bin-out0.tmp.
20631 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
20633         bootstrap: take advantage of POSIX shell features
20635         The 'bootstrap' script offered by Gnulib script already uses POSIX
20636         shell features (like $((...)) arithmetic expansions) that are not
20637         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
20638         means that bootstrap must already be run using a proper POSIX shell,
20639         which will thus provide more features, like ${var#pattern} parameter
20640         expansion or inversion of a command exit status with '!'.  We can
20641         thus use these features to improve the clarity and the performances
20642         of the bootstrap script.
20644         Suggested by Eric Blake.
20646         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
20647         of sed/expr plus command substitutions, to save some forks.  While
20648         we are at it, prefer the POSIX $(...) form of command substitution,
20649         rather than the legacy form `...` (since the former is visually
20650         clearer and interacts better with quoting), and prefer the idiom:
20651           "if ! CMD; then ACTION ..."
20652         over the idiom:
20653           "if CMD; then :; else ACTION ..."
20654         which was required by legacy Bourne shells not supporting '!'.
20656 2012-05-12  Bruno Haible  <bruno@clisp.org>
20658         system-quote: Add more comments.
20659         * lib/system-quote.h: Add more comments about wilcards and limitations.
20660         Suggested by Eli Zaretskii <eliz@gnu.org>.
20662         sh-quote, system-quote: Add comments about wildcards.
20663         * lib/sh-quote.h: Clarify what happens with wildcard characters.
20664         * lib/system-quote.h: Likewise.
20665         Reported by Eli Zaretskii <eliz@gnu.org>.
20667 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
20669         fsusage: check for GNU/Linux statvfs problem dynamically
20670         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
20671         Define STAT_STATFS2_BSIZE too, since in this case the code now
20672         checks dynamically whether statvfs is reliable, falling back on
20673         Linux-style statfs otherwise.
20674         (statvfs_works): New function, for dynamically testing statvfs.
20675         (get_fs_usage) [STAT_STATVFS]: Use it.
20676         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
20677         statvfs on GNU/Linux hosts, since it's now done dynamically.
20679 2012-05-10  Bruno Haible  <bruno@clisp.org>
20681         system-quote, execute, spawn-pipe: Escape '?' on Windows.
20682         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
20683         '?' character.
20684         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
20685         * tests/test-system-quote-main.c (check_all): Check also strings like
20686         "??????????".
20687         Reported by Eli Zaretskii <eliz@gnu.org>.
20689 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20691         _Noreturn: port config.h to gcc -Wundef
20692         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
20693         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
20694         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
20696 2012-05-10  Bruno Haible  <bruno@clisp.org>
20698         system-quote: Refactor.
20699         * lib/system-quote.h (system_quote_copy): Fix comment.
20700         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
20701         New functions, extracted from system_quote_copy.
20702         (system_quote_length, system_quote_copy): Use these functions.
20703         Reported by Paul Eggert.
20705 2012-05-08  Bruno Haible  <bruno@clisp.org>
20707         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
20708         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
20710 2012-05-08  Bruno Haible  <bruno@clisp.org>
20712         Tests for module 'system-quote'.
20713         * modules/system-quote-tests: New file.
20714         * tests/test-system-quote.sh: New file.
20715         * tests/test-system-quote-main.c: New file.
20716         * tests/test-system-quote-child.c: New file.
20718         New module 'system-quote'.
20719         * lib/system-quote.h: New file.
20720         * lib/system-quote.c: New file.
20721         * modules/system-quote: New file.
20723 2012-05-08  Bruno Haible  <bruno@clisp.org>
20725         sh-quote: Make C++ safe and allow multiple inclusion.
20726         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
20727         declarations in extern "C".
20729 2012-05-08  Bruno Haible  <bruno@clisp.org>
20731         sh-quote tests: Make tests stricter.
20732         * tests/test-sh-quote.c (check_one): Check the return value of
20733         shell_quote_copy.
20734         (main): Check a string with a CR character. Check a string that
20735         contains UCHAR_MAX.
20737 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
20739         warnings.m4: provide a means to specify the program to compile.
20740         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
20741         (gl_WARN_ADD): here.
20742         Use gl_AS_VAR_APPEND.
20743         Support an argument to specify the program to compile.
20744         (gl_WARN_ADD): Accept an argument to specify the program to compile.
20745         AC_SUBST the WARN_CFLAGS when they are used.
20746         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
20747         leave this to gl_WARN_ADD.
20749 2012-05-08  Eric Blake  <eblake@redhat.com>
20751         doc: recommendations on gettext version
20752         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
20753         choice between versions.
20754         * DEPENDENCIES (gettext): Cover both approaches.
20756 2012-05-08  Jim Meyering  <meyering@redhat.com>
20758         init.sh: explain why EXEEXT support uses aliases rather than functions
20759         * tests/init.sh: Add a comment.
20761         init.sh: don't let bash aliases interfere with tests
20762         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
20763         is bash.  This avoids problems for those who alias standard commands to
20764         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
20765         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
20767 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20769         stdint: be more consistent with glibc, SunOS libc
20770         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
20771         (gl_int_fast16_t, gl_uint_fast16_t)
20772         (gl_int_fast32_t, gl_uint_fast32_t)
20773         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
20774         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
20775         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
20776         Be consistent with glibc by default, and with SunOS 5.10 and later
20777         if __sun is defined.  This lessens the likelihood of clashes if
20778         code compiled for older hosts is combined with code compiled for
20779         newer ones.  Problem reported by Niels Möller in
20780         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
20782 2012-05-07  Eric Blake  <eblake@redhat.com>
20784         isatty: relax license to LGPLv2+
20785         * modules/isatty (License): Relax license.
20787 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20789         stat-size: comment fix
20790         * lib/stat-size.h: Remove obsolete comment about indenting.
20792 2012-05-06  Bruno Haible  <bruno@clisp.org>
20794         Tests for module 'sh-quote'.
20795         * modules/sh-quote-tests: New file.
20796         * tests/test-sh-quote.c: New file.
20798 2012-05-06  Bruno Haible  <bruno@clisp.org>
20800         sh-quote: Improve shell_quote_argv's signature.
20801         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
20802         * lib/sh-quote.c (shell_quote_argv): Likewise.
20804 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20806         stdint: document issues with int_fast8_t etc.
20807         * doc/posix-headers/stdint.texi (stdint.h): Say that other
20808         stdint.h substitutes may define these types differently.  See
20809         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
20811 2012-05-05  Bruno Haible  <bruno@clisp.org>
20813         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
20814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
20815         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
20816         or 'guessing no (mishandles large arguments)'.
20818 2012-05-05  Bruno Haible  <bruno@clisp.org>
20820         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
20821         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
20822         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
20823         set gl_cv_func_link_follows_symlink to "guessing no".
20825 2012-05-05  Bruno Haible  <bruno@clisp.org>
20827         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
20828         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
20829         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
20830         "guessing no".
20831         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
20833 2012-05-05  Bruno Haible  <bruno@clisp.org>
20835         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
20836         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
20837         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
20838         set gl_cv_struct_dirent_d_ino to "guessing yes".
20840 2012-05-05  Bruno Haible  <bruno@clisp.org>
20842         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
20843         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
20844         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
20845         "guessing yes".
20847 2012-05-05  Bruno Haible  <bruno@clisp.org>
20849         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
20850         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
20851         compiling to a glibc system, set gl_cv_func_signbit and
20852         gl_cv_func_signbit_gcc to "guessing yes".
20854 2012-05-05  Bruno Haible  <bruno@clisp.org>
20856         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
20857         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
20858         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
20859         to "guessing yes".
20860         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
20861         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
20863 2012-05-05  Bruno Haible  <bruno@clisp.org>
20865         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
20866         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
20867         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
20868         gl_cv_func_realpath_works to "guessing yes".
20870 2012-05-05  Bruno Haible  <bruno@clisp.org>
20872         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
20873         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
20874         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
20876 2012-05-04  Bruno Haible  <bruno@clisp.org>
20878         Tweak last commit.
20879         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
20880         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20882 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
20884         unistd_h: make it easier to avoid sys_types_h
20885         This is useful for Emacs, which has its own method of porting to
20886         Windows, and which therefore does not need the sys_types_h module.
20887         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
20888         code moved here from gl_SYS_TYPES_H.
20889         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
20890         using the code directly.
20891         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
20892         gl_SYS_TYPES_H.
20893         * modules/sys_types (Files):
20894         * modules/unistd (Files): Add m4/off_t.m4.
20896 2012-05-03  Bruno Haible  <bruno@clisp.org>
20898         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
20899         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
20900         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
20901         "guessing yes" or "guessing no".
20902         (gl_FUNC_LSTAT): Update.
20903         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
20904         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
20905         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
20907 2012-05-03  Bruno Haible  <bruno@clisp.org>
20909         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
20910         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
20911         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
20912         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
20913         cross-compiling, choose the first alternative on glibc systems.
20914         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
20916 2012-05-03  Bruno Haible  <bruno@clisp.org>
20918         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
20919         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
20920         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
20922 2012-05-03  Bruno Haible  <bruno@clisp.org>
20924         chown: Avoid "guessing no" when cross-compiling to glibc systems.
20925         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
20927 2012-05-03  Bruno Haible  <bruno@clisp.org>
20929         Avoid "guessing no" guesses when cross-compiling to glibc systems.
20930         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
20931         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
20932         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
20933         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
20934         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
20935         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
20936         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
20937         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
20938         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
20939         compiling to glibc systems, set gl_cv_func_chown_slash_works,
20940         gl_cv_func_chown_ctime_works to "guessing yes".
20941         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
20942         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
20943         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
20944         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
20945         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
20946         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
20947         compiling to glibc systems, set gl_cv_func_open_directory_works to
20948         "guessing yes".
20949         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
20950         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
20951         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
20952         "guessing yes".
20953         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
20954         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
20955         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
20956         compiling to glibc systems, set gl_cv_func_floorf_ieee to
20957         "guessing yes".
20958         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
20959         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
20960         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
20961         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
20962         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
20963         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
20964         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
20965         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
20966         "guessing yes".
20967         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
20968         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
20969         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
20970         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
20971         "guessing yes".
20972         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
20973         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
20974         "guessing yes".
20975         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
20976         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
20977         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
20978         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
20979         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
20980         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
20981         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
20982         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
20983         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
20984         compiling to glibc systems, set gl_cv_func_log10f_ieee to
20985         "guessing yes".
20986         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
20987         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
20988         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
20989         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
20990         "guessing yes".
20991         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
20992         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
20993         "guessing yes".
20994         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
20995         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
20996         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
20997         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
20998         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
20999         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
21000         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
21001         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
21002         compiling to glibc systems, set gl_cv_func_mkfifo_works to
21003         "guessing yes".
21004         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
21005         compiling to glibc systems, set gl_cv_func_mknod_works to
21006         "guessing yes".
21007         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
21008         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
21009         "guessing yes".
21010         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
21011         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
21012         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
21013         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
21014         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
21015         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
21016         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
21017         compiling to glibc systems, set gl_cv_func_svid_putenv to
21018         "guessing yes".
21019         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
21020         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
21021         "guessing yes".
21022         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
21023         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
21024         "guessing yes".
21025         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
21026         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
21027         to "guessing yes".
21028         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
21029         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
21030         to "guessing yes".
21031         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
21032         compiling to glibc systems, set gl_cv_func_rmdir_works to
21033         "guessing yes".
21034         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
21035         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
21036         gl_cv_func_unlink_parent_fails to "guessing yes".
21037         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
21038         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
21039         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
21040         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
21041         gl_cv_func_rename_dest_works to "guessing yes".
21042         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
21043         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
21044         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
21045         compiling to glibc systems, set gl_cv_func_roundf_ieee to
21046         "guessing yes".
21047         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
21048         compiling to glibc systems, set gl_cv_func_roundl_ieee to
21049         "guessing yes".
21050         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
21051         compiling to glibc systems, set gl_cv_func_setenv_works to
21052         "guessing yes".
21053         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
21054         compiling to glibc systems, set gl_cv_func_unsetenv_works to
21055         "guessing yes".
21056         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
21057         compiling to glibc systems, set gl_cv_func_sleep_works to
21058         "guessing yes".
21059         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
21060         compiling to glibc systems, set gl_cv_func_stat_file_slash to
21061         "guessing yes".
21062         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
21063         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
21064         "guessing yes".
21065         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
21066         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
21067         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
21068         compiling to glibc systems, set gl_cv_func_truncf_ieee to
21069         "guessing yes".
21070         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
21071         compiling to glibc systems, set gl_cv_func_truncl_ieee to
21072         "guessing yes".
21073         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
21074         compiling to glibc systems, set gl_cv_func_usleep_works to
21075         "guessing yes".
21076         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
21077         compiling to glibc systems, set gl_cv_func_futimesat_works to
21078         "guessing yes".
21080 2012-05-03  Bruno Haible  <bruno@clisp.org>
21082         Say "guessing yes" or "guessing no" when cross-compiling.
21083         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
21084         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
21085         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
21086         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
21087         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
21088         am_cv_func_working_getline to "guessing yes" or "guessing no".
21089         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
21090         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
21091         (gl_FUNC_MEMMEM): When cross-compiling, set
21092         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
21093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
21094         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
21095         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
21096         set gl_cv_func_strcasestr_works_always to "guessing yes" or
21097         "guessing no".
21098         (gl_FUNC_STRCASESTR): When cross-compiling, set
21099         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
21100         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
21101         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
21102         (gl_FUNC_STRSTR): When cross-compiling, set
21103         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
21104         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
21105         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
21106         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
21107         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
21109 2012-05-01  Bruno Haible  <bruno@clisp.org>
21111         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
21112         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
21113         * build-aux/reloc-ldflags: Likewise.
21114         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
21116 2012-05-01  Bruno Haible  <bruno@clisp.org>
21118         gnulib-tool: Remove transitional code.
21119         * gnulib-tool: Don't warn about --import with 0 arguments any more.
21120         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21122 2012-05-01  Bruno Haible  <bruno@clisp.org>
21124         getcwd: Fix misindentation.
21125         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
21127 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
21129         exclude: process exclude and include directives in order
21130         This restores the pre-2009 behavior, and is part of a fix of a
21131         grep bug reported by Quentin Arce in
21132         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
21133         * lib/exclude.c (struct exclude): Remove 'tail' member.
21134         (new_exclude_segment): Prepend the new segment instead of appending.
21135         Return void, since that's now more convenient.
21136         (file_pattern_matches): Renamed from excluded_file_pattern_p.
21137         (file_name_matches): Renamed from excluded_file_name_p.
21138         (file_pattern_matches, file_name_matches):
21139         Return true if the pattern matches, not if it excludes.
21140         All callers changed.
21141         (excluded_file_name): Process the list in reverse order;
21142         since the list is now reversed this restores the pre-2009 behavior.
21143         (add_exclude): Adjust to new reversed-order list.  Use local var
21144         rather than macro, for clarity.
21145         * tests/test-exclude7.sh: Adjust to corrected behavior.
21147         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
21148         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
21149         it's not possible here.  Handle the case of \ at end of pattern
21150         without dumping core.
21151         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
21153         _Noreturn: future-proof non-GNU and non-MSVC compilers
21154         * build-aux/snippet/_Noreturn.h (_Noreturn):
21155         * m4/gnulib-common.m4 (gl_COMMON_BODY):
21156         Do not define _Noreturn if __STDC_VERSION__ indicates this is
21157         C11 or later.  This is more likely to work with random future C
21158         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
21159         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
21161         exclude: handle wildcards with FNM_EXTMATCH
21162         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
21163         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
21164         comment that "has wildcards" really means "has or may have
21165         wildcards".  Simplify by avoiding the need to call strcspn.
21167 2012-04-29  Bruno Haible  <bruno@clisp.org>
21169         gnulib-tool: Fix list of authors.
21170         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
21172 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
21174         bootstrap: support Automake-NG in $buildreq
21175         * bootstrap (check_versions): Handle automake and aclocal from
21176         Automake-NG specially.  They can be specified as respectively
21177         the "automake-ng" and "aclocal-ng" requirements.
21179 2012-04-25  Eric Blake  <eblake@redhat.com>
21181         bootstrap: only force latest Makefile.in.in for gettext module
21182         * build-aux/bootstrap (with_gettext): Only install latest
21183         Makefile.in.in for projects requesting bleeding edge gettext.
21185 2012-04-22  Bruno Haible  <bruno@clisp.org>
21187         doc: Mention reason for replacement on glibc/Linux systems.
21188         * doc/posix-functions/dprintf.texi: Mention the problem with special
21189         'long double' values.
21190         * doc/posix-functions/fprintf.texi: Likewise.
21191         * doc/posix-functions/printf.texi: Likewise.
21192         * doc/posix-functions/snprintf.texi: Likewise.
21193         * doc/posix-functions/sprintf.texi: Likewise.
21194         * doc/posix-functions/vdprintf.texi: Likewise.
21195         * doc/posix-functions/vfprintf.texi: Likewise.
21196         * doc/posix-functions/vprintf.texi: Likewise.
21197         * doc/posix-functions/vsnprintf.texi: Likewise.
21198         * doc/posix-functions/vsprintf.texi: Likewise.
21199         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
21200         platforms with F_DUPFD_CLOEXEC problems.
21201         * doc/posix-functions/glob.texi: Mention which platforms are affected
21202         by the problem with symbolic links.
21203         * doc/posix-functions/linkat.texi: Mention the problem with
21204         AT_SYMLINK_FOLLOW on Linux.
21206 2012-04-22  Bruno Haible  <bruno@clisp.org>
21208         pwrite: Don't replace on all platforms.
21209         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
21211 2012-04-22  Bruno Haible  <bruno@clisp.org>
21213         rint* tests: Avoid gcc warnings.
21214         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
21215         * tests/test-rintf.c (INFINITY, NAN): Likewise.
21216         * tests/test-rintl.c (INFINITY, NAN): Likewise.
21218 2012-04-21  Bruno Haible  <bruno@clisp.org>
21220         users.txt: Update.
21221         * users.txt: Add freedink, wdiff. Update URLs for projects that have
21222         switched from CVS to git, bzr, or svn.
21224 2012-04-21  Bruno Haible  <bruno@clisp.org>
21226         Large File Support for native Windows platforms.
21228         * m4/largefile.m4 (gl_LARGEFILE): New macro.
21229         * modules/largefile (configure.ac): Require gl_LARGEFILE.
21231         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
21232         type.
21233         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
21234         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
21235         * doc/posix-headers/sys_types.texi: Mention the effect of the
21236         'largefile' module.
21238         * lib/fcntl.in.h: Add comments about off_t.
21239         * modules/fcntl-h (Depends-on): Add sys_types.
21241         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
21242         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
21243         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
21244         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
21245         * modules/unistd (Depends-on): Add sys_types.
21246         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
21248         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
21249         instead of lseek.
21250         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
21251         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
21252         * modules/lseek (Depends-on): Add sys_types.
21254         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
21255         msvc-nothrow.h.
21256         (SetFileSize): New function.
21257         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
21258         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
21259         if Large File Support is requested.
21260         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
21261         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
21263         * lib/stdio.in.h: Add comments about off_t.
21264         * modules/stdio (Depends-on): Add sys_types.
21266         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
21267         instead of ftello.
21268         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
21269         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
21270         (gl_PREREQ_FTELLO): New macro.
21271         * modules/ftello (Depends-on): Add sys_types.
21272         (configure.ac): Incoke gl_PREREQ_FTELLO.
21274         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
21275         instead of fseeko.
21276         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
21277         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
21278         (gl_PREREQ_FSEEKO): New macro.
21279         * modules/fseeko (Depends-on): Add sys_types.
21280         (configure.ac): Invoke gl_PREREQ_FSEEKO.
21282         * lib/sys_stat.in.h: Add comments about off_t.
21283         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
21284         64-bit integer for st_size in 'struct stat'.
21285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
21286         Define _GL_WINDOWS_64_BIT_ST_SIZE.
21287         * modules/sys_stat (Depends-on): Add sys_types.
21288         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
21290         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
21291         instead of stat or _stat.
21293         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
21294         'struct _stati64' instead of fstat and 'struct stat'.
21295         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
21296         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
21298         Reported by Ray Satiro <raysatiro@yahoo.com>.
21300 2012-04-19  Eric Blake  <eblake@redhat.com>
21302         bootstrap: accommodate older libtool
21303         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
21304         Reported by Daniel P. Berrange.
21306 2012-04-19  Jim Meyering  <meyering@redhat.com>
21308         announce-gen: avoid failure due to lack of Digest::SHA1
21309         Even with the preferred Digest::SHA available, this script
21310         would fail when the backup module, Digest::SHA1, was not installed.
21311         * build-aux/announce-gen: Quote the conditional use of "use".
21312         Reported by Reuben Thomas in:
21313         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
21315         bootstrap: don't let a user's CDPATH setting affect this script
21316         When CDPATH is set, cd will sometimes generate output.
21317         When "cd" is run in a subshell whose output matters, that
21318         surprising-to-some output can cause malfunction.
21319         Unsetting CDPATH turns off this shell "feature."
21320         * build-aux/bootstrap (CDPATH): Unset.
21321         Reported by Reuben Thomas in:
21322         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
21323         and inspired by his patch here:
21324         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
21326 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
21327         and Jim Meyering  <meyering@redhat.com>
21329         maint.mk: catch "see @xref{}" and similar
21330         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21331         prohibit "See also @xref{", "Also see @pxref{", and similar.
21333 2012-04-16  Jim Meyering  <meyering@redhat.com>
21335         bootstrap: really use gnulib's po/Makefile.in.in
21336         * build-aux/bootstrap: Correct the source file name in previous change.
21337         Reported by Akim Demaille.
21339         configmake: correct minor inconsistency in Makefile rule
21340         * modules/configmake (Makefile.am): All other rules like this one
21341         run the final "mv -f ..." in the same backslash-continued command
21342         as the one that does everything else.  This one put the mv -f ...
21343         command on a separate, non-backslash-continued line.
21344         Make it like the others.
21346         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
21347         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
21348         the one from gettext.  Reported by Akim Demaille.
21350 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
21352         Fix recursion of install-* into po directories.
21353         Bison's install-pdf bug reported by Hans Aberg at
21354         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
21355         * build-aux/po/Makefile.in.in (install-dvi, install-html)
21356         (install-info, install-pdf, install-ps): New targets.
21358 2012-04-16  Jim Meyering  <meyering@redhat.com>
21360         maint: avoid spurious "make sc_maint" failure
21361         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
21362         exempt all *.class file names, for lib/javaversion.class.
21364 2012-04-15  Bruno Haible  <bruno@clisp.org>
21366         lseek: Make configure test independent of environment.
21367         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
21368         Windows, we know that lseek() on pipes is broken; skip the runtime
21369         test.
21371 2012-04-14  Bruno Haible  <bruno@clisp.org>
21373         stat: Bypass buggy override in mingw64.
21374         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
21375         * lib/stat.c (stat) [mingw64]: Define to _stat.
21376         * doc/posix-functions/stat.texi: Mention mingw64 bug.
21378 2012-04-14  Bruno Haible  <bruno@clisp.org>
21380         pathmax: Fix compilation error on MSVC 9.
21381         * modules/pathmax (Depends-on): Add unistd.
21383 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
21385         README: document pointer comparison assumption
21386         * README (Portability guidelines): Document assumption about
21387         pointer comparisons, in response to a recent bug-gnulib comment by
21388         Jeffrey Kegler.
21390 2012-04-12  Bruno Haible  <bruno@clisp.org>
21392         Tests for module 'getrusage'.
21393         * modules/getrusage-tests: New file.
21394         * tests/test-getrusage.c: New file.
21396         New module 'getrusage'.
21397         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
21398         warn-on-use.h.
21399         (getrusage): New declaration.
21400         * lib/getrusage.c: New file.
21401         * m4/getrusage.m4: New file.
21402         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
21403         is declared.
21404         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
21405         HAVE_GETRUSAGE.
21406         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
21407         snippet/c++defs, snippet/warn-on-use.
21408         (Makefile.am): Update generation of sys/resource.h. Substitute
21409         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
21410         * modules/getrusage: New file.
21411         * doc/posix-functions/getrusage.texi: Mention the new module.
21413 2012-04-12  Bruno Haible  <bruno@clisp.org>
21415         Tests for module 'sys_resource'.
21416         * modules/sys_resource-tests: New file.
21417         * tests/test-sys_resource.c: New file.
21419         New module 'sys_resource'.
21420         * lib/sys_resource.in.h: New file.
21421         * m4/sys_resource_h.m4: New file.
21422         * modules/sys_resource: New file.
21423         * doc/posix-headers/sys_resource.texi: Mention the new module.
21425 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
21427         ioctl: Fix compilation error on mingw.
21428         * lib/ioctl.c: Include <windows.h>.
21429         Also reported by Ray Satiro <raysatiro@yahoo.com>.
21431 2012-04-04  Jim Meyering  <meyering@redhat.com>
21433         regex: correct #pragma guard expression
21434         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
21435         not 4.3.  Correct its cpp guard expression.
21437 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21439         regex: remove unnecessary type punning
21440         Problem reported by Vladimir Serbinenko in
21441         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
21442         * lib/regex.h (struct re_pattern_buffer): Change the type of
21443         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
21444         Fix comment to match code.
21445         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
21446         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
21447         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
21448         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
21449         (set_regs):
21450         Omit no-longer-necessary casts.
21452 2012-04-03  Bruno Haible  <bruno@clisp.org>
21454         Tests for module 'ilogbl'.
21455         * modules/ilogbl-tests: New file.
21456         * tests/test-ilogbl.c: New file.
21458         New module 'ilogbl'.
21459         * lib/math.in.h (ilogbl): New declaration.
21460         * lib/ilogbl.c: New file.
21461         * m4/ilogbl.m4: New file.
21462         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
21463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
21464         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
21465         Split sed invocation, to avoid the limit of 100 substitutions of
21466         HP-UX 'sed'.
21467         * modules/ilogbl: New file.
21468         * tests/test-math-c++.cc: Check the declaration of ilogbl.
21469         * doc/posix-functions/ilogbl.texi: Mention the new module.
21471 2012-04-03  Bruno Haible  <bruno@clisp.org>
21473         Tests for module 'ilogbf'.
21474         * modules/ilogbf-tests: New file.
21475         * tests/test-ilogbf.c: New file.
21477         New module 'ilogbf'.
21478         * lib/math.in.h (ilogbf): New declaration.
21479         * lib/ilogbf.c: New file.
21480         * m4/ilogbf.m4: New file.
21481         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
21482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
21483         REPLACE_ILOGBF.
21484         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
21485         REPLACE_ILOGBF.
21486         * modules/ilogbf: New file.
21487         * tests/test-math-c++.cc: Check the declaration of ilogbf.
21488         * doc/posix-functions/ilogbf.texi: Mention the new module.
21490 2012-04-03  Bruno Haible  <bruno@clisp.org>
21492         Tests for module 'ilogb'.
21493         * modules/ilogb-tests: New file.
21494         * tests/test-ilogb.c: New file.
21495         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
21496         tests/test-logb-ieee.h.
21498         New module 'ilogb'.
21499         * lib/math.in.h (ilogb): New declaration.
21500         * lib/ilogb.c: New file.
21501         * m4/ilogb.m4: New file.
21502         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
21503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
21504         REPLACE_ILOGB.
21505         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
21506         REPLACE_ILOGB.
21507         * modules/ilogb: New file.
21508         * tests/test-math-c++.cc: Check the declaration of ilogb.
21509         * doc/posix-functions/ilogb.texi: Mention the new module.
21511 2012-04-03  Bruno Haible  <bruno@clisp.org>
21513         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
21514         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
21515         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
21516         (main): Check their values.
21517         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
21518         problem.
21520 2012-04-03  Bruno Haible  <bruno@clisp.org>
21522         Tests for module 'logbl-ieee'.
21523         * modules/logbl-ieee-tests: New file.
21524         * tests/test-logbl-ieee.c: New file.
21526         New module 'logbl-ieee'.
21527         * modules/logbl-ieee: New file.
21529         Tests for module 'logb-ieee'.
21530         * modules/logb-ieee-tests: New file.
21531         * tests/test-logb-ieee.c: New file.
21533         New module 'logb-ieee'.
21534         * modules/logb-ieee: New file.
21536         Tests for module 'logbf-ieee'.
21537         * modules/logbf-ieee-tests: New file.
21538         * tests/test-logbf-ieee.c: New file.
21539         * tests/test-logb-ieee.h: New file.
21541         New module 'logbf-ieee'.
21542         * modules/logbf-ieee: New file.
21544 2012-04-03  Bruno Haible  <bruno@clisp.org>
21546         Tests for module 'logbl'.
21547         * modules/logbl-tests: New file.
21548         * tests/test-logbl.c: New file.
21550         New module 'logbl'.
21551         * lib/math.in.h (logbl): New declaration.
21552         * lib/logbl.c: New file.
21553         * m4/logbl.m4: New file.
21554         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
21555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
21556         REPLACE_LOGBL.
21557         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
21558         REPLACE_LOGBL.
21559         * modules/logbl: New file.
21560         * tests/test-math-c++.cc: Check the declaration of logbl.
21561         * doc/posix-functions/logbl.texi: Mention the new module.
21563 2012-04-02  Bruno Haible  <bruno@clisp.org>
21565         Tests for module 'logbf'.
21566         * modules/logbf-tests: New file.
21567         * tests/test-logbf.c: New file.
21569         New module 'logbf'.
21570         * lib/math.in.h (logbf): New declaration.
21571         * lib/logbf.c: New file.
21572         * m4/logbf.m4: New file.
21573         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
21574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
21575         REPLACE_LOGBF.
21576         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
21577         REPLACE_LOGBF.
21578         * modules/logbf: New file.
21579         * tests/test-math-c++.cc: Check the declaration of logbf.
21580         * doc/posix-functions/logbf.texi: Mention the new module.
21582 2012-04-02  Bruno Haible  <bruno@clisp.org>
21584         logb tests: More tests.
21585         * tests/test-logb.h: New file, based on tests/test-logb.c and
21586         tests/test-frexp.h.
21587         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
21588         (main): Just invoke test_function.
21589         * modules/logb-tests (Files): Add tests/test-logb.h,
21590         tests/minus-zero.h, tests/randomd.c.
21591         (Makefile.am): Add randomd.c to test_logb_SOURCES.
21593         logb: Provide replacement and workarounds.
21594         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
21595         is 1.
21596         * lib/logb.c: New file.
21597         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
21598         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
21599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
21600         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
21601         * modules/logb (Files): Add lib/logb.c.
21602         (Depends-on): Add isfinite, frexp, isnand.
21603         (configure.ac): Compile the replacement code logb.c if needed.
21604         * tests/test-math-c++.cc: Check the declaration of logb.
21605         * doc/posix-functions/logb.texi: Mention the replacement and the bug
21606         with subnormal numbers.
21608 2012-04-02  Bruno Haible  <bruno@clisp.org>
21610         log10* tests: Speed up.
21611         * tests/test-log10.h (test_function): Reduce amount of random numbers
21612         to test.
21614 2012-04-01  Bruno Haible  <bruno@clisp.org>
21616         logf-ieee: Fix test whether logf works.
21617         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
21619 2012-04-01  Bruno Haible  <bruno@clisp.org>
21621         log10l: Work around log10l-ieee test failure on IRIX 6.5.
21622         * lib/log10l.c: Include <float.h>
21623         (log10l): On IRIX, normalize the +Infinity value.
21624         * modules/log10l (Depends-on): Add 'float'.
21625         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
21626         +Infinity.
21628         log10f-ieee: Work around test failure on NetBSD 5.1.
21629         * m4/log10f-ieee.m4: New file.
21630         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
21631         test whether log10f works with a negative argument. Replace it if not.
21632         * lib/log10f.c (log10f): For negative arguments, return NaN.
21633         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
21634         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
21635         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
21637         log10f-ieee: Work around test failure on Solaris 9.
21638         * modules/log10f-ieee (Depends-on): Add log10-ieee.
21639         (configure.ac): Require gl_FUNC_LOG10F.
21641         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
21642         * m4/log10-ieee.m4: New file.
21643         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
21644         whether log10 works with a negative argument. Replace it if not.
21645         * lib/log10.c (log10): For negative arguments, return NaN.
21646         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
21647         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
21648         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
21650         Tests for module 'log10l-ieee'.
21651         * modules/log10l-ieee-tests: New file.
21652         * tests/test-log10l-ieee.c: New file.
21654         New module 'log10l-ieee'.
21655         * modules/log10l-ieee: New file.
21657         Tests for module 'log10-ieee'.
21658         * modules/log10-ieee-tests: New file.
21659         * tests/test-log10-ieee.c: New file.
21661         New module 'log10-ieee'.
21662         * modules/log10-ieee: New file.
21664         Tests for module 'log10f-ieee'.
21665         * modules/log10f-ieee-tests: New file.
21666         * tests/test-log10f-ieee.c: New file.
21667         * tests/test-log10-ieee.h: New file.
21669         New module 'log10f-ieee'.
21670         * modules/log10f-ieee: New file.
21672 2012-04-01  Bruno Haible  <bruno@clisp.org>
21674         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
21675         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
21676         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
21677         workaround.
21678         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
21679         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
21680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
21681         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
21682         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
21683         (Depends-on): Update conditions.
21684         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
21685         IRIX 6.5, OSF/1 5.1 problems.
21687 2012-04-01  Bruno Haible  <bruno@clisp.org>
21689         log10f: Work around OSF/1 5.1 bug.
21690         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
21691         * lib/log10f.c (log10f): If logf exists, use it and provide just the
21692         workaround.
21693         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
21694         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
21695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
21696         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
21697         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
21698         (Depends-on): Update conditions.
21699         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
21701 2012-04-01  Bruno Haible  <bruno@clisp.org>
21703         log10: Work around OSF/1 5.1 bug.
21704         * lib/math.in.h (log10): New declaration.
21705         * lib/log10.c: New file.
21706         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
21707         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
21708         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
21709         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
21710         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
21711         * modules/log10 (Files): Add lib/log10.c.
21712         (Depends-on): Add math.
21713         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
21714         * tests/test-math-c++.cc: Check the declaration of log10.
21715         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
21717 2012-03-31  Bruno Haible  <bruno@clisp.org>
21719         log10l tests: More tests.
21720         * modules/log10l-tests (Files): Add tests/test-log10l.h,
21721         tests/minus-zero.h, tests/randoml.c.
21722         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
21723         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
21724         (main): Invoke test_function.
21726         log10f tests: More tests.
21727         * modules/log10f-tests (Files): Add tests/test-log10.h,
21728         tests/minus-zero.h, tests/randomf.c.
21729         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
21730         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
21731         (main): Invoke test_function.
21733         log10 tests: More tests.
21734         * tests/test-log10.h: New file.
21735         * modules/log10-tests (Files): Add tests/test-log10.h,
21736         tests/minus-zero.h, tests/randomd.c.
21737         (Makefile.am): Add randomd.c to test_log10_SOURCES.
21738         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
21739         (main): Invoke test_function.
21741 2012-03-31  Simon Josefsson  <simon@josefsson.org>
21743         fflush: Fix syntax error.
21744         * lib/fflush.c: Include unused-parameter.h, needed for
21745         _GL_UNUSED_PARAMETER.
21746         * modules/fflush (Depends-on): Add snippet/unused-parameter.
21748 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21750         regex: pacify GCC when compiling GRUB
21751         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
21752         a diagnostic.  Reported by Vladimir Serbinenko in
21753         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
21755 2012-03-29  Eric Blake  <eblake@redhat.com>
21757         stdio: don't assume gets any more
21758         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
21759         support.
21760         * modules/stdio (Makefile.am): Likewise.
21761         * lib/stdio-read.c (gets): Likewise.
21762         * tests/test-stdio-c++.cc: Likewise.
21763         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
21764         * lib/stdio.in.h (gets): Make warning occur in more places.
21765         * doc/posix-functions/gets.texi (gets): Update documentation.
21766         Reported by Christer Solskogen.
21768         maint.mk: fix syntax checks without exclusions
21769         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
21770         Reported by Daniel P. Berrange.
21772         strerror_r: avoid compiler warning
21773         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
21774         level.
21776         fflush: avoid compiler warning
21777         * lib/fflush.c (update_fpos_cache): Mark variables that are
21778         potentially unused.
21780 2012-03-25  Bruno Haible  <bruno@clisp.org>
21782         Tests for module 'localeconv'.
21783         * modules/localeconv-tests: New file.
21784         * tests/test-localeconv.c: New file.
21786         New module 'localeconv'.
21787         * lib/locale.in.h (localeconv): New declaration.
21788         * lib/localeconv.c: New file.
21789         * m4/localeconv.m4: New file.
21790         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
21791         REPLACE_LOCALECONV.
21792         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
21793         REPLACE_LOCALECONV.
21794         * modules/localeconv: New file.
21795         * modules/nl_langinfo (Depends-on): Add localeconv.
21796         * modules/human (Depends-on): Likewise.
21797         * doc/posix-functions/localeconv.texi: Mention the new module.
21799 2012-03-25  Bruno Haible  <bruno@clisp.org>
21801         locale: Provide a complete 'struct lconv'.
21802         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
21803         'struct lconv' does not contain int_p_cs_precedes.
21804         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
21805         * doc/posix-headers/locale.texi: Update.
21807         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
21808         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
21809         * doc/posix-headers/locale.texi: Update.
21811         locale: Provide a working 'struct lconv'.
21812         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
21813         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
21814         'struct lconv' does not even contain decimal_point.
21815         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
21816         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
21817         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
21818         * doc/posix-headers/locale.texi: Mention the problems with
21819         'struct lconv'.
21820         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21822 2012-03-24  Bruno Haible  <bruno@clisp.org>
21824         Enable common subexpression optimization in GCC.
21825         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
21826         macros.
21827         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
21828         GCC attribute 'const'.
21829         (uc_locale_language): Declare with GCC attribute 'pure'.
21830         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
21831         with GCC attribute 'const'.
21832         * lib/unictype.in.h (uc_is_general_category_withtable,
21833         uc_combining_class, uc_combining_class_name,
21834         uc_combining_class_long_name, uc_bidi_class_name,
21835         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
21836         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
21837         uc_decimal_value, uc_digit_value, uc_numeric_value,
21838         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
21839         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
21840         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
21841         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
21842         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
21843         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
21844         Declare with GCC attribute 'const'.
21845         (uc_general_category_name, uc_general_category_long_name,
21846         uc_general_category_byname, uc_general_category,
21847         uc_is_general_category, uc_combining_class_byname,
21848         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
21849         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
21850         Declare with GCC attribute 'pure'.
21851         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
21852         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
21853         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
21854         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
21855         with GCC attribute 'pure'.
21856         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
21857         'const'.
21858         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
21859         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
21860         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
21861         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
21862         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
21863         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
21864         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
21865         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
21866         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
21867         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
21868         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
21869         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
21870         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
21871         GCC attribute 'pure'.
21872         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
21873         'const'.
21874         * lib/uniwidth.in.h (uc_width): Simplify declaration.
21875         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
21876         u32_strwidth): Declare with GCC attribute 'pure'.
21878         Enable common subexpression optimization in GCC.
21879         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21880         (alphasort): Declare with GCC attribute 'pure'.
21881         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21882         (atoll): Declare with GCC attribute 'pure'.
21883         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21884         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21885         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
21886         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
21887         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
21888         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
21889         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
21891 2012-03-24  Bruno Haible  <bruno@clisp.org>
21893         gnulib-tool: Avoid unintended error output from 'cmp'.
21894         * gnulib-tool (func_add_file, func_update_file, func_import): Use
21895         "cmp -s", not "cmp > /dev/null".
21897 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
21899         gnulib-tool: fix imprecise comments w.r.t. an automake bug
21901         It's not just Automake versions < 1.9b that creates an empty
21902         pkgdatadir at installation time if pkgdata_DATA is specified
21903         to empty; modern automake versions do this as well, at least
21904         until automake 1.11.4 (not yet released at the moment of writing,
21905         but soon to appear).  That behaviour was generally considered a
21906         feature rather than a bug, at least until this discussion:
21907         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
21909         See also automake bugs #10997 and #11030.
21911         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
21912         reference to relevant automake bug numbers.
21913         (func_emit_tests_Makefile_am): Likewise.
21915 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
21917         announce-gen: use Digest::SHA when possible
21918         * build-aux/announce-gen: Use Digest::SHA when possible, falling
21919         back to Digest::SHA1 if necessary.
21921 2012-03-20  Jim Meyering  <meyering@redhat.com>
21923         tests: avoid gcc warnings about argv vs. const initializers
21924         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
21925         warnings about discarding 'const' qualifier from pointer target type.
21926         * tests/test-posix_spawn2.c (main): Likewise.
21928 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
21930         README-release: simplify slightly
21931         * top/README-release: Run "git checkout master" only once.
21933 2012-03-15  Mark Wielaard  <mark@klomp.org>
21935         git-merge-changelog: add specific example on how to use with hg.
21936         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
21938 2012-03-18  Mark Wielaard  <mark@klomp.org>
21940         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
21942 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
21944         git-version-gen: don't let "prefix" envvar cause trouble
21945         * build-aux/git-version-gen (prefix): Initialize properly,
21946         so as not to use a value specified via the environment.
21947         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
21949 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21951         regex: diagnose too-large repeat counts in EREs
21952         Previously, the code did not diagnose the too-large repeat count
21953         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
21954         as if it were 'b\{1000000000}', which is unexpected.
21955         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
21956         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
21957         is a reasonable one for this problem.  Another option would be to
21958         create a new REG_OVERFLOW error for repeat counts that are too large.
21959         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
21960         count is too large, so that the caller can distinguish the two cases.
21961         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
21962         "Too large" return code, and that repeat counts are one example of this.
21964 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21966         doc: some glibc x32 integer width issues
21967         * doc/posix-headers/sys_types.texi (sys/types.h):
21968         * doc/posix-headers/time.texi (time.h):
21969         Mention that glibc x32 does not conform to POSIX in a couple of
21970         areas related to integer widths.
21972 2012-03-15  Bruno Haible  <bruno@clisp.org>
21974         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
21975         * lib/fma.c (VOLATILE): New macro.
21976         (FUNC): Use it to work around a GCC compiler bug.
21978 2012-03-13  Bruno Haible  <bruno@clisp.org>
21980         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21981         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
21982         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
21983         REPLACE_HYPOTL to 1.
21984         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
21986 2012-03-13  Bruno Haible  <bruno@clisp.org>
21988         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21989         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
21990         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
21991         REPLACE_REMAINDERL to 1.
21992         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
21993         bug.
21995 2012-03-13  Bruno Haible  <bruno@clisp.org>
21997         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21998         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
21999         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
22000         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
22001         too big rounding errors.
22002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
22003         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
22004         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
22005         (Depends-on): Update conditions.
22006         * tests/test-sqrtl.c (my_ldexpl): New function.
22007         (main): Add test of a particular value.
22008         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
22010 2012-03-13  Pádraig Brady  <P@draigBrady.com>
22012         doc: Update timer_* platform portability notes.
22013         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
22014         that always return ENOSYS.
22015         * doc/posix-functions/timer_delete.texi: Likewise.
22016         * doc/posix-functions/timer_gettime.texi: Likewise.
22017         * doc/posix-functions/timer_settime.texi: Likewise.
22019 2012-03-13  Bruno Haible  <bruno@clisp.org>
22021         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22022         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
22023         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
22024         REPLACE_CBRTL to 1.
22025         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
22027 2012-03-13  Bruno Haible  <bruno@clisp.org>
22029         remainderl: Avoid compilation error on AIX >= 5.2.
22030         * lib/math.in.h (remainderl): Undefine macro from the system header.
22032 2012-03-13  Bruno Haible  <bruno@clisp.org>
22034         Avoid compilation errors with MSVC option -fp:strict.
22035         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
22036         * lib/cbrtf.c: Likewise.
22037         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22039 2012-03-12  Bruno Haible  <bruno@clisp.org>
22041         uninorm: Don't crash in out-of-memory conditions.
22042         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
22043         gracefully.
22044         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
22045         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
22047 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
22049         quote: fix syntax-check
22050         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
22051         also exports quote_quoting_options.
22053 2012-03-12  Simon Josefsson  <simon@josefsson.org>
22055         Collapse list of copyright years to ranges.  See
22056         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
22057         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
22058         build-aux/csharpexec.sh.in, build-aux/gnupload,
22059         build-aux/install-reloc, build-aux/javacomp.sh.in,
22060         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
22061         build-aux/move-if-change, build-aux/reloc-ldflags,
22062         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
22064 2012-03-11  Bruno Haible  <bruno@clisp.org>
22066         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
22067         * m4/log2f-ieee.m4: New file.
22068         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
22069         whether log2f works with a minus zero argument. Replace it if not.
22070         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
22071         (Depends-on): Add log2-ieee.
22072         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
22073         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
22075         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
22076         * m4/log2-ieee.m4: New file.
22077         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
22078         whether log2 works with a minus zero argument. Replace it if not.
22079         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
22080         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
22081         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
22083         Tests for module 'log2l-ieee'.
22084         * modules/log2l-ieee-tests: New file.
22085         * tests/test-log2l-ieee.c: New file.
22087         New module 'log2l-ieee'.
22088         * modules/log2l-ieee: New file.
22090         Tests for module 'log2-ieee'.
22091         * modules/log2-ieee-tests: New file.
22092         * tests/test-log2-ieee.c: New file.
22094         New module 'log2-ieee'.
22095         * modules/log2-ieee: New file.
22097         Tests for module 'log2f-ieee'.
22098         * modules/log2f-ieee-tests: New file.
22099         * tests/test-log2f-ieee.c: New file.
22100         * tests/test-log2-ieee.h: New file.
22102         New module 'log2f-ieee'.
22103         * modules/log2f-ieee: New file.
22105 2012-03-11  Bruno Haible  <bruno@clisp.org>
22107         Tests for module 'log2l'.
22108         * modules/log2l-tests: New file.
22109         * tests/test-log2l.c: New file.
22111         New module 'log2l'.
22112         * lib/math.in.h (log2l): New declaration.
22113         * lib/log2l.c: New file.
22114         * m4/log2l.m4: New file.
22115         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
22116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
22117         REPLACE_LOG2L.
22118         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
22119         REPLACE_LOG2L.
22120         * modules/log2l: New file.
22121         * tests/test-math-c++.cc: Check the declaration of log2l.
22122         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
22123         and OSF/1 problems.
22125 2012-03-11  Bruno Haible  <bruno@clisp.org>
22127         Tests for module 'log2f'.
22128         * modules/log2f-tests: New file.
22129         * tests/test-log2f.c: New file.
22131         New module 'log2f'.
22132         * lib/math.in.h (log2f): New declaration.
22133         * lib/log2f.c: New file.
22134         * m4/log2f.m4: New file.
22135         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
22136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
22137         REPLACE_LOG2F.
22138         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
22139         REPLACE_LOG2F.
22140         * modules/log2f: New file.
22141         * tests/test-math-c++.cc: Check the declaration of log2f.
22142         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
22143         and OSF/1 and Cygwin problems.
22145 2012-03-11  Bruno Haible  <bruno@clisp.org>
22147         Tests for module 'log2'.
22148         * modules/log2-tests: New file.
22149         * tests/test-log2.c: New file.
22150         * tests/test-log2.h: New file.
22152         New module 'log2'.
22153         * lib/math.in.h (log2): New declaration.
22154         * lib/log2.c: New file.
22155         * m4/log2.m4: New file.
22156         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
22157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
22158         REPLACE_LOG2.
22159         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
22160         REPLACE_LOG2.
22161         * modules/log2: New file.
22162         * tests/test-math-c++.cc: Check the declaration of log2.
22163         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
22164         and OSF/1 and Cygwin problems.
22166 2012-03-11  Bruno Haible  <bruno@clisp.org>
22168         exp2* tests: More tests.
22169         * tests/test-exp2.h (test_function): Test all integral arguments that
22170         don't need to overflow or denormalized numbers.
22171         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
22172         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
22173         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
22175 2012-03-10  Bruno Haible  <bruno@clisp.org>
22177         log1pl-ieee: Work around test failure on AIX 7.1.
22178         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
22180         log1pl-ieee: Work around test failure on IRIX 6.5.
22181         * m4/log1pl-ieee.m4: New file.
22182         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
22183         test whether log1pl works with a minus zero argument. Replace it if
22184         not.
22185         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
22186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
22187         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
22188         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
22189         (Depends-on): Update conditions.
22190         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
22191         m4/signbit.m4.
22192         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
22193         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
22195         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
22196         * m4/log1pf-ieee.m4: New file.
22197         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
22198         test whether log1pf works with a minus zero argument. Replace it if
22199         not.
22200         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
22201         m4/signbit.m4.
22202         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
22203         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
22205         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
22206         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
22207         (configure.ac): Require gl_FUNC_LOG1PF.
22209         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
22210         * m4/log1p-ieee.m4: New file.
22211         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
22212         whether log1p works with a minus zero argument. Replace it if not.
22213         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
22214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
22215         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
22216         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
22217         (Depends-on): Update conditions.
22218         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
22219         m4/signbit.m4.
22220         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
22221         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
22223         Tests for module 'log1pl-ieee'.
22224         * modules/log1pl-ieee-tests: New file.
22225         * tests/test-log1pl-ieee.c: New file.
22227         New module 'log1pl-ieee'.
22228         * modules/log1pl-ieee: New file.
22230         Tests for module 'log1p-ieee'.
22231         * modules/log1p-ieee-tests: New file.
22232         * tests/test-log1p-ieee.c: New file.
22234         New module 'log1p-ieee'.
22235         * modules/log1p-ieee: New file.
22237         Tests for module 'log1pf-ieee'.
22238         * modules/log1pf-ieee-tests: New file.
22239         * tests/test-log1pf-ieee.c: New file.
22240         * tests/test-log1p-ieee.h: New file.
22242         New module 'log1pf-ieee'.
22243         * modules/log1pf-ieee: New file.
22245 2012-03-10  Bruno Haible  <bruno@clisp.org>
22247         Tests for module 'log1pl'.
22248         * modules/log1pl-tests: New file.
22249         * tests/test-log1pl.c: New file.
22251         New module 'log1pl'.
22252         * lib/math.in.h (log1pl): New declaration.
22253         * lib/log1pl.c: New file.
22254         * m4/log1pl.m4: New file.
22255         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
22256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
22257         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
22258         * modules/log1pl: New file.
22259         * tests/test-math-c++.cc: Check the declaration of log1pl.
22260         * doc/posix-functions/log1pl.texi: Mention the new module.
22262 2012-03-10  Bruno Haible  <bruno@clisp.org>
22264         Tests for module 'log1pf'.
22265         * modules/log1pf-tests: New file.
22266         * tests/test-log1pf.c: New file.
22268         New module 'log1pf'.
22269         * lib/math.in.h (log1pf): New declaration.
22270         * lib/log1pf.c: New file.
22271         * m4/log1pf.m4: New file.
22272         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
22273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
22274         REPLACE_LOG1PF.
22275         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
22276         REPLACE_LOG1PF.
22277         * modules/log1pf: New file.
22278         * tests/test-math-c++.cc: Check the declaration of log1pf.
22279         * doc/posix-functions/log1pf.texi: Mention the new module.
22281 2012-03-10  Bruno Haible  <bruno@clisp.org>
22283         log1p tests: More tests.
22284         * tests/test-log1p.h: New file.
22285         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
22286         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
22287         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
22288         (main): Invoke test_function.
22290         log1p: Provide replacement for Minix and MSVC.
22291         * lib/math.in.h (log1p): New declaration.
22292         * lib/log1p.c: New file.
22293         * m4/log1p.m4: New file.
22294         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
22295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
22296         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
22297         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
22298         (Depends-on): Add math, isnand, log, round.
22299         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
22300         HAVE_LOG1P is 0.
22301         * tests/test-math-c++.cc: Check the declaration of log1p.
22302         * doc/posix-functions/log1p.texi: Mention the replacement.
22304 2012-03-10  Bruno Haible  <bruno@clisp.org>
22306         math tests: Small simplification.
22307         * tests/test-exp.h (test_function): Use the same err_bound for
22308         'double' on platforms with sizeof (long double) == sizeof (double)
22309         than on platforms with sizeof (long double) > sizeof (double).
22310         * tests/test-exp2.h (test_function): Likewise.
22311         * tests/test-expm1.h (test_function): Likewise.
22312         * tests/test-log.h (test_function): Likewise.
22314 2012-03-10  Bruno Haible  <bruno@clisp.org>
22316         Fix some comments.
22317         * lib/expl.c: Fix an ambiguous comment.
22318         * lib/expm1.c: Likewise.
22319         * lib/expm1l.c: Likewise.
22320         * lib/exp2.c: Likewise.
22321         * lib/exp2l.c: Likewise.
22323 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
22325         regex: allow inclusion of <regex.h> before <limits.h>
22326         Without this patch, portable programs had to include <limits.h> before
22327         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
22328         I ran into this problem with a test version of GNU grep on Solaris 8.
22329         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
22330         This is done conditionally so that this change can be merged
22331         back to glibc.
22332         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
22333         using the included regex.
22335         fts: depend on fdopendir
22336         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
22337         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
22338         problem was introduced when fdopendir was split out.
22340 2012-03-10  Bruno Haible  <bruno@clisp.org>
22342         Remove unused variables.
22343         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
22344         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
22346 2012-03-10  Bruno Haible  <bruno@clisp.org>
22348         isnanf-nolibm: Fix last commit.
22349         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
22351         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
22352         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
22354 2012-03-10  Bruno Haible  <bruno@clisp.org>
22356         logf-ieee: Work around test failure on NetBSD 5.1.
22357         * m4/logf-ieee.m4: New file.
22358         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
22359         whether logf works with a negative argument. Replace it if not.
22360         * lib/logf.c (logf): For negative arguments, return NaN.
22361         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
22362         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
22363         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
22365         logf-ieee: Work around test failure on Solaris 9.
22366         * modules/logf-ieee (Depends-on): Add log-ieee.
22367         (configure.ac): Require gl_FUNC_LOGF.
22369         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
22370         * m4/log-ieee.m4: New file.
22371         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
22372         log works with a negative argument. Replace it if not.
22373         * lib/log.c (log): For negative arguments, return NaN.
22374         * modules/log-ieee (Files): Add m4/log-ieee.m4.
22375         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
22376         * doc/posix-functions/log.texi: Mention the log-ieee module.
22378         Tests for module 'logl-ieee'.
22379         * modules/logl-ieee-tests: New file.
22380         * tests/test-logl-ieee.c: New file.
22382         New module 'logl-ieee'.
22383         * modules/logl-ieee: New file.
22385         Tests for module 'log-ieee'.
22386         * modules/log-ieee-tests: New file.
22387         * tests/test-log-ieee.c: New file.
22389         New module 'log-ieee'.
22390         * modules/log-ieee: New file.
22392         Tests for module 'logf-ieee'.
22393         * modules/logf-ieee-tests: New file.
22394         * tests/test-logf-ieee.c: New file.
22395         * tests/test-log-ieee.h: New file.
22397         New module 'logf-ieee'.
22398         * modules/logf-ieee: New file.
22400 2012-03-10  Bruno Haible  <bruno@clisp.org>
22402         log: Fix bug introduced on 2012-03-09.
22403         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
22405 2012-03-10  Pádraig Brady  <P@draigBrady.com>
22407         timer-time: link explicitly with pthreads on glibc
22408         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
22409         to support static linking, when newer glibc is
22410         detected, as that contains pthread emulation of
22411         POSIX timer functions where required.
22412         * modules/timer-time: Depend on threadlib to
22413         pull in the appropriate library to link.
22415 2012-03-10  Bruno Haible  <bruno@clisp.org>
22417         log* tests: More tests.
22418         * tests/test-log.h: New file.
22419         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
22420         (main): Invoke test_function.
22421         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
22422         (main): Invoke test_function.
22423         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
22424         (main): Invoke test_function.
22425         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22426         tests/randomd.c.
22427         (Makefile.am): Add randomd.c to test_log_SOURCES.
22428         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22429         tests/randomf.c.
22430         (Makefile.am): Add randomf.c to test_logf_SOURCES.
22431         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22432         tests/randoml.c.
22433         (Depends-on): Add 'float'.
22434         (Makefile.am): Add randoml.c to test_logl_SOURCES.
22436 2012-03-09  Bruno Haible  <bruno@clisp.org>
22438         logl: Work around OSF/1 5.1 bug.
22439         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
22440         * lib/logl.c (logl): If logl exists, use it and provide just the
22441         workaround.
22442         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
22443         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
22444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
22445         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
22446         * modules/logl (configure.ac): Consider REPLACE_LOGL.
22447         (Depends-on): Update conditions.
22448         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
22450 2012-03-09  Bruno Haible  <bruno@clisp.org>
22452         logf: Work around OSF/1 5.1 bug.
22453         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
22454         * lib/logf.c (logf): If logf exists, use it and provide just the
22455         workaround.
22456         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
22457         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
22458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
22459         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
22460         * modules/logf (configure.ac): Consider REPLACE_LOGF.
22461         (Depends-on): Update conditions.
22462         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
22464 2012-03-09  Bruno Haible  <bruno@clisp.org>
22466         log: Work around OSF/1 5.1 bug.
22467         * lib/math.in.h (log): New declaration.
22468         * lib/log.c: New file.
22469         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
22470         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
22471         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
22472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
22473         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
22474         * modules/log (Files): Add lib/log.c.
22475         (Depends-on): Add math.
22476         (configure.ac): If REPLACE_LOG is 1, compile an override.
22477         * tests/test-math-c++.cc: Check the declaration of log.
22478         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
22480 2012-03-09  Jim Meyering  <meyering@redhat.com>
22482         readtokens.c: adjust wording in a comment
22483         * lib/readtokens.c: Insert omitted "that" in a comment.
22485 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22487         modechange: add notations +40, 00440, etc.
22488         * lib/modechange.c (mode_compile): Support new notations
22489         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
22491 2012-03-08  Bruno Haible  <bruno@clisp.org>
22493         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
22494         * m4/exp2l-ieee.m4: New file.
22495         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
22496         test whether exp2l works with a NaN argument and with a negative
22497         infinity argument. Replace it if not.
22498         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
22499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
22500         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
22501         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
22502         (Depends-on): Update conditions.
22503         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
22504         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
22505         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
22507         Tests for module 'exp2l-ieee'.
22508         * modules/exp2l-ieee-tests: New file.
22509         * tests/test-exp2l-ieee.c: New file.
22511         New module 'exp2l-ieee'.
22512         * modules/exp2l-ieee: New file.
22514         Tests for module 'exp2-ieee'.
22515         * modules/exp2-ieee-tests: New file.
22516         * tests/test-exp2-ieee.c: New file.
22518         New module 'exp2-ieee'.
22519         * modules/exp2-ieee: New file.
22521         Tests for module 'exp2f-ieee'.
22522         * modules/exp2f-ieee-tests: New file.
22523         * tests/test-exp2f-ieee.c: New file.
22524         * tests/test-exp2-ieee.h: New file.
22526         New module 'exp2f-ieee'.
22527         * modules/exp2f-ieee: New file.
22529 2012-03-08  Bruno Haible  <bruno@clisp.org>
22531         Tests for module 'exp2l'.
22532         * modules/exp2l-tests: New file.
22533         * tests/test-exp2l.c: New file.
22535         New module 'exp2l'.
22536         * lib/math.in.h (exp2l): New declaration.
22537         * lib/exp2l.c: New file.
22538         * lib/expl-table.c: New file, extracted from lib/expl.c.
22539         * lib/expl.c (gl_expl_table): New declaration.
22540         (expl): Remove expl_table. Update reference.
22541         * m4/exp2l.m4: New file.
22542         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
22543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
22544         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
22545         * modules/exp2l: New file.
22546         * modules/expl (Files): Add lib/expl-table.c.
22547         (configure.ac): Compile also expl-table.c.
22548         * tests/test-math-c++.cc: Check the declaration of exp2l.
22549         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
22550         problem.
22552 2012-03-08  Bruno Haible  <bruno@clisp.org>
22554         Tests for module 'exp2f'.
22555         * modules/exp2f-tests: New file.
22556         * tests/test-exp2f.c: New file.
22558         New module 'exp2f'.
22559         * lib/math.in.h (exp2f): New declaration.
22560         * lib/exp2f.c: New file.
22561         * m4/exp2f.m4: New file.
22562         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
22563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
22564         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
22565         * modules/exp2f: New file.
22566         * tests/test-math-c++.cc: Check the declaration of exp2f.
22567         * doc/posix-functions/exp2f.texi: Mention the new module and the
22568         IRIX problem.
22570 2012-03-08  Bruno Haible  <bruno@clisp.org>
22572         Tests for module 'exp2'.
22573         * modules/exp2-tests: New file.
22574         * tests/test-exp2.c: New file.
22575         * tests/test-exp2.h: New file.
22577         New module 'exp2'.
22578         * lib/math.in.h (exp2): New declaration.
22579         * lib/exp2.c: New file.
22580         * m4/exp2.m4: New file.
22581         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
22582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
22583         REPLACE_EXP2.
22584         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
22585         REPLACE_EXP2.
22586         * modules/exp2: New file.
22587         * tests/test-math-c++.cc: Check the declaration of exp2.
22588         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
22589         and OpenBSD problems.
22591 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22593         savedir: fix comment typo
22594         * lib/savedir.c (savedirstream): Fix typo in comment.
22596 2012-03-08  Bruno Haible  <bruno@clisp.org>
22598         test-readtokens.c: use const; remove unwarranted cast
22599         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
22601 2012-03-08  Bruno Haible  <bruno@clisp.org>
22603         fmal: Avoid compilation error on AIX.
22604         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
22605         AIX 5.2..7.1.
22607 2012-03-08  Bruno Haible  <bruno@clisp.org>
22609         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
22610         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
22611         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
22612         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
22613         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
22614         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
22615         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
22617 2012-03-08  Bruno Haible  <bruno@clisp.org>
22619         remainderf: Override buggy system function on IRIX 6.5.
22620         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
22621         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
22622         when it exists.
22623         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
22625 2012-03-08  Jim Meyering  <meyering@redhat.com>
22627         test-readtokens.c: avoid const-related compilation warnings
22628         * tests/test-readtokens.c: Avoid const-related compilation warnings.
22630 2012-03-07  Jim Meyering  <meyering@redhat.com>
22631             Bruno Haible  <bruno@clisp.org>
22633         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
22634         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
22635         tests/randomd.c.
22636         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
22637         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
22638         tests/randoml.c.
22639         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
22641 2012-03-07  Bruno Haible  <bruno@clisp.org>
22643         expm1l: Avoid compilation error on AIX.
22644         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
22645         AIX 5.2..7.1.
22647 2012-03-07  Bruno Haible  <bruno@clisp.org>
22649         expm1l: Don't override undeclared system function on IRIX 6.5.
22650         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
22651         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
22652         it exists. Set HAVE_DECL_EXPM1L.
22653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
22654         HAVE_EXPM1L.
22655         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
22656         HAVE_EXPM1L.
22657         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
22659 2012-03-07  Bruno Haible  <bruno@clisp.org>
22661         remainderl: Don't override undeclared system function on IRIX 6.5.
22662         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
22663         HAVE_REMAINDERL.
22664         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
22665         declared when it exists. Set HAVE_DECL_REMAINDERL.
22666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
22667         not HAVE_REMAINDERL.
22668         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
22669         HAVE_REMAINDERL.
22670         * doc/posix-functions/remainderl.texi: Mention missing declaration
22671         problem.
22673 2012-03-07  Bruno Haible  <bruno@clisp.org>
22675         rintf: Don't override undeclared system function on IRIX 6.5.
22676         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
22677         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
22678         exists. Set HAVE_DECL_RINTF.
22679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
22680         HAVE_RINTF.
22681         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
22682         HAVE_RINTF.
22683         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
22685 2012-03-07  Bruno Haible  <bruno@clisp.org>
22687         roundl: Avoid compilation error on AIX.
22688         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
22689         AIX 5.2..7.1.
22691 2012-03-07  Bruno Haible  <bruno@clisp.org>
22693         roundl: Don't override undeclared system function on IRIX 6.5.
22694         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
22695         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
22696         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
22697         * modules/roundl (configure.ac): For replacement code, test
22698         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
22699         (Depends-on): Update conditions.
22700         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
22702 2012-03-07  Bruno Haible  <bruno@clisp.org>
22704         roundf: Don't override undeclared system function on IRIX 6.5.
22705         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
22706         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
22707         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
22708         * modules/roundf (configure.ac): For replacement code, test
22709         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
22710         (Depends-on): Update conditions.
22711         * modules/roundf-ieee (Depends-on): Update conditions.
22712         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
22714 2012-03-07  Bruno Haible  <bruno@clisp.org>
22716         round: Don't override undeclared system function on IRIX 6.5.
22717         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
22718         argument.
22719         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
22720         also when it is not declared. Set HAVE_ROUND. For replacement code,
22721         test HAVE_ROUND, not HAVE_DECL_ROUND.
22722         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
22723         not HAVE_DECL_ROUND.
22724         (Depends-on): Update conditions.
22725         * modules/round-ieee (Depends-on): Update conditions.
22726         * doc/posix-functions/round.texi: Mention the IRIX problem.
22728 2012-03-07  Bruno Haible  <bruno@clisp.org>
22730         copysignf: Don't override undeclared system function on IRIX 6.5.
22731         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
22732         HAVE_COPYSIGNF.
22733         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
22734         declared when it exists. Set HAVE_DECL_COPYSIGNF.
22735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
22736         not HAVE_COPYSIGNF.
22737         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
22738         HAVE_COPYSIGNF.
22739         * doc/posix-functions/copysignf.texi: Mention missing declaration
22740         problem.
22742 2012-03-07  Jim Meyering  <meyering@redhat.com>
22744         readtokens: add tests
22745         * modules/readtokens-tests: New file.
22746         * tests/test-readtokens.c: New file.
22748 2012-03-07  Jim Meyering  <meyering@redhat.com>
22750         quotearg: the module must now include quote.h
22751         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
22752         So must the module.
22753         * modules/quotearg (Files): Add quote.h.
22755 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
22757         readtokens: avoid core dumps with unusual calling patterns
22758         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
22759         * lib/readtokens.c: Include limits.h.
22760         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
22761         (readtoken): Don't cache the delimiters; the cache code was buggy
22762         if !delim && saved_delim, or if the new n_delim differs from the old.
22763         Also, it wasn't thread-safe.
22765 2012-03-07  Bruno Haible  <bruno@clisp.org>
22767         quote: Adhere to common module description layout.
22768         * modules/quote (Makefile.am): Add back empty section.
22770 2012-03-06  Akim Demaille  <demaille@gostai.com>
22772         quote: fuse into quotearg
22773         This patch is made for the benefit of Bison.
22774         quote does not leave the choice of the quoting style to the user.
22775         quoting_style provides poor customizability, yet quoting_options,
22776         which is very rich, is hidden inside quotearg.c.  So in order to
22777         allow quote customization, move its implementation to quotearg.c.
22778         * lib/quote.c: Remove.
22779         * modules/quote: Adjust.
22780         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
22781         warning: provide all the members of literal structs.
22782         (quote_quoting_options): New.
22783         (quote, quote_n): Import implementation from quote.c.
22784         * lib/quote.h: Import the comments from quote.c.
22785         (quote_quoting_options): New.
22787 2012-03-06  Bruno Haible  <bruno@clisp.org>
22789         Tests for module 'expm1l-ieee'.
22790         * modules/expm1l-ieee-tests: New file.
22791         * tests/test-expm1l-ieee.c: New file.
22793         New module 'expm1l-ieee'.
22794         * modules/expm1l-ieee: New file.
22796         Tests for module 'expm1f-ieee'.
22797         * modules/expm1f-ieee-tests: New file.
22798         * tests/test-expm1f-ieee.c: New file.
22800         New module 'expm1f-ieee'.
22801         * modules/expm1f-ieee: New file.
22803         Tests for module 'expm1-ieee'.
22804         * modules/expm1-ieee-tests: New file.
22805         * tests/test-expm1-ieee.c: New file.
22806         * tests/test-expm1-ieee.h: New file.
22808         New module 'expm1-ieee'.
22809         * modules/expm1-ieee: New file.
22810         * m4/expm1-ieee.m4: New file.
22811         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
22812         whether expm1 works with a minus zero argument. Replace it if not.
22813         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
22814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
22815         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
22816         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
22817         (Depends-on): Update conditions.
22818         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
22819         AIX problem.
22821 2012-03-06  Bruno Haible  <bruno@clisp.org>
22823         Work around expm1f bug on IRIX 6.5.
22824         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
22825         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
22826         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
22827         not work.
22828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
22829         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
22830         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
22831         (Depends-on): Update conditions.
22832         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
22834 2012-03-06  Bruno Haible  <bruno@clisp.org>
22836         Tests for module 'expm1l'.
22837         * modules/expm1l-tests: New file.
22838         * tests/test-expm1l.c: New file.
22840         New module 'expm1l'.
22841         * lib/math.in.h (expm1l): New declaration.
22842         * lib/expm1l.c: New file.
22843         * m4/expm1l.m4: New file.
22844         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
22845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
22846         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
22847         * modules/expm1l: New file.
22848         * tests/test-math-c++.cc: Check the declaration of expm1l.
22849         * doc/posix-functions/expm1l.texi: Mention the new module.
22851 2012-03-06  Bruno Haible  <bruno@clisp.org>
22853         Tests for module 'expm1f'.
22854         * modules/expm1f-tests: New file.
22855         * tests/test-expm1f.c: New file.
22857         New module 'expm1f'.
22858         * lib/math.in.h (expm1f): New declaration.
22859         * lib/expm1f.c: New file.
22860         * m4/expm1f.m4: New file.
22861         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
22862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
22863         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
22864         * modules/expm1f: New file.
22865         * tests/test-math-c++.cc: Check the declaration of expm1f.
22866         * doc/posix-functions/expm1f.texi: Mention the new module.
22868 2012-03-06  Bruno Haible  <bruno@clisp.org>
22870         Tests for module 'expm1'.
22871         * modules/expm1-tests: New file.
22872         * tests/test-expm1.c: New file.
22873         * tests/test-expm1.h: New file.
22875         New module 'expm1'.
22876         * lib/math.in.h (expm1): New declaration.
22877         * lib/expm1.c: New file.
22878         * m4/expm1.m4: New file.
22879         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
22880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
22881         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
22882         * modules/expm1: New file.
22883         * tests/test-math-c++.cc: Check the declaration of expm1.
22884         * doc/posix-functions/expm1.texi: Mention the new module.
22886 2012-03-06  Bruno Haible  <bruno@clisp.org>
22888         math: Ensure declarations of math functions.
22889         * modules/acosf (Depends-on): Add 'extensions'.
22890         * modules/asinf (Depends-on): Likewise.
22891         * modules/atan2f (Depends-on): Likewise.
22892         * modules/atanf (Depends-on): Likewise.
22893         * modules/cbrt (Depends-on): Likewise.
22894         * modules/cbrtf (Depends-on): Likewise.
22895         * modules/cbrtl (Depends-on): Likewise.
22896         * modules/copysignf (Depends-on): Likewise.
22897         * modules/copysignl (Depends-on): Likewise.
22898         * modules/cosf (Depends-on): Likewise.
22899         * modules/coshf (Depends-on): Likewise.
22900         * modules/expf (Depends-on): Likewise.
22901         * modules/fabsf (Depends-on): Likewise.
22902         * modules/fabsl (Depends-on): Likewise.
22903         * modules/fmaf (Depends-on): Likewise.
22904         * modules/fmal (Depends-on): Likewise.
22905         * modules/fmodf (Depends-on): Likewise.
22906         * modules/fmodl (Depends-on): Likewise.
22907         * modules/frexpf (Depends-on): Likewise.
22908         * modules/frexpl (Depends-on): Likewise.
22909         * modules/hypot (Depends-on): Likewise.
22910         * modules/hypotf (Depends-on): Likewise.
22911         * modules/hypotl (Depends-on): Likewise.
22912         * modules/ldexpf (Depends-on): Likewise.
22913         * modules/ldexpl (Depends-on): Likewise.
22914         * modules/log10f (Depends-on): Likewise.
22915         * modules/log10l (Depends-on): Likewise.
22916         * modules/log1p (Depends-on): Likewise.
22917         * modules/logb (Depends-on): Likewise.
22918         * modules/logf (Depends-on): Likewise.
22919         * modules/modff (Depends-on): Likewise.
22920         * modules/modfl (Depends-on): Likewise.
22921         * modules/powf (Depends-on): Likewise.
22922         * modules/remainderf (Depends-on): Likewise.
22923         * modules/remainderl (Depends-on): Likewise.
22924         * modules/rintf (Depends-on): Likewise.
22925         * modules/rintl (Depends-on): Likewise.
22926         * modules/sinf (Depends-on): Likewise.
22927         * modules/sinhf (Depends-on): Likewise.
22928         * modules/sqrtf (Depends-on): Likewise.
22929         * modules/tanf (Depends-on): Likewise.
22930         * modules/tanhf (Depends-on): Likewise.
22931         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
22932         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
22933         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
22934         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
22935         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
22936         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
22937         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
22938         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
22939         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
22940         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
22941         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
22942         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
22943         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
22944         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
22945         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
22946         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
22947         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
22948         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22949         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
22950         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
22951         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
22952         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
22953         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
22954         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
22955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
22956         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
22957         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
22958         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22959         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
22960         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22961         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22962         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
22963         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
22964         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
22965         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
22966         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
22967         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
22968         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
22969         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
22970         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
22971         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
22973 2012-03-06  Bruno Haible  <bruno@clisp.org>
22975         math: Update module names in warnings.
22976         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22977         tanl): Use specific module name in warn-on-use warning.
22979 2012-03-06  Bruno Haible  <bruno@clisp.org>
22981         expl: Simplify computation.
22982         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
22984 2012-03-05  Bruno Haible  <bruno@clisp.org>
22986         exp* tests: More tests.
22987         * tests/test-exp.h: New file.
22988         * tests/test-exp.c: Include <float.h> and test-exp.h.
22989         (main): Invoke test_function.
22990         * tests/test-expf.c: Include <float.h> and test-exp.h.
22991         (main): Invoke test_function.
22992         * tests/test-expl.c: Include <float.h> and test-exp.h.
22993         (main): Invoke test_function.
22994         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
22995         (Makefile.am): Add randomd.c to test_exp_SOURCES.
22996         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
22997         (Makefile.am): Add randomf.c to test_expf_SOURCES.
22998         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
22999         (Depends-on): Add 'float'.
23000         (Makefile.am): Add randoml.c to test_expl_SOURCES.
23002         expl: Fix precision of computed result.
23003         * lib/expl.c: Completely rewritten.
23004         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
23005         (Maintainer): Add me.
23006         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
23008 2012-03-05  Bruno Haible  <bruno@clisp.org>
23010         cbrt* tests: More tests.
23011         * tests/test-cbrt.h: New file.
23012         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
23013         (main): Invoke test_function.
23014         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
23015         (main): Invoke test_function.
23016         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
23017         (main): Invoke test_function.
23018         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
23019         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
23020         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
23021         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
23022         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
23023         (Depends-on): Add 'float'.
23024         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
23026 2012-03-05  Bruno Haible  <bruno@clisp.org>
23028         hypot* tests: More tests.
23029         * tests/test-hypot.h: New file, partially extracted from
23030         tests/test-hypotl.c.
23031         * tests/test-hypot.c: Include test-hypot.h.
23032         (main): Invoke test_function.
23033         * tests/test-hypotf.c: Include test-hypot.h.
23034         (main): Invoke test_function.
23035         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
23036         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
23037         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
23038         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
23039         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
23040         tests/randomf.c.
23041         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
23042         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
23043         tests/randoml.c.
23044         (Depends-on): Add 'fpucw', 'float'.
23045         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
23047 2012-03-05  Bruno Haible  <bruno@clisp.org>
23049         fpucw: Doc about FreeBSD.
23050         * lib/fpucw.h: Mention FreeBSD in comments.
23052 2012-03-04  Bruno Haible  <bruno@clisp.org>
23054         sqrt* tests: More tests.
23055         * tests/test-sqrt.h: New file.
23056         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
23057         (main): Invoke test_function.
23058         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
23059         (main): Invoke test_function.
23060         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
23061         (main): Invoke test_function.
23062         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
23063         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
23064         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
23065         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
23066         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
23067         (Depends-on): Add 'float'.
23068         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
23070 2012-03-04  Bruno Haible  <bruno@clisp.org>
23072         remainder* tests: More tests.
23073         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
23074         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
23075         (main): Invoke test_function.
23076         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
23077         (main): Invoke test_function.
23078         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
23079         (main): Invoke test_function.
23080         * modules/remainder-tests (Files): Add tests/test-remainder.h,
23081         tests/randomd.c.
23082         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
23083         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
23084         tests/randomf.c.
23085         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
23086         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
23087         tests/randoml.c.
23088         (Depends-on): Add 'float'.
23089         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
23091 2012-03-04  Bruno Haible  <bruno@clisp.org>
23093         remainder, remainderf, remainderl: Fix computation for large quotients.
23094         * lib/remainder.c: Completely rewritten.
23095         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
23096         USE_FLOAT.
23097         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
23098         USE_LONG_DOUBLE.
23099         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
23100         isnand, isinf. Remove round, fma.
23101         * modules/remainderf (Files): Add lib/remainder.c.
23102         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
23103         Remove roundf, fmaf.
23104         * modules/remainderl (Files): Add lib/remainder.c.
23105         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
23106         isinf. Remove roundl, fmal.
23107         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
23108         REMAINDER_LIBM.
23109         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
23110         REMAINDERF_LIBM.
23111         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
23112         REMAINDERL_LIBM.
23114 2012-03-04  Bruno Haible  <bruno@clisp.org>
23116         fmod* tests: More tests.
23117         * tests/test-fmod.h (my_ldexp): New function.
23118         (test_function): Reduce amount of random numbers to test. Add tests
23119         of very large quotients x / y.
23120         * tests/test-fmod.c (MAX_EXP): New macro.
23121         * tests/test-fmodf.c (MAX_EXP): Likewise.
23122         * tests/test-fmodl.c (MAX_EXP): Likewise.
23124 2012-03-04  Bruno Haible  <bruno@clisp.org>
23126         fmod, fmodl: Fix computation for large quotients x / y.
23127         * lib/fmod.c: Completely rewritten.
23128         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
23129         USE_LONG_DOUBLE.
23130         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
23131         isnand. Remove fma.
23132         * modules/fmodl (Files): Add lib/fmod.c.
23133         (Depends-on): Add float, isfinite, signbit, fabsl,
23134         frexpl, ldexpl, isnanl. Remove fma.
23135         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
23136         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
23138 2012-03-03  Bruno Haible  <bruno@clisp.org>
23140         fmod* tests: More tests.
23141         * tests/test-fmod.h: New file.
23142         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
23143         (main): Invoke test_function.
23144         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
23145         (main): Invoke test_function.
23146         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
23147         (main): Invoke test_function.
23148         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
23149         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
23150         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
23151         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
23152         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
23153         (Depends-on): Add 'float'.
23154         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
23156 2012-03-03  Bruno Haible  <bruno@clisp.org>
23158         rint* tests: More tests.
23159         * tests/test-rint.h: New file, partially extracted from
23160         tests/test-rintl.c.
23161         * tests/test-rint.c: Include test-rint.h.
23162         (main): Invoke test_function.
23163         * tests/test-rintf.c: Include test-rint.h.
23164         (main): Invoke test_function.
23165         * tests/test-rintl.c: Include test-rint.h.
23166         (main): Invoke test_function.
23167         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
23168         (Makefile.am): Add randomd.c to test_rint_SOURCES.
23169         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
23170         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
23171         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
23172         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
23174 2012-03-03  Bruno Haible  <bruno@clisp.org>
23176         modf* tests: More tests.
23177         * tests/test-modf.h: New file.
23178         * tests/test-modf.c: Include <float.h> and test-modf.h.
23179         (main): Invoke test_function.
23180         * tests/test-modff.c: Include <float.h> and test-modf.h.
23181         (main): Invoke test_function.
23182         * tests/test-modfl.c: Include <float.h> and test-modf.h.
23183         (main): Invoke test_function.
23184         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
23185         (Makefile.am): Add randomd.c to test_modf_SOURCES.
23186         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
23187         (Makefile.am): Add randomf.c to test_modff_SOURCES.
23188         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
23189         (Depends-on): Add 'float'.
23190         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
23192 2012-03-03  Bruno Haible  <bruno@clisp.org>
23194         fabs* tests: More tests.
23195         * tests/test-fabs.h: New file, partially extracted from
23196         tests/test-fabsl.c.
23197         * tests/test-fabs.c (RANDOM): New macro.
23198         * tests/test-fabsf.c (RANDOM): New macro.
23199         * tests/test-fabsl.c (RANDOM): New macro.
23200         * modules/fabs-tests (Files): Add tests/randomd.c.
23201         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
23202         * modules/fabsf-tests (Files): Add tests/randomf.c.
23203         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
23204         * modules/fabsl-tests (Files): Add tests/randoml.c.
23205         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
23207 2012-03-03  Bruno Haible  <bruno@clisp.org>
23209         ldexp* tests: More tests.
23210         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
23211         * tests/test-ldexp.c (RANDOM): New macro.
23212         * tests/test-ldexpf.c (RANDOM): New macro.
23213         * tests/test-ldexpl.c (RANDOM): New macro.
23214         * modules/ldexp-tests (Files): Add tests/randomd.c.
23215         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
23216         * modules/ldexpf-tests (Files): Add tests/randomf.c.
23217         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
23218         * modules/ldexpl-tests (Files): Add tests/randoml.c.
23219         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
23221 2012-03-03  Bruno Haible  <bruno@clisp.org>
23223         frexp* tests: More tests.
23224         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
23225         * tests/test-frexp.c (RANDOM): New macro.
23226         * tests/test-frexpf.c (RANDOM): New macro.
23227         * tests/test-frexpl.c (RANDOM): New macro.
23228         * modules/frexp-tests (Files): Add tests/randomd.c.
23229         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
23230         * modules/frexpf-tests (Files): Add tests/randomf.c.
23231         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
23232         * modules/frexpl-tests (Files): Add tests/randoml.c.
23233         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
23235 2012-03-03  Bruno Haible  <bruno@clisp.org>
23237         Support for pseudo-random numbers in tests.
23238         * tests/randomf.c: New file.
23239         * tests/randomd.c: New file.
23240         * tests/randoml.c: New file.
23241         * tests/macros.h (randomf, randomd, randoml): New declarations.
23243 2012-03-03  Bruno Haible  <bruno@clisp.org>
23245         frexp* tests: Refactor.
23246         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
23247         * tests/test-frexp.c: Include and use it.
23248         * tests/test-frexpf.c: Likewise.
23249         * tests/test-frexpl.c: Likewise.
23250         * modules/frexp-tests (Files): Add tests/test-frexp.h.
23251         * modules/frexpf-tests (Files): Likewise.
23252         * modules/frexpl-tests (Files): Likewise.
23254 2012-03-02  Jim Meyering  <meyering@redhat.com>
23256         maint: don't specify XZ_OPT=-9ev in dist-related rule
23257         Using xz's -9 option is warranted only if you have a very large
23258         tarball (see xz's documentation for the sizes vs. presets), and
23259         requires 64MiB of memory at decompression time.
23260         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
23261         Automake's default of just "-e" is fine.  Override on a
23262         per-package basis by setting XZ_OPT e.g., in cfg.mk.
23264 2012-03-01  Eric Blake  <eblake@redhat.com>
23266         maint.mk: allow announcement for non-gnulib project
23267         * maint.mk (announcement): Skip gnulib version if not used.
23269 2012-03-01  Jim Meyering  <meyering@redhat.com>
23271         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
23272         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
23273         envvar settings cannot interfere.  Otherwise, setting envvars like
23274         prohibit=foo require=bar, etc. would cause spurious test failures.
23276 2012-03-01  Eric Blake  <eblake@redhat.com>
23278         maint.mk: add per-line exclusions to prohibitions
23279         * maint.mk (_sc_search_regexp): Add $exclude parameter.
23280         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
23281         (sc_const_long_option): Use it.
23283 2012-03-01  Bruno Haible  <bruno@clisp.org>
23285         Tests for module 'expl-ieee'.
23286         * modules/expl-ieee-tests: New file.
23287         * tests/test-expl-ieee.c: New file.
23289         New module 'expl-ieee'.
23290         * modules/expl-ieee: New file.
23292         Tests for module 'exp-ieee'.
23293         * modules/exp-ieee-tests: New file.
23294         * tests/test-exp-ieee.c: New file.
23296         New module 'exp-ieee'.
23297         * modules/exp-ieee: New file.
23299         Tests for module 'expf-ieee'.
23300         * modules/expf-ieee-tests: New file.
23301         * tests/test-expf-ieee.c: New file.
23302         * tests/test-exp-ieee.h: New file.
23304         New module 'expf-ieee'.
23305         * modules/expf-ieee: New file.
23307 2012-02-29  Bruno Haible  <bruno@clisp.org>
23309         cbrtl-ieee: Work around test failure on IRIX 6.5.
23310         * m4/cbrtl-ieee.m4: New file.
23311         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
23312         test whether cbrtl works with a minus zero argument. Replace it if not.
23313         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
23314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
23315         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
23316         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
23317         (Depends-on): Update conditions.
23318         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
23319         m4/signbit.m4.
23320         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
23321         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
23322         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
23324         Tests for module 'cbrtl-ieee'.
23325         * modules/cbrtl-ieee-tests: New file.
23326         * tests/test-cbrtl-ieee.c: New file.
23328         New module 'cbrtl-ieee'.
23329         * modules/cbrtl-ieee: New file.
23331         Tests for module 'cbrt-ieee'.
23332         * modules/cbrt-ieee-tests: New file.
23333         * tests/test-cbrt-ieee.c: New file.
23335         New module 'cbrt-ieee'.
23336         * modules/cbrt-ieee: New file.
23338         Tests for module 'cbrtf-ieee'.
23339         * modules/cbrtf-ieee-tests: New file.
23340         * tests/test-cbrtf-ieee.c: New file.
23341         * tests/test-cbrt-ieee.h: New file.
23343         New module 'cbrtf-ieee'.
23344         * modules/cbrtf-ieee: New file.
23346 2012-02-29  Bruno Haible  <bruno@clisp.org>
23348         cbrtf: Work around bug in IRIX 6.5 system function.
23349         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
23350         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
23351         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
23352         work.
23353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
23354         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
23355         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
23356         (Depends-on): Update conditions.
23357         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
23359 2012-02-29  Bruno Haible  <bruno@clisp.org>
23361         Tests for module 'cbrtl'.
23362         * modules/cbrtl-tests: New file.
23363         * tests/test-cbrtl.c: New file.
23365         New module 'cbrtl'.
23366         * lib/math.in.h (cbrtl): New declaration.
23367         * lib/cbrtl.c: New file.
23368         * m4/cbrtl.m4: New file.
23369         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
23370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
23371         HAVE_DECL_CBRTL.
23372         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
23373         HAVE_DECL_CBRTL.
23374         * modules/cbrtl: New file.
23375         * tests/test-math-c++.cc: Check the declaration of cbrtl.
23376         * doc/posix-functions/cbrtl.texi: Mention the new module.
23378 2012-02-29  Bruno Haible  <bruno@clisp.org>
23380         Tests for module 'cbrtf'.
23381         * modules/cbrtf-tests: New file.
23382         * tests/test-cbrtf.c: New file.
23384         New module 'cbrtf'.
23385         * lib/math.in.h (cbrtf): New declaration.
23386         * lib/cbrtf.c: New file.
23387         * m4/cbrtf.m4: New file.
23388         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
23389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
23390         HAVE_DECL_CBRTF.
23391         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
23392         HAVE_DECL_CBRTF.
23393         * modules/cbrtf: New file.
23394         * tests/test-math-c++.cc: Check the declaration of cbrtf.
23395         * doc/posix-functions/cbrtf.texi: Mention the new module.
23397 2012-02-29  Bruno Haible  <bruno@clisp.org>
23399         cbrt: Provide replacement on MSVC and Minix.
23400         * lib/math.in.h (cbrt): New declaration.
23401         * lib/cbrt.c: New file.
23402         * m4/cbrt.m4: New file.
23403         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
23404         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
23405         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
23406         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
23407         (Depends-on): Add dependencies.
23408         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
23409         * tests/test-math-c++.cc: Check the declaration of cbrt.
23410         * doc/posix-functions/cbrt.texi: Mention that the module provides a
23411         replacement.
23413 2012-02-29  Bruno Haible  <bruno@clisp.org>
23415         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
23416         * m4/hypotl-ieee.m4: New file.
23417         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
23418         test whether hypotl works with mixed NaN and Infinity arguments.
23419         Replace it if not.
23420         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
23421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
23422         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
23423         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
23424         (Depends-on): Update conditions.
23425         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
23426         (Depends-on): Add hypot-ieee.
23427         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
23428         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
23430         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
23431         * m4/hypotf-ieee.m4: New file.
23432         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
23433         test whether hypotf works with mixed NaN and Infinity arguments.
23434         Replace it if not.
23435         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
23436         (Depends-on): Add hypot-ieee.
23437         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
23438         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
23440         hypot-ieee: Work around test failure on OSF/1 and native Windows.
23441         * lib/math.in.h (hypot): New declaration.
23442         * lib/hypot.c: New file.
23443         * m4/hypot-ieee.m4: New file.
23444         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
23445         whether hypot works with mixed NaN and Infinity arguments. Replace it
23446         if not.
23447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
23448         REPLACE_HYPOT.
23449         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
23450         * modules/hypot (Files): Add lib/hypot.c.
23451         (Depends-on): Add dependencies.
23452         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
23453         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
23454         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
23455         * tests/test-math-c++.cc: Check the declaration of hypot.
23456         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
23458         Tests for module 'hypotl-ieee'.
23459         * modules/hypotl-ieee-tests: New file.
23460         * tests/test-hypotl-ieee.c: New file.
23462         New module 'hypotl-ieee'.
23463         * modules/hypotl-ieee: New file.
23465         Tests for module 'hypot-ieee'.
23466         * modules/hypot-ieee-tests: New file.
23467         * tests/test-hypot-ieee.c: New file.
23469         New module 'hypot-ieee'.
23470         * modules/hypot-ieee: New file.
23472         Tests for module 'hypotf-ieee'.
23473         * modules/hypotf-ieee-tests: New file.
23474         * tests/test-hypotf-ieee.c: New file.
23475         * tests/test-hypot-ieee.h: New file.
23477         New module 'hypotf-ieee'.
23478         * modules/hypotf-ieee: New file.
23480 2012-02-29  Bruno Haible  <bruno@clisp.org>
23482         Remove unused variables.
23483         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
23484         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23485         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
23486         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
23488 2012-02-29  Eric Blake  <eblake@redhat.com>
23490         termios: fix pid_t always, not just for tcgetsid
23491         * doc/posix-headers/termios.texi (termios.h): Mention problem.
23492         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
23493         just when building tcgetsid.
23495 2012-02-29  Bruno Haible  <bruno@clisp.org>
23497         Tests for module 'hypotl'.
23498         * modules/hypotl-tests: New file.
23499         * tests/test-hypotl.c: New file.
23501         New module 'hypotl'.
23502         * lib/math.in.h (hypotl): New declaration.
23503         * lib/hypotl.c: New file.
23504         * m4/hypotl.m4: New file.
23505         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
23506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
23507         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
23508         * modules/hypotl: New file.
23509         * tests/test-math-c++.cc: Check the hypotl declaration.
23510         * doc/posix-functions/hypotl.texi: Mention the new module.
23512 2012-02-29  Eric Blake  <eblake@redhat.com>
23514         tcgetsid: fix cygwin header bug
23515         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
23517         docs: update cygwin progress
23518         * doc/posix-functions/llround.texi (llround): Added in cygwin
23519         1.7.8.
23520         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
23521         * doc/glibc-functions/program_invocation_name.texi
23522         (program_invocation_name): Likewise.
23523         * doc/glibc-functions/program_invocation_short_name.texi
23524         (program_invocation_short_name): Likewise.
23525         * doc/glibc-functions/madvise.texi (madvise): Likewise.
23526         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
23527         Likewise.
23528         * doc/posix-functions/pthread_spin_destroy.texi
23529         (pthread_spin_destroy): Added in cygwin 1.7.10.
23530         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
23531         Likewise.
23532         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
23533         Likewise.
23534         * doc/posix-functions/pthread_spin_trylock.texi
23535         (pthread_spin_trylock): Likewise.
23536         * doc/posix-functions/pthread_spin_unlock.texi
23537         (pthread_spin_unlock): Likewise.
23538         * doc/posix-functions/pthread_setschedprio.texi
23539         (pthread_setschedprio): Likewise.
23540         * doc/posix-functions/pthread_attr_getstack.texi
23541         (pthread_attr_getstack): Likewise.
23542         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
23543         (pthread_attr_getstackaddr): Likewise.
23544         * doc/glibc-functions/pthread_getattr_np.texi
23545         (pthread_getattr_np): Likewise.
23546         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
23547         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
23548         * doc/posix-functions/clock_settime.texi (clock_settime):
23549         Likewise.
23550         * doc/posix-functions/pthread_attr_getguardsize.texi
23551         (pthread_attr_getguardsize): Likewise.
23552         * doc/posix-functions/pthread_attr_setguardsize.texi
23553         (pthread_attr_setguardsize): Likewise.
23554         * doc/posix-functions/pthread_attr_setstack.texi
23555         (pthread_attr_setstack): Likewise.
23556         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
23557         (pthread_attr_setstackaddr): Likewise.
23558         * doc/posix-functions/clock_getcpuclockid.texi
23559         (clock_getcpuclockid): Likewise.
23560         * doc/posix-functions/pthread_getcpuclockid.texi
23561         (pthread_getcpuclockid): Likewise.
23562         * doc/glibc-functions/error.texi (error): Likewise.
23563         * doc/glibc-functions/error_at_line.texi (error_at_line):
23564         Likewise.
23565         * doc/glibc-functions/error_message_count.texi
23566         (error_message_count): Likewise.
23567         * doc/glibc-functions/error_one_per_line.texi
23568         (error_one_per_line): Likewise.
23569         * doc/glibc-functions/error_print_progname.texi
23570         (error_print_progname): Likewise.
23571         * doc/posix-functions/pthread_condattr_getclock.texi
23572         (pthread_condattr_getclock): Likewise.
23573         * doc/posix-functions/pthread_condattr_setclock.texi
23574         (pthread_condattr_setclock): Likewise.
23575         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
23576         Likewise.
23577         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
23578         * doc/glibc-functions/getpt.texi (getpt): Likewise.
23579         * doc/glibc-functions/get_current_dir_name.texi
23580         (get_current_dir_name): Likewise.
23581         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
23582         Likewise.
23583         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
23584         wrong return type.
23585         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
23586         1.7.11.
23588 2012-02-29  Bruno Haible  <bruno@clisp.org>
23590         Tests for module 'hypotf'.
23591         * modules/hypotf-tests: New file.
23592         * tests/test-hypotf.c: New file.
23594         New module 'hypotf'.
23595         * lib/math.in.h (hypotf): New declaration.
23596         * lib/hypotf.c: New file.
23597         * m4/hypotf.m4: New file.
23598         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
23599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
23600         REPLACE_HYPOTF.
23601         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
23602         REPLACE_HYPOTF.
23603         * modules/hypotf: New file.
23604         * tests/test-math-c++.cc: Check the hypotf declaration.
23605         * doc/posix-functions/hypotf.texi: Mention the new module.
23607         hypot: Prepare for hypotf module.
23608         * m4/hypot.m4: New file.
23609         * modules/hypot (Files): Add m4/hypot.m4.
23610         (configure.ac): Invoke gl_FUNC_HYPOT.
23612 2012-02-29  Bruno Haible  <bruno@clisp.org>
23614         hypot tests: More tests.
23615         * tests/test-hypot.c: Include <float.h>.
23616         (main): Add tests about overflow and underflow.
23618 2012-02-29  Bruno Haible  <bruno@clisp.org>
23620         math code: Add comments.
23621         * lib/acosl.c: Add comment about related glibc source files.
23622         * lib/asinl.c: Likewise.
23623         * lib/atanl.c: Likewise.
23624         * lib/expl.c: Likewise.
23625         * lib/logl.c: Likewise.
23626         * lib/sincosl.c: Likewise.
23627         * lib/sinl.c: Likewise.
23628         * lib/tanl.c: Likewise.
23629         * lib/trigl.c: Likewise.
23630         * lib/cosl.c: Likewise. Fix comments.
23632 2012-02-28  Bruno Haible  <bruno@clisp.org>
23634         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
23635         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
23636         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
23637         HUGE_VALL are defined.
23638         (numeric_equald): Renamed from numeric_equal.
23639         (numeric_equalf, numeric_equall): New functions.
23640         (main): Check also HUGE_VALF, HUGE_VALL.
23641         * modules/math-tests (Files): Add tests/macros.h.
23642         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
23643         HUGE_VALL.
23645 2012-02-28  Bruno Haible  <bruno@clisp.org>
23647         doc: Move ISO C11 feature notes into POSIX chapters.
23648         * doc/posix-functions/aligned_alloc.texi: Renamed from
23649         doc/glibc-functions/aligned_alloc.texi.
23650         * doc/posix-functions/quick_exit.texi: Renamed from
23651         doc/glibc-functions/quick_exit.texi.
23652         * doc/posix-headers/uchar.texi: Renamed from
23653         doc/glibc-headers/uchar.texi.
23654         * doc/posix-functions/c16rtomb.texi: Renamed from
23655         doc/glibc-functions/c16rtomb.texi.
23656         * doc/posix-functions/c32rtomb.texi: Renamed from
23657         doc/glibc-functions/c32rtomb.texi.
23658         * doc/posix-functions/mbrtoc16.texi: Renamed from
23659         doc/glibc-functions/mbrtoc16.texi.
23660         * doc/posix-functions/mbrtoc32.texi: Renamed from
23661         doc/glibc-functions/mbrtoc32.texi.
23662         * doc/gnulib.texi: Update.
23663         (Glibc uchar.h): Remove section.
23664         Suggested by Eric Blake.
23666 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
23668         stdnoreturn: port to MSVC better
23669         MSVC standard headers use __declspec(noreturn), so #define noreturn
23670         to empty on that platform.  Reported by Bruno Haible in
23671         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
23672         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
23673         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
23675 2012-02-28  Bruno Haible  <bruno@clisp.org>
23677         doc: Mention new glibc headers and functions.
23678         * doc/glibc-headers/uchar.texi: New file.
23679         * doc/glibc-functions/aligned_alloc.texi: New file.
23680         * doc/glibc-functions/c16rtomb.texi: New file.
23681         * doc/glibc-functions/c32rtomb.texi: New file.
23682         * doc/glibc-functions/clock_adjtime.texi: New file.
23683         * doc/glibc-functions/fanotify_init.texi: New file.
23684         * doc/glibc-functions/fanotify_mark.texi: New file.
23685         * doc/glibc-functions/inet6_opt_append.texi: New file.
23686         * doc/glibc-functions/inet6_opt_find.texi: New file.
23687         * doc/glibc-functions/inet6_opt_finish.texi: New file.
23688         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
23689         * doc/glibc-functions/inet6_opt_init.texi: New file.
23690         * doc/glibc-functions/inet6_opt_next.texi: New file.
23691         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
23692         * doc/glibc-functions/inet6_rth_add.texi: New file.
23693         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
23694         * doc/glibc-functions/inet6_rth_init.texi: New file.
23695         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
23696         * doc/glibc-functions/inet6_rth_segments.texi: New file.
23697         * doc/glibc-functions/inet6_rth_space.texi: New file.
23698         * doc/glibc-functions/login.texi: New file.
23699         * doc/glibc-functions/mbrtoc16.texi: New file.
23700         * doc/glibc-functions/mbrtoc32.texi: New file.
23701         * doc/glibc-functions/name_to_handle_at.texi: New file.
23702         * doc/glibc-functions/ntp_gettimex.texi: New file.
23703         * doc/glibc-functions/open_by_handle_at.texi: New file.
23704         * doc/glibc-functions/prlimit.texi: New file.
23705         * doc/glibc-functions/process_vm_readv.texi: New file.
23706         * doc/glibc-functions/process_vm_writev.texi: New file.
23707         * doc/glibc-functions/recvmmsg.texi: New file.
23708         * doc/glibc-functions/scandirat.texi: New file.
23709         * doc/glibc-functions/sendmmsg.texi: New file.
23710         * doc/glibc-functions/setns.texi: New file.
23711         * doc/glibc-functions/timespec_get.texi: New file.
23712         * doc/gnulib.texi: Include them.
23713         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
23714         sections.
23715         Reported by Eric Blake.
23717 2012-02-28  Bruno Haible  <bruno@clisp.org>
23719         Avoid compilation errors with MSVC option -fp:strict.
23720         * lib/floor.c: Use MSVC specific pragma fenv_access.
23721         * lib/ceil.c: Likewise.
23722         * lib/trunc.c: Likewise.
23723         * lib/round.c: Likewise.
23724         * lib/rint.c: Likewise.
23725         * lib/fma.c: Likewise.
23726         * lib/integer_length.c: Likewise.
23727         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23728         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23729         * tests/test-floor2.c: Likewise.
23730         * tests/test-floorf2.c: Likewise.
23731         * tests/test-ceil2.c: Likewise.
23732         * tests/test-ceilf2.c: Likewise.
23733         * tests/test-trunc2.c: Likewise.
23734         * tests/test-truncf2.c: Likewise.
23735         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
23737 2012-02-27  Bruno Haible  <bruno@clisp.org>
23739         Tests for module 'sqrtl-ieee'.
23740         * modules/sqrtl-ieee-tests: New file.
23741         * tests/test-sqrtl-ieee.c: New file.
23743         New module 'sqrtl-ieee'.
23744         * modules/sqrtl-ieee: New file.
23746         Tests for module 'sqrt-ieee'.
23747         * modules/sqrt-ieee-tests: New file.
23748         * tests/test-sqrt-ieee.c: New file.
23750         New module 'sqrt-ieee'.
23751         * modules/sqrt-ieee: New file.
23753         Tests for module 'sqrtf-ieee'.
23754         * modules/sqrtf-ieee-tests: New file.
23755         * tests/test-sqrtf-ieee.c: New file.
23756         * tests/test-sqrt-ieee.h: New file.
23758         New module 'sqrtf-ieee'.
23759         * modules/sqrtf-ieee: New file.
23761 2012-02-27  Bruno Haible  <bruno@clisp.org>
23763         remainderl-ieee: Work around test failure on OSF/1.
23764         * m4/remainderl-ieee.m4: New file.
23765         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
23766         present, test whether remainderl works with a zero second argument.
23767         Replace it if not.
23768         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
23769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
23770         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
23771         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
23772         (Depends-on): Update conditions.
23773         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
23774         (Depends-on): Add remainder-ieee.
23775         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
23776         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
23777         module.
23779         remainderf-ieee: Work around test failure on OSF/1.
23780         * m4/remainderf-ieee.m4: New file.
23781         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
23782         present, test whether remainderf works with a zero second argument.
23783         Replace it if not.
23784         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
23785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
23786         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
23787         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
23788         (Depends-on): Update conditions.
23789         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
23790         (Depends-on): Add remainder-ieee.
23791         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
23792         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
23793         module.
23795         remainder-ieee: Work around test failure on OSF/1.
23796         * m4/remainder-ieee.m4: New file.
23797         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
23798         present, test whether remainder works with a zero second argument.
23799         Replace it if not.
23800         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
23801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
23802         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
23803         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
23804         (Depends-on): Update dependencies.
23805         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
23806         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
23807         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
23809         Tests for module 'remainderl-ieee'.
23810         * modules/remainderl-ieee-tests: New file.
23811         * tests/test-remainderl-ieee.c: New file.
23813         New module 'remainderl-ieee'.
23814         * modules/remainderl-ieee: New file.
23816         Tests for module 'remainder-ieee'.
23817         * modules/remainder-ieee-tests: New file.
23818         * tests/test-remainder-ieee.c: New file.
23820         New module 'remainder-ieee'.
23821         * modules/remainder-ieee: New file.
23823         Tests for module 'remainderf-ieee'.
23824         * modules/remainderf-ieee-tests: New file.
23825         * tests/test-remainderf-ieee.c: New file.
23826         * tests/test-remainder-ieee.h: New file.
23828         New module 'remainderf-ieee'.
23829         * modules/remainderf-ieee: New file.
23831 2012-02-27  Bruno Haible  <bruno@clisp.org>
23833         modff, modfl: Fix configure syntax error.
23834         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
23835         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23837 2012-02-27  Bruno Haible  <bruno@clisp.org>
23839         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
23840         * m4/fmodl-ieee.m4: New file.
23841         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
23842         whether fmodl works with zero arguments. Replace it if not.
23843         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
23844         (Depends-on): Add fmod-ieee.
23845         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
23846         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
23848         fmodf-ieee: Work around test failure on OSF/1.
23849         * m4/fmodf-ieee.m4: New file.
23850         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
23851         whether fmodf works with zero arguments. Replace it if not.
23852         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
23853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
23854         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
23855         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
23856         (Depends-on): Update dependencies.
23857         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
23858         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
23859         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
23861         fmodf-ieee: Work around test failure on MSVC 9.
23862         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
23863         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
23865         fmod-ieee: Work around test failures on OSF/1, mingw.
23866         * m4/fmod-ieee.m4: New file.
23867         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
23868         whether fmod works with zero arguments. Replace it if not.
23869         * lib/math.in.h (fmod): New declaration.
23870         * lib/fmod.c: New file.
23871         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
23872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
23873         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
23874         * modules/fmod (Files): Add lib/fmod.c.
23875         (Depends-on): Add math, isinf, trunc, fma.
23876         (configure.ac): Arrange to compile lib/fmod.c if needed.
23877         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
23878         m4/signbit.m4.
23879         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
23880         * tests/test-math-c++.cc: Check the declaration of fmod.
23881         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
23883         fmodl-ieee: Fix test failures.
23884         * lib/fmodl.c (fmodl): Treat Inf specially.
23885         * modules/fmodl (Depends-on): Add isinf.
23887         Tests for module 'fmodl-ieee'.
23888         * modules/fmodl-ieee-tests: New file.
23889         * tests/test-fmodl-ieee.c: New file.
23891         New module 'fmodl-ieee'.
23892         * modules/fmodl-ieee: New file.
23894         Tests for module 'fmod-ieee'.
23895         * modules/fmod-ieee-tests: New file.
23896         * tests/test-fmod-ieee.c: New file.
23898         New module 'fmod-ieee'.
23899         * modules/fmod-ieee: New file.
23901         Tests for module 'fmodf-ieee'.
23902         * modules/fmodf-ieee-tests: New file.
23903         * tests/test-fmodf-ieee.c: New file.
23904         * tests/test-fmod-ieee.h: New file.
23906         New module 'fmodf-ieee'.
23907         * modules/fmodf-ieee: New file.
23909 2012-02-27  Bruno Haible  <bruno@clisp.org>
23911         Tests for module 'rintl-ieee'.
23912         * modules/rintl-ieee-tests: New file.
23913         * tests/test-rintl-ieee.c: New file.
23915         New module 'rintl-ieee'.
23916         * modules/rintl-ieee: New file.
23918         Tests for module 'rint-ieee'.
23919         * modules/rint-ieee-tests: New file.
23920         * tests/test-rint-ieee.c: New file.
23922         New module 'rint-ieee'.
23923         * modules/rint-ieee: New file.
23925         Tests for module 'rintf-ieee'.
23926         * modules/rintf-ieee-tests: New file.
23927         * tests/test-rintf-ieee.c: New file.
23928         * tests/test-rint-ieee.h: New file.
23930         New module 'rintf-ieee'.
23931         * modules/rintf-ieee: New file.
23933 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23935         regex: re_search etc. should return -2 when memory exhausted
23936         This bug was uncovered when testing 'grep'.  Without the fix,
23937         re_search and friends return -1 when memory is exhausted, but -1
23938         means no match, and this causes grep to falsely report no-match
23939         instead of memory-exhaustion.  See
23940         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
23941         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
23942         trouble; this can occur if re_search_internal ran out of memory.
23944 2012-02-26  Bruno Haible  <bruno@clisp.org>
23946         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
23947         * m4/modfl-ieee.m4: New file.
23948         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
23949         whether modfl works with Inf. Replace it if not.
23950         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
23951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
23952         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
23953         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
23954         (Depends-on): Update dependencies.
23955         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
23956         m4/signbit.m4.
23957         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
23958         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
23960         modfl-ieee: Fix dependencies.
23961         * modules/modfl-ieee (Depends-on): Add modf-ieee.
23963         modfl-ieee: Fix test failures.
23964         * lib/modfl.c (modfl): Treat NaN and Inf specially.
23965         * modules/modfl (Depends-on): Add isfinite, isinf.
23967         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
23968         * m4/modff-ieee.m4: New file.
23969         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
23970         whether modff works with NaN and Inf. Replace it if not.
23971         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
23972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
23973         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
23974         * modules/modff (configure.ac): Consider REPLACE_MODFF.
23975         (Depends-on): Update dependencies.
23976         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
23977         m4/signbit.m4.
23978         (Depends-on): Add modf-ieee.
23979         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
23980         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
23982         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
23983         * m4/modf-ieee.m4: New file.
23984         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
23985         whether modf works with NaN and Inf. Replace it if not.
23986         * lib/math.in.h (modf): New declaration.
23987         * lib/modf.c: New file.
23988         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
23989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
23990         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
23991         * modules/modf (Files): Add lib/modf.c.
23992         (Depends-on): Add math, isfinite, trunc, isinf.
23993         (configure.ac): Addrange to compile lib/modf.c if needed.
23994         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
23995         m4/signbit.m4.
23996         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
23997         * tests/test-math-c++.cc: Check the declaration of modf.
23998         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
24000         Tests for module 'modfl-ieee'.
24001         * modules/modfl-ieee-tests: New file.
24002         * tests/test-modfl-ieee.c: New file.
24004         New module 'modfl-ieee'.
24005         * modules/modfl-ieee: New file.
24007         Tests for module 'modf-ieee'.
24008         * modules/modf-ieee-tests: New file.
24009         * tests/test-modf-ieee.c: New file.
24011         New module 'modf-ieee'.
24012         * modules/modf-ieee: New file.
24014         Tests for module 'modff-ieee'.
24015         * modules/modff-ieee-tests: New file.
24016         * tests/test-modff-ieee.c: New file.
24017         * tests/test-modf-ieee.h: New file.
24019         New module 'modff-ieee'.
24020         * modules/modff-ieee: New file.
24022 2012-02-26  Bruno Haible  <bruno@clisp.org>
24024         Tests for module 'fabsl-ieee'.
24025         * modules/fabsl-ieee-tests: New file.
24026         * tests/test-fabsl-ieee.c: New file.
24028         New module 'fabsl-ieee'.
24029         * modules/fabsl-ieee: New file.
24031         Tests for module 'fabs-ieee'.
24032         * modules/fabs-ieee-tests: New file.
24033         * tests/test-fabs-ieee.c: New file.
24035         New module 'fabs-ieee'.
24036         * modules/fabs-ieee: New file.
24038         Tests for module 'fabsf-ieee'.
24039         * modules/fabsf-ieee-tests: New file.
24040         * tests/test-fabsf-ieee.c: New file.
24041         * tests/test-fabs-ieee.h: New file.
24043         New module 'fabsf-ieee'.
24044         * modules/fabsf-ieee: New file.
24046 2012-02-26  Bruno Haible  <bruno@clisp.org>
24048         Tests for module 'fmal-ieee'.
24049         * modules/fmal-ieee-tests: New file.
24050         * tests/test-fmal-ieee.c: New file.
24052         New module 'fmal-ieee'.
24053         * modules/fmal-ieee: New file.
24055         Tests for module 'fma-ieee'.
24056         * modules/fma-ieee-tests: New file.
24057         * tests/test-fma-ieee.c: New file.
24059         New module 'fma-ieee'.
24060         * modules/fma-ieee: New file.
24062         Tests for module 'fmaf-ieee'.
24063         * modules/fmaf-ieee-tests: New file.
24064         * tests/test-fmaf-ieee.c: New file.
24065         * tests/test-fma-ieee.h: New file.
24067         New module 'fmaf-ieee'.
24068         * modules/fmaf-ieee: New file.
24070 2012-02-26  Bruno Haible  <bruno@clisp.org>
24072         Tests for module 'ldexpl-ieee'.
24073         * modules/ldexpl-ieee-tests: New file.
24074         * tests/test-ldexpl-ieee.c: New file.
24076         New module 'ldexpl-ieee'.
24077         * modules/ldexpl-ieee: New file.
24079         Tests for module 'ldexp-ieee'.
24080         * modules/ldexp-ieee-tests: New file.
24081         * tests/test-ldexp-ieee.c: New file.
24083         New module 'ldexp-ieee'.
24084         * modules/ldexp-ieee: New file.
24086         Tests for module 'ldexpf-ieee'.
24087         * modules/ldexpf-ieee-tests: New file.
24088         * tests/test-ldexpf-ieee.c: New file.
24089         * tests/test-ldexp-ieee.h: New file.
24091         New module 'ldexpf-ieee'.
24092         * modules/ldexpf-ieee: New file.
24094 2012-02-26  Bruno Haible  <bruno@clisp.org>
24096         Refactor frexp*-ieee tests.
24097         * tests/test-frexp-ieee.h: New file.
24098         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
24099         (main): Just call test_function.
24100         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
24101         (main): Just call test_function.
24102         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
24103         (main): Just call test_function.
24104         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
24105         * modules/frexp-ieee-tests (Files): Likewise.
24106         * modules/frexpl-ieee-tests (Files): Likewise.
24108         Tests for module 'frexpl-ieee'.
24109         * modules/frexpl-ieee-tests: New file.
24110         * tests/test-frexpl-ieee.c: New file.
24112         New module 'frexpl-ieee'.
24113         * modules/frexpl-ieee: New file.
24115         Tests for module 'frexp-ieee'.
24116         * modules/frexp-ieee-tests: New file.
24117         * tests/test-frexp-ieee.c: New file.
24119         New module 'frexp-ieee'.
24120         * modules/frexp-ieee: New file.
24122         Tests for module 'frexpf-ieee'.
24123         * modules/frexpf-ieee-tests: New file.
24124         * tests/test-frexpf-ieee.c: New file.
24126         New module 'frexpf-ieee'.
24127         * modules/frexpf-ieee: New file.
24129 2012-02-26  Bruno Haible  <bruno@clisp.org>
24131         roundl-ieee tests: More tests.
24132         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24133         (main): Add tests for [MX] shaded specification in POSIX.
24134         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24135         (Depends-on): Add isnanl-nolibm.
24137         round-ieee tests: More tests.
24138         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24139         (main): Add tests for [MX] shaded specification in POSIX.
24140         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24141         (Depends-on): Add isnand-nolibm.
24143         roundf-ieee tests: More tests.
24144         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24145         (main): Add tests for [MX] shaded specification in POSIX.
24146         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24147         (Depends-on): Add isnanf-nolibm.
24149         truncl-ieee tests: More tests.
24150         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24151         (main): Add tests for [MX] shaded specification in POSIX.
24152         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24153         (Depends-on): Add isnanl-nolibm.
24155         trunc-ieee tests: More tests.
24156         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24157         (main): Add tests for [MX] shaded specification in POSIX.
24158         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24159         (Depends-on): Add isnand-nolibm.
24161         truncf-ieee tests: More tests.
24162         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24163         (main): Add tests for [MX] shaded specification in POSIX.
24164         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24165         (Depends-on): Add isnanf-nolibm.
24167         ceill-ieee tests: More tests.
24168         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24169         (main): Add tests for [MX] shaded specification in POSIX.
24170         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24171         (Depends-on): Add isnanl-nolibm.
24173         ceil-ieee tests: More tests.
24174         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24175         (main): Add tests for [MX] shaded specification in POSIX.
24176         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24177         (Depends-on): Add isnand-nolibm.
24179         ceilf-ieee tests: More tests.
24180         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24181         (main): Add tests for [MX] shaded specification in POSIX.
24182         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24183         (Depends-on): Add isnanf-nolibm.
24185         floorl-ieee tests: More tests.
24186         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24187         (main): Add tests for [MX] shaded specification in POSIX.
24188         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24189         (Depends-on): Add isnanl-nolibm.
24191         floor-ieee tests: More tests.
24192         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24193         (main): Add tests for [MX] shaded specification in POSIX.
24194         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24195         (Depends-on): Add isnand-nolibm.
24197         floorf-ieee tests: More tests.
24198         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24199         (main): Add tests for [MX] shaded specification in POSIX.
24200         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24201         (Depends-on): Add isnanf-nolibm.
24203 2012-02-26  Bruno Haible  <bruno@clisp.org>
24205         fpieee: More comments.
24206         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
24208 2012-02-25  Bruno Haible  <bruno@clisp.org>
24210         Tests for module 'log10l'.
24211         * modules/log10l-tests: New file.
24212         * tests/test-log10l.c: New file.
24213         * tests/test-math-c++.cc: Check the declaration of log10l.
24215         New module 'log10l'.
24216         * lib/math.in.h (log10l): New declaration.
24217         * lib/log10l.c: New file.
24218         * m4/log10l.m4: New file.
24219         * modules/log10l: New file.
24220         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
24221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
24222         HAVE_DECL_LOG10L.
24223         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
24224         HAVE_DECL_LOG10L.
24225         * doc/posix-functions/log10l.texi: Mention the new module.
24227 2012-02-25  Bruno Haible  <bruno@clisp.org>
24229         fmodl, remainder*: Avoid wrong results due to rounding errors.
24230         * lib/fmodl.c (fmodl): Correct the result if it is not within the
24231         expected bounds.
24232         * lib/remainderf.c (remainderf): Likewise.
24233         * lib/remainder.c (remainder): Likewise.
24234         * lib/remainderl.c (remainderl): Likewise.
24236 2012-02-25  Bruno Haible  <bruno@clisp.org>
24238         Tests for module 'remainderl'.
24239         * modules/remainderl-tests: New file.
24240         * tests/test-remainderl.c: New file.
24241         * tests/test-math-c++.cc: Check the declaration of remainderl.
24243         New module 'remainderl'.
24244         * lib/math.in.h (remainderl): New declaration.
24245         * lib/remainderl.c: New file.
24246         * m4/remainderl.m4: New file.
24247         * modules/remainderl: New file.
24248         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
24249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
24250         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
24251         HAVE_REMAINDERL.
24252         * doc/posix-functions/remainderl.texi: Mention the new module.
24254 2012-02-25  Bruno Haible  <bruno@clisp.org>
24256         Tests for module 'remainderf'.
24257         * modules/remainderf-tests: New file.
24258         * tests/test-remainderf.c: New file.
24259         * tests/test-math-c++.cc: Check the declaration of remainderf.
24261         New module 'remainderf'.
24262         * lib/math.in.h (remainderf): New declaration.
24263         * lib/remainderf.c: New file.
24264         * m4/remainderf.m4: New file.
24265         * modules/remainderf: New file.
24266         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
24267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
24268         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
24269         HAVE_REMAINDERF.
24270         * doc/posix-functions/remainderf.texi: Mention the new module.
24272 2012-02-25  Bruno Haible  <bruno@clisp.org>
24274         remainder: Support for MSVC.
24275         * lib/math.in.h (remainder): New declaration.
24276         * lib/remainder.c: New file.
24277         * m4/remainder.m4: New file.
24278         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
24279         (Depends-on): Add math, round, fma.
24280         (configure.ac): Use results of gl_FUNC_REMAINDER.
24281         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
24282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
24283         HAVE_DECL_REMAINDER.
24284         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
24285         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
24286         * tests/test-math-c++.cc: Check the declaration of remainder.
24287         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
24288         problems are fixed.
24290 2012-02-25  Bruno Haible  <bruno@clisp.org>
24292         Tests for module 'fmodl'.
24293         * modules/fmodl-tests: New file.
24294         * tests/test-fmodl.c: New file.
24295         * tests/test-math-c++.cc: Check the declaration of fmodl.
24297         New module 'fmodl'.
24298         * lib/math.in.h (fmodl): New declaration.
24299         * lib/fmodl.c: New file.
24300         * m4/fmodl.m4: New file.
24301         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
24302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
24303         REPLACE_FMODL.
24304         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
24305         REPLACE_FMODL.
24306         * modules/fmodl: New file.
24307         * doc/posix-functions/fmodl.texi: Mention the new module.
24309 2012-02-25  Bruno Haible  <bruno@clisp.org>
24311         Tests for module 'modfl'.
24312         * modules/modfl-tests: New file.
24313         * tests/test-modfl.c: New file.
24314         * tests/test-math-c++.cc: Check the declaration of modfl.
24316         New module 'modfl'.
24317         * lib/math.in.h (modfl): New declaration.
24318         * lib/modfl.c: New file.
24319         * m4/modfl.m4: New file.
24320         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
24321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
24322         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
24323         * modules/modfl: New file.
24324         * doc/posix-functions/modfl.texi: Mention the new module.
24326 2012-02-25  Bruno Haible  <bruno@clisp.org>
24328         Tests for module 'fabsl'.
24329         * modules/fabsl-tests: New file.
24330         * tests/test-fabsl.c: New file.
24331         * tests/test-math-c++.cc: Check the declaration of fabsl.
24333         New module 'fabsl'.
24334         * lib/math.in.h (fabsl): New declaration.
24335         * lib/fabsl.c: New file.
24336         * m4/fabsl.m4: New file.
24337         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
24338         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
24339         REPLACE_FABSL.
24340         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
24341         REPLACE_FABSL.
24342         * modules/fabsl: New file.
24343         * doc/posix-functions/fabsl.texi: Mention the new module.
24345 2012-02-25  Bruno Haible  <bruno@clisp.org>
24347         fabs tests: More tests.
24348         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
24349         (zero): New variable.
24350         (main): Add tests for signed zero.
24351         * modules/fabs-tests (Files): Add tests/minus-zero.h.
24353         fabsf tests: More tests.
24354         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
24355         (zero): New variable.
24356         (main): Add tests for signed zero.
24357         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
24359 2012-02-24  Bruno Haible  <bruno@clisp.org>
24361         atanl: Provide function definition on MSVC.
24362         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
24363         function pointer.
24364         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
24366 2012-02-24  Bruno Haible  <bruno@clisp.org>
24368         acosl: Provide function definition on MSVC.
24369         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
24370         function pointer.
24371         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
24373 2012-02-24  Bruno Haible  <bruno@clisp.org>
24375         asinl: Provide function definition on MSVC.
24376         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
24377         function pointer.
24378         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
24380 2012-02-24  Bruno Haible  <bruno@clisp.org>
24382         tanl: Provide function definition on MSVC.
24383         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
24384         function pointer.
24385         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
24387 2012-02-24  Bruno Haible  <bruno@clisp.org>
24389         cosl: Provide function definition on MSVC.
24390         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
24391         function pointer.
24392         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
24394 2012-02-24  Bruno Haible  <bruno@clisp.org>
24396         sinl: Provide function definition on MSVC.
24397         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
24398         function pointer.
24399         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
24401 2012-02-24  Bruno Haible  <bruno@clisp.org>
24403         logl: Provide function definition on MSVC.
24404         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
24405         function pointer.
24406         * lib/math.in.h (logl): Undefine if it does not exist as a function.
24408 2012-02-24  Bruno Haible  <bruno@clisp.org>
24410         expl: Provide function definition on MSVC.
24411         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
24412         function pointer.
24413         * lib/math.in.h (expl): Undefine if it does not exist as a function.
24415 2012-02-24  Bruno Haible  <bruno@clisp.org>
24417         sqrtl: Provide function definition on MSVC.
24418         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
24419         a function pointer.
24420         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
24422 2012-02-24  Bruno Haible  <bruno@clisp.org>
24424         ceill: Provide function definition on MSVC.
24425         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
24426         used as a function pointer.
24427         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
24429 2012-02-24  Bruno Haible  <bruno@clisp.org>
24431         floorl: Provide function definition on MSVC.
24432         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
24433         used as a function pointer.
24434         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
24436 2012-02-24  Bruno Haible  <bruno@clisp.org>
24438         ceilf: Provide function definition on MSVC.
24439         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
24440         used as a function pointer.
24441         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
24443 2012-02-24  Bruno Haible  <bruno@clisp.org>
24445         floorf: Provide function definition on MSVC.
24446         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
24447         used as a function pointer.
24448         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
24450 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24452         stdnoreturn: new module
24453         This implements a replacement for C11's <stdnoreturn.h>.
24454         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
24455         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
24456         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
24457         * tests/test-stdnoreturn.c: New files.
24459 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
24461         regex: fix false multibyte matches in some regular expressions
24462         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
24463         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
24464         * lib/regex_internal.c (re_string_skip_chars):
24465         Fix miscomputation of remain_len that may cause incomplete
24466         multi-byte character and false match.
24468 2012-02-24  Jim Meyering  <meyering@redhat.com>
24470         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
24471         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
24472         uses with "==" *before* the call, e.g., 0 == strcmp (...)
24473         Remove now-unnecessary str''cmp obfuscation.
24474         Suggested by Akim Demaille.
24476 2012-02-24  Bruno Haible  <bruno@clisp.org>
24478         streq: Rename macro.
24479         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
24480         * NEWS: Mention the change.
24481         * lib/mbrtowc.c (mbrtowc): Update.
24482         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
24483         * lib/wcwidth.c (wcwidth): Update.
24484         Suggested by Akim Demaille and Jim Meyering.
24486 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24488         regex: fix typo in definition of MIN
24489         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
24490         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
24492 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24493             Bruno Haible  <bruno@clisp.org>
24495         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
24496         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
24497         entries into a stack-allocated buffer directly.
24498         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
24500 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24501             Bruno Haible  <bruno@clisp.org>
24503         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
24505          - There were several instances of this pattern:
24507              for (;;) {
24508                n = acl (f, GETACLCNT, 0, NULL);
24509                [ allocate an array A of size N ]
24510                if (acl (f, GETACL, n, a) == n)
24511                  break;
24512              }
24514            This loop might never terminate if some other process is constantly
24515            manipulating the file's ACL.  The loop should be rewritten to
24516            terminate.
24518          - The acl (... GETACLNT ...) call is merely an optimization; its value
24519            is merely a hint as to how big to make the array.  A better
24520            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
24521            and just guess a reasonably-big size, growing the size and trying
24522            again if it's not large enough.  This guarantees termination, and
24523            saves a system call.
24525         * lib/acl-internal.h: Include <limits.h>.
24526         (MIN, SIZE_MAX): New macros.
24527         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
24528         a stack-allocated buffer, and use malloc if it does not fit. Don't
24529         use GETACLCNT.
24530         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
24532 2012-02-19  Bruno Haible  <bruno@clisp.org>
24534         acl: Fix endless loop on Solaris with vxfs.
24535         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
24536         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
24537         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
24538         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
24539         * tests/test-sameacls.c (main)[Solaris]: Likewise.
24540         Reported by Bill Jones in
24541         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
24543 2012-02-19  Bruno Haible  <bruno@clisp.org>
24545         acl: Fix copy-acl test failure on Solaris 11.0.
24546         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
24547         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
24548         that this function returns 0 in some more cases.
24550 2012-02-19  Bruno Haible  <bruno@clisp.org>
24552         acl: Update doc references.
24553         * doc/acl-resources.txt: Update links to Solaris documentation.
24555 2012-02-19  Bruno Haible  <bruno@clisp.org>
24557         Fix test failure in many locales on Solaris 11.
24558         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
24559         'tr' arguments.
24560         * tests/test-pipe-filter-ii1.c (main): Likewise.
24561         * build-aux/bootstrap (check_versions): Run 'tr' command with range
24562         expressions in the C locale.
24563         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24564         * m4/host-os.m4 (gl_HOST_OS): Likewise.
24566 2012-02-19  Bruno Haible  <bruno@clisp.org>
24568         gnulib-tool: Improve usage message.
24569         * gnulib-tool (func_usage): Move doc of --help and --version to the
24570         section "Operation modes".
24572 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
24574         README-release: make it easier to execute commands
24575         * top/README-release: break commands out on to separate lines.
24577 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
24579         GNUmakefile: simplify detection of unconfigured trees
24580         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
24581         whether the tree make is being run from is already configured or
24582         not.  Related simplifications.
24584 2012-02-13  Simon Josefsson  <simon@josefsson.org>
24586         * gnulib-tool (func_usage): Document --help and --version.
24588 2012-02-11  Jim Meyering  <meyering@redhat.com>
24590         bootstrap: don't exit 0 upon gnulib-tool failure
24591         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
24592         its exit status, not 0.
24594 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
24596         README-release: various improvements
24597         * top/README-release: Give a command to push changes for the
24598         release.  Add "distcheck" to list of other pre-release checks.
24599         Fix instance of "make stable" which should be "make TYPE".
24601 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24603         maint: replace FSF snail-mail addresses with URLs
24604         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
24605         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
24606         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
24607         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
24608         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
24609         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
24610         * lib/check-version.c, lib/check-version.h, lib/config.charset:
24611         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
24612         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
24613         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
24614         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
24615         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
24616         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
24617         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
24618         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
24619         * lib/glthread/thread.c, lib/glthread/thread.h:
24620         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
24621         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
24622         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
24623         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
24624         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
24625         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
24626         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
24627         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
24628         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
24629         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
24630         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
24631         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
24632         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
24633         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
24634         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
24635         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
24636         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
24637         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
24638         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
24639         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
24640         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
24641         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
24642         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
24643         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
24644         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
24645         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
24646         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
24647         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
24648         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
24649         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
24650         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
24651         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
24652         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
24653         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
24654         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
24655         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
24656         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
24657         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
24658         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
24659         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
24660         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
24661         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
24662         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
24663         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
24664         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
24665         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
24666         * tests/test-poll.c, tests/test-quotearg-simple.c:
24667         * tests/test-quotearg.c, tests/test-quotearg.h:
24668         * tests/test-round-ieee.c, tests/test-round1.c:
24669         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
24670         * tests/test-roundl-ieee.c, tests/test-roundl.c:
24671         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
24672         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
24673         * tests/test-strerror.c, tests/test-strerror_r.c:
24674         * tests/test-strsignal.c, tests/test-strverscmp.c:
24675         * tests/test-xmemdup0.c:
24676         Replace FSF snail mail addresses with URLs, as per GNU coding
24677         standards.  See glibc bug
24678         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
24680 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
24682         README-release: capitalize a word and split a line
24683         * top/README-release: Fix punctuation and spacing.
24685 2012-02-08  Akim Demaille  <demaille@gostai.com>
24687         fatal-signal: use C prototypes (with explicit void).
24688         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24689         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
24691 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24693         regex: spelling fix
24694         * lib/regexec.c: spelling fix
24696         regex: rely on stdint.h for SIZE_MAX
24697         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
24699 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24701         regex: merge glibc changes
24703         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
24704         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
24705         (init_word_char): Work even if bitset words are not exactly 32 or
24706         64 bits wide.  Don't assume there are no padding bits.
24707         * lib/regex.c [_LIBC]: Do not include <config.h>.
24708         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
24709         and -Wtype-limits.
24710         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
24711         needless disagreement with glibc.  All uses changed.  Define it to
24712         1 only if _GNU_SOURCE, to match glibc.
24713         (_REG_RM_NAME): Remove; no longer needed, since the names in
24714         question are now all protected by __USE_GNU.
24715         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
24716         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
24717         * lib/regex_internal.h (MIN): New macro.
24719         2012-01-03 Ulrich Drepper <drepper@gmail.com>
24720         * lib/regcomp.c (init_word_char): Optimize regex a bit.
24722         2011-12-30 Jakub Jelinek <jakub@redhat.com>
24723         * lib/regex_internal.c (re_string_fetch_byte_case):
24724         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
24725         is miscompiled, and it turns out it is because of an incorrect
24726         attribute on re_string_fetch_byte_case.  Unlike
24727         re_string_peek_byte_case, this one is really not pure, it modifies
24728         memory (increments pstr->cur_idx), and with the pure attribute GCC
24729         assumed it doesn't and it cached the presumed value of
24730         regexp->cur_idx in a variable across the
24731          for (;; ++i)
24732            {
24733              if (i >= BRACKET_NAME_BUF_SIZE)
24734                return REG_EBRACK;
24735              if (token->type == OP_OPEN_CHAR_CLASS)
24736                ch = re_string_fetch_byte_case (regexp);
24737              else
24738                ch = re_string_fetch_byte (regexp);
24739              if (re_string_eoi(regexp))
24740                return REG_EBRACK;
24741              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
24742                break;
24743              elem->opr.name[i] = ch;
24744            }
24746         2011-11-29 Andreas Schwab <schwab@redhat.com>
24747         * lib/regcomp.c (build_equiv_class):
24748         Fix access after end of search string in regex matcher.
24750         2011-11-12 Ulrich Drepper <drepper@redhat.com>
24751         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
24753         2011-10-12 Ulrich Drepper <drepper@redhat.com>
24754         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
24756         2011-10-11 Ulrich Drepper <drepper@redhat.com>
24757         * lib/regcomp.c (parse_branch, parse_sub_exp):
24758         More regex memory leak fixes and tests.
24759         (parse_sub_exp, parse_bracket_exp):
24760         Fix memory leak for some invalid regular expressions.
24762         2011-05-28 Ulrich Drepper <drepper@gmail.com>
24763         * lib/regex_internal.c, lib/regexec.c:
24764         Fix unnecessary overallocation due to incomplete character.  When
24765         incomplete characters are found at the end of a string the code
24766         ran amok and allocated lots of memory.  Stricter limits are now in
24767         place.
24769         2011-05-20 Reuben Thomas <rrt@sc3d.org>
24770         * lib/regex.h: Update documentation.
24772         2011-05-16 Aharon Robbins <arnold@skeeve.com>
24773         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
24775         2010-05-05 Andreas Schwab <schwab@redhat.com>
24776         * lib/regexec.c (find_collation_sequence_value):
24777         Fix lookup of collation sequence value during regexp matching.
24779         2010-01-22 Ulrich Drepper <drepper@redhat.com>
24780         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
24782         2008-01-16 Ulrich Drepper <drepper@redhat.com>
24783         * lib/regex.h: Cleanup namespace.
24785         2007-11-26 Ulrich Drepper <drepper@redhat.com>
24786         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
24788         2007-08-26 Ulrich Drepper <drepper@redhat.com>
24789         * lib/regex_internal.h: Prevent some declarations and definitions
24790         to be seen when used in tests.
24792         2005-05-06 Ulrich Drepper <drepper@redhat.com>
24793         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
24794         __libc_lock_* macros if not _LIBC.
24795         (struct re_dfa_t): Add lock.
24797 2012-02-07  Eric Blake  <eblake@redhat.com>
24799         maint.mk: also prohibit lower-case @var@
24800         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
24801         lower case, like @top_srcdir@.
24803 2012-02-04  Eric Blake  <eblake@redhat.com>
24805         canonicalize: avoid uninitialized memory use
24806         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
24807         random '/' left in dest.
24808         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
24810 2012-02-04  Bruno Haible  <bruno@clisp.org>
24812         isatty: Fix test failure of ptsname_r on native Windows.
24813         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
24814         and don't set errno.
24815         (isatty): Test first whether fd is valid. Set errno when returning 0.
24817 2012-02-04  Bruno Haible  <bruno@clisp.org>
24819         spawn-pipe tests: Fix a NULL program name in a diagnostic.
24820         * tests/test-spawn-pipe-main.c: Include progname.h.
24821         (main): Invoke set_program_name.
24822         * modules/spawn-pipe-tests (Depends-on): Add progname.
24824         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
24825         * tests/test-nonblocking-socket-main.c: Include progname.h.
24826         (main): Invoke set_program_name.
24827         * modules/nonblocking-socket-tests (Depends-on): Add progname.
24829         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
24830         * tests/test-nonblocking-pipe-main.c: Include progname.h.
24831         (main): Invoke set_program_name.
24832         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
24834 2012-02-04  Eric Blake  <eblake@redhat.com>
24836         canonicalize-lgpl: fix // handling
24837         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
24839         canonicalize: fix // handling
24840         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
24841         /// to //, since only // is special.
24843 2012-02-04  Bruno Haible  <bruno@clisp.org>
24845         ioctl: Fix test failure on native Windows.
24846         * lib/ioctl.c: Include msvc-nothrow.h.
24847         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
24849 2012-02-04  Bruno Haible  <bruno@clisp.org>
24851         fsync: Avoid test failure on native Windows.
24852         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
24853         read-only.
24855 2012-02-04  Bruno Haible  <bruno@clisp.org>
24857         sys_select: Avoid syntax error on OpenBSD 5.0.
24858         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
24859         currently being included, just include the system's <sys/select.h>.
24861 2012-02-04  Bruno Haible  <bruno@clisp.org>
24863         sys_select: Avoid syntax error on OpenBSD 5.0.
24864         * lib/sys_select.in.h: Include <signal.h> only after the include_next
24865         <sys/select.h>, not before.
24866         Reported by Jiri B <jirib@devio.us>.
24868 2012-02-04  Bruno Haible  <bruno@clisp.org>
24870         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
24871         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
24872         global variables.
24873         * tests/test-get-rusage-data.c (main): Likewise.
24874         Reported by Jim Meyering.
24876 2012-02-04  Bruno Haible  <bruno@clisp.org>
24878         stdioext: Fix last commit.
24879         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
24881 2012-02-03  Bruno Haible  <bruno@clisp.org>
24883         stdioext: Add tentative support for Plan9.
24884         * lib/stdio-impl.h: Include <errno.h>.
24885         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
24886         * lib/freadable.c (freadable): Likewise.
24887         * lib/fwritable.c (fwritable): Likewise.
24888         * lib/fbufmode.c (fbufmode): Likewise.
24889         * lib/freading.c (freading): Likewise.
24890         * lib/fwriting.c (fwriting): Likewise.
24891         * lib/freadptr.c (freadptr): Likewise.
24892         * lib/freadseek.c (freadptrinc): Likewise.
24893         * lib/freadahead.c (freadahead): Likewise.
24894         * lib/fpurge.c (fpurge): Likewise.
24895         * lib/fseeko.c (rpl_fseeko): Likewise.
24896         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
24897         Reported by Jens Staal <staal1978@gmail.com>.
24899 2012-02-02  Jim Meyering  <meyering@redhat.com>
24901         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
24902         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
24903         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
24904         not even to try to add the attribute.  Instead, add a pragma to suppress
24905         the suggestion/warning.
24907 2012-01-31  Karl Berry  <karl@gnu.org>
24909         setstate doc: typo.
24910         * doc/posix-functions/setstate.texi (setstate): { not (.
24912 2012-01-31  Bruno Haible  <bruno@clisp.org>
24914         popen: Make more robust on Windows.
24915         * lib/popen.c: On native Windows, use the _popen based code even if
24916         HAVE_POPEN is set.
24917         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
24918         environment variable on native Windows.
24920 2012-01-30  Bruno Haible  <bruno@clisp.org>
24922         pclose: Fix typo.
24923         * lib/stdio.in.h (pclose): Fix typo in warning message.
24925 2012-01-30  Bruno Haible  <bruno@clisp.org>
24927         doc about getlogin_r, setstate.
24928         * doc/posix-functions/getlogin_r.texi: List the incompatible
24929         declaration problem under "not fixed by gnulib".
24930         * doc/posix-functions/setstate.texi: Mention incompatible declaration
24931         problem on Solaris 11 and other platforms.
24933 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
24934             Bruno Haible  <bruno@clisp.org>
24936         poll tests: Make test more robust.
24937         * tests/test-poll.c: Include macros.h.
24938         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
24939         return value of various I/O operations.
24940         * modules/poll-tests (Files): Add tests/macros.h.
24942 2012-01-30  Bruno Haible  <bruno@clisp.org>
24944         sys_stat: Fix support for mingw64 and MSVC.
24945         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
24946         header files already do it.
24947         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
24948         stat itself.
24949         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
24951 2012-01-30  Bruno Haible  <bruno@clisp.org>
24953         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
24954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
24955         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
24957 2012-01-29  Bruno Haible  <bruno@clisp.org>
24959         quotearg: Fix test failure on MacOS X 10.5.
24960         * tests/test-quotearg-simple.c: Include localcharset.h.
24961         (main): If the locale encoding is not ASCII, bypass the tests of
24962         locale_quoting_style and clocale_quoting_style.
24963         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
24965 2012-01-29  Jim Meyering  <meyering@redhat.com>
24967         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
24968         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
24969         detect uses of canonicalize_file_name.
24971 2012-01-28  Bruno Haible  <bruno@clisp.org>
24973         test-framework-sh: Fix test failure with AIX 7.1 diff.
24974         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
24975         in column 1, like 'diff -c' does.
24976         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
24977         whether 'diff -u' is used. Instead, test whether the output contains
24978         some '@' character.
24980 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24982         strtoimax: eliminate need for stdint.h, inttypes.h checks
24983         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
24984         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
24985         the prerequisites for a recently-introduced strtoimax test.
24986         I guess this might cause strtoimax to be replaced when not
24987         strictly necessary on older hosts, but this shouldn't introduce
24988         any bugs and it should make Emacs 'configure' faster on typical
24989         modern hosts.  Problem discovered when importing the latest gnulib
24990         to an Emacs test version.
24991         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
24993 2012-01-28  Bruno Haible  <bruno@clisp.org>
24995         sys_time: Override 'struct timeval' on some native Windows platforms.
24996         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
24997         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
24998         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
24999         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
25000         needs to be overridden.
25001         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
25002         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
25003         * tests/test-sys_select.c: Check that the tv_sec member has the same
25004         size as a 'time_t'.
25005         * tests/test-sys_time.c: Likewise.
25006         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
25007         is set, set also REPLACE_GETTIMEOFDAY.
25008         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
25009         convert the resulting 'struct timeval' before returning.
25010         * lib/select.c: Include <sys/time.h>.
25011         (select, timeval): Undefine at the right place.
25012         * modules/select (Depends-on): Add sys_time.
25013         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
25014         some Windows platforms.
25015         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
25017 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25019         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
25020         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
25021         an integer.
25022         * lib/fcntl.c (dupfd): Likewise.
25023         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
25025 2012-01-28  Bruno Haible  <bruno@clisp.org>
25027         fcntl: Avoid compilation error on native Windows.
25028         * modules/fcntl (Depends-on): Add 'close'.
25030 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25032         select, poll, isatty: Avoid warnings on x86_64 mingw64.
25033         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
25034         pointer to an integer.
25035         * lib/poll.c (IsConsoleHandle): Likewise.
25036         * lib/isatty.c (IsConsoleHandle): Likewise.
25038 2012-01-28  Jim Meyering  <meyering@redhat.com>
25040         doc: clarify README-release
25041         * top/README-release: Clarify: you should make a point to have
25042         the latest stable versions of build tools in your PATH, and the
25043         reference to buildreq is solely for its list of tool names, not
25044         for its minimal-functional version numbers.
25045         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
25047         maint.mk: use more readable (yet functionally equivalent) quoting
25048         It is common to quote a single quote in a single quoted string like
25049         this:  '...'\''...'.  Unless you know the idiom, that looks like
25050         gibberish, so prefer to double-quote the string when possible.
25051         Then you can use a more readable, lone single quote: "...'..."
25052         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
25053         "don't" is more readable than the equivalent 'don'\''t'.
25054         (sc_cast_of_x_alloc_return_value): Likewise.
25055         (sc_cast_of_alloca_return_value): Likewise.
25056         (sc_makefile_path_separator_check): Similar: use ":" in '...',
25057         rather than '\'':'\''.
25059 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25061         stdalign: relax _Alignof and tighten _Alignas test
25062         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
25063         as it was too strict: alignof must divide offsetof, but it need
25064         not equal offsetof.  Inspired by Joseph S. Myers's comment
25065         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
25066         Conversely, tighten the _Alignas test a bit, as the resulting
25067         alignment must be exactly 8.
25069 2012-01-27  Bruno Haible  <bruno@clisp.org>
25071         stdalign: Document the last change.
25072         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
25074 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25076         stdalign: check that alignof and offsetof are consistent
25077         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
25078         Problem reported for gnulib by Richard W.M. Jones in
25079         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
25081 2012-01-27  Jim Meyering  <meyering@redhat.com>
25083         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
25084         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
25085         convert a sequence with gaps to the minimal containing range.
25086         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
25087         * tests/test-update-copyright.sh: Test for this.
25088         The FSF confirmed it is ok to do this, assuming there is at
25089         least one significant change per year in the affected range:
25090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
25092 2012-01-26  Bruno Haible  <bruno@clisp.org>
25094         pipe2: refine doc about thread-safety
25095         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
25096         multithread-safety problem.
25097         * doc/glibc-functions/accept4.texi: Likewise.
25099 2012-01-26  Bruno Haible  <bruno@clisp.org>
25101         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
25102         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
25103         In the test program, include <fcntl.h>, for O_RDONLY.
25105 2012-01-26  Eric Blake  <eblake@redhat.com>
25107         pipe2: document lack of thread-safety in replacement
25108         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
25109         issue in replacement.
25110         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25111         Based on a report by Eric Wong.
25113 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25114             Bruno Haible  <bruno@clisp.org>
25116         malloca: Avoid warnings on x86_64 mingw64.
25117         * lib/malloca.c: Include <stdint.h>.
25118         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
25119         * modules/malloca (Depends-on): Add stdint.
25120         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
25122 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25124         obstack: remove __STDC__ conditionals
25125         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
25126         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
25127         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
25128         m4/include_next.m4 as the only gnulib-maintained places that still
25129         refer to __STDC__.
25131 2012-01-24  Bruno Haible  <bruno@clisp.org>
25133         havelib: Modern quoting.
25134         * build-aux/config.rpath: Quote 'like this', not `like this', as per
25135         the recent change to the GNU coding standards.
25137 2012-01-24  Bruno Haible  <bruno@clisp.org>
25139         stdint: Improve support for Android.
25140         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
25141         Reported by Simon Josefsson <simon@josefsson.org>.
25143 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25145         doc: omit trailing empty lines from INSTALL etc.
25146         * doc/Makefile (INSTALL): Omit trailing empty lines.
25147         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
25148         omit trailing empty lines.  This simplifies the build procedure.
25150 2012-01-23  Jim Meyering  <meyering@redhat.com>
25152         tests: avoid spurious warnings about gl_sockets_startup
25153         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
25154         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
25155         reporting a "statement with no effect".
25156         * tests/test-accept.c (main): Mark as "(void)".
25157         * tests/test-accept4.c (main): Likewise.
25158         * tests/test-bind.c (main): Likewise.
25159         * tests/test-connect.c (main): Likewise.
25160         * tests/test-getpeername.c (main): Likewise.
25161         * tests/test-getsockname.c (main): Likewise.
25162         * tests/test-getsockopt.c (main): Likewise.
25163         * tests/test-listen.c (main): Likewise.
25164         * tests/test-recv.c (main): Likewise.
25165         * tests/test-recvfrom.c (main): Likewise.
25166         * tests/test-send.c (main): Likewise.
25167         * tests/test-sendto.c (main): Likewise.
25168         * tests/test-setsockopt.c (main): Likewise.
25169         * tests/test-shutdown.c (main): Likewise.
25171 2012-01-21  Bruno Haible  <bruno@clisp.org>
25173         locale-fr.m4: Fix for Android.
25174         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
25175         failure of the test program on Bionic libc.
25177 2012-01-21  Jim Meyering  <meyering@redhat.com>
25179         bootstrap: fail when bootstrap_post_import_hook fails
25180         Otherwise, it's far too easy to miss diagnostics emitted
25181         between gnulib-tool's output and that of running configure.
25182         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
25184 2012-01-17  Jim Meyering  <meyering@redhat.com>
25186         maint: enable sc_trailing_blank
25187         * build-aux/pmccabe.css: Remove trailing blanks.
25188         * doc/acl-cygwin.txt: Likewise.
25189         * doc/gnu-oids.texi: Likewise
25190         * cfg.mk: Enable sc_trailing_blank.
25191         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
25193 2012-01-17  Jim Meyering  <meyering@redhat.com>
25195         maint: enable sc_prohibit_openat_without_use
25196         * cfg.mk: Enable sc_prohibit_openat_without_use.
25197         Exempt lib/selinux-at.c.
25199 2012-01-17  Jim Meyering  <meyering@redhat.com>
25201         maint: enable sc_prohibit_cloexec_without_use
25202         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
25203         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
25205 2012-01-17  Jim Meyering  <meyering@redhat.com>
25207         maint: enable sc_prohibit_intprops_without_use
25208         * cfg.mk: Enable sc_prohibit_intprops_without_use
25209         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
25211 2012-01-17  Jim Meyering  <meyering@redhat.com>
25213         maint: enable sc_prohibit_hash_pjw_without_use
25214         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
25215         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
25216         to match any use of \<hash_pjw\>, i.e., not necessarily with a
25217         following " (".
25219 2012-01-17  Jim Meyering  <meyering@redhat.com>
25221         maint: enable double-word-prohibiting rule
25222         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
25223         Exempt three files.
25225 2012-01-17  Jim Meyering  <meyering@redhat.com>
25227         maint: remove empty lines at EOF, but excluding modules/*
25228         Apply syntax rules at home as well as abroad.  Most changes
25229         were induced by running this:
25230           make srcdir=. _build-aux=build-aux -f top/maint.mk \
25231             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
25232             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
25233         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
25234         Exempt modules/* and two binary files.
25235         Also exempt doc/INSTALL*, per request from Bruno Haible.
25236         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
25237         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
25238         * doc/Copyright/request-assign.future: Likewise.
25239         * doc/Copyright/request-disclaim.changes: Likewise.
25240         * doc/INSTALL: Likewise.
25241         * doc/INSTALL.ISO: Likewise.
25242         * doc/INSTALL.UTF-8: Likewise.
25243         * doc/acl-cygwin.txt: Likewise.
25244         * doc/acl-resources.txt: Likewise.
25245         * doc/fdl-1.2.texi: Likewise.
25246         * doc/fdl-1.3.texi: Likewise.
25247         * doc/fdl.texi: Likewise.
25248         * lib/argp-pin.c: Likewise.
25249         * lib/round.c: Likewise.
25250         * lib/unicase/u16-totitle.c: Likewise.
25251         * lib/unictype/block_test.c: Likewise.
25252         * lib/uninorm/canonical-decomposition.c: Likewise.
25253         * m4/README: Likewise.
25254         * m4/relocatable-lib.m4: Likewise.
25255         * tests/test-isnand-nolibm.c: Likewise.
25256         * tests/test-isnand.c: Likewise.
25257         * tests/uninorm/NormalizationTest.txt: Likewise.
25259 2012-01-17  Jim Meyering  <meyering@redhat.com>
25261         maint: add framework to run syntax-check rules against gnulib sources
25262         * cfg.mk: New file, to disable all currently-failing tests.
25263         We'll enable them one by one, as they are made to pass.
25264         * Makefile (sc_maint): New rule.
25266 2012-01-21  Bruno Haible  <bruno@clisp.org>
25268         stdint: Add support for Android.
25269         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
25270         include the system's <stdint.h>.
25271         Reported by Simon Josefsson <simon@josefsson.org>.
25273 2012-01-19  Jim Meyering  <meyering@redhat.com>
25275         bootstrap: add bootstrap_post_import_hook
25276         Bison does still need something like the gnulib_mk_hook whose
25277         invocation I had to remove along with slurp in commit 767ccd40.
25278         Technically, we could get along without it, but doing so would
25279         have required living with a warning and a mandatory post-bootstrap
25280         automake rerun.
25281         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
25282         (bootstrap_post_import_hook): New function.
25283         Invoke it after gnulib-tool --import and before autoreconf.
25285 2012-01-18  Jim Meyering  <meyering@redhat.com>
25287         gitlog-to-changelog: don't use "no_"-prefixed variable name
25288         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
25289         to enable both --cluster and --no-cluster.  Change variable name,
25290         s/\$no_cluster/$cluster/, and reverse usage to match.
25292         gitlog-to-changelog: use "||", not "or" in expressions
25293         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
25294         expressions.
25296 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
25298         gitlog-to-changelog: new option --no-cluster
25299         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
25300         clustering of adjacent commit messages.
25302 2012-01-17  Jim Meyering  <meyering@redhat.com>
25304         maint: spell file systems with two words, not one
25305         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
25306         two words, not one.
25308 2012-01-16  Jim Meyering  <meyering@redhat.com>
25310         bootstrap: add a FIXME comment to ensure we eventually remove the hack
25311         * build-aux/bootstrap (gnulib_tool_options): Add comment.
25313 2012-01-16  Eric Blake  <eblake@redhat.com>
25315         bootstrap: cater to autoconf 2.59
25316         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
25317         is not available.
25319         bootstrap: properly check for libtool
25320         * build-aux/bootstrap (libtoolize): Also run libtool when older
25321         usage is detected.
25323 2012-01-15  Bruno Haible  <bruno@clisp.org>
25325         Improve support for MSVC 9.
25326         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
25327         clashes on MSVC.
25328         * lib/fcntl.in.h: Likewise.
25329         * lib/stdlib.in.h: Likewise.
25330         * lib/sys_stat.in.h: Likewise.
25332 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
25334         gnupload: we hold the master copy of this script now
25335         For motivation and more information, see:
25336         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
25337         * build-aux/gnupload: Make it clear in the heading comments that the
25338         master copy of this file is maintained by gnulib.  Since we are at
25339         it, bump its copyright year and ...
25340         ($scriptversion): ... the date in its version.
25341         ($usage): Patches and bug reports should be sent to the gnulib list,
25342         not the automake one.
25343         * config/srclist.txt: Don't try to sync 'gnupload' from automake
25344         anymore.
25346 2012-01-15  Bruno Haible  <bruno@clisp.org>
25348         Fix module 'random'.
25349         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
25350         initstate, setstate are declared.
25352 2012-01-14  Bruno Haible  <bruno@clisp.org>
25354         Tests for module 'random'.
25355         * modules/random-tests: New file.
25356         * tests/test-random.c: New file, based on tests/test-random_r.c.
25358         New module 'random'.
25359         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
25360         declarations.
25361         * lib/random.c: New file, based on glibc/stdlib/random.c.
25362         * m4/random.m4: New file.
25363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
25364         HAVE_RANDOM.
25365         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
25366         * modules/random: New file.
25367         * config/srclist.txt: Add an entry for random.c.
25368         * doc/posix-functions/random.texi: Mention the 'random' module.
25369         * doc/posix-functions/initstate.texi: Likewise.
25370         * doc/posix-functions/setstate.texi: Likewise.
25371         * doc/posix-functions/srandom.texi: Likewise.
25373 2012-01-12  Bruno Haible  <bruno@clisp.org>
25375         random_r: Use common idioms.
25376         * lib/random_r.c: Include <stdlib.h> first.
25378         random_r: Override incompatible API on AIX, OSF/1.
25379         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
25380         Override the system function if REPLACE_RANDOM_R is 1.
25381         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
25382         and OSF/1, set REPLACE_RANDOM_R.
25383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
25384         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
25385         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
25386         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
25387         * doc/glibc-functions/random_r.texi: Likewise.
25388         * doc/glibc-functions/setstate_r.texi: Likewise.
25390         random_r: Support for MSVC 9.
25391         * lib/random_r.c: Include stdint.h, not inttypes.h.
25393 2012-01-12  Eric Blake  <eblake@redhat.com>
25395         inet_ntop: guard extra work by IF_LINT
25396         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
25397         better code generation when not checking for warnings.
25398         Suggested by Paul Eggert and Jim Meyering.
25400         strptime: fix regression on mingw
25401         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
25402         Fix regression.  Reported by Bruno Haible.
25404 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
25405             Bruno Haible  <bruno@clisp.org>
25407         copy-file: add error-code-returning variant.
25408         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
25409         (qcopy_file_preserving): New declaration.
25410         * lib/copy-file.c (qcopy_file_preserving): Renamed from
25411         copy_file_preserving. Change return type to 'int'. Don't emit an error
25412         message here.
25413         (copy_file_preserving): New function.
25414         * tests/test-copy-file.c: Include <stdlib.h>.
25415         (main): Test qcopy_file_preserving if the environment variable
25416         NO_STDERR_OUTPUT is set.
25417         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
25418         with NO_STDERR_OUTPUT
25419         * tests/test-copy-file-2.sh: Likewise.
25421 2012-01-10  Bruno Haible  <bruno@clisp.org>
25423         copy-file: Use 'quote' module consistently.
25424         * lib/copy-file.c (copy_file_preserving): Use quote().
25426         copy-file: Refactor.
25427         * lib/copy-file.c: Include quote.h.
25428         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
25429         message here.
25430         * modules/copy-file (Depends-on): Add quote.
25432         acl: Export qcopy_acl.
25433         * lib/acl.h (qcopy_acl): New declaration.
25434         * lib/copy-acl.c (qcopy_acl): Make non-static.
25436         acl: Rename a local variable.
25437         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
25439         acl: Align return values of copy_acl and qcopy_acl.
25440         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
25441         maybe < -1.
25443 2012-01-11  Eric Blake  <eblake@redhat.com>
25445         strptime: silence gcc warnings
25446         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
25447         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
25448         Reported by Daniel P. Berrange.
25450         inet_ntop: silence gcc warning
25451         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
25452         Reported by Daniel P. Berrange.
25454 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
25456         getloadavg test: skip the test on GNU/Linux without /proc mounted
25457         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
25458         file.  When /proc is not mounted, it always fails with ENOENT.
25459         * tests/test-getloadavg.c (main): Treat ENOENT return code from
25460         getloadavg(3) the same way as ENOSYS and ENOTSUP.
25462 2012-01-10  Bruno Haible  <bruno@clisp.org>
25464         regex: Avoid link error on MSVC 9.
25465         * modules/regex (Depends-on): Add wctype.
25467 2012-01-10  Bruno Haible  <bruno@clisp.org>
25469         doc: Mention --with-tests option.
25470         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
25471         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
25472         --with-tests.
25473         Reported by Reuben Thomas.
25475 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
25477         users.txt: order package names lexicographically.
25478         * users.txt: Order package names lexicographically.
25480 2012-01-10  Jim Meyering  <meyering@redhat.com>
25482         maint.mk: fix description in comment
25483         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
25485         ignore-value: remove deprecated ignore_ptr function
25486         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
25487         * NEWS: Note this.
25489 2012-01-09  Jim Meyering  <meyering@redhat.com>
25491         test-init.sh: avoid a subshell
25492         * tests/test-init.sh: Remove protective subshell.
25493         Suggested by Bernhard Voelker.  While a subshell is normally
25494         required to protect against older shells (Solaris, FreeBSD) that
25495         warn about a missing program before performing redirection, the
25496         shell-selection tests performed by init.sh probably exclude any
25497         offending shell.
25499 2012-01-08  Bruno Haible  <bruno@clisp.org>
25501         setlocale tests: Avoid test failure on Solaris 11.0.
25502         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
25503         variable.
25505 2012-01-08  Bruno Haible  <bruno@clisp.org>
25507         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
25508         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25509         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
25510         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
25511         macro.
25512         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
25513         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
25514         * lib/spawn_faction_addopen.c: Add workaround implementation if
25515         HAVE_WORKING_POSIX_SPAWN.
25516         * modules/spawn (Makefile): Substitute
25517         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
25518         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
25519         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
25520         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
25521         (Depends-on): Update conditions.
25522         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
25523         the Solaris 11 bug.
25525 2012-01-08  Bruno Haible  <bruno@clisp.org>
25527         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
25528         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25529         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
25530         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
25531         macro.
25532         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
25533         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
25534         * lib/spawn_faction_adddup2.c: Add workaround implementation if
25535         HAVE_WORKING_POSIX_SPAWN.
25536         * modules/spawn (Makefile): Substitute
25537         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
25538         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
25539         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
25540         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
25541         (Depends-on): Update conditions.
25542         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
25543         the Solaris 11 bug.
25545 2012-01-08  Bruno Haible  <bruno@clisp.org>
25547         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
25548         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25549         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
25550         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
25551         HAVE_WORKING_POSIX_SPAWN.
25552         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
25553         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
25554         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
25555         * lib/spawn_faction_addclose.c: Add workaround implementation if
25556         HAVE_WORKING_POSIX_SPAWN.
25557         * modules/spawn (Makefile): Substitute
25558         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
25559         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
25560         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
25561         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
25562         (Depends-on): Update conditions.
25563         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
25564         the Solaris 11 bug.
25566 2012-01-08  Bruno Haible  <bruno@clisp.org>
25568         doc: Update for Solaris 11.0.
25569         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
25570         * m4/printf.m4: Update comments.
25572 2012-01-08  Bruno Haible  <bruno@clisp.org>
25574         mktime: Avoid compilation error on Solaris 11.
25575         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
25577 2012-01-08  Bruno Haible  <bruno@clisp.org>
25579         doc: Small fix.
25580         * doc/posix-headers/nl_types.texi: Correct platforms list.
25582 2012-01-08  Simon Josefsson  <simon@josefsson.org>
25584         Add lgpl-3.0 module.
25585         * MODULES.html.sh (Support for building documentation): Add
25586         lgpl-3.0.
25587         * modules/lgpl-3.0: New file.
25589 2012-01-08  Jim Meyering  <meyering@redhat.com>
25591         select.c: indent with spaces, not TABs
25592         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
25594 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25596         quotearg: do not use grave accent for left quote
25597         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
25598         locale_quoting_style.
25599         (quotearg_buffer_restyled): Fix example.
25600         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
25602 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25604         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
25605         Most programs do not have translation catalogs for English and much
25606         less separate catalogs for British and American English.  Drop the
25607         suggestion to translators about these two, and provide it
25608         automatically for Unicode locales.  Like most programs, even those
25609         using American English, we use single quotation marks.  This conflicts
25610         with the American typographic convention, but works better when you
25611         cite the entire error message within double quotes.  It also tries not
25612         to clash with established practice and with what non-gnulib programs
25613         will usually do.
25614         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
25615         using an UTF-8 or GB-18030 locale.  The list of other locales with
25616         quotes was provided by Bruno Haible.
25617         (quotearg_buffer_restyled): Adjust instructions to translators.
25618         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
25619         text, since this would be wrong when using Unicode.
25620         * modules/quotearg: Depend on c-strcaseeq.
25622 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25624         quotearg: fix Wikipedia link
25625         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
25627 2012-01-07  Simon Josefsson  <simon@josefsson.org>
25629         Fix for mingw with MSVC9.
25630         * m4/ld-version-script.m4: Check that compiler rejects version
25631         scripts with syntax errors.  Reported by Bruno Haible
25632         <bruno@clisp.org>.
25634 2012-01-06  Bruno Haible  <bruno@clisp.org>
25636         Talk about "native Windows API", not "Woe32".
25637         * lib/accept4.c: Update comments to mention native Windows.
25638         * lib/execute.c: Likewise.
25639         * lib/fatal-signal.c: Likewise.
25640         * lib/localcharset.c: Likewise.
25641         * lib/nanosleep.c: Likewise.
25642         * lib/nl_langinfo.c: Likewise.
25643         * lib/pclose.c: Likewise.
25644         * lib/pipe-filter-gi.c: Likewise.
25645         * lib/pipe-filter-ii.c: Likewise.
25646         * lib/pipe.c: Likewise.
25647         * lib/pipe2.c: Likewise.
25648         * lib/popen.c: Likewise.
25649         * lib/progreloc.c: Likewise.
25650         * lib/relocatable.c: Likewise.
25651         * lib/sigaction.c: Likewise.
25652         * lib/sigprocmask.c: Likewise.
25653         * lib/spawn-pipe.h: Likewise.
25654         * lib/spawn-pipe.c: Likewise.
25655         * lib/spawni.c: Likewise.
25656         * lib/stat-time.h: Likewise.
25657         * lib/w32spawn.h: Likewise.
25658         * tests/test-isatty.c: Likewise.
25659         * lib/config.charset: More comments.
25660         * doc/gnulib-intro.texi: Mention native Windows.
25661         * doc/posix-functions/_Exit_C99.texi: Likewise.
25662         * doc/posix-headers/fcntl.texi: Likewise.
25664 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
25666         argp: Avoid crash if translator uses % characters in a translation.
25667         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
25668         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
25670 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25672         doc: C11 and C++11 are now official
25673         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
25674         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
25675         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
25676         * modules/stdalign:
25677         Replace references to draft C1X to C11, and to draft C++0X to C++11.
25679 2012-01-06  Bruno Haible  <bruno@clisp.org>
25681         uc-is-grapheme-break tests: Tweak.
25682         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
25683         message.
25685 2012-01-06  Bruno Haible  <bruno@clisp.org>
25687         test-init.sh: correct the test for diff -u
25688         * tests/test-init.sh: Also redirect stdout to /dev/null.
25690 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25692         Use ', not `, for quoting output.
25693         * build-aux/announce-gen (usage, sizes, print_news_deltas)
25694         (print_changelog_deltas, get_tool_versions, main program):
25695         * build-aux/git-version-gen:
25696         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
25697         * build-aux/move-if-change (help):
25698         * build-aux/useless-if-before-free (usage, main program):
25699         * check-module (parse_module_file, usage)
25700         (find_included_lib_files, check_module):
25701         * lib/argmatch.c (main) [TEST]:
25702         * lib/argp-help.c (_help):
25703         * lib/getopt1.c (main) [TEST]:
25704         * lib/git-merge-changelog.c (usage):
25705         * lib/xstrtol-error.c (xstrtol_error):
25706         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
25707         * m4/argz.m4 (gl_FUNC_ARGZ):
25708         * m4/bison.m4 (gl_BISON):
25709         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
25710         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
25711         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25712         * m4/fpending.m4 (gl_PREREQ_FPENDING):
25713         * m4/gc-random.m4 (gl_GC_RANDOM):
25714         * m4/intl.m4 (gt_CHECK_DECL):
25715         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
25716         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
25717         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
25718         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
25719         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
25720         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
25721         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
25722         * tests/test-dirname.c (main):
25723         * tests/test-getpass.c (main):
25724         * tests/test-iconvme.c (main):
25725         * tests/test-parse-datetime.c (LOG):
25726         * tests/test-xstrtoimax.sh:
25727         * tests/test-xstrtol.sh:
25728         * tests/test-xstrtoll.sh:
25729         * tests/test-xstrtoumax.sh:
25730         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
25731         * top/GNUmakefile (abort-due-to-no-makefile):
25732         Quote 'like this', not `like this', as per the recent change to
25733         the GNU coding standards.
25735 2012-01-05  Bruno Haible  <bruno@clisp.org>
25737         strtoimax: Don't force a replacement on systems where intmax_t is int.
25738         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
25739         'intmax_t' is not larger than 'int'.
25740         Reported by Pádraig Brady <P@draigBrady.com>.
25742 2012-01-05  Bruno Haible  <bruno@clisp.org>
25744         doc: Mention NetBSD bugs.
25745         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
25746         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
25748 2012-01-05  Bruno Haible  <bruno@clisp.org>
25750         strtoumax tests: Enhance tests.
25751         * tests/test-strtoumax.c (main): Add tests for large values.
25753 2012-01-05  Bruno Haible  <bruno@clisp.org>
25755         strtoimax: Work around AIX 5.1 bug.
25756         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
25757         definition.
25758         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
25759         Set HAVE_STRTOIMAX.
25760         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
25761         REPLACE_STRTOIMAX.
25762         * modules/inttypes-incomplete (Makefile.am): Substitute
25763         REPLACE_STRTOIMAX.
25764         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
25765         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
25766         (Depends-on): Update conditions.
25767         * tests/test-strtoimax.c (main): Add tests for large values.
25768         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
25770 2012-01-05  Bruno Haible  <bruno@clisp.org>
25772         inttypes: Modernize.
25773         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
25774         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
25775         (Makefile.am): Update inttypes.h rule.
25777 2012-01-05  Jim Meyering  <meyering@redhat.com>
25779         init.sh: don't waste a subshell just to redirect stderr
25780         * tests/init.sh: In testing for diff -u and diff -c, use a
25781         stderr-redirecting exec inside `...` rather than a subshell.
25783         test-init.sh: avoid failure on HP-UX 11.00
25784         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
25785         resolves to diff -c or cmp.  Reported by Bruno Haible.
25787 2012-01-05  Bruno Haible  <bruno@clisp.org>
25789         Tests for module 'strtoull'.
25790         * modules/strtoull-tests: New file.
25791         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
25793 2012-01-05  Bruno Haible  <bruno@clisp.org>
25795         Tests for module 'strtoll'.
25796         * modules/strtoll-tests: New file.
25797         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
25799 2012-01-05  Bruno Haible  <bruno@clisp.org>
25801         Tests for module 'strtoul'.
25802         * modules/strtoul-tests: New file.
25803         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
25805 2012-01-05  Bruno Haible  <bruno@clisp.org>
25807         Tests for module 'strtol'.
25808         * modules/strtol-tests: New file.
25809         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
25811 2012-01-04  Jim Meyering  <meyering@redhat.com>
25813         test-init.sh: accommodate Solaris 5.10's different diff -u output
25814         * tests/test-init.sh: Also exempt @@ lines from the comparison
25815         of diff output, since Solaris 5.10 and GNU diff formats differ.
25816         Reported by Stefano Lattarini.
25818 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25820         test-posixtm: don't assume signed integer wraparound
25821         * tests/test-posixtm.c (main): Don't assume wraparound semantics
25822         after signed integer overflow.  Inspired by (though it may not
25823         fix) Bruno Haible's bug report in
25824         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
25826         Spell out "Windows 9x" and "Windows XP".
25827         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
25828         "Windows 9x" and "WinXP" with "Windows XP".
25830 2012-01-04  Jim Meyering  <meyering@redhat.com>
25832         test-vc-list-files-cvs.sh: remove obsolete comment
25833         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
25834         double exit.  Now that's all encapsulated via skip_ and Exit.
25836 2012-01-04  Bruno Haible  <bruno@clisp.org>
25838         Talk about "native Windows API", not "Win32".
25839         * lib/classpath.c: Update comments to mention native Windows.
25840         * lib/csharpexec.c: Likewise.
25841         * lib/dup2.c: Likewise.
25842         * lib/error.c: Likewise.
25843         * lib/fcntl.c: Likewise.
25844         * lib/filename.h: Likewise.
25845         * lib/findprog.c: Likewise.
25846         * lib/get-rusage-as.c: Likewise.
25847         * lib/get-rusage-data.c: Likewise.
25848         * lib/getpagesize.c: Likewise.
25849         * lib/javaexec.c: Likewise.
25850         * lib/msvc-inval.c: Likewise.
25851         * lib/msvc-nothrow.c: Likewise.
25852         * lib/nanosleep.c: Likewise.
25853         * lib/nonblocking.c: Likewise.
25854         * lib/printf-parse.c: Likewise.
25855         * lib/setlocale.c: Likewise.
25856         * lib/sigaction.c: Likewise.
25857         * lib/strerror_r.c: Likewise.
25858         * lib/tmpdir.c: Likewise.
25859         * lib/vasnprintf.c: Likewise.
25860         * lib/w32spawn.h: Likewise.
25861         * lib/waitpid.c: Likewise.
25862         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
25863         * m4/locale-ar.m4: Likewise.
25864         * m4/locale-fr.m4: Likewise.
25865         * m4/locale-ja.m4: Likewise.
25866         * m4/locale-tr.m4: Likewise.
25867         * m4/locale-zh.m4: Likewise.
25868         * m4/printf.m4: Likewise.
25869         * tests/test-cloexec.c: Likewise.
25870         * tests/test-copy-acl.sh: Likewise.
25871         * tests/test-copy-file.sh: Likewise.
25872         * tests/test-file-has-acl.sh: Likewise.
25873         * tests/test-set-mode-acl.sh: Likewise.
25874         * tests/test-dup-safer.c: Likewise.
25875         * tests/test-dup2.c: Likewise.
25876         * tests/test-dup3.c: Likewise.
25877         * tests/test-fcntl.c: Likewise.
25878         * tests/test-nonblocking-pipe.h: Likewise.
25879         * tests/test-nonblocking-socket.h: Likewise.
25880         * tests/test-pipe.c: Likewise.
25881         * tests/test-pipe2.c: Likewise.
25882         * tests/test-spawn-pipe-child.c: Likewise.
25883         * doc/acl-resources.txt: Likewise.
25884         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25885         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
25886         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
25887         * lib/localcharset.c: Update comments to mention native Windows.
25888         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25889         * lib/localename.c: Likewise.
25890         * lib/progreloc.c: Likewise.
25891         * lib/relocatable.c: Likewise.
25892         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
25893         (windows_compute_revents): Renamed from win32_compute_revents.
25894         (windows_compute_revents_socket): Renamed from
25895         win32_compute_revents_socket.
25896         * lib/select.c: Update comments to mention native Windows.
25897         (windows_poll_handle): Renamed from win32_poll_handle.
25898         * m4/threadlib.m4: Update comments to mention native Windows.
25899         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
25900         --enable-threads=windows instead of --enable-threads=win32. Set
25901         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
25902         * lib/glthread/lock.h: Update comments to mention native Windows.
25903         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
25904         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
25905         USE_WIN32_THREADS.
25906         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
25907         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
25908         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
25909         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
25910         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
25911         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
25912         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
25913         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
25914         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
25915         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
25916         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
25917         * tests/test-tls.c: Likewise.
25918         Rationale:
25919         Microsoft renamed the "Win32 API" to "Windows API", as it is available
25920         on both 32-bit and 64-bit Windows systems.
25921         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
25922         line of distinction is between "native Windows" on one side and Unix/
25923         POSIX systems on the other side. More details in
25924         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
25925         Suggested by Paul Eggert.
25927 2012-01-03  Bruno Haible  <bruno@clisp.org>
25929         isatty: Support for MSVC 9.
25930         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
25931         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
25932         (_isatty_nothrow): New function.
25933         (isatty): Use it instead of _isatty.
25934         (IsConsoleHandle): Add comment, from Paolo Bonzini.
25935         * lib/poll.c (IsConsoleHandle): Likewise.
25936         * lib/select.c (IsConsoleHandle): Likewise.
25937         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
25938         (gl_PREREQ_ISATTY): New macro.
25939         * modules/isatty (Depends-on): Add msvc-inval.
25940         (configure.ac): Invoke gl_PREREQ_ISATTY.
25942 2012-01-03  Jim Meyering  <meyering@redhat.com>
25944         maint.mk: remove temporary transition aid from over 1.5 years ago
25945         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
25946         purpose was to aid in the transition (avoiding silent malfunction)
25947         from that old name to the new _sc_search_regexp.  This shim was
25948         added by commit 219c504b.
25950         init.sh: do not try to accommodate compare arguments starting with "-"
25951         * tests/init.sh (compare_dev_null_): Do not try to accommodate
25952         compare arguments that start with "-".  Besides, we do not worry
25953         about this when invoking diff or cmp; why start now with sed?
25954         Using "--" to separate options from argument would trigger sed
25955         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
25956         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
25958 2012-01-02  Bruno Haible  <bruno@clisp.org>
25960         Enhance tests for module 'isatty'.
25961         * modules/isatty-tests (Depends-on): Add pipe-posix.
25962         * tests/test-isatty.c: Include <fcntl.h>.
25963         (DEV_NULL): New macro.
25964         (main): Test the resut of isatty() also on regular files, pipes, and
25965         /dev/null.
25967         New module 'isatty'.
25968         * lib/unistd.in.h (isatty): New declaration.
25969         * lib/isatty.c: New file, based on an idea of
25970         Bastien Roucariès <roucaries.bastien@gmail.com>.
25971         * m4/isatty.m4: New file.
25972         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
25973         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
25974         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
25975         REPLACE_ISATTY.
25976         * modules/isatty: New file.
25977         * doc/posix-functions/isatty.texi: Mention the new module.
25978         Suggested by Paolo Bonzini.
25980 2012-01-02  Bruno Haible  <bruno@clisp.org>
25982         canonicalize: Tweak 2011-12-29 commit.
25983         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
25984         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
25986 2012-01-02  Jim Meyering  <meyering@redhat.com>
25988         gitlog-to-changelog: describe input syntax in --help output
25989         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
25991         gitlog-to-changelog: fix typo in --help: show backslash before email @
25992         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
25993         in sources, but not in actual output.
25995 2011-12-30  Jim Meyering  <meyering@redhat.com>
25997         gitlog-to-changelog: don't malfunction when name contains %-directive
25998         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
25999         in a name string cause trouble.  E.g., with a user name of "%s",
26000         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
26002 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
26004         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
26005         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
26006         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
26007         the "  (tiny change)" notation that is appended to the standard
26008         ChangeLog "date  name  email" header line.
26010 2012-01-01  Jim Meyering  <meyering@redhat.com>
26012         test-framework-sh: init.sh: fix "make dist" failure
26013         When using gnulib-tool's --with-tests option and any module that
26014         depends on test-framework-sh, "make dist" would fail due to the
26015         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
26016         in the gltests directory, and not in the gllib/ directory.
26017         One way to work around that is to move the EXTRA_DIST += init.sh
26018         from the primary module to the -tests one:
26019         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
26020         * modules/test-framework-sh (Makefile.am): ...not here.
26021         Reported by Tom G. Christensen in
26022         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
26024         version-etc: update copyright year reported by --version
26025         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
26027 2011-12-31  Pádraig Brady  <P@draigBrady.com>
26029         canonicalize: only stat() if required
26030         * lib/canonicalize.c (canonicalize_filename_mode):
26031         Avoid calling l?stat() when both CAN_MISSING,
26032         and CAN_NOLINKS are set, as we neither need
26033         to resolve symlinks or test component existence.
26035 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
26037         doc: cover st_ino issues once; add OpenVMS etc.
26038         * doc/posix-functions/stat.texi (stat):
26039         * doc/posix-functions/lstat.texi (lstat):
26040         * doc/posix-functions/fstatat.texi (fstatat):
26041         * doc/posix-functions/fstat.texi (fstat):
26042         Move general 'struct stat' stuff to sys_stat.texi,
26043         leaving behind a pointer.
26044         * doc/posix-headers/sys_stat.texi (sys/stat.h):
26045         Merge duplicate info about 'struct stat' problems into here.
26046         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
26047         and suggest partial workarounds.
26049         same-inode: port to OpenVMS
26050         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
26051         three st_ino values.
26053 2011-12-30  Pádraig Brady  <P@draigBrady.com>
26055         canonicalize: fix references to stat() and lstat()
26056         * lib/canonicalize.c (canonicalize_filename_mode):
26057         Ensure references always resolve to a replacement
26058         function if required (even via a macro).
26060 2011-12-30  Jim Meyering  <meyering@redhat.com>
26062         gitlog-to-changelog: remove a little duplication
26063         * build-aux/gitlog-to-changelog (main): Grep @lines once,
26064         rather than twice.
26066 2011-12-29  Pádraig Brady  <P@draigBrady.com>
26068         canonicalize: add support for not resolving symlinks
26069         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
26070         indicate we don't want to follow symlinks.  Also
26071         provide CAN_MODE_MASK to aid setting these existing
26072         mutually exclusive values.
26073         * lib/canonicalize.c (canonicalize_filename_mode):
26074         Extract the flags from can_mode parameter, which
26075         are currently just used to select between stat()
26076         and lstat().  Also ensure that mutually exclusive
26077         values are flagged immediately as invalid.
26078         * tests/test-canonicalize.c: Verify symlinks are
26079         not followed, and that invalid flag combinations
26080         are diagnosed.
26082 2011-12-25  Jim Meyering  <meyering@redhat.com>
26084         gitlog-to-changelog: do not clump multi-paragraph entries
26085         Identical header lines (date,name,email+coauthors) are suppressed,
26086         thus putting all entries with those same characteristics under
26087         a single header.  However, when a log entry consists of two or
26088         more paragraphs, it may not be clear where it starts and ends.
26089         This change makes it so that such an entry is always separated
26090         from others by a header line, even when that header would
26091         otherwise be suppressed.
26092         * build-aux/gitlog-to-changelog: Implement the above.
26093         Inspired by a related request from Stefano Lattarini in
26094         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
26096 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26098         announce-gen: fix `cmd' typo in diagnostic
26099         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
26100         diagnostic: a missing '$' meant that the command was not output.
26102 2011-12-23  Jim Meyering  <meyering@redhat.com>
26104         test-framework-sh: distribute init.sh
26105         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
26106         Otherwise, "make -C gnulib-tests check" (at least in grep) would
26107         fail due to the lack of init.sh.
26109         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
26110         * modules/atexit-tests: Rather than listing tests/init.sh,
26111         now that there's a module for it, simply depend on that new module.
26112         * modules/closein-tests: Likewise.
26113         * modules/exclude-tests: Likewise.
26114         * modules/getcwd-tests: Likewise.
26115         * modules/perror-tests: Likewise.
26116         * modules/pread-tests: Likewise.
26117         * modules/pwrite-tests: Likewise.
26118         * modules/vc-list-files-tests: Likewise.
26119         * modules/verify-tests: Likewise.
26120         * modules/xalloc-die-tests: Likewise.
26121         * modules/xstrtoimax-tests: Likewise.
26122         * modules/xstrtol-tests: Likewise.
26123         * modules/xstrtoll-tests: Likewise.
26124         * modules/xstrtoumax-tests: Likewise.
26125         * modules/yesno-tests: Likewise.
26127 2011-12-22  Jim Meyering  <meyering@redhat.com>
26129         test-framework-sh: add minimal tests of init.sh's compare function
26130         * modules/test-framework-sh-tests: New file.
26131         * tests/test-init.sh: New file.
26133         test-framework-sh: new module
26134         * modules/test-framework-sh: New file.
26135         * MODULES.html.sh (Support for maintaining and releasing projects):
26136         List it.
26138         init.sh: do not emit simulated diff output to stderr
26139         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
26141 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
26143         .gitignore: ignore gnulib.dvi and regex.info
26144         * doc/.gitignore:add gnulib.dvi and regex.info
26146 2011-12-22  Jim Meyering  <meyering@redhat.com>
26148         init.sh: correct previous change
26149         * tests/init.sh (compare): My previous change was wrong.
26150         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
26152         init.sh: avoid unwarranted test failure when using "set -e"
26153         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
26154         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
26155         a use like "compare exp out" would get evoke an unconditional failure.
26157 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
26159         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
26160         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
26161         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
26162         autoreconf that did not.
26163         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
26164         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
26166 2011-12-17  Jim Meyering  <meyering@redhat.com>
26168         bootstrap: remove some now-unneeded code
26169         This script arose back when gnulib-tool was young.
26170         Since then, it has seen improvements that render much of this
26171         script unnecessary.  In particular, it can now make symlinks
26172         to the files it uses.  Also, I no longer see as much value in
26173         marking files as read-only via comments.
26174         If you relied on the symlink-creation feature of the preceding
26175         version of this script, you can get most of that functionality
26176         by adding the --symlink option to the definition of
26177         gnulib_tool_option_extras in your bootstrap.conf file.
26178         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
26179         Run autopoint and libtoolize *before* gnulib-tool.
26180         After it, run an abbreviated autoreconf, rather than a loop around
26181         all tools.
26182         (slirp, bt_mark_as_generated): Remove functions.
26184 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26186         ftoastr: fix typo
26187         * lib/ftoastr.h: Fix misspelling in comment.
26189 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
26191         * top/README-release: fix punctuation.
26193 2011-12-17  Jim Meyering  <meyering@redhat.com>
26195         bootstrap: correct the recent buildreq change
26196         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
26197         had no effect.
26198         * build-aux/bootstrap (buildreq): Bracket each search term with
26199         "*...*", so that the shell "case" statement works as intended.
26200         Add comments.
26202 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
26204         build: let bootstrap resort to wget when downloading .po files
26205         * build-aux/bootstrap (download_po_files): Fallback to wget when
26206         downloading the .po files via rsync fails.  This is necessary to
26207         bootstrap from behind a strict firewall.
26209 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26211         stdint: don't assume C++11 when compiling with g++
26212         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
26213         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
26214         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
26215         work also in C++ before C++11, as that improperly inhibits
26216         generating a substitute stdint.h for that case.
26218 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26220         alloca: protect comment from gnulib-tool
26221         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
26222         that gnulib-tool doesn't think it's a license, and munge it to
26223         say "GCC version 3".
26225 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
26227         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
26228         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
26229         $(abs_top_builddir) instead of $(top_builddir).
26231 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
26233         strftime-tests: also test nanoseconds
26234         * tests/test-strftime.c (T): Add a test of %N.
26236 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
26238         inttypes, stdint: add C++11 support
26239         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
26240         when including inttypes.h and stdint.h.  Support this change to
26241         the standard.
26242         * doc/posix-headers/inttypes.texi (inttypes.h):
26243         * doc/posix-headers/stdint.texi (stdint.h): Document this.
26244         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
26245         Define if not defined already, for the benefit of pre-C++11 hosts.
26246         Define the standard format macros (e.g., PRId8) always.
26247         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
26248         Likewise, if __cpluspus.  Define the standard constant and limit
26249         macros (e.g., INT8_C, INT8_MAX) always.
26250         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
26251         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
26252         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
26253         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
26254         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
26255         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
26256         Likewise.
26258 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
26260         nonblocking tests: Fix test failure on Linux/PPC.
26261         Suggested by Prerna Saxena in
26262         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
26263         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
26264         Set to 1100000.
26266 2011-12-12  Jim Meyering  <meyering@redhat.com>
26268         argmatch: don't hard-code `' when listing valid option arguments
26269         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
26270         use the quote function to add quotes.  Use fputs rather than
26271         fprintf for the format string with no format directive.
26273 2011-12-07  Eric Blake  <eblake@redhat.com>
26275         bootstrap: detect tools required by gnulib-tool
26276         * build-aux/bootstrap (buildreq): Provide minimum implicit
26277         dependencies.
26278         * DEPENDENCIES: Mention patch as a prereq.
26280 2011-12-04  Bruno Haible  <bruno@clisp.org>
26282         sethostname: Port to Windows platforms.
26283         * lib/sethostname.c: Provide an alternate implementation for Windows
26284         platforms.
26285         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
26286         (main): Skip the test if sethostname() fails with EPERM. On Windows
26287         platforms, don't check the result of gethostname().
26289 2011-12-04  Bruno Haible  <bruno@clisp.org>
26290             Jim Meyering  <meyering@redhat.com>
26292         tests: Avoid spurious error message on platforms without mktemp program.
26293         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
26295 2011-12-04  Bruno Haible  <bruno@clisp.org>
26297         sethostname: Fix documentation.
26298         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
26299         "not fixed" section.
26301 2011-12-03  Bruno Haible  <bruno@clisp.org>
26303         gnulib-tool: Verify that the License field is present and non-empty.
26304         * gnulib-tool (func_get_license_raw): New function, extracted from
26305         func_get_license.
26306         (func_get_license): Use it. Warn if the module is not a test module and
26307         has no license.
26308         Suggested by Jim Meyering.
26310 2011-12-03  Bruno Haible  <bruno@clisp.org>
26312         sethostname tests: Fix link error on mingw.
26313         * tests/test-sethostname1.c: New file, extracted from
26314         tests/test-sethostname.c.
26315         * tests/test-sethostname2.c: New file, extracted from
26316         tests/test-sethostname.c.
26317         * tests/test-sethostname.c: Remove file.
26318         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
26319         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
26320         (Depends-on): Add gethostname.
26321         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
26322         Link the latter with $(GETHOSTNAME_LIB).
26324         sethostname tests: Fix compilation error on mingw.
26325         * tests/test-sethostname.c: Don't include <sys/types.h>.
26326         (geteuid): Use a dummy value without uid_t.
26327         * modules/sethostname-tests (Depends-on): Remove sys_types.
26329         sethostname tests: Avoid a gcc warning.
26330         * tests/test-sethostname.c (main): Remove an unused variable.
26332         Tweak last commit.
26333         * modules/sethostname-tests (Files): Sort by decreasing importance.
26334         (configure.ac): Check for geteuid.
26335         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
26336         the test when there's nothing to test. Drop an unnecessary cast.
26337         Improve an error message. Verify that the final sethostname() call
26338         succeeds.
26340 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26342         Add a test suite for the sethostname module.
26343         * modules/sethostname-tests: New file.  A test program
26344         for the sethostname module.
26345         * tests/test-sethostname.c: Likewise.
26347 2011-12-03  Bruno Haible  <bruno@clisp.org>
26349         Tweak last commit.
26350         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
26351         Fix preprocessor directives indentation. Fix typos.
26352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
26353         * modules/unistd (Makefile): Likewise.
26355 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26357         Integrate the sethostname module into unistd.
26358         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
26359         into the unistd.h header.
26360         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
26361         preprocessor directives.
26362         * modules/unistd: Setup the Makefile substitutions of the
26363         SETHOSTNAME preprocessor directives.
26365 2011-12-03  Bruno Haible  <bruno@clisp.org>
26367         Tweak last commit.
26368         * lib/sethostname.c: Don't include <string.h>.
26369         (sethostname): No need to copy the argument string to the stack. Don't
26370         call clearerr. Preserve errno when fprintf failed.
26371         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
26372         Don't invoke AC_REPLACE_FUNCS.
26373         * modules/sethostname (Link): Remove empty section.
26374         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
26375         failure problem.
26377 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26379         New module 'sethostname'.
26380         * lib/sethostname.c (sethostname): New file.  Provide sethostname
26381         for systems that lack it.
26382         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
26383         sethostname declaration and function.
26384         * modules/sethostname: New file.  Define the sethostname module.
26386 2011-12-03  Bruno Haible  <bruno@clisp.org>
26388         Tweak last commit.
26389         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
26391 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26393         Split the HOST_NAME_MAX detection into a separate m4 macro.
26394         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
26395         macro so it can be used by the pending sethostname module.
26397 2011-12-03  Bruno Haible  <bruno@clisp.org>
26399         Fix module descriptions syntax.
26400         * modules/argv-iter (License): Fix syntax.
26401         * modules/di-set (License): Likewise.
26402         * modules/ino-map (License): Likewise.
26403         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
26405 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26407         stdalign: port to Clang 3.0
26408         Problem reported by Simon Josefsson in
26409         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
26410         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
26411         which has <stdalign.h> but which does not define alignof.
26412         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
26414 2011-12-01  Eric Blake  <eblake@redhat.com>
26416         mktempd: silence dd usage
26417         * build-aux/mktempd (rand_bytes): Silence dd.
26419 2011-11-30  Simon Josefsson  <simon@josefsson.org>
26421         manywarnings: Don't mention gcc version in docstring.
26422         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
26423         Jim Meyering <meyering@redhat.com>.
26425 2011-11-30  Jim Meyering  <meyering@redhat.com>
26427         hash: mark a few floating point constants with "f" suffix
26428         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
26429         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
26430         floating point constants with "f", since they're destined to be
26431         saved/used as "float"s.
26433 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
26435         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
26436         * tests/test-float.c (test_long_double): Correct and re-enable the
26437         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
26439 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
26441         Avoid subtracting two pointers that don't point into the same block.
26442         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
26443         only pointers into the same memory block are subtracted. We cannot
26444         assume that sizeof (ptrdiff_t) == sizeof (void *).
26446 2011-11-29  Eric Blake  <eblake@redhat.com>
26448         maint.mk: add syntax check for use of compare from init.sh
26449         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
26450         moved here from coreutils.
26452         manywarnings: drop -Wunsuffixed-float-constants
26453         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
26454         '1.0D', which is the only way to silence this warning for 'double'.
26456 2011-11-29  Jim Meyering  <meyering@redhat.com>
26458         hash: mark compute_bucket_size with the pure attribute
26459         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
26461         quotearg, propername: correct pragma guard expression
26462         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
26463         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
26465 2011-11-28  Jim Meyering  <meyering@redhat.com>
26467         propername: do not mark proper_name with the const attribute
26468         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
26469         since it examines data pointed to by its parameter.
26470         * lib/propername.c (proper_name): Instead, add a pragma to suppress
26471         the suggestion from -Wsuggest-attribute=const.
26473         propername: mark one more function as const
26474         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
26476 2011-11-27  Jim Meyering  <meyering@redhat.com>
26478         mark functions with const and pure attributes
26480         Mark functions per suggestions from gcc-4.6 when using these options:
26481         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
26482         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
26483         Follow these guidelines: when possible, apply the attribute to
26484         an extern declaration, not to its definition.  Apply it to the
26485         definition only when the definition is static.
26486         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
26487         * lib/argv-iter.h (argv_iter_n_args): Likewise.
26488         * lib/base64.h (isbase64): Likewise.
26489         * lib/basename-lgpl.c (last_component, base_len): Likewise.
26490         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
26491         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
26492         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
26493         (c_tolower, c_toupper): Likewise.
26494         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
26495         * lib/chdir-long.c (find_non_slash): Likewise.
26496         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
26497         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
26498         * lib/file-type.h (file_type): Likewise.
26499         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
26500         * lib/filevercmp.c (verrevcmp): Likewise.
26501         * lib/freadahead.h (freadahead): Likewise.
26502         * lib/fts.c (fts_maxarglen): Likewise.
26503         * lib/hash-pjw.h (hash_pjw): Likewise.
26504         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
26505         * lib/hash.c (is_prime, next_prime): Likewise.
26506         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
26507         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
26508         (hash_table_ok, hash_get_first, hash_string): Likewise.
26509         (compute_bucket_size): Likewise.
26510         * lib/i-ring.h (i_ring_empty): Likewise.
26511         * lib/isnan.c (isnanl): Likewise.
26512         * lib/math.h (isnanl, rpl_isnanl): Likewise.
26513         * lib/memcasecmp.h (memcasecmp): Likewise.
26514         * lib/memchr2.h (memchr2): Likewise.
26515         * lib/memcmp2.h (memcmp2): Likewise.
26516         * lib/parse-datetime.y (lookup_zone): Likewise.
26517         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
26518         [!WINDOWS_SOCKETS]: Likewise.
26519         * lib/strnlen1.h (strnlen1): Likewise.
26520         * lib/uniwidth.in.h (uc_width): Likewise.
26521         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
26522         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
26523         (quoting_options_from_style): Add a comment.
26524         * lib/propername.h (proper_name): Add a comment.
26526 2011-11-27  Bruno Haible  <bruno@clisp.org>
26528         Remove unused macros from !_LIBC code in glibc-borrowed files.
26529         * lib/fnmatch.c (STRCOLL): Remove macro.
26530         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
26531         * lib/glob.c (__stat, __readdir64): Remove macros.
26532         * lib/tempname.c (__open64, __xstat64): Remove macros.
26533         Suggested by Paul Eggert.
26535 2011-11-27  Bruno Haible  <bruno@clisp.org>
26537         getcwd: Fix link error on MSVC 9.
26538         * modules/getcwd (Depends-on): Add readdir, rewinddir.
26540 2011-11-27  Bruno Haible  <bruno@clisp.org>
26542         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
26543         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
26544         HAVE_OPENDIR is 0.
26545         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
26546         HAVE_CLOSEDIR is 0.
26547         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
26548         is 0.
26549         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
26551 2011-11-27  Bruno Haible  <bruno@clisp.org>
26553         getcwd: Fix bug from 2011-08-17.
26554         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
26555         platforms that need it.
26556         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
26557         code of 4 to be a failure, not a success. This ensures that
26558         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
26560 2011-11-27  Bruno Haible  <bruno@clisp.org>
26562         binary-io tests: Avoid test failure on mingw when libtool is used.
26563         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
26564         Don't verify the size of t-bin-out1.tmp here.
26565         * tests/test-binary-io.sh: Verify it here.
26566         Reported by Simon Josefsson.
26568 2011-11-26  Bruno Haible  <bruno@clisp.org>
26570         Fix conflict between two instantiations of module 'unistd'.
26571         * gnulib-tool (func_emit_autoconf_snippet): Substitute
26572         ${include_guard_prefix} also in the autoconf snippet.
26573         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
26574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
26575         GNULIB_UNISTD_H_GETOPT.
26576         * modules/getopt-posix (configure.ac): Set the
26577         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
26578         * modules/getopt-gnu (configure.ac): Likewise.
26579         * modules/unistd (Makefile.am): Change the substitution value of
26580         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
26581         Reported by Simon Josefsson.
26583 2011-11-25  Bruno Haible  <bruno@clisp.org>
26585         pagealign_alloc: Doc and comments.
26586         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
26587         module.
26588         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
26590 2011-11-25  Jim Meyering  <meyering@redhat.com>
26592         test-update-copyright.sh: avoid false-positive failure
26593         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
26594         around false positive failure on Cygwin/Windows.  The latter was
26595         matching erroneously-created files with names like
26596         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
26598 2011-11-25  Simon Josefsson  <simon@josefsson.org>
26600         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
26601         * m4/valgrind-tests.m4: Check that the parameters that will be
26602         used works, not just a subset of them.  Reported by Bruno Haible
26603         <bruno@clisp.org>.
26605 2011-11-24  Jim Meyering  <meyering@redhat.com>
26607         test-stdalign.c: comment out long double tests
26608         * tests/test-stdalign.c: Don't try to reduce alignment of long double
26609         variables.  That provokes errors like this from gcc-4.7.0 20111124:
26610         error: '_Alignas' specifiers cannot reduce alignment of \
26611         'static_longdouble_alignas'.
26613 2011-11-22  Jim Meyering  <meyering@redhat.com>
26615         init.sh: make "compare /dev/null FILE" output more readable
26616         * tests/init.sh (compare_): Document the preferred order of arguments.
26617         (emit_diff_u_header_): New function.
26618         (compare_dev_null_): Emit a simulated diff, rather than just the
26619         contents of the unexpected file.  Suggestion from Bruno Haible.
26621 2011-11-21  Jim Meyering  <meyering@redhat.com>
26622             Eric Blake  <eblake@redhat.com>
26624         init.sh: work around OSF/1 5.1's mishandling of /dev/null
26625         * tests/init.sh: Make our compare function slightly more portable.
26626         Reported by Bruno Haible in
26627         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
26629 2011-11-21  Simon Josefsson  <simon@josefsson.org>
26631         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
26632         before using it, in code that ends up in config.h.
26634 2011-11-20  Bruno Haible  <bruno@clisp.org>
26636         getcwd: Work around getcwd bug on AIX 5..7.
26637         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
26638         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
26639         Use a different value for gl_cv_func_getcwd_path_max. Move the
26640         definition of HAVE_PARTLY_WORKING_GETCWD from here...
26641         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
26642         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
26643         Define HAVE_MINIMALLY_WORKING_GETCWD.
26644         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
26645         where it is not even minimally working, that is, on AIX.
26646         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
26647         m4/getcwd-path-max.m4.
26648         (main): Update exit code computation.
26649         * doc/posix-functions/getcwd.texi: Mention list of platforms where
26650         getcwd does not handle long file names.
26652 2011-11-20  Bruno Haible  <bruno@clisp.org>
26654         getcwd: Fix bug from 2009-09-10.
26655         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
26656         like "no".
26658 2011-11-20  Simon Josefsson  <simon@josefsson.org>
26660         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
26662 2011-11-20  Bruno Haible  <bruno@clisp.org>
26664         fma tests: Avoid shadowing local variables.
26665         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
26666         expected.
26668 2011-11-20  Bruno Haible  <bruno@clisp.org>
26670         copysignf tests: Fix.
26671         * tests/test-copysignf.c: Fix signature check.
26673 2011-11-20  Bruno Haible  <bruno@clisp.org>
26675         fma: Remove unused code.
26676         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
26677         unused macros.
26679 2011-11-20  Bruno Haible  <bruno@clisp.org>
26681         sethostname: Fix doc about AIX.
26682         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
26683         sethostname; it has it.
26685         sethostname: Mention more portability problems.
26686         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
26687         problem.
26688         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26690 2011-11-19  Bruno Haible  <bruno@clisp.org>
26692         Depend on module fcntl-h when AT_FDCWD is used.
26693         * modules/utimens (Depends-on): Add fcntl-h.
26694         * modules/areadlinkat (Depends-on): Likewise.
26695         * modules/areadlinkat-with-size (Depends-on): Likewise.
26696         * modules/faccessat (Depends-on): Likewise.
26697         * modules/fchmodat (Depends-on): Likewise.
26698         * modules/fchownat (Depends-on): Likewise.
26699         * modules/getcwd (Depends-on): Likewise.
26700         * modules/mkdirat (Depends-on): Likewise.
26701         * modules/mkfifoat (Depends-on): Likewise.
26702         * modules/readlinkat (Depends-on): Likewise.
26703         * modules/symlinkat (Depends-on): Likewise.
26704         * modules/dup2-tests (Depends-on): Likewise.
26705         * modules/fdutimensat-tests (Depends-on): Likewise.
26706         * modules/futimens-tests (Depends-on): Likewise.
26708 2011-11-19  Bruno Haible  <bruno@clisp.org>
26710         euidaccess: Update a comment.
26711         * lib/euidaccess.c: Update comment about platforms with faccessat.
26713 2011-11-19  Bruno Haible  <bruno@clisp.org>
26715         openat: Fix file list.
26716         * modules/openat (Files): Remove lib/at-func.c.
26718 2011-11-19  Bruno Haible  <bruno@clisp.org>
26720         fstatat: Simplify.
26721         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
26722         gnulib should define rpl_fstatat, there is a
26723         "#define fstatat rpl_fstatat" in <sys/stat.h>.
26725 2011-11-19  Bruno Haible  <bruno@clisp.org>
26727         Ensure 'inline' can be used in tests/test-utimens-common.h.
26728         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
26729         * modules/futimens-tests (configure.ac): Likewise.
26730         * modules/utimens-tests (configure.ac): Likewise.
26731         * modules/utimensat-tests (configure.ac): Likewise.
26733 2011-11-19  Simon Josefsson  <simon@josefsson.org>
26735         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
26736         not hash_insert0.
26737         (hash_insert_if_absent): Doc fix.
26739 2011-11-19  Simon Josefsson  <simon@josefsson.org>
26741         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
26743 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26745         test-getcwd: disambiguate exit status
26746         * tests/test-getcwd.c (test_long_name): Return 0..7.
26747         (main): Exit with an unambiguous exit status.  The old
26748         code yielded a mysterious mixture of two failure codes.
26750         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
26751         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
26752         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
26753         rpl_fstatat or fstatat.  This should fix the other problem
26754         reported by Kai Habel in
26755         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
26756         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
26757         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
26758         and I reproduced it on a Solaris 8 host we still have in production.
26760 2011-11-18  Jim Meyering  <meyering@redhat.com>
26762         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
26763         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
26764         Add a sentence to the comment.
26765         (hash_insert0): New function that simply calls hash_insert_if_absent.
26766         * lib/hash.h (hash_insert_if_absent): Declare it.
26767         (hash_insert0): Add deprecation attribute.
26768         (_GL_ATTRIBUTE_DEPRECATED): Define.
26769         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
26770         not hash_insert0.
26771         * NEWS: Mention it, even though it's not really an incompatible change.
26773 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
26775         openat: avoid compilation failure due to lack of <errno.h> inclusion
26776         * lib/openat.c: Include <errno.h>.
26778 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26780         * modules/getcwd (Depends-on): Add fdopendir.
26781         This fixes one of the two problems reported by Kai Habel in
26782         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
26784         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
26785         stdalign problem reported by Ian Beckwith in
26786         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
26787         * modules/crypto/gc-arcfour (Depends-on):
26788         Depend conditionally on crypto/arcfour.
26789         * modules/crypto/gc-arctwo (Depends-on):
26790         Depend conditionally on crypto/arctwo.
26791         * modules/crypto/gc-des (Depends-on):
26792         Depend conditionally on crypto/des.
26793         * modules/crypto/gc-hmac-md5 (Depends-on):
26794         Depend conditionally on crypto/hmac-md5.
26795         * modules/crypto/gc-hmac-sha1 (Depends-on):
26796         Depend conditionally on crypto/hmac-sha1.
26797         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
26798         * modules/crypto/gc-md4 (Depends-on):
26799         Depend conditionally on crypto/md4.
26800         * modules/crypto/gc-md5 (Depends-on):
26801         Depend conditionally on crypto/md5.
26802         * modules/crypto/gc-rijndael (Depends-on):
26803         Depend conditionally on crypto/rijndael.
26804         * modules/crypto/gc-sha1 (Depends-on):
26805         Depend conditionally on crypto/sha1.
26806         * modules/crypto/gc-arcfour:
26807         * modules/crypto/gc-arctwo:
26808         * modules/crypto/gc-des:
26809         * modules/crypto/gc-hmac-md5:
26810         * modules/crypto/gc-hmac-sha1:
26811         * modules/crypto/gc-md2:
26812         * modules/crypto/gc-md4:
26813         * modules/crypto/gc-md5:
26814         * modules/crypto/gc-rijndael:
26815         * modules/crypto/gc-sha1:
26816         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
26817         now that the conditional dependencies do the work for us.
26819 2011-11-17  Jim Meyering  <meyering@redhat.com>
26821         tests: factor st_ctime-comparison out of two headers
26822         * tests/test-utimens-common.h (ctime_compare): Define.
26823         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
26824         * tests/test-lutimens.h (test_lutimens): Likewise.
26825         * tests/test-utimens.h (test_utimens): Likewise.
26827         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
26828         Invoke the test program via an init.sh-using wrapper.
26829         * tests/test-getcwd.sh: New file.
26830         * modules/getcwd-tests (Files): Add it.
26831         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
26833 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
26835         gitlog-to-changelog: support multi-author commits.
26836         The FSF cares about keeping track of all authors of patches to its
26837         projects, but Git doesn't provide obvious support for multi-author
26838         changesets. Consensus seems to be forming around the use of extra
26839         Signed-off-by inspired lines in the log message formatted as
26840         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
26841         multi-author commits between version control systems.
26842         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
26843         log message and output in standard ChangeLog multi-author format.
26844         Reported by Peter Rosin <peda@lysator.liu.se>
26846 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26847             Bruno Haible  <bruno@clisp.org>
26849         Fix some modules' file list.
26850         * modules/fstatat (Files): Add m4/lstat.m4.
26851         * modules/openat (Files): Likewise.
26852         * modules/unlinkat (Files): Likewise.
26854 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
26856         maint.mk: fix tight-scope.mk generation in VPATH builds.
26857         * top/maint.mk (tight-scope.mk): Make sure to prefix file
26858         reference with $(srcdir) so that the file is found correctly even
26859         when running `make syntax-check' in a VPATH build.
26861 2011-11-13  Bruno Haible  <bruno@clisp.org>
26862             Jim Meyering  <meyering@redhat.com>
26864         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
26865         * tests/init.sh (compare): Remove "No differences encountered" or
26866         synonymous output from the 'diff' program.
26868 2011-11-13  Bruno Haible  <bruno@clisp.org>
26870         Makefile: Tweak indentation.
26871         * Makefile: Use tab as first character in every line that contains rule
26872         commands.
26874 2011-11-13  Bruno Haible  <bruno@clisp.org>
26876         Syntax check for copyright statements.
26877         * check-copyright: New file.
26878         * Makefile (sc_check_copyright): New rule.
26880 2011-11-13  Simon Josefsson  <simon@josefsson.org>
26882         * build-aux/git-version-gen: Add --prefix to configure the tag
26883         match string.
26885 2011-11-13  Simon Josefsson  <simon@josefsson.org>
26887         * build-aux/git-version-gen: Add --help and --version.
26889 2011-11-12  Jim Meyering  <meyering@redhat.com>
26891         revamp the other test-exclude?.sh scripts to use init.sh, too
26892         * tests/test-exclude1.sh: Use init.sh.
26893         * tests/test-exclude2.sh: Likewise.
26894         * tests/test-exclude3.sh: Likewise.
26895         * tests/test-exclude4.sh: Likewise.
26896         * tests/test-exclude5.sh: Likewise.
26897         * tests/test-exclude6.sh: Likewise.
26898         * tests/test-exclude7.sh: Likewise.
26899         * tests/test-exclude8.sh: Likewise.
26900         * modules/exclude-tests (Files): List init.sh.
26902         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
26903         These shell scripts ignored failure of the binary test-exclude,
26904         so making the latter return 77 didn't cause them to be skipped.
26905         * tests/test-exclude5.sh: Exit with test-exclude's error status
26906         when that program fails.  Revamp to use init.sh.
26907         * tests/test-exclude2.sh: Likewise.
26909         test-exclude: fix a typo
26910         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
26912 2011-11-11  Bruno Haible  <bruno@clisp.org>
26914         obstack: Fix compilation error on MSVC 9.
26915         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
26917 2011-11-11  Jim Meyering  <meyering@redhat.com>
26919         test-exclude: skip tests rather than failing on deficient systems
26920         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
26921         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
26922         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
26923         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
26925 2011-11-10  Bruno Haible  <bruno@clisp.org>
26927         ptsname_r test: Avoid gcc warning on glibc systems.
26928         * tests/test-ptsname_r.c (null_ptr): New function.
26929         (test_errors): Use it.
26931 2011-11-10  Bruno Haible  <bruno@clisp.org>
26933         ptsname_r: Avoid compilation error on OSF/1 5.1.
26934         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
26935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
26936         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
26937         function is not declared or incompatibly declared.
26938         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
26939         * modules/ptsname_r (Depends-on, configure.ac): Update.
26940         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
26942 2011-11-10  Bruno Haible  <bruno@clisp.org>
26944         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
26945         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
26946         When cross-compiling, guess yes on all platforms except AIX.
26947         Reported by Ludovic Courtès <ludo@gnu.org>.
26949 2011-11-09  Bruno Haible  <bruno@clisp.org>
26951         ptsname_r tests: Fix bugs.
26952         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
26953         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
26955 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26957         fstatat: work with cross-compilation
26958         Problem reported by Ludovic Courtès in
26959         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
26960         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
26961         "cross-compiling" and assume the bug is present.  Replace
26962         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
26963         an inverted sense, to be more conservative about our assumptions.
26964         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
26966 2011-11-09  Bruno Haible  <bruno@clisp.org>
26968         Improve MODULES.html output.
26969         * modules/mkfifoat (Description): Use the word "function".
26970         * modules/readlinkat (Description): Likewise.
26971         * modules/symlinkat (Description): Likewise.
26973 2011-11-09  Eric Blake  <eblake@redhat.com>
26975         ptsname_r-tests: new test module
26976         * modules/ptsname_r-tests: New module.
26977         * tests/test-ptsname_r.c: New file.
26979         ptsname_r: new module
26980         * modules/ptsname_r: New module.
26981         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
26982         * lib/ptsname.c (__ptsname_r): Split...
26983         * lib/ptsname_r.c: ...into new file.
26984         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
26985         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
26986         * modules/stdlib (Makefile.am): Substitute witnesses.
26987         * lib/stdlib.in.h (ptsname_r): Declare it.
26988         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
26989         * MODULES.html.sh (Misc): Likewise.
26990         * modules/ptsname (Depends-on): Alter dependency.
26991         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
26993 2011-11-09  Jim Meyering  <meyering@redhat.com>
26995         announce-gen: be more concise when there's only one URL+tarball
26996         * build-aux/announce-gen (get_tool_versions): When you distribute
26997         only one type of tarball, combine the first two "Here are..."
26998         sections and make the key-checking grammar independent of
26999         how many tarballs there are.
27001 2011-11-09  Eric Blake  <eblake@redhat.com>
27003         openpty: provide a stub on mingw
27004         * lib/pty.in.h (includes): Provide forward declarations.
27005         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
27007         raise: fix mingw handling of SIGPIPE
27008         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
27010 2011-11-08  Bruno Haible  <bruno@clisp.org>
27012         More conditional dependencies.
27013         * modules/faccessat (Depends-on): Add conditions.
27014         * modules/fchmodat (Depends-on): Likewise.
27015         * modules/fchownat (Depends-on): Likewise.
27016         * modules/fstatat (Depends-on): Likewise.
27017         * modules/mkfifoat (Depends-on): Likewise.
27018         * modules/readlinkat (Depends-on): Likewise.
27019         * modules/symlinkat (Depends-on): Likewise.
27020         * modules/unlinkat (Depends-on): Likewise.
27021         * modules/utimensat (Depends-on): Likewise.
27022         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
27023         * modules/linkat (Depends-on): Refine the conditions.
27024         * modules/renameat (Depends-on): Likewise.
27026 2011-11-08  Bruno Haible  <bruno@clisp.org>
27028         faccessat: Move AC_LIBOBJ invocation to module description.
27029         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
27030         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
27031         invocation from here...
27032         * modules/faccessat (configure.ac): ... to here. Invoke
27033         gl_PREREQ_FACCESSAT.
27035 2011-11-08  Bruno Haible  <bruno@clisp.org>
27037         faccessat: Simplify autoconf macro.
27038         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
27039         gl_FUNC_EUIDACCESS.
27041 2011-11-08  Bruno Haible  <bruno@clisp.org>
27043         renameat: Fix dependencies.
27044         * modules/renameat (Depends-on): Add stdbool.
27046 2011-11-08  Bruno Haible  <bruno@clisp.org>
27048         mkfifoat: Fix module description.
27049         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
27050         not gl_UNISTD_MODULE_INDICATOR.
27052 2011-11-08  Bruno Haible  <bruno@clisp.org>
27054         fstatat: Remove unused dependency.
27055         * modules/fstatat (Depends-on): Remove fstat.
27057 2011-11-08  Simon Josefsson  <simon@josefsson.org>
27059         GNUmakefile: behave when Makefile is missing.
27060         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
27062 2011-11-08  Bruno Haible  <bruno@clisp.org>
27064         openat: Conditionalize dependencies.
27065         * lib/openat.c: Reduce the scope of some #includes.
27066         * modules/openat (Depends-on): Add conditions.
27068 2011-11-07  Jim Meyering  <meyering@redhat.com>
27070         maint.mk: extract GPG key ID without using a temporary file
27071         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
27072         without using a temporary file.  Based on a suggestion from Werner Koch
27073         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
27075 2011-11-07  Eric Blake  <eblake@redhat.com>
27077         grantpt: fix typo
27078         * lib/stdlib.in.h (grantpt): Check correct function.
27080         maint.mk: silence new syntax check
27081         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
27083 2011-11-06  Bruno Haible  <bruno@clisp.org>
27085         Doc about floating-point and math API.
27086         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
27087         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
27089 2011-11-06  Bruno Haible  <bruno@clisp.org>
27091         stdalign tests: Skip the test when compiled by Sun C.
27092         * tests/test-stdalign.c (main): Skip the test on Sun C.
27094 2011-11-06  Bruno Haible  <bruno@clisp.org>
27096         ansi-c++-opt: Complete the 2011-06-05 change.
27097         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
27098         does not support namespaces, set the variable to "no", not to ":".
27100 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27102         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
27104 2011-11-06  Bruno Haible  <bruno@clisp.org>
27106         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
27107         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
27108         (minus_zerol) [HP-UX]: New macro.
27109         (unary_minus) [HP-UX]: New function.
27110         (copysignl) [HP-UX]: Use unary_minus function.
27112 2011-11-06  Bruno Haible  <bruno@clisp.org>
27114         ldexp, ldexpf, ldexpl: Enhance tests.
27115         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
27116         and tests/test-ldexpl.c.
27117         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
27118         LDEXP, MIN_EXP, MAX_EXP): New macros.
27119         Include test-ldexp.h.
27120         (main): Just call test_function.
27121         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
27122         infinity.h, nan.h.
27123         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
27124         MAX_EXP): New macros.
27125         Include test-ldexp.h.
27126         (x, y): Remove variables.
27127         (main): Just call test_function.
27128         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
27129         infinity.h, nan.h.
27130         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
27131         MAX_EXP): New macros.
27132         Include test-ldexp.h.
27133         (x, y): Remove variables.
27134         (main): Just call test_function.
27135         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
27136         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
27137         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
27138         (Depends-on): Add isnand-nolibm, signbit, float.
27139         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
27140         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
27141         (Depends-on): Add isnanf-nolibm, signbit, float.
27143 2011-11-06  Bruno Haible  <bruno@clisp.org>
27145         math tests: Cosmetics.
27146         * tests/test-math-c++.cc: Reorder declarations.
27148 2011-11-05  Bruno Haible  <bruno@clisp.org>
27150         fma*: Simplify test.
27151         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
27152         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
27154         Tests for module 'fmal'.
27155         * modules/fmal-tests: New file.
27156         * tests/test-fmal1.c: New file.
27157         * tests/test-fmal2.c: New file.
27159         New module 'fmal'.
27160         * lib/math.in.h (fmal): New declaration.
27161         * lib/fmal.c: New file.
27162         * m4/fmal.m4: New file.
27163         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
27164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
27165         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
27166         REPLACE_FMAL.
27167         * modules/fmal: New file.
27168         * doc/posix-functions/fmal.texi: Mention the new module and the various
27169         bugs.
27171         Tests for module 'fmaf'.
27172         * modules/fmaf-tests: New file.
27173         * tests/test-fmaf1.c: New file.
27174         * tests/test-fmaf2.c: New file.
27176         New module 'fmaf'.
27177         * lib/math.in.h (fmaf): New declaration.
27178         * lib/fmaf.c: New file.
27179         * m4/fmaf.m4: New file.
27180         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
27181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
27182         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
27183         REPLACE_FMAF.
27184         * modules/fmaf: New file.
27185         * doc/posix-functions/fmaf.texi: Mention the new module and the various
27186         bugs.
27188         Tests for module 'fma'.
27189         * modules/fma-tests: New file.
27190         * tests/test-fma1.c: New file.
27191         * tests/test-fma1.h: New file.
27192         * tests/test-fma2.c: New file.
27193         * tests/test-fma2.h: New file.
27195         New module 'fma'.
27196         * lib/math.in.h (fma): New declaration.
27197         * lib/fma.c: New file.
27198         * m4/fma.m4: New file.
27199         * m4/fegetround.m4: New file.
27200         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
27201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
27202         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
27203         REPLACE_FMA.
27204         * modules/fma: New file.
27205         * doc/posix-functions/fma.texi: Mention the new module and the various
27206         bugs.
27208         Extend gl_MATHFUNC.
27209         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
27210         Support 'void' as argument type.
27211         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
27213 2011-11-05  Jim Meyering  <meyering@redhat.com>
27215         maint.mk: also prohibit inclusion of dirent.h without use
27216         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
27218 2011-11-05  Bruno Haible  <bruno@clisp.org>
27220         ldexpl tests: Avoid test failure on MSVC 9.
27221         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
27222         value. Needed in order to enforce the conversion from a value greater
27223         than LDBL_MAX to Infinity.
27225 2011-11-05  Bruno Haible  <bruno@clisp.org>
27227         New modules 'at-internal', 'openat-h', split off from module 'openat'.
27228         * modules/at-internal: New file, extracted from modules/openat.
27229         * modules/openat-h: New file.
27230         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
27231         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
27232         * modules/openat (Description): Add reference to POSIX function.
27233         (Files): Remove lib/openat.h, lib/openat-proc.c.
27234         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
27235         intprops, unistd.
27236         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
27237         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
27238         gl_FCNTL_MODULE_INDICATOR.
27239         (Include): Remove unistd.h, openat.h.
27240         * modules/areadlinkat (Files): Add lib/at-func.c.
27241         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27242         openat-die, openat-h, save-cwd.
27243         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
27244         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27245         openat-die, openat-h, save-cwd, unistd.
27246         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
27247         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27248         openat-h, save-cwd. Remove fcntl-h, openat.
27249         * modules/fchmodat (Files): Remove lib/openat.h.
27250         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27251         openat, stdbool, unistd.
27252         * modules/fchownat (Files): Remove lib/openat.h.
27253         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27254         openat, stdbool, sys_stat.
27255         * modules/fdopendir (Files): Remove lib/openat-priv.h,
27256         lib/openat-proc.c.
27257         (Depends-on): Add at-internal.
27258         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
27259         * modules/fstatat (Files): Remove lib/openat.h.
27260         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
27261         stdbool, unistd.
27262         * modules/fts (Depends-on): Add openat-h.
27263         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
27264         openat.
27265         * modules/mkdirat (Files): Remove lib/openat.h.
27266         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27267         openat, stdbool, sys_stat.
27268         * modules/mkfifoat (Files): Add lib/at-func.c.
27269         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27270         openat-h, save-cwd. Remove fcntl-h, openat.
27271         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
27272         * modules/readlinkat (Files): Add lib/at-func.c.
27273         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27274         openat-h, save-cwd. Remove fcntl-h, openat.
27275         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
27276         openat.
27277         * modules/selinux-at (Files): Add lib/at-func.c.
27278         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27279         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
27280         * modules/symlinkat (Files): Add lib/at-func.c.
27281         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27282         openat-h, save-cwd. Remove fcntl-h, openat.
27283         * modules/unlinkat (Files): Remove lib/openat.h.
27284         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
27285         stdbool.
27286         * modules/utimensat (Files): Add lib/at-func.c.
27287         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
27288         openat-die, openat-h, save-cwd.
27289         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
27290         * modules/fdutimensat-tests (Depends-on): Add openat.
27291         * modules/fstatat-tests (Depends-on): Add openat-h.
27292         * modules/readlinkat-tests (Depends-on): Add openat.
27293         * modules/symlinkat-tests (Depends-on): Add openat.
27295 2011-11-05  Bruno Haible  <bruno@clisp.org>
27297         openat: Include <stdbool.h>.
27298         * lib/openat.c: Include <stdbool.h>.
27300 2011-11-04  Bruno Haible  <bruno@clisp.org>
27302         fchownat, renameat, unlinkat: Fix dependencies.
27303         * modules/fchownat (Depends-on): Add fstatat.
27304         * modules/renameat (Depends-on): Likewise.
27305         * modules/unlinkat (Depends-on): Likewise.
27307 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27309         openat: remove direct dependency on dirent
27310         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
27311         and hasn't been needed ever since fdopendir was split into its own
27312         module on 2009-08-31.
27313         * modules/openat (Depends-on): Remove dirent.
27315 2011-11-04  Bruno Haible  <bruno@clisp.org>
27317         renameat: Optimize code size.
27318         * modules/renameat (configure.ac): Don't compile at-func2.c if
27319         REPLACE_RENAMEAT is 1.
27321 2011-11-04  Bruno Haible  <bruno@clisp.org>
27323         openat tests: Fix file list.
27324         * modules/openat-tests (Files): Add tests/test-open.h.
27326 2011-11-04  Bruno Haible  <bruno@clisp.org>
27328         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
27329         * modules/fchmodat (Depends-on): Add openat-die.
27330         * modules/fchownat (Depends-on): Likewise.
27331         * modules/linkat (Depends-on): Likewise.
27332         * modules/renameat (Depends-on): Likewise.
27333         * modules/openat (Depends-on): Add dirent.
27335 2011-11-04  Jim Meyering  <meyering@redhat.com>
27337         at-func*.c: fix comments
27338         * lib/at-func2.c: Correct/improve first-line comment.
27339         * lib/at-func.c: Correct grammar in first-line comment.
27341 2011-11-04  Bruno Haible  <bruno@clisp.org>
27343         New module 'mkdirat', split off from module 'openat'.
27344         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
27345         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
27346         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
27347         * modules/mkdirat: New file, extracted from modules/openat.
27348         * modules/openat (Files): Remove lib/mkdirat.c.
27349         (Depends-on): Remove mkdir.
27350         (configure.ac): Remove AC_LIBOBJ of mkdirat.
27351         (Include): Remove <sys/stat.h>.
27352         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
27353         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
27354         tests/test-mkdir.h.
27355         (Depends-on): Remove ignore-value.
27356         (Makefile.am): Remove rules for test-mkdirat.
27357         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
27358         of module 'openat'.
27359         * NEWS: Mention the change.
27361 2011-11-04  Bruno Haible  <bruno@clisp.org>
27363         closedir: Avoid warning on mingw.
27364         * lib/closedir.c: Include <unistd.h>.
27366 2011-11-04  Bruno Haible  <bruno@clisp.org>
27368         New module 'fstatat', split off from module 'openat'.
27369         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
27370         defined.
27371         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
27372         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
27373         gl_FUNC_FSTATAT.
27374         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
27375         * modules/fstatat: New file, extracted from modules/openat.
27376         * modules/openat (Files): Remove lib/fstatat.c.
27377         (Depends-on): Remove lstat.
27378         (configure.ac): Remove AC_LIBOBJ of fstatat.
27379         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
27380         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
27381         tests/test-lstat.h, tests/test-stat.h.
27382         (Depends-on): Remove getcwd-lgpl.
27383         (Makefile.am): Remove rules for test-fstatat.
27384         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
27385         of module 'openat'.
27386         * NEWS: Mention the change.
27387         * modules/getcwd (Depends-on): Add fstatat.
27388         * modules/linkat (Depends-on): Likewise.
27389         * modules/mkfifoat-tests (Depends-on): Likewise.
27390         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
27392 2011-11-03  Bruno Haible  <bruno@clisp.org>
27394         New module 'unlinkat', split off from module 'openat'.
27395         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
27396         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
27397         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
27398         * modules/unlinkat: New file, extracted from modules/openat. Correct
27399         the dependency conditions.
27400         * modules/openat (Files): Remove lib/unlinkat.c.
27401         (Depends-on): Remove rmdir, unlink.
27402         (configure.ac): Remove AC_LIBOBJ of unlinkat.
27403         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
27404         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
27405         tests/test-rmdir.h, tests/test-unlink.h.
27406         (Depends-on): Remove unlinkdir.
27407         (Makefile.am): Remove rules for test-unlinkat.
27408         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
27409         of module 'openat'.
27410         * NEWS: Mention the change.
27411         * modules/linkat-tests (Depends-on): Add unlinkat.
27412         * modules/mkfifoat-tests (Depends-on): Likewise.
27413         * modules/readlinkat-tests (Depends-on): Likewise.
27415 2011-11-02  Bruno Haible  <bruno@clisp.org>
27417         New module 'fchmodat', split off from module 'openat'.
27418         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
27419         defined.
27420         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
27421         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
27422         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
27423         * modules/fchmodat: New file, extracted from modules/openat.
27424         * modules/openat (Files): Remove lib/fchmodat.c.
27425         (configure.ac): Remove AC_LIBOBJ of fchmodat.
27426         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
27427         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
27428         (Makefile.am): Remove rules for test-fchmodat.
27429         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
27430         of module 'openat'.
27431         * NEWS: Mention the change.
27433 2011-11-02  Jim Meyering  <meyering@redhat.com>
27435         putenv: indent #definition of "environ" to placate cppi
27436         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
27438         gitlog-to-changelog: provide a ChangeLog-repair mechanism
27439         Git logs are often treated as immutable, because editing them
27440         changes the SHA1 checksums of all descendants.  Thus, errors in
27441         git logs tend to stay there forever.  However, when we generate
27442         a ChangeLog file -- typically for distribution -- from that git log,
27443         we can actually make corrections in the generated file.  The key
27444         lies in recording in machine-readable/applicable form the desired
27445         corrections.  See --help for description and an example.
27446         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
27447         (usage): Describe it; alphabetize option descriptions.
27448         (main): Honor the new option, carefully.
27450 2011-11-01  Jim Meyering  <meyering@redhat.com>
27452         gitlog-to-changelog: avoid an infloop
27453         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
27454         that ends up being empty.
27456 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27458         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
27459         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
27460         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
27461         contains (possibly-quoted) backslashes.  This should avoid
27462         all-too-common shell bugs if COMPLICATED contains backslashes in
27463         the "wrong" places.  Reported by David Evans in
27464         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
27465         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
27466         because we want ASCII ranges.  Is there some reason we don't use
27467         the C locale everywhere in this script?
27468         (func_module, top level): Avoid unwanted pathname expansion when
27469         $repo_url_prefix or $repo_url_suffix_repl contain shell
27470         metacharacters like '?' and '*'.
27472 2011-11-01  Bruno Haible  <bruno@clisp.org>
27474         fchownat: Improve description.
27475         * modules/fchownat (Description): Add link to function.
27477 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27479         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
27480         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
27481         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
27482         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
27484 2011-11-01  Bruno Haible  <bruno@clisp.org>
27486         alignof: Avoid collision with stdalign module.
27487         * lib/alignof.h (alignof): Remove macro.
27488         * NEWS: Mention the change.
27489         Reported by Paul Eggert.
27491 2011-11-01  Bruno Haible  <bruno@clisp.org>
27493         New module 'fchownat', split off from module 'openat'.
27494         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
27495         defined.
27496         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
27497         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
27498         invoke gl_FUNC_FCHOWNAT.
27499         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
27500         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
27501         * modules/fchownat: New file, extracted from modules/openat.
27502         * modules/openat (Files): Remove lib/fchownat.c.
27503         (Depends-on): Remove lchown.
27504         (configure.ac): Remove AC_LIBOBJ of fchownat.
27505         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
27506         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
27507         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
27508         (Depends-on): Remove mgetgroups, usleep, stat-time.
27509         (configure.ac): Remove test for getegid.
27510         (Makefile.am): Remove rules for test-fchownat.
27511         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
27512         of module 'openat'.
27513         * NEWS: Mention the change.
27515 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27517         stdalign: port better to MSVC and to Sun C 5.11
27518         This fixes some of the problems reported by Bruno Haible in
27519         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
27520         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
27521         shortcomings of MSVC and of Sun C 5.11.
27522         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
27523         around __declspec arg.
27524         * modules/stdalign-tests (Files): Add tests/macros.h.
27525         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
27526         Include macros.h, for ASSERT.
27527         (DECLARE_ALIGNED): Remove.
27528         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
27529         to catch bug), and to 1 if not (simplifies the rest of the code).
27530         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
27531         (CHECK_AUTO): Remove.
27532         (CHECK_ALIGNED): Check only the alignment of the static vars,
27533         since auto var alignment isn't supported by Sun C 5.11.
27534         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
27535         ASSERT failures are easier to diagnose.
27537 2011-10-31  Bruno Haible  <bruno@clisp.org>
27539         doc about some IRIX 5.3 problems.
27540         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
27541         on IRIX 5.3.
27542         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
27543         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
27544         5.3.
27545         * doc/posix-functions/grantpt.texi: Likewise.
27546         * doc/posix-functions/unlockpt.texi: Likewise.
27547         * doc/posix-functions/lgamma.texi: Likewise.
27548         * doc/posix-functions/nextafter.texi: Likewise.
27549         * doc/posix-functions/remainder.texi: Likewise.
27550         * doc/posix-functions/select.texi: Mention misplaced declaration on
27551         IRIX 5.3.
27552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27554 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
27556         gitlog-to-changelog: fix git-log invocation.
27557         git-log mishandles date strings before 1970-01-01 UTC, and there is
27558         no use to specify --since=1970-01-01 by default anyway.
27559         * build-aux/gitlog-to-changelog: By default, when no --since option
27560         was given, do not specify explicit --since option to git-log.
27562 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
27564         gitlog-to-changelog: new option --append-dot.
27565         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
27566         first non-blank line of each commit message terminated with a dot.
27568 2011-10-30  Bruno Haible  <bruno@clisp.org>
27570         ffsl, ffsll: Avoid compilation error due to 'restrict'.
27571         * lib/ffsl.h: Include <config.h>.
27572         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
27574 2011-10-30  Jim Meyering  <meyering@redhat.com>
27576         GNUmakefile: reenable "make syntax-check" for most projects
27577         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
27578         build-aux variable", "syntax-check" would do nothing but succeed with
27579         the "No version control files detected..." diagnostic (unless you
27580         happened to override _build-aux via cfg.mk).
27581         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
27582         to precede inclusion of maint.mk.  Otherwise, these variables would
27583         be used undefined in any project that does not override the default.
27585 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
27587         gitlog-to-changelog: treat a message with only blank lines as empty.
27588         * build-aux/gitlog-to-changelog: Move the code that removes leading and
27589         trailing blank lines before the code that issues a warning about an
27590         empty commit message.
27592 2011-10-30  Jim Meyering  <meyering@redhat.com>
27594         test-parse-datetime.c: avoid new DST-related false positive test failure
27595         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
27596         based on the time/date we'll convert, not the current time.
27597         Otherwise, the moment we cross a DST boundary like today's in
27598         Europe, (CEST to CET), that offset ends up being one hour off.
27600 2011-10-27  Bruno Haible  <bruno@clisp.org>
27602         fstat: Tweak documentation.
27603         * modules/fstat (Description): More precise description.
27605 2011-10-27  Bruno Haible  <bruno@clisp.org>
27607         Update documentation regarding 'largefile' module.
27608         * doc/posix-functions/fstat.texi: Tweak wording.
27609         * doc/posix-functions/opendir.texi: Mention that the module fixes the
27610         problems with huge directories and/or small ino_t types.
27611         * doc/posix-functions/readdir.texi: Likewise.
27612         * doc/posix-functions/rewinddir.texi: Likewise.
27614 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
27616         maint.mk: don't maintain a second build-aux variable.
27617         * maint.mk (build_aux): Removed.  The maintainer-makefile module
27618         depends on GNUmakefile, which already maintains a cfg.mk
27619         overridable $(_build-aux) for projects with a non-standard
27620         build-aux directory location, although without the $(srcdir)
27621         prefix.  Use that variable consistently instead of introducing a
27622         second one.  Adjust all call sites.
27624 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27626         Add stdalign module and use it in other modules.
27627         This is based on a previous proposal by Bruno Haible
27628         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
27630         stdalign: new module
27631         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
27632         * modules/stdalign: New files.
27633         * MODULES.html.sh (c1x_core_properties): Add stdalign.
27634         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
27636         stdalign-tests: new module
27637         * modules/stdalign-tests, tests/test-stdalign.c: New files.
27639         argp: use stdalign
27640         * lib/argp-parse.c: Include <stdalign.h>.
27641         (alignof): Remove.
27642         * modules/argp (Depends-on): Add stdalign.
27644         crypto libraries: use stdalign
27645         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
27646         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
27647         Do not include <stdlib.h> twice, in md4.c.
27648         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
27649         because we are accessing a pointer's bit-pattern, not a size.
27650         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
27651         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
27652         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
27653         * modules/crypto/sha512: Likewise.
27655         sys_socket: use stdalign, not alignof
27656         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
27657         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
27659 2011-10-27  Bruno Haible  <bruno@clisp.org>
27661         raise test: Avoid a test failure on Linux/MIPS.
27662         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
27663         because 99 is a valid signal on Linux/MIPS.
27665 2011-10-27  Bruno Haible  <bruno@clisp.org>
27667         nonblocking tests: Fix test failure on Linux/MIPS.
27668         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
27669         Set to 270000.
27671 2011-10-27  Bruno Haible  <bruno@clisp.org>
27673         utimensat: Work around problem on Linux/hppa.
27674         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
27675         values.
27676         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
27678 2011-10-25  Jim Meyering  <meyering@redhat.com>
27680         maint.mk: fix a bug in sc_prohibit_stddef_without_use
27681         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
27682         after symbols like NULL, size_t, etc.
27683         Reported by Alfred M. Szmidt.
27685         maint.mk: exempt ENODATA from a syntax-check rule
27686         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
27687         from the sc_prohibit_always-defined_macros syntax-check rule.
27688         Add a comment.  See this for more details:
27689         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
27691 2011-10-23  Jim Meyering  <meyering@redhat.com>
27693         fts: close parent dir FD before returning from post-traversal fts_read
27694         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
27695         unlink A, even though an FD open on A remained.  This is suboptimal
27696         (holding a file descriptor open longer than needed), but otherwise not
27697         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
27698         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
27699         that represents a real problem: it causes the removal of A to fail
27700         with e.g., "rm: cannot remove `A': Device or resource busy"
27702         fts visits each directory twice and keeps a cache (fts_fd_ring) of
27703         directory file descriptors.  After completing the final, FTS_DP,
27704         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
27705         cache, but then proceeded to add a new FD to it via the subsequent
27706         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
27707         final file descriptor would be closed only via fts_close's call to
27708         fd_ring_clear.  Now, it is usually closed earlier, via the final
27709         FTS_DP-returning fts_read call.
27710         * lib/fts.c (restore_initial_cwd): New function, converted from
27711         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
27712         Update callers.
27713         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
27714         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
27716 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
27717             Bruno Haible  <bruno@clisp.org>
27718             Jim Meyering  <jim@meyering.net>
27720         readme-release: improve safety of release prep instructions.
27721         * README-release: Don't git pull all branches when only master
27722         is needed for the release process.
27723         Run make maintainer-clean before changing trees and merging.
27724         Don't try to run ./configure right after git pull in case files
27725         that influence the bootstrap process have changed, move the
27726         ./configure step to after running ./bootstrap.
27727         Don't bootstrap "one last time"... it's the first time!
27729 2011-10-22  Bruno Haible  <bruno@clisp.org>
27731         errno, strerror-override: Support for MSVC 10.
27732         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
27733         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
27734         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
27735         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
27736         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
27737         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
27738         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
27739         Assign values compatible with MSVC 10.
27740         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
27741         New macros.
27742         (GNULIB_defined_EWINSOCK): New macro.
27743         * lib/strerror-override.c (strerror_override): Update accordingly.
27744         * lib/strerror-override.h: Likewise.
27745         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
27746         longer equal to the corresponding errno value.
27747         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
27749 2011-10-22  Bruno Haible  <bruno@clisp.org>
27751         perror: Recognize when test program crashes.
27752         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
27753         strerror, set gl_cv_func_perror_works to no.
27754         Reported by Daniel Richard G. <skunk@iskunk.org>.
27756         perror: Fix indentation.
27757         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
27759 2011-10-22  Bruno Haible  <bruno@clisp.org>
27761         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
27762         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
27763         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
27764         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
27765         functions, not as a macro.
27766         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
27767         macros.
27768         (isfinite, isinf, isnan, signbit): Check overloaded functions and
27769         absence of macro.
27770         Suggested by Eric Blake.
27771         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
27773 2011-10-21  Bruno Haible  <bruno@clisp.org>
27775         relocatable-prog-wrapper: Don't leave object files behind.
27776         * build-aux/install-reloc: Re-synchronize list of .o files to be
27777         removed with list of compilation units.
27779 2011-10-20  Bruno Haible  <bruno@clisp.org>
27781         openpty, posix_openpt: Remove code duplication.
27782         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
27783         * lib/openpty.c: Include <stdlib.h>.
27784         (openpty): Use posix_openpt on all platforms except IRIX.
27785         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
27787 2011-10-20  Bruno Haible  <bruno@clisp.org>
27789         unlockpt: Detect invalid argument.
27790         * lib/unlockpt.c: Include <fcntl.h>.
27791         (unlockpt): Check whether fd is valid, using fcntl().
27792         * modules/unlockpt (Depends-on): Add fcntl-h.
27794 2011-10-20  Bruno Haible  <bruno@clisp.org>
27796         openpty: Avoid compilation error on AIX 6.1.
27797         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
27799 2011-10-20  Bruno Haible  <bruno@clisp.org>
27801         posix_openpt: Support for OpenBSD.
27802         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
27803         (posix_openpt) [OpenBSD]: New code.
27804         * lib/grantpt.c: Include <fcntl.h>.
27805         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
27806         * modules/grantpt (Depends-on): Add fcntl-h.
27808 2011-10-20  Bruno Haible  <bruno@clisp.org>
27810         posix_openpt test: Coding style.
27811         * tests/test-posix_openpt.c: Use GNU coding style.
27813 2011-10-20  Bruno Haible  <bruno@clisp.org>
27815         grantpt: Support --avoid=pt_chown.
27816         * modules/grantpt (Files): Add lib/pty-private.h.
27818 2011-10-20  Bruno Haible  <bruno@clisp.org>
27820         posix_openpt: Fix autoconf macro.
27821         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
27822         unneeded check for _getpty.
27824 2011-10-20  Bruno Haible  <bruno@clisp.org>
27826         openpty: Update comments.
27827         * lib/openpty.c: Add comments about Minix.
27829 2011-10-19  Eric Blake  <eblake@redhat.com>
27831         openpty: relax license
27832         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
27834         pt_chown: use configmake to simplify build
27835         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
27837         ptsname and others: relax license
27838         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
27839         * modules/unlockpt (License): Likewise.
27840         * modules/pt_chown (License): Likewise.
27841         * modules/ptsname (License): Likewise.
27842         * modules/ttyname_r (License): Likewise.
27844 2011-10-19  Jim Meyering  <meyering@redhat.com>
27846         posix_openpt: remove spurious #endif
27847         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
27849 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
27851         maint.mk: Respect $(build_aux) in web-manual rule.
27852         * top/maint.mk (web-manual): Find gen-announce script in user's
27853         $(build_aux) directory instead of hard-coding 'build-aux'.
27855 2011-10-19  Bruno Haible  <bruno@clisp.org>
27857         posix_openpt: Fix compilation error.
27858         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
27859         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
27860         Mention the openpty module as an alternative.
27862 2011-10-19  Bruno Haible  <bruno@clisp.org>
27864         Support for old NeXTstep 3.3 frexp().
27865         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
27866         execution time of the test to 5 seconds.
27867         Reported by Daniel Richard G. <skunk@iskunk.org>.
27869 2011-10-19  Bruno Haible  <bruno@clisp.org>
27871         Support for old NeXTstep 3.3 sed.
27872         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
27873         part, use /.../, not \|...|. Escape periods in the header file name.
27874         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
27875         Reported by Daniel Richard G. <skunk@iskunk.org>.
27877 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27879         Support for old NeXTstep 3.3 gcc.
27880         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
27881         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
27882         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
27883         * lib/spawn.in.h (_Restrict_arr_): Likewise.
27884         * lib/regex.h (_Restrict_arr_): Likewise.
27885         * lib/regex_internal.h (re_token_t): Likewise.
27886         * lib/regexec.c (check_node_accept_bytes): Likewise.
27887         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
27889 2011-10-18  Eric Blake  <eblake@redhat.com>
27891         posix_openpt: new module
27892         * modules/posix_openpt: New module.
27893         * m4/posix_openpt.m4: New file.
27894         * lib/posix_openpt.c: Likewise.
27895         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
27896         (gl_STDLIB_H_DEFAULTS): Set defaults.
27897         * modules/stdlib (Makefile.am): Substitute macros.
27898         * lib/stdlib.in.h (posix_openpt): Declare.
27899         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
27900         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
27901         * modules/posix_openpt-tests: New test module.
27902         * tests/test-posix_openpt.c: New test.
27904 2011-10-15  Bruno Haible  <bruno@clisp.org>
27906         xstrtoll: Fix compilation failure.
27907         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
27908         from lib/strtol.c.
27909         * doc/posix-headers/limits.texi: Mention missing numerical limits on
27910         some platforms.
27911         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27913 2011-10-15  Bruno Haible  <bruno@clisp.org>
27915         vasnprintf: Optimize bit search operation.
27916         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
27917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
27918         gl_DOUBLE_EXPONENT_LOCATION.
27919         * modules/vasnprintf (Files): Add m4/exponentd.m4.
27920         * modules/unistdio/u8-vasnprintf (Files): Likewise.
27921         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
27922         * modules/unistdio/u16-vasnprintf (Files): Likewise.
27923         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
27924         * modules/unistdio/u32-vasnprintf (Files): Likewise.
27925         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
27926         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
27927         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
27929 2011-10-15  Bruno Haible  <bruno@clisp.org>
27931         vasnprintf: Fix comments.
27932         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
27934 2011-10-14  Bruno Haible  <bruno@clisp.org>
27936         Tests for module 'integer_length_ll'.
27937         * modules/integer_length_ll-tests: New file.
27938         * tests/test-integer_length_ll.c: New file.
27940         New module 'integer_length_ll'.
27941         * lib/integer_length_ll.c: New file.
27942         * modules/integer_length_ll: New file.
27944 2011-10-14  Bruno Haible  <bruno@clisp.org>
27946         Tests for module 'integer_length_l'.
27947         * modules/integer_length_l-tests: New file.
27948         * tests/test-integer_length_l.c: New file.
27950         New module 'integer_length_l'.
27951         * lib/integer_length_l.c: New file.
27952         * modules/integer_length_l: New file.
27954 2011-10-14  Bruno Haible  <bruno@clisp.org>
27956         Tests for module 'integer_length'.
27957         * modules/integer_length-tests: New file.
27958         * tests/test-integer_length.c: New file.
27960         New module 'integer_length'.
27961         * lib/integer_length.h: New file.
27962         * lib/integer_length.c: New file.
27963         * modules/integer_length: New file.
27965 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27967         popen: Fix dependency conditions.
27968         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
27970 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
27972         perror: Fix autoconf test.
27973         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
27974         <stdlib.h> and <string.h>.
27976 2011-10-14  Bruno Haible  <bruno@clisp.org>
27978         ffsl: Optimize on 64-bit platforms.
27979         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
27980         unrolling.
27982 2011-10-13  Bruno Haible  <bruno@clisp.org>
27984         ffsl: Optimize on 32-bit platforms.
27985         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
27986         use ffs() without a loop.
27988         ffsl, ffsll: Optimize for GCC.
27989         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
27990         * lib/ffsl.c (GCC_BUILTIN): New macro.
27991         * lib/ffsll.c (GCC_BUILTIN): Likewise.
27993 2011-10-13  Bruno Haible  <bruno@clisp.org>
27995         ffs, bcopy, memset: Support symbol renaming via config.h.
27996         * lib/ffs.c: Include <config.h>.
27997         * lib/bcopy.c: Likewise.
27998         * lib/memset.c: Likewise.
28000 2011-10-10  Bruno Haible  <bruno@clisp.org>
28002         atanl: Simplify for platforms where 'long double' == 'double'.
28003         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28004         alternative implementation.
28005         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28006         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28007         * modules/atanl (Depends-on): Add atan. Update conditions.
28009 2011-10-10  Bruno Haible  <bruno@clisp.org>
28011         acosl: Simplify for platforms where 'long double' == 'double'.
28012         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28013         alternative implementation.
28014         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28015         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28016         * modules/acosl (Depends-on): Add acos. Update conditions.
28018 2011-10-10  Bruno Haible  <bruno@clisp.org>
28020         asinl: Simplify for platforms where 'long double' == 'double'.
28021         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28022         alternative implementation.
28023         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28024         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28025         * modules/asinl (Depends-on): Add asin. Update conditions.
28027 2011-10-10  Bruno Haible  <bruno@clisp.org>
28029         tanl: Simplify for platforms where 'long double' == 'double'.
28030         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28031         implementation.
28032         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28033         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28034         * modules/tanl (Depends-on): Add tan. Update conditions.
28035         (configure.ac): Don't compile trigl.c if
28036         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28038 2011-10-10  Bruno Haible  <bruno@clisp.org>
28040         cosl: Simplify for platforms where 'long double' == 'double'.
28041         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28042         implementation.
28043         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28044         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28045         * modules/cosl (Depends-on): Add cos. Update conditions.
28046         (configure.ac): Don't compile sincosl.c and trigl.c if
28047         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28049 2011-10-10  Bruno Haible  <bruno@clisp.org>
28051         sinl: Simplify for platforms where 'long double' == 'double'.
28052         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28053         implementation.
28054         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28055         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28056         * modules/sinl (Depends-on): Add sin. Update conditions.
28057         (configure.ac): Don't compile sincosl.c and trigl.c if
28058         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28060 2011-10-10  Bruno Haible  <bruno@clisp.org>
28062         logl: Simplify for platforms where 'long double' == 'double'.
28063         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28064         implementation.
28065         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28066         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28067         * modules/logl (Depends-on): Add log. Update conditions.
28069 2011-10-10  Bruno Haible  <bruno@clisp.org>
28071         expl: Simplify for platforms where 'long double' == 'double'.
28072         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28073         implementation.
28074         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28075         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28076         * modules/expl (Depends-on): Add exp. Update conditions.
28078 2011-10-10  Bruno Haible  <bruno@clisp.org>
28080         sqrtl: Simplify for platforms where 'long double' == 'double'.
28081         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28082         alternative implementation.
28083         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28084         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28085         * modules/sqrtl (Depends-on): Update conditions.
28087 2011-10-10  Bruno Haible  <bruno@clisp.org>
28089         ldexpl: Simplify for platforms where 'long double' == 'double'.
28090         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28091         alternative implementation.
28092         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28093         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28094         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
28096 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
28098         ffsll: set correct witness
28099         * modules/ffsll (configure.ac): Fix typo.
28101 2011-10-10  Bruno Haible  <bruno@clisp.org>
28103         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
28104         * lib/printf-frexpl.c: Include <config.h>.
28105         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28106         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
28107         second time.
28108         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
28109         gl_LONG_DOUBLE_VS_DOUBLE.
28110         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
28111         conditions.
28113 2011-10-10  Bruno Haible  <bruno@clisp.org>
28115         frexpl: Simplify for platforms where 'long double' == 'double'.
28116         * lib/frexpl.c: Include <config.h>.
28117         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28118         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28119         time.
28120         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28121         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28122         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
28123         * modules/frexpl (Depends-on): Add frexp. Update conditions.
28124         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
28125         conditions.
28127 2011-10-10  Jim Meyering  <meyering@redhat.com>
28129         test-renameat: don't leave behind a temporary file
28130         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
28131           ERROR: files left in build directory after distclean:
28132           ./gltests/test-renameat.too
28133           make[1]: *** [distcleancheck] Error 1
28134         Reported by Tom G. Christensen.
28136 2011-10-09  Bruno Haible  <bruno@clisp.org>
28138         rint: Determine RINT_LIBM correctly on AIX 7.
28139         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
28140         directly, not only through a function pointer. Also accept an optional
28141         4th argument with extra code.
28142         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
28143         rintf() call by gcc when optimizing.
28145         mathfunc.m4: Refactor.
28146         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
28147         m4 variable.
28149 2011-10-09  Bruno Haible  <bruno@clisp.org>
28151         rintl: Simplify for platforms where 'long double' == 'double'.
28152         * lib/rintl.c: Include <config.h>.
28153         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28154         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28155         time.
28156         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28157         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28158         * modules/rintl (Depends-on): Add rint. Update conditions.
28160 2011-10-09  Bruno Haible  <bruno@clisp.org>
28162         roundl: Simplify for platforms where 'long double' == 'double'.
28163         * lib/roundl.c: Include <config.h>.
28164         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28165         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28166         time.
28167         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28168         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28169         * modules/roundl (Depends-on): Add round. Update conditions.
28171 2011-10-09  Bruno Haible  <bruno@clisp.org>
28173         truncl: Simplify for platforms where 'long double' == 'double'.
28174         * lib/truncl.c: Include <config.h>.
28175         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28176         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28177         time.
28178         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28179         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28180         * modules/truncl (Depends-on): Add trunc. Update conditions.
28182 2011-10-09  Bruno Haible  <bruno@clisp.org>
28184         ceill: Simplify for platforms where 'long double' == 'double'.
28185         * lib/ceill.c: Include <config.h>.
28186         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28187         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28188         time.
28189         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28190         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28191         * modules/ceill (Depends-on): Add ceil. Update conditions.
28193 2011-10-09  Bruno Haible  <bruno@clisp.org>
28195         floorl: Simplify for platforms where 'long double' == 'double'.
28196         * lib/floorl.c: Include <config.h>.
28197         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28198         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28199         time.
28200         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28201         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28202         * modules/floorl (Depends-on): Add floor. Update conditions.
28204 2011-10-09  Bruno Haible  <bruno@clisp.org>
28206         rint: Fix ordering constraints.
28207         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
28208         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
28209         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
28211 2011-10-09  Bruno Haible  <bruno@clisp.org>
28213         copysignl: Simplify for platforms where 'long double' == 'double'.
28214         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28215         alternative.
28216         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28217         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28218         * modules/copysignl (Depends-on): Add copysign. Update conditions.
28220 2011-10-09  Bruno Haible  <bruno@clisp.org>
28222         Tests for module 'rintl'.
28223         * modules/rintl-tests: New file.
28224         * tests/test-rintl.c: New file.
28226         New module 'rintl'.
28227         * lib/math.in.h (rintl): New declaration.
28228         * lib/rintl.c: New file.
28229         * m4/rintl.m4: New file.
28230         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
28231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
28232         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
28233         * modules/rintl: New file.
28234         * tests/test-math-c++.cc: Check the declaration of rintl.
28235         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28236         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
28237         * doc/posix-functions/rintl.texi: Mention the new module.
28239 2011-10-09  Bruno Haible  <bruno@clisp.org>
28241         Tests for module 'rintf'.
28242         * modules/rintf-tests: New file.
28243         * tests/test-rintf.c: New file.
28245         New module 'rintf'.
28246         * lib/math.in.h (rintf): New declaration.
28247         * lib/rintf.c: New file.
28248         * m4/rintf.m4: New file.
28249         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
28250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
28251         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
28252         * modules/rintf: New file.
28253         * tests/test-math-c++.cc: Check the declaration of rintf.
28254         * doc/posix-functions/rintf.texi: Mention the new module.
28256 2011-10-09  Bruno Haible  <bruno@clisp.org>
28258         rint: Support for MSVC.
28259         * lib/math.in.h (rint): New declaration.
28260         * lib/rint.c: New file.
28261         * m4/rint.m4: New file.
28262         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
28263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
28264         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
28265         * modules/rint (Description): Fix.
28266         (Files): Add lib/rint.c, m4/rint.m4.
28267         (Depends-on): Add math.
28268         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
28269         gl_MATH_MODULE_INDICATOR.
28270         * tests/test-math-c++.cc: Check the declaration of rint.
28271         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28272         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
28273         * doc/posix-functions/rint.texi: Mention the replacement provided by
28274         the module.
28276         rint tests: More tests.
28277         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
28278         minus-zero.h, infinity.h, nan.h.
28279         (main): Skip the test if the current rounding mode is not standard. Add
28280         tests for negative numbers, minus zero, infinity, NaN.
28281         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
28282         tests/nan.h.
28283         (Depends-on): Add isnand-nolibm.
28285 2011-10-09  Bruno Haible  <bruno@clisp.org>
28287         Tests for module 'copysignl'.
28288         * modules/copysignl-tests: New file.
28289         * tests/test-copysignl.c: New file.
28291         New module 'copysignl'.
28292         * lib/math.in.h (copysignl): New declaration.
28293         * lib/copysignl.c: New file.
28294         * m4/copysignl.m4: New file.
28295         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
28296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
28297         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
28298         HAVE_COPYSIGNL.
28299         * modules/copysignl: New file.
28300         * tests/test-math-c++.cc: Check the declaration of copysignl.
28301         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28302         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
28303         * doc/posix-functions/copysignl.texi: Mention the new module.
28305 2011-10-09  Bruno Haible  <bruno@clisp.org>
28307         Tests for module 'copysignf'.
28308         * modules/copysignf-tests: New file.
28309         * tests/test-copysignf.c: New file.
28311         New module 'copysignf'.
28312         * lib/math.in.h (copysignf): New declaration.
28313         * lib/copysignf.c: New file.
28314         * m4/copysignf.m4: New file.
28315         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
28316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
28317         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
28318         HAVE_COPYSIGNF.
28319         * modules/copysignf: New file.
28320         * tests/test-math-c++.cc: Check the declaration of copysignf.
28321         * doc/posix-functions/copysignf.texi: Mention the new module.
28323 2011-10-09  Bruno Haible  <bruno@clisp.org>
28325         Ensure that HAVE_* variables are set to 1 before they are set to 0.
28326         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
28327         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
28328         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
28329         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
28330         gl_SIGNAL_H_DEFAULTS.
28332 2011-10-09  Bruno Haible  <bruno@clisp.org>
28334         poll: Make macro safer.
28335         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
28336         ac_cv_header_poll_h is not set.
28338 2011-10-09  Bruno Haible  <bruno@clisp.org>
28340         copysign: Provide replacement.
28341         * lib/math.in.h (copysign): New declaration.
28342         * lib/copysign.c: New file.
28343         * m4/copysign.m4: New file.
28344         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
28345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
28346         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
28347         HAVE_COPYSIGN.
28348         * modules/copysign (Description): Clarify.
28349         (Files): Add lib/copysign.c, m4/copysign.m4.
28350         (Depends-on): Add math, signbit.
28351         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
28352         gl_MATH_MODULE_INDICATOR.
28353         * tests/test-math-c++.cc: Check the declaration of copysign.
28354         * doc/posix-functions/copysign.texi: Mention the effects of the module
28355         on Minix and MSVC.
28357 2011-10-09  Bruno Haible  <bruno@clisp.org>
28359         isinf: Ensure macro on AIX 5.1.
28360         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
28361         macro.
28362         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
28364 2011-10-09  Bruno Haible  <bruno@clisp.org>
28366         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
28367         * modules/snprintf-posix-tests (configure.ac): Require
28368         gl_LONG_DOUBLE_VS_DOUBLE.
28369         * modules/sprintf-posix-tests (configure.ac): Likewise.
28370         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
28371         * modules/vasprintf-posix-tests (configure.ac): Likewise.
28372         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
28373         * modules/vsprintf-posix-tests (configure.ac): Likewise.
28374         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
28375         tests on platforms where 'long double' is the same as 'double'.
28376         * tests/test-sprintf-posix.h (test_function): Likewise.
28377         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28378         * tests/test-vasprintf-posix.c (test_function): Likewise.
28380         *printf: Fix for platforms where 'long double' == 'double'.
28381         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
28382         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
28383         * modules/dprintf-posix (Files): Add m4/math_h.m4.
28384         * modules/fprintf-posix (Files): Likewise.
28385         * modules/obstack-printf-posix (Files): Likewise.
28386         * modules/snprintf-posix (Files): Likewise.
28387         * modules/sprintf-posix (Files): Likewise.
28388         * modules/vasnprintf (Files): Likewise.
28389         * modules/vasnprintf-posix (Files): Likewise.
28390         * modules/vasprintf-posix (Files): Likewise.
28391         * modules/vdprintf-posix (Files): Likewise.
28392         * modules/vfprintf-posix (Files): Likewise.
28393         * modules/vsnprintf-posix (Files): Likewise.
28394         * modules/vsprintf-posix (Files): Likewise.
28395         * modules/unistdio/u8-vasnprintf (Files): Likewise.
28396         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
28397         * modules/unistdio/u16-vasnprintf (Files): Likewise.
28398         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
28399         * modules/unistdio/u32-vasnprintf (Files): Likewise.
28400         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
28401         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
28403         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
28404         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
28405         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28406         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
28407         'long double'.
28408         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
28410         isinf: Fix for platforms where 'long double' == 'double'.
28411         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28412         Don't blindly assume 80-bit 'long double'.
28414         isfinite: Fix for platforms where 'long double' == 'double'.
28415         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28416         Don't blindly assume 80-bit 'long double'.
28418         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
28419         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
28420         * modules/isfinite-tests (configure.ac): Require
28421         gl_LONG_DOUBLE_VS_DOUBLE.
28422         * modules/isinf-tests (configure.ac): Likewise.
28423         * modules/isnan-tests (configure.ac): Likewise.
28424         * modules/isnanl-tests (configure.ac): Likewise.
28425         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
28426         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
28427         tests on platforms where 'long double' is the same as 'double'.
28428         * tests/test-isinf.c (test_isinfl): Likewise.
28429         * tests/test-isnan.c (test_long_double): Likewise.
28430         * tests/test-isnanl.h (main): Likewise.
28432 2011-10-08  Bruno Haible  <bruno@clisp.org>
28434         Tests for module 'tanhf'.
28435         * modules/tanhf-tests: New file.
28436         * tests/test-tanhf.c: New file.
28438         New module 'tanhf'.
28439         * lib/math.in.h (tanhf): New declaration.
28440         * lib/tanhf.c: New file.
28441         * m4/tanhf.m4: New file.
28442         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
28443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
28444         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
28445         * modules/tanhf: New file.
28446         * tests/test-math-c++.cc: Check the declaration of tanhf.
28447         * doc/posix-functions/tanhf.texi: Mention the new module.
28449         tanh: Use a .m4 file.
28450         * m4/tanh.m4: New file.
28451         * modules/tanh (Files): Add it.
28452         (configure.ac): Just invoke gl_FUNC_TANH.
28454 2011-10-08  Bruno Haible  <bruno@clisp.org>
28456         Tests for module 'coshf'.
28457         * modules/coshf-tests: New file.
28458         * tests/test-coshf.c: New file.
28460         New module 'coshf'.
28461         * lib/math.in.h (coshf): New declaration.
28462         * lib/coshf.c: New file.
28463         * m4/coshf.m4: New file.
28464         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
28465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
28466         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
28467         * modules/coshf: New file.
28468         * tests/test-math-c++.cc: Check the declaration of coshf.
28469         * doc/posix-functions/coshf.texi: Mention the new module.
28471         cosh: Use a .m4 file.
28472         * m4/cosh.m4: New file.
28473         * modules/cosh (Files): Add it.
28474         (configure.ac): Just invoke gl_FUNC_COSH.
28476 2011-10-08  Bruno Haible  <bruno@clisp.org>
28478         Tests for module 'sinhf'.
28479         * modules/sinhf-tests: New file.
28480         * tests/test-sinhf.c: New file.
28482         New module 'sinhf'.
28483         * lib/math.in.h (sinhf): New declaration.
28484         * lib/sinhf.c: New file.
28485         * m4/sinhf.m4: New file.
28486         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
28487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
28488         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
28489         * modules/sinhf: New file.
28490         * tests/test-math-c++.cc: Check the declaration of sinhf.
28491         * doc/posix-functions/sinhf.texi: Mention the new module.
28493         sinh: Use a .m4 file.
28494         * m4/sinh.m4: New file.
28495         * modules/sinh (Files): Add it.
28496         (configure.ac): Just invoke gl_FUNC_SINH.
28498 2011-10-08  Bruno Haible  <bruno@clisp.org>
28500         Tests for module 'atan2f'.
28501         * modules/atan2f-tests: New file.
28502         * tests/test-atan2f.c: New file.
28504         New module 'atan2f'.
28505         * lib/math.in.h (atan2f): New declaration.
28506         * lib/atan2f.c: New file.
28507         * m4/atan2f.m4: New file.
28508         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
28509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
28510         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
28511         * modules/atan2f: New file.
28512         * tests/test-math-c++.cc: Check the declaration of atan2f.
28513         * doc/posix-functions/atan2f.texi: Mention the new module.
28515         atan2: Use a .m4 file.
28516         * m4/atan2.m4: New file.
28517         * modules/atan2 (Files): Add it.
28518         (configure.ac): Just invoke gl_FUNC_ATAN2.
28520 2011-10-08  Bruno Haible  <bruno@clisp.org>
28522         Tests for module 'atanf'.
28523         * modules/atanf-tests: New file.
28524         * tests/test-atanf.c: New file.
28526         New module 'atanf'.
28527         * lib/math.in.h (atanf): New declaration.
28528         * lib/atanf.c: New file.
28529         * m4/atanf.m4: New file.
28530         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
28531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
28532         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
28533         * modules/atanf: New file.
28534         * tests/test-math-c++.cc: Check the declaration of atanf.
28535         * doc/posix-functions/atanf.texi: Mention the new module.
28537         atan: Use a .m4 file.
28538         * m4/atan.m4: New file.
28539         * modules/atan (Files): Add it.
28540         (configure.ac): Just invoke gl_FUNC_ATAN.
28542 2011-10-08  Bruno Haible  <bruno@clisp.org>
28544         Tests for module 'acosf'.
28545         * modules/acosf-tests: New file.
28546         * tests/test-acosf.c: New file.
28548         New module 'acosf'.
28549         * lib/math.in.h (acosf): New declaration.
28550         * lib/acosf.c: New file.
28551         * m4/acosf.m4: New file.
28552         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
28553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
28554         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
28555         * modules/acosf: New file.
28556         * tests/test-math-c++.cc: Check the declaration of acosf.
28557         * doc/posix-functions/acosf.texi: Mention the new module.
28559         acos: Use a .m4 file.
28560         * m4/acos.m4: New file.
28561         * modules/acos (Files): Add it.
28562         (configure.ac): Just invoke gl_FUNC_ACOS.
28564 2011-10-08  Bruno Haible  <bruno@clisp.org>
28566         Tests for module 'asinf'.
28567         * modules/asinf-tests: New file.
28568         * tests/test-asinf.c: New file.
28570         New module 'asinf'.
28571         * lib/math.in.h (asinf): New declaration.
28572         * lib/asinf.c: New file.
28573         * m4/asinf.m4: New file.
28574         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
28575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
28576         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
28577         * modules/asinf: New file.
28578         * tests/test-math-c++.cc: Check the declaration of asinf.
28579         * doc/posix-functions/asinf.texi: Mention the new module.
28581         asin: Use a .m4 file.
28582         * m4/asin.m4: New file.
28583         * modules/asin (Files): Add it.
28584         (configure.ac): Just invoke gl_FUNC_ASIN.
28586 2011-10-08  Bruno Haible  <bruno@clisp.org>
28588         Tests for module 'tanf'.
28589         * modules/tanf-tests: New file.
28590         * tests/test-tanf.c: New file.
28592         New module 'tanf'.
28593         * lib/math.in.h (tanf): New declaration.
28594         * lib/tanf.c: New file.
28595         * m4/tanf.m4: New file.
28596         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
28597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
28598         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
28599         * modules/tanf: New file.
28600         * tests/test-math-c++.cc: Check the declaration of tanf.
28601         * doc/posix-functions/tanf.texi: Mention the new module.
28603         tan: Use a .m4 file.
28604         * m4/tan.m4: New file.
28605         * modules/tan (Files): Add it.
28606         (configure.ac): Just invoke gl_FUNC_TAN.
28608 2011-10-08  Bruno Haible  <bruno@clisp.org>
28610         Tests for module 'cosf'.
28611         * modules/cosf-tests: New file.
28612         * tests/test-cosf.c: New file.
28614         New module 'cosf'.
28615         * lib/math.in.h (cosf): New declaration.
28616         * lib/cosf.c: New file.
28617         * m4/cosf.m4: New file.
28618         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
28619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
28620         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
28621         * modules/cosf: New file.
28622         * tests/test-math-c++.cc: Check the declaration of cosf.
28623         * doc/posix-functions/cosf.texi: Mention the new module.
28625         cos: Use a .m4 file.
28626         * m4/cos.m4: New file.
28627         * modules/cos (Files): Add it.
28628         (configure.ac): Just invoke gl_FUNC_COS.
28630 2011-10-08  Bruno Haible  <bruno@clisp.org>
28632         Tests for module 'sinf'.
28633         * modules/sinf-tests: New file.
28634         * tests/test-sinf.c: New file.
28636         New module 'sinf'.
28637         * lib/math.in.h (sinf): New declaration.
28638         * lib/sinf.c: New file.
28639         * m4/sinf.m4: New file.
28640         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
28641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
28642         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
28643         * modules/sinf: New file.
28644         * tests/test-math-c++.cc: Check the declaration of sinf.
28645         * doc/posix-functions/sinf.texi: Mention the new module.
28647         sin: Use a .m4 file.
28648         * m4/sin.m4: New file.
28649         * modules/sin (Files): Add it.
28650         (configure.ac): Just invoke gl_FUNC_SIN.
28652 2011-10-08  Bruno Haible  <bruno@clisp.org>
28654         Tests for module 'powf'.
28655         * modules/powf-tests: New file.
28656         * tests/test-powf.c: New file.
28658         New module 'powf'.
28659         * lib/math.in.h (powf): New declaration.
28660         * lib/powf.c: New file.
28661         * m4/powf.m4: New file.
28662         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
28663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
28664         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
28665         * modules/powf: New file.
28666         * tests/test-math-c++.cc: Check the declaration of powf.
28667         * doc/posix-functions/powf.texi: Mention the new module.
28669         pow: Use a .m4 file.
28670         * m4/pow.m4: New file.
28671         * modules/pow (Files): Add it.
28672         (configure.ac): Just invoke gl_FUNC_POW.
28674 2011-10-08  Bruno Haible  <bruno@clisp.org>
28676         Tests for module 'log10f'.
28677         * modules/log10f-tests: New file.
28678         * tests/test-log10f.c: New file.
28680         New module 'log10f'.
28681         * lib/math.in.h (log10f): New declaration.
28682         * lib/log10f.c: New file.
28683         * m4/log10f.m4: New file.
28684         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
28685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
28686         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
28687         * modules/log10f: New file.
28688         * tests/test-math-c++.cc: Check the declaration of log10f.
28689         * doc/posix-functions/log10f.texi: Mention the new module.
28691         log10: Use a .m4 file.
28692         * m4/log10.m4: New file.
28693         * modules/log10 (Files): Add it.
28694         (configure.ac): Just invoke gl_FUNC_LOG10.
28696 2011-10-08  Bruno Haible  <bruno@clisp.org>
28698         Tests for module 'logf'.
28699         * modules/logf-tests: New file.
28700         * tests/test-logf.c: New file.
28702         New module 'logf'.
28703         * lib/math.in.h (logf): New declaration.
28704         * lib/logf.c: New file.
28705         * m4/logf.m4: New file.
28706         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
28707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
28708         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
28709         * modules/logf: New file.
28710         * tests/test-math-c++.cc: Check the declaration of logf.
28711         * doc/posix-functions/logf.texi: Mention the new module.
28713         log: Use a .m4 file.
28714         * m4/log.m4: New file.
28715         * modules/log (Files): Add it.
28716         (configure.ac): Just invoke gl_FUNC_LOG.
28718 2011-10-08  Bruno Haible  <bruno@clisp.org>
28720         Tests for module 'expf'.
28721         * modules/expf-tests: New file.
28722         * tests/test-expf.c: New file.
28724         New module 'expf'.
28725         * lib/math.in.h (expf): New declaration.
28726         * lib/expf.c: New file.
28727         * m4/expf.m4: New file.
28728         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
28729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
28730         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
28731         * modules/expf: New file.
28732         * tests/test-math-c++.cc: Check the declaration of expf.
28733         * doc/posix-functions/expf.texi: Mention the new module.
28735         exp: Use a .m4 file.
28736         * m4/exp.m4: New file.
28737         * modules/exp (Files): Add it.
28738         (configure.ac): Just invoke gl_FUNC_EXP.
28740 2011-10-08  Bruno Haible  <bruno@clisp.org>
28742         Tests for module 'sqrtf'.
28743         * modules/sqrtf-tests: New file.
28744         * tests/test-sqrtf.c: New file.
28746         New module 'sqrtf'.
28747         * lib/math.in.h (sqrtf): New declaration.
28748         * lib/sqrtf.c: New file.
28749         * m4/sqrtf.m4: New file.
28750         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
28751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
28752         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
28753         * modules/sqrtf: New file.
28754         * tests/test-math-c++.cc: Check the declaration of sqrtf.
28755         * doc/posix-functions/sqrtf.texi: Mention the new module.
28757 2011-10-08  Bruno Haible  <bruno@clisp.org>
28759         Tests: Avoid link failures w.r.t. libintl.
28760         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
28761         $(LIBINTL).
28762         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
28763         $(LIBINTL).
28764         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
28765         against $(LIBINTL).
28766         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
28767         $(LIBINTL).
28768         * modules/openat-tests (Makefile.am): Link test-fchmodat against
28769         $(LIBINTL).
28770         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
28772 2011-10-08  Bruno Haible  <bruno@clisp.org>
28774         pow tests: Defeat compiler optimizations.
28775         * tests/test-pow.c (main): Assign arguments to x and y before use.
28777 2011-10-08  Bruno Haible  <bruno@clisp.org>
28779         gnulib-tool: Improve last commit.
28780         * gnulib-tool (func_modules_transitive_closure): Simplify code.
28781         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
28782         ignore dependencies that are not among the modules list.
28784 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
28786         gnulib-tool: don't follow dependencies to avoided modules
28787         This fixes a bug that is related to the previous one.
28788         * gnulib-tool (func_modules_transitive_closure)
28789         (func_emit_autoconf_snippets):
28790         Check whether a dependency is acceptable before using it.
28791         (--extract-dependencies): Report an error if --avoid is also used,
28792         since this combination of options is not yet supported.
28794         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
28795         Problem reported by Peter Dyballa in
28796         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
28797         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
28798         when echoing "$condition".
28800 2011-10-07  Bruno Haible  <bruno@clisp.org>
28802         Fix documentation about math functions on MacOS X.
28803         * doc/posix-functions/exp2.texi: Don't say the function is missing on
28804         MacOS X 10.5.
28805         * doc/posix-functions/fdim.texi: Likewise.
28806         * doc/posix-functions/feclearexcept.texi: Likewise.
28807         * doc/posix-functions/fegetenv.texi: Likewise.
28808         * doc/posix-functions/fegetround.texi: Likewise.
28809         * doc/posix-functions/feholdexcept.texi: Likewise.
28810         * doc/posix-functions/feraiseexcept.texi: Likewise.
28811         * doc/posix-functions/fesetenv.texi: Likewise.
28812         * doc/posix-functions/fesetround.texi: Likewise.
28813         * doc/posix-functions/fetestexcept.texi: Likewise.
28814         * doc/posix-functions/feupdateenv.texi: Likewise.
28815         * doc/posix-functions/fmax.texi: Likewise.
28816         * doc/posix-functions/fmin.texi: Likewise.
28817         * doc/posix-functions/log2.texi: Likewise.
28818         * doc/posix-functions/modff.texi: Likewise.
28819         * doc/posix-functions/nan.texi: Likewise.
28820         * doc/posix-functions/nanf.texi: Likewise.
28821         * doc/posix-functions/nextafterf.texi: Likewise.
28822         * doc/posix-functions/remquo.texi: Likewise.
28824 2011-10-07  Bruno Haible  <bruno@clisp.org>
28826         modff: Drop assumption about library that defines modff.
28827         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
28828         AC_CHECK_FUNCS.
28829         * modules/modff (Files): Add m4/mathfunc.m4.
28831 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
28833         raise tests: Avoid a GCC warning.
28834         * tests/test-raise.c (handler): Use _Noreturn.
28836 2011-10-07  Bruno Haible  <bruno@clisp.org>
28838         Tests for module 'ldexpf'.
28839         * modules/ldexpf-tests: New file.
28840         * tests/test-ldexpf.c: New file.
28842         New module 'ldexpf'.
28843         * lib/math.in.h (ldexpf): New declaration.
28844         * lib/ldexpf.c: New file.
28845         * m4/ldexpf.m4: New file.
28846         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
28847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
28848         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
28849         * modules/ldexpf: New file.
28850         * tests/test-math-c++.cc: Check the declaration of ldexpf.
28851         * doc/posix-functions/ldexpf.texi: Mention the new module.
28853 2011-10-06  Bruno Haible  <bruno@clisp.org>
28855         frexpf: Work around problems on IRIX and mingw.
28856         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
28857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
28858         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
28859         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
28860         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
28861         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
28862         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
28864 2011-10-06  Bruno Haible  <bruno@clisp.org>
28866         fabsf: Drop assumption about library that defines fabsf.
28867         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
28868         AC_CHECK_FUNCS.
28869         * modules/fabsf (Files): Add m4/mathfunc.m4.
28871 2011-10-06  Bruno Haible  <bruno@clisp.org>
28873         frexpf: Drop assumption about library that defines frexpf.
28874         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
28875         'int *', 'float *', 'long double *', 'float', 'long double'.
28876         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
28877         AC_CHECK_FUNCS.
28878         * modules/frexpf (Files): Add m4/mathfunc.m4.
28880         Tests for module 'frexpf'.
28881         * modules/frexpf-tests: New file.
28882         * tests/test-frexpf.c: New file.
28884         New module 'frexpf'.
28885         * lib/math.in.h (frexpf): New declaration.
28886         * lib/frexpf.c: New file.
28887         * m4/frexpf.m4: New file.
28888         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
28889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
28890         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
28891         * modules/frexpf: New file.
28892         * tests/test-math-c++.cc: Check the declaration of frexpf.
28893         * doc/posix-functions/frexpf.texi: Mention the new module.
28895 2011-10-06  Bruno Haible  <bruno@clisp.org>
28897         math: Sort function declarations of math.in.h.
28898         * lib/math.in.h (frexp, logb): Move declarations.
28900 2011-10-05  Bruno Haible  <bruno@clisp.org>
28902         Tests for module 'modff'.
28903         * modules/modff-tests: New file.
28904         * tests/test-modff.c: New file.
28906         New module 'modff'.
28907         * lib/math.in.h (modff): New declaration.
28908         * lib/modff.c: New file.
28909         * m4/modff.m4: New file.
28910         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
28911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
28912         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
28913         * modules/modff: New file.
28914         * tests/test-math-c++.cc: Check the declaration of modff.
28915         * doc/posix-functions/modff.texi: Mention the new module.
28917         modf tests: Make test sharper.
28918         * tests/test-modf.c (main): Strengthen upper bound.
28920         modf: Use a .m4 file.
28921         * m4/modf.m4: New file.
28922         * modules/modf (Files): Add it.
28923         (configure.ac): Just invoke gl_FUNC_MODF.
28925 2011-10-05  Bruno Haible  <bruno@clisp.org>
28927         Tests for module 'fmodf'.
28928         * modules/fmodf-tests: New file.
28929         * tests/test-fmodf.c: New file.
28931         New module 'fmodf'.
28932         * lib/math.in.h (fmodf): New declaration.
28933         * lib/fmodf.c: New file.
28934         * m4/fmodf.m4: New file.
28935         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
28936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
28937         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
28938         * modules/fmodf: New file.
28939         * tests/test-math-c++.cc: Check the declaration of fmodf.
28940         * doc/posix-functions/fmodf.texi: Mention the new module.
28942         fmod: Use a .m4 file.
28943         * m4/fmod.m4: New file.
28944         * modules/fmod (Files): Add it.
28945         (configure.ac): Just invoke gl_FUNC_FMOD.
28947 2011-10-05  Bruno Haible  <bruno@clisp.org>
28949         Tests for module 'fabsf'.
28950         * modules/fabsf-tests: New file.
28951         * tests/test-fabsf.c: New file.
28953         New module 'fabsf'.
28954         * lib/math.in.h (fabsf): New declaration.
28955         * lib/fabsf.c: New file.
28956         * m4/fabsf.m4: New file.
28957         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
28958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
28959         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
28960         * modules/fabsf: New file.
28961         * tests/test-math-c++.cc: Check the declaration of fabsf.
28962         * doc/posix-functions/fabsf.texi: Mention the new module.
28964         fabs: Use a .m4 file.
28965         * m4/fabs.m4: New file.
28966         * modules/fabs (Files): Add it.
28967         (configure.ac): Just invoke gl_FUNC_FABS.
28969 2011-10-05  Jim Meyering  <meyering@redhat.com>
28971         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
28972         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
28973         ls -lL regression introduced in coreutils-8.12, it does so at the
28974         cost of an additional stat call in the common case.  Besides, now
28975         that the kernel change that prompted commit 95f7c57f has been reverted
28976         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
28977         we have no use for commit 95f7c57f, "file-has-acl: use
28978         acl_extended_file_nofollow if available".
28980 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
28982         file-has-acl: revert unintended change in behavior of ls -L
28983         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
28984         derived from...
28985         (file_has_acl): ...code here.  Call it.
28986         This problem was introduced with 2011-07-22 commit 95f7c57f,
28987         "file-has-acl: use acl_extended_file_nofollow if available".
28988         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
28990 2011-10-03  Bruno Haible  <bruno@clisp.org>
28992         poll: Avoid link errors on MSVC.
28993         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
28994         * modules/poll (Depends-on): Add sockets.
28995         (Link): New section.
28996         * NEWS: Mention the change.
28997         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
28998         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
28999         $(LIB_POLL) instead of $(LIBSOCKET).
29001 2011-10-03  Bruno Haible  <bruno@clisp.org>
29003         sys_select tests: Fix link error on MSVC 9.
29004         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
29005         with $(LIB_SELECT) instead of $(LIBSOCKET).
29007 2011-10-03  Bruno Haible  <bruno@clisp.org>
29009         sys_select: Fix compilation error on mingw.
29010         * lib/sys_select.in.h: On native Windows, include <io.h>.
29012 2011-10-03  Bruno Haible  <bruno@clisp.org>
29014         wmemset: Support for MSVC.
29015         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
29016         whether wmemset() exists.
29018 2011-10-03  Bruno Haible  <bruno@clisp.org>
29020         wmemmove: Support for MSVC.
29021         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
29022         whether wmemmove() exists.
29024 2011-10-03  Bruno Haible  <bruno@clisp.org>
29026         wmemcpy: Support for MSVC.
29027         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
29028         whether wmemcpy() exists.
29030 2011-10-03  Bruno Haible  <bruno@clisp.org>
29032         wmemcmp: Support for MSVC.
29033         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
29034         whether wmemcmp() exists.
29036 2011-10-03  Bruno Haible  <bruno@clisp.org>
29038         wmemchr: Support for MSVC.
29039         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
29040         whether wmemchr() exists.
29042 2011-10-03  Bruno Haible  <bruno@clisp.org>
29044         glthread/*, strsignal: Support for MSVC.
29045         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
29046         including <winsock.h> on MSVC 9.
29047         * lib/glthread/lock.h: Likewise.
29048         * lib/glthread/thread.h: Likewise.
29049         * lib/glthread/tls.h: Likewise.
29050         * lib/glthread/yield.h: Likewise.
29051         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
29052         if HAVE_UNISTD_H is false.
29053         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
29055 2011-10-03  Bruno Haible  <bruno@clisp.org>
29057         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
29058         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
29059         Set to 100000.
29061 2011-10-03  Bruno Haible  <bruno@clisp.org>
29063         acl: Fix specification.
29064         * lib/file-has-acl.c (file_has_acl): Fix specification.
29066 2011-10-03  Bruno Haible  <bruno@clisp.org>
29068         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
29069         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
29070         (compute_curr_prefix, shared_library_fullname,
29071         find_shared_library_fullname, get_shared_library_fullname, relocate):
29072         Use it together with PIC && INSTALLDIR.
29073         Reported by <jojelino@gmail.com>
29074         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
29076 2011-10-01  Jim Meyering  <meyering@redhat.com>
29078         maint.mk: adjust a release-related rule not to require use of gzip
29079         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
29080         Instead, check each file in $(DIST_ARCHIVES).  This is better for
29081         projects that build only .tar.xz files.  Also fix an erroneous test.
29083         test-linkat: don't leave behind a temporary file
29084         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
29085         Otherwise, coreutils' "make distcheck" would fail with this:
29086           Only in /c/cu/tests/torture/coreutils/test/\
29087             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
29088           make[2]: *** [my-distcheck] Error 1
29090         float, math: add omitted file
29091         * lib/itold.c: Add file, required for yesterday's float change.
29093 2011-10-01  Bruno Haible  <bruno@clisp.org>
29095         isinf: Fix for OpenBSD/x86.
29096         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
29097         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
29098         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
29100 2011-10-01  Bruno Haible  <bruno@clisp.org>
29102         isfinite: Fix syntax error in configure test.
29103         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
29105         isfinite: Fix typo.
29106         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
29107         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
29109 2011-10-01  Bruno Haible  <bruno@clisp.org>
29111         nonblocking tests: Fix test failure on Linux/IA-64.
29112         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
29113         Set to 270000.
29115 2011-10-01  Bruno Haible  <bruno@clisp.org>
29117         mkfifoat tests: Fix a test failure on mingw.
29118         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
29119         with error ENOSYS.
29121 2011-09-30  Bruno Haible  <bruno@clisp.org>
29123         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
29124         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
29125         'long double'. Set REPLACE_ITOLD.
29126         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
29127         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
29128         * lib/itold.c: New file.
29129         * modules/float (Files): Add lib/itold.c.
29130         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
29131         (Makefile.am): Substitute REPLACE_ITOLD.
29132         * modules/math (Depends-on): Add float.
29133         (Makefile.am): Substitute REPLACE_ITOLD.
29134         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
29135         * doc/posix-headers/math.texi: Likewise.
29136         * doc/posix-functions/logl.texi: Likewise.
29138 2011-09-30  Bruno Haible  <bruno@clisp.org>
29140         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
29141         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
29142         Set to 140000.
29144 2011-09-30  Bruno Haible  <bruno@clisp.org>
29146         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
29147         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
29148         invocation, say "right after AC_PROG_CC_STDC", not "right after
29149         AC_PROG_CC".
29150         Reported by Gary V. Vaughan <gary@gnu.org>.
29152 2011-09-30  Bruno Haible  <bruno@clisp.org>
29154         Centralize C99 requirement.
29155         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
29156         * modules/stdarg (configure.ac-early): Invoke it instead of
29157         AC_PROG_CC_STDC.
29158         Reported by Gary V. Vaughan and Paul Eggert.
29160 2011-09-29  Bruno Haible  <bruno@clisp.org>
29162         float: Fix LDBL_MAX value on Linux/PowerPC.
29163         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
29164         on Linux/PowerPC.
29165         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
29166         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
29167         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
29168         platform.
29169         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
29171 2011-09-29  Bruno Haible  <bruno@clisp.org>
29173         doc: Improve doc about gl_EARLY.
29174         * doc/gnulib-tool.texi (Initial import): Mention where to place an
29175         AC_PROG_CC_STDC invocation.
29176         Reported by Gary V. Vaughan <gary@gnu.org>.
29178 2011-09-28  Bruno Haible  <bruno@clisp.org>
29180         fgetc, fputc, fread, fwrite tests: Fix link error.
29181         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
29182         on non-MSVC platforms.
29183         * tests/test-fputc.c (main): Likewise.
29184         * tests/test-fread.c (main): Likewise.
29185         * tests/test-fwrite.c (main): Likewise.
29186         Reported by Jim Meyering.
29188 2011-09-27  Bruno Haible  <bruno@clisp.org>
29190         fputc, fwrite tests: Avoid test failure on MSVC.
29191         * tests/test-fgetc.c: Include msvc-inval.h.
29192         (main): Invoke gl_msvc_inval_ensure_handler.
29193         * tests/test-fputc.c: Include msvc-inval.h.
29194         (main): Invoke gl_msvc_inval_ensure_handler.
29195         * tests/test-fread.c: Include msvc-inval.h.
29196         (main): Invoke gl_msvc_inval_ensure_handler.
29197         * tests/test-fwrite.c: Include msvc-inval.h.
29198         (main): Invoke gl_msvc_inval_ensure_handler.
29199         * modules/fgetc-tests (Depends-on): Add msvc-inval.
29200         * modules/fputc-tests (Depends-on): Likewise.
29201         * modules/fread-tests (Depends-on): Likewise.
29202         * modules/fwrite-tests (Depends-on): Likewise.
29204 2011-09-27  Bruno Haible  <bruno@clisp.org>
29206         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
29207         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
29208         (raise): Remove older, duplicated declaration.
29209         (_gl_raise_SIGPIPE): New declaration.
29210         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
29211         (rpl_raise): Remove function.
29212         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
29213         a gnulib-defined SIGPIPE here.
29214         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
29215         'sigprocmask' has detected missing signal-blocking and the module
29216         'sigpipe' is enabled.
29217         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29219 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
29221         base64-tests: avoid memory leak
29222         * tests/test-base64.c (main): Plug memory leak.
29224         base32: new module
29225         * modules/base32: New module.
29226         * lib/base32.c: New file.
29227         * lib/base32.h: Likewise.
29228         * m4/base32.m4: Likewise.
29229         * modules/base32-tests: New test.
29230         * tests/test-base32.c: Likewise.
29231         * MODULES.html.sh (Misc): Mention it.
29233 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29235         gnulib: use more-standard license notice wording
29236         * gnulib-tool (func_emit_copyright_notice): When emitting a
29237         license notice into a file, use the standard wording as suggested
29238         by the current information for GNU maintainers, except say "file"
29239         rather than "program".  The new wording gives a license version
29240         number, which addresses an issue raised by Glenn Morris in
29241         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
29242         * m4/onceonly.m4: Use that same wording here, too.
29244         dup2: minor simplification
29245         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
29246         as lib/dup2.c no longer uses 'inline'.
29248 2011-09-25  Bruno Haible  <bruno@clisp.org>
29250         strings: Fix compilation error on MSVC.
29251         * lib/strings.in.h: Include <stddef.h> for size_t.
29253 2011-09-25  Bruno Haible  <bruno@clisp.org>
29255         fflush et al.: Document limitation on MSVC.
29256         * doc/posix-functions/fflush.texi: Document possible crash in handling
29257         mode other than DEFAULT_HANDLING.
29258         * doc/posix-functions/fgetc.texi: Likewise.
29259         * doc/posix-functions/fputc.texi: Likewise.
29260         * doc/posix-functions/fread.texi: Likewise.
29261         * doc/posix-functions/fwrite.texi: Likewise.
29263 2011-09-25  Bruno Haible  <bruno@clisp.org>
29265         msvc-inval: Allow three invalid parameter handling modes.
29266         * lib/msvc-inval.h: Don't include <stdlib.h> here.
29267         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
29268         macros.
29269         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
29270         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
29271         SANE_LIBRARY_HANDLING as a no-op.
29272         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
29273         <stdlib.h>.
29274         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
29276 2011-09-25  Bruno Haible  <bruno@clisp.org>
29278         msvc-inval: Make handler multithread-safe.
29279         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
29280         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
29281         declarations.
29282         (gl_msvc_inval_current): New declaration.
29283         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
29284         Operate on the structure returned by gl_msvc_inval_current().
29285         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
29286         Remove varaiables.
29287         (tls_index, tls_initialized): New variables.
29288         (not_per_thread): New variable.
29289         (gl_msvc_inval_current): New function.
29290         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
29291         returned by gl_msvc_inval_current().
29293 2011-09-25  Bruno Haible  <bruno@clisp.org>
29295         msvc-inval: Install handler globally.
29296         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
29297         !_MSC_VER.
29298         (gl_msvc_invalid_parameter_handler): Remove declaration.
29299         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
29300         declarations.
29301         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
29302         Install the handler globally, don't uninstall it.
29303         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
29304         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
29305         currently valid, call RaiseException instead.
29306         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
29307         for !_MSC_VER.
29309 2011-09-25  Bruno Haible  <bruno@clisp.org>
29311         strerror_r-posix: Fix for MSVC 9.
29312         * lib/strerror_r.c (local_snprintf): New function.
29313         (snprintf): Define to local_snprintf, not to _snprintf.
29315 2011-09-25  Bruno Haible  <bruno@clisp.org>
29317         ftruncate: Support for MSVC 9.
29318         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
29319         (chsize_nothrow): New function.
29320         (chsize): Redefine as a macro.
29321         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
29322         * modules/ftruncate (Depends-on): Add msvc-inval.
29324 2011-09-25  Bruno Haible  <bruno@clisp.org>
29326         New module 'fstat'.
29327         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
29328         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
29329         * lib/fchdir.c (rpl_fstat): Remove function.
29330         * m4/fstat.m4: New file.
29331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
29332         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
29333         declared.
29334         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
29335         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
29336         * modules/fstat: New file.
29337         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
29338         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
29339         is set.
29340         * doc/posix-functions/fstat.texi: Mention the new module and the
29341         problem on MSVC.
29342         * NEWS: Mention the change.
29343         * modules/acl (Depends-on): Add fstat.
29344         * modules/chdir-safer (Depends-on): Likewise.
29345         * modules/chown (Depends-on): Likewise.
29346         * modules/copy-file (Depends-on): Likewise.
29347         * modules/fchdir (Depends-on): Likewise.
29348         * modules/fdopendir (Depends-on): Likewise.
29349         * modules/fopen (Depends-on): Likewise.
29350         * modules/fts (Depends-on): Likewise.
29351         * modules/getcwd (Depends-on): Likewise.
29352         * modules/isapipe (Depends-on): Likewise.
29353         * modules/linkat (Depends-on): Likewise.
29354         * modules/lseek (Depends-on): Likewise.
29355         * modules/mkdir-p (Depends-on): Likewise.
29356         * modules/open (Depends-on): Likewise.
29357         * modules/openat (Depends-on): Likewise.
29358         * modules/read-file (Depends-on): Likewise.
29359         * modules/renameat (Depends-on): Likewise.
29360         * modules/utimens (Depends-on): Likewise.
29362 2011-09-25  Bruno Haible  <bruno@clisp.org>
29364         linkat: Fix compilation on MSVC 9.
29365         * lib/linkat.c: Don't include <stdint.h>.
29367 2011-09-25  Bruno Haible  <bruno@clisp.org>
29369         fclose: Support for MSVC 9.
29370         * lib/fclose.c: Include msvc-inval.h.
29371         (fclose_nothrow): New function.
29372         (rpl_fclose): Use it.
29373         * modules/fclose (Depends-on): Add msvc-inval.
29374         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
29376 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
29378         dup2: minor simplifications
29379         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
29380         that it's a performance win.
29381         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
29382         ! defined __CYGWIN__)" to "ifdef F_GETFL".
29384 2011-09-24  Jim Meyering  <meyering@redhat.com>
29386         test-futimens: avoid a warning from gcc -Wshadow
29387         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
29388         to avoid a shadowing warning.
29390 2011-09-24  Bruno Haible  <bruno@clisp.org>
29392         fdopen: Support for MSVC 9.
29393         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
29394         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
29395         * lib/fdopen.c: Include msvc-inval.h.
29396         (fdopen_nothrow): New function.
29397         (rpl_fdopen): Use it.
29398         * modules/fdopen (Depends-on): Add msvc-inval.
29399         * modules/fclose-tests (Depends-on): Add fdopen.
29400         * modules/fflush-tests (Depends-on): Likewise.
29401         * modules/fgetc-tests (Depends-on): Likewise.
29402         * modules/fputc-tests (Depends-on): Likewise.
29403         * modules/fread-tests (Depends-on): Likewise.
29404         * modules/freopen-tests (Depends-on): Likewise.
29405         * modules/fseeko-tests (Depends-on): Likewise.
29406         * modules/ftello-tests (Depends-on): Likewise.
29407         * modules/fwrite-tests  (Depends-on): Likewise.
29408         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
29410 2011-09-24  Bruno Haible  <bruno@clisp.org>
29412         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
29413         * modules/fgetc-tests (Depends-on): Add unistd.
29414         * modules/fputc-tests (Depends-on): Likewise.
29415         * modules/fread-tests (Depends-on): Likewise.
29416         * modules/fwrite-tests (Depends-on): Likewise.
29418 2011-09-24  Bruno Haible  <bruno@clisp.org>
29420         dup: Simplify autoconf test.
29421         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
29422         on gl_MSVC_INVAL's result.
29424 2011-09-24  Bruno Haible  <bruno@clisp.org>
29426         Tests for function fwrite().
29427         * modules/fwrite-tests: New file.
29428         * tests/test-fwrite.c: New file.
29429         * modules/stdio-tests (Depends-on): Add fwrite-tests.
29431         Tests for function fread().
29432         * modules/fread-tests: New file.
29433         * tests/test-fread.c: New file.
29434         * modules/stdio-tests (Depends-on): Add fread-tests.
29436         Activate fputc tests.
29437         * modules/stdio-tests (Depends-on): Add fputc-tests.
29439         Enhance fgetc, fputc tests.
29440         * tests/test-fgetc.c (main): Also test the stream's error indicator.
29441         * tests/test-fputc.c (main): Likewise.
29443 2011-09-24  Bruno Haible  <bruno@clisp.org>
29445         write: Support for MSVC 9.
29446         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
29447         is not 1.
29448         * lib/write.c (write_nothrow): New function.
29449         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
29450         not 1. Use write_nothrow.
29451         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
29452         invalid parameter handler.
29453         (gl_PREREQ_WRITE): New macro.
29454         * modules/write (Depends-on): Add msvc-inval.
29455         (configure.ac): Invoke gl_PREREQ_WRITE.
29456         * doc/posix-functions/write.texi: Mention the problem on MSVC.
29458 2011-09-24  Bruno Haible  <bruno@clisp.org>
29460         read: Fix last commit.
29461         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
29463 2011-09-24  Bruno Haible  <bruno@clisp.org>
29465         dup2: Fix last commit.
29466         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
29467         (rpl_dup2): Disable fcntl workaround on native Windows.
29469         sigprocmask: Make code safer.
29470         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
29471         section that changes macro definitions for this compilation unit.
29473 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29475         dup2: clarify by coalescing Windows-specific material
29476         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
29477         "msvc-nothrow.h"' to the Windows-specific section, so that the
29478         Emacs source need not contain these include files.
29479         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
29480         Windows-specific fixes into this function rather than just the
29481         nothrow fix, as this shortens and clarifies the code.  Always
29482         define as a function, as that's a bit cleaner than having it be
29483         sometimes a function and sometimes a macro.
29484         (rpl_dup2): Move the Windows-specific stuff out of here and into
29485         ms_windows_dup2.  Don't protect the Haiku-related fix with
29486         "#if !defined __linux__", as the same code also works around
29487         a Linux kernel bug, and it doesn't add any system calls on any
29488         platform.  Add comment about FreeBSD 6.1.
29490         sigprocmask: move #include directive
29491         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
29492         Windows-specific section, so that the Emacs source need not
29493         contain msvc-inval.h.
29495 2011-09-23  Bruno Haible  <bruno@clisp.org>
29497         read: Support for MSVC 9.
29498         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
29499         is not 1.
29500         * lib/read.c (read_nothrow): New function.
29501         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
29502         read_nothrow.
29503         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
29504         invalid parameter handler.
29505         (gl_PREREQ_READ): New macro.
29506         * modules/read (Depends-on): Add msvc-inval.
29507         (configure.ac): Invoke gl_PREREQ_READ.
29508         * doc/posix-functions/read.texi: Mention the problem on MSVC.
29510 2011-09-23  Bruno Haible  <bruno@clisp.org>
29512         close: Support for MSVC 9.
29513         * lib/close.c: Include <errno.h>, msvc-inval.h.
29514         (close_nothrow): New function.
29515         (rpl_close): Use it.
29516         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
29517         invalid parameter handler.
29518         * modules/close (Depends-on): Add msvc-inval.
29519         * modules/dup2-tests (Depends-on): Add close.
29520         * modules/dup3-tests (Depends-on): Likewise.
29521         * modules/fcntl-tests (Depends-on): Likewise.
29522         * modules/spawn-pipe-tests (Depends-on): Likewise.
29523         * modules/unistd-safer-tests (Depends-on): Likewise.
29524         * doc/posix-functions/close.texi: Mention the problem on MSVC.
29526 2011-09-23  Bruno Haible  <bruno@clisp.org>
29528         New module 'dup'.
29529         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
29530         Allow replacement.
29531         * lib/dup.c: New file.
29532         * lib/fchdir.c (rpl_dup): Remove function.
29533         * m4/dup.m4: New file.
29534         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
29535         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
29536         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
29537         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
29538         * modules/dup: New file.
29539         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
29540         'dup' module is in use.
29541         * modules/fdopendir (Depends-on): Add dup.
29542         * modules/fdutimensat-tests (Depends-on): Likewise.
29543         * modules/fts (Depends-on): Likewise.
29544         * modules/futimens-tests (Depends-on): Likewise.
29545         * modules/posix_spawnp-tests (Depends-on): Likewise.
29546         * modules/unistd-safer-tests (Depends-on): Likewise.
29547         * modules/utimens-tests (Depends-on): Likewise.
29548         * doc/posix-functions/dup.texi: Mention the new module and the problem
29549         on MSVC.
29551 2011-09-23  Bruno Haible  <bruno@clisp.org>
29553         getdtablesize: Support for MSVC 9.
29554         * lib/getdtablesize.c: Include msvc-inval.h.
29555         (_setmaxstdio_nothrow): New function.
29556         (_setmaxstdio): Redefine it.
29557         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
29558         * modules/getdtablesize (Depends-on): Add msvc-inval.
29559         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
29561 2011-09-23  Bruno Haible  <bruno@clisp.org>
29563         signal-h: Rename from signal.
29564         * modules/signal-h: Renamed from modules/signal.
29565         * modules/pthread_sigmask (Depends-on): Update.
29566         * modules/raise (Depends-on): Likewise.
29567         * modules/sigaction (Depends-on): Likewise.
29568         * modules/sigpipe (Depends-on): Likewise.
29569         * modules/sigprocmask (Depends-on): Likewise.
29570         * modules/sys_select (Depends-on): Likewise.
29571         * modules/signal-h-tests: Renamed from modules/signal-tests.
29572         (Files, Depends-on, Makefile.am): Update.
29573         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
29574         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
29575         (Files, Makefile.am): Update.
29576         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
29577         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
29578         * modules/signal: New placeholder file.
29579         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
29580         * doc/posix-headers/signal.texi: Update.
29581         * NEWS: Mention the change.
29583 2011-09-23  Bruno Haible  <bruno@clisp.org>
29585         sigprocmask: Avoid crashes through signal() on MSVC 9.
29586         * lib/sigprocmask.c: Include msvc-inval.h.
29587         (signal_nothrow): New function.
29588         (signal): Redefine it.
29589         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
29590         * modules/sigprocmask (Depends-on): Add msvc-inval.
29591         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
29593 2011-09-23  Bruno Haible  <bruno@clisp.org>
29595         Tests for module 'raise'.
29596         * modules/raise-tests: New file.
29597         * tests/test-raise.c: New file.
29599         raise: Support for MSVC.
29600         * lib/signal.in.h (raise): New declaration.
29601         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
29602         for native Windows platforms.
29603         * m4/raise.m4: New file.
29604         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
29605         HAVE_RAISE, REPLACE_RAISE.
29606         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
29607         REPLACE_RAISE.
29608         * modules/raise (Status, Notice): Remove fields.
29609         (Files): Add m4/raise.m4.
29610         (Depends-on): Add signal, msvc-inval.
29611         (configure.ac): Use the common idioms.
29612         (Maintainer): Add me.
29613         * tests/test-signal-c++.cc: Check the signature of raise.
29614         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
29616 2011-09-23  Bruno Haible  <bruno@clisp.org>
29618         pipe2: Fix compilation on pre-C99 compilers.
29619         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
29621 2011-09-23  Bruno Haible  <bruno@clisp.org>
29623         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
29624         * lib/msvc-nothrow.h: New file.
29625         * lib/msvc-nothrow.c: New file.
29626         * m4/msvc-nothrow.m4: New file.
29627         * modules/msvc-nothrow: New file.
29628         * lib/dup2.c: Include msvc-nothrow.h.
29629         (rpl_dup2): No need to protect _get_osfhandle call here.
29630         * lib/accept4.c: Include msvc-nothrow.h.
29631         * lib/error.c: Likewise.
29632         * lib/fcntl.c: Likewise.
29633         * lib/lseek.c: Likewise.
29634         * lib/nonblocking.c: Likewise.
29635         * lib/poll.c: Likewise.
29636         * lib/read.c: Likewise.
29637         * lib/select.c: Likewise.
29638         * lib/sockets.h: Likewise.
29639         * lib/sockets.c: Likewise.
29640         * lib/stdio-read.c: Likewise.
29641         * lib/stdio-write.c: Likewise.
29642         * lib/write.c: Likewise.
29643         * lib/w32sock.h: Likewise.
29644         * lib/w32spawn.h: Likewise.
29645         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
29646         * lib/fsync.c: Likewise.
29647         * lib/isapipe.c: Likewise.
29648         * modules/dup2 (Depends-on): Add msvc-nothrow.
29649         * modules/accept4 (Depends-on): Likewise.
29650         * modules/error (Depends-on): Likewise.
29651         * modules/fcntl (Depends-on): Likewise.
29652         * modules/lseek (Depends-on): Likewise.
29653         * modules/nonblocking (Depends-on): Likewise.
29654         * modules/poll (Depends-on): Likewise.
29655         * modules/read (Depends-on): Likewise.
29656         * modules/select (Depends-on): Likewise.
29657         * modules/sockets (Depends-on): Likewise.
29658         * modules/sigpipe (Depends-on): Likewise.
29659         * modules/write (Depends-on): Likewise.
29660         * modules/accept (Depends-on): Likewise.
29661         * modules/bind (Depends-on): Likewise.
29662         * modules/connect (Depends-on): Likewise.
29663         * modules/gethostname (Depends-on): Likewise.
29664         * modules/getpeername (Depends-on): Likewise.
29665         * modules/getsockname (Depends-on): Likewise.
29666         * modules/getsockopt (Depends-on): Likewise.
29667         * modules/ioctl (Depends-on): Likewise.
29668         * modules/listen (Depends-on): Likewise.
29669         * modules/recv (Depends-on): Likewise.
29670         * modules/recvfrom (Depends-on): Likewise.
29671         * modules/send (Depends-on): Likewise.
29672         * modules/sendto (Depends-on): Likewise.
29673         * modules/setsockopt (Depends-on): Likewise.
29674         * modules/shutdown (Depends-on): Likewise.
29675         * modules/socket (Depends-on): Likewise.
29676         * modules/execute (Depends-on): Likewise.
29677         * modules/spawn-pipe (Depends-on): Likewise.
29678         * modules/flock (Depends-on): Likewise.
29679         * modules/fsync (Depends-on): Likewise.
29680         * modules/isapipe (Depends-on): Likewise.
29681         * tests/test-cloexec.c: Include msvc-nothrow.h.
29682         * tests/test-dup-safer.c: Likewise.
29683         * tests/test-dup2.c: Likewise.
29684         * tests/test-dup3.c: Likewise.
29685         * tests/test-fcntl.c: Likewise.
29686         * tests/test-pipe.c: Likewise.
29687         * tests/test-pipe2.c: Likewise.
29688         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
29689         * modules/unistd-safer-tests (Depends-on): Likewise.
29690         * modules/dup2-tests (Depends-on): Likewise.
29691         * modules/dup3-tests (Depends-on): Likewise.
29692         * modules/fcntl-tests (Depends-on): Likewise.
29693         * modules/pipe-posix-tests (Depends-on): Likewise.
29694         * modules/pipe2-tests (Depends-on): Likewise.
29696 2011-09-23  Bruno Haible  <bruno@clisp.org>
29698         dup2: Make code more maintainable.
29699         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
29700         (rpl_dup2): Use it.
29701         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
29702         * modules/dup2 (configure.ac): Invoke it.
29703         Reported by Paul Eggert.
29705 2011-09-23  Bruno Haible  <bruno@clisp.org>
29707         msvc-inval: Fix compilation error.
29708         * lib/msvc-inval.h: Include <excpt.h>.
29710 2011-09-23  Bruno Haible  <bruno@clisp.org>
29712         mkdir: Tweak for MSVC 9.
29713         * lib/sys_stat.in.h: Update comments.
29714         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
29716         Tests for module 'chdir'.
29717         * modules/chdir-tests: New file.
29718         * tests/test-chdir.c: New file.
29720         New module 'chdir'.
29721         * modules/chdir: New file.
29722         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
29723         (chdir): New declaration.
29724         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
29725         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
29726         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
29727         * tests/test-unistd-c++.cc: Check signature of chdir.
29728         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
29729         * modules/chdir-long (Depends-on): Add chdir.
29730         * modules/fchdir (Depends-on): Likewise.
29731         * modules/rename (Depends-on): Likewise.
29732         * modules/savewd (Depends-on): Likewise.
29734         rmdir: Support for mingw, MSVC 9.
29735         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
29736         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
29738         getcwd: Tweak for MSVC 9.
29739         * lib/unistd.in.h: Update comments.
29740         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
29742 2011-09-22  Bruno Haible  <bruno@clisp.org>
29744         strerror_r-posix: Avoid a link error on MSVC.
29745         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
29746         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
29748 2011-09-22  Bruno Haible  <bruno@clisp.org>
29750         select: Avoid link errors on MSVC.
29751         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
29752         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
29753         * modules/pselect (Link): Likewise.
29754         * NEWS: Mention the change.
29755         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
29756         test-select-stdin against $(LIB_SELECT).
29757         * modules/pselect-tests (Makefile.am): Link test-pselect against
29758         $(LIB_SELECT).
29760 2011-09-22  Bruno Haible  <bruno@clisp.org>
29762         select: Avoid compilation error on MSVC.
29763         * lib/select.c: Don't include <stdbool.h>.
29765 2011-09-21  Bruno Haible  <bruno@clisp.org>
29767         Consolidate all uses of PATH_MAX in *.m4 files.
29768         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
29769         macros.
29770         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
29771         and gl_PATHMAX_SNIPPET.
29772         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
29773         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29774         * modules/chdir-long (Files): Add m4/pathmax.m4.
29775         * modules/getcwd (Files): Likewise.
29777 2011-09-21  Bruno Haible  <bruno@clisp.org>
29779         ftruncate: Un-deprecate, concentrate on Win32 support.
29780         * modules/ftruncate (Status, Notice): Remove sections.
29781         (Depends-on): Add largefile.
29782         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
29783         non-mingw platforms.
29784         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
29785         include <io.h>.
29786         * modules/perror-tests (Depends-on): Add ftruncate.
29787         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
29788         'ftruncate' module.
29790 2011-09-21  Bruno Haible  <bruno@clisp.org>
29792         Add dependencies to new dirent related modules.
29793         * modules/opendir (Depends-on): Add closedir.
29794         * modules/getcwd (Depends-on): Add opendir, closedir.
29795         * modules/dirent-safer-tests (Depends-on): Likewise.
29796         * modules/fdopendir-tests (Depends-on): Likewise.
29797         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
29798         * modules/renameat-tests (Depends-on): Likewise.
29800 2011-09-21  Bruno Haible  <bruno@clisp.org>
29802         opendir: Avoid compilation error on mingw.
29803         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
29804         * modules/opendir (Depends-on): Add unistd.
29806 2011-09-21  Bruno Haible  <bruno@clisp.org>
29808         ftruncate tests: Avoid a test failure on mingw.
29809         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
29811 2011-09-21  Bruno Haible  <bruno@clisp.org>
29813         select tests: Avoid test failures on OSF/1 5.1 and mingw.
29814         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
29815         native Windows.
29817 2011-09-21  Bruno Haible  <bruno@clisp.org>
29819         New module 'fdopen'.
29820         * lib/stdio.in.h (fdopen): New declaration.
29821         * lib/fdopen.c: New file.
29822         * m4/fdopen.m4: New file.
29823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
29824         REPLACE_FDOPEN.
29825         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
29826         REPLACE_FDOPEN.
29827         * modules/fdopen: New file.
29828         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
29829         * tests/test-stdio-c++.cc: Check signature of fdopen.
29830         * doc/posix-functions/fdopen.texi: Mention the new module.
29832 2011-09-21  Bruno Haible  <bruno@clisp.org>
29834         unlockpt tests: Avoid test failure on NetBSD 5.1.
29835         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
29836         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
29838 2011-09-21  Bruno Haible  <bruno@clisp.org>
29840         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
29841         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
29842         * tests/test-getlogin_r.c (main): Likewise.
29844 2011-09-20  Bruno Haible  <bruno@clisp.org>
29846         time tests: Don't require pid_t.
29847         * doc/posix-headers/time.texi: Revert last change.
29848         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
29849         * tests/test-time.c: Comment out the check for pid_t.
29851 2011-09-20  Bruno Haible  <bruno@clisp.org>
29853         fsync tests: Avoid a test failure on mingw.
29854         * tests/test-fsync.c (main): Allow a failure with EIO.
29856 2011-09-20  Bruno Haible  <bruno@clisp.org>
29858         euidaccess: Update comments.
29859         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
29861 2011-09-20  Bruno Haible  <bruno@clisp.org>
29863         Ensure EBADF returns for socket functions on mingw.
29864         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
29865         descriptor is invalid.
29866         * lib/bind.c (rpl_bind): Likewise.
29867         * lib/connect.c (rpl_connect): Likewise.
29868         * lib/getpeername.c (rpl_getpeername): Likewise.
29869         * lib/getsockname.c (rpl_getsockname): Likewise.
29870         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29871         * lib/listen.c (rpl_listen): Likewise.
29872         * lib/recv.c (rpl_recv): Likewise.
29873         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29874         * lib/send.c (rpl_send): Likewise.
29875         * lib/sendto.c (rpl_sendto): Likewise.
29876         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29877         * lib/shutdown.c (rpl_shutdown): Likewise.
29879 2011-09-20  Bruno Haible  <bruno@clisp.org>
29881         select tests: EBADF tests.
29882         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
29883         test_bad_fd): New functions.
29884         (test_function): Invoke also test_bad_fd.
29886 2011-09-20  Bruno Haible  <bruno@clisp.org>
29888         Tests for module 'posix_spawn_file_actions_addopen.
29889         * modules/posix_spawn_file_actions_addopen-tests: New file.
29890         * tests/test-posix_spawn_file_actions_addopen.c: New file.
29892         Tests for module 'posix_spawn_file_actions_adddup2'.
29893         * modules/posix_spawn_file_actions_adddup2-tests: New file.
29894         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
29896         Tests for module 'posix_spawn_file_actions_addclose'.
29897         * modules/posix_spawn_file_actions_addclose-tests: New file.
29898         * tests/test-posix_spawn_file_actions_addclose.c: New file.
29900 2011-09-20  Bruno Haible  <bruno@clisp.org>
29902         Tests for module 'unlockpt'.
29903         * modules/unlockpt-tests: New file.
29904         * tests/test-unlockpt.c: New file.
29905         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
29907         Tests for module 'grantpt'.
29908         * modules/grantpt-tests: New file.
29909         * tests/test-grantpt.c: New file.
29910         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
29912 2011-09-20  Bruno Haible  <bruno@clisp.org>
29914         freopen tests: EBADF tests.
29915         * tests/test-freopen.c: Include errno.h, unistd.h.
29916         (main): Add tests for EBADF, commented out for the moment.
29918         fclose tests: EBADF tests.
29919         * tests/test-fclose.c (main): Add tests for EBADF.
29921         fflush tests: EBADF tests.
29922         * tests/test-fflush.c: Include errno.h, macros.h.
29923         (main): Add tests for EBADF.
29925         ftello tests: EBADF tests.
29926         * tests/test-ftello4.sh: New file.
29927         * tests/test-ftello4.c: New file.
29928         * modules/ftello-tests (Files): Add them.
29929         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
29931         fseeko tests: EBADF tests.
29932         * tests/test-fseeko4.sh: New file.
29933         * tests/test-fseeko4.c: New file.
29934         * modules/fseeko-tests (Files): Add them.
29935         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
29937         Tests for function fputc().
29938         * modules/fputc-tests: New file.
29939         * tests/test-fputc.c: New file.
29940         * modules/stdio-tests (Depends-on): Add fputc-tests.
29942         Tests for function fgetc().
29943         * modules/fgetc-tests: New file.
29944         * tests/test-fgetc.c: New file.
29945         * modules/stdio-tests (Depends-on): Add fgetc-tests.
29947         Tests for function fdopen().
29948         * modules/fdopen-tests: New file.
29949         * tests/test-fdopen.c: New file.
29950         * modules/stdio-tests (Depends-on): Add fdopen-tests.
29952         Tests for module 'vdprintf'.
29953         * modules/vdprintf-tests: New file.
29954         * tests/test-vdprintf.c: New file.
29956         Tests for module 'dprintf'.
29957         * modules/dprintf-tests: New file.
29958         * tests/test-dprintf.c: New file.
29960 2011-09-20  Bruno Haible  <bruno@clisp.org>
29962         Tests for module 'ioctl'.
29963         * modules/ioctl-tests: New file.
29964         * tests/test-ioctl.c: New file.
29966 2011-09-20  Bruno Haible  <bruno@clisp.org>
29968         fcntl tests: EBADF tests.
29969         * tests/test-fcntl.c (main): Add more tests for EBADF.
29971 2011-09-20  Bruno Haible  <bruno@clisp.org>
29973         utimensat tests: EBADF tests.
29974         * tests/test-utimensat.c (main): Add tests for EBADF.
29976         renameat tests: EBADF tests.
29977         * tests/test-renameat.c (main): Add tests for EBADF.
29979         mkfifoat tests: EBADF tests.
29980         * tests/test-mkfifoat.c (main): Add tests for EBADF.
29982         readlinkat tests: EBADF tests.
29983         * tests/test-readlinkat.c (main): Add tests for EBADF.
29985         symlinkat tests: EBADF tests.
29986         * tests/test-symlinkat.c (main): Add tests for EBADF.
29988         linkat tests: EBADF tests.
29989         * tests/test-linkat.c (main): Add tests for EBADF.
29991         Tests for module 'faccessat'.
29992         * modules/faccessat-tests: New file.
29993         * tests/test-faccessat.c: New file.
29995         fdopendir tests: EBADF tests.
29996         * tests/test-fdopendir.c (main): Add more tests for EBADF.
29998         openat tests: EBADF tests.
29999         * tests/test-fchownat.c (main): Add tests for EBADF.
30000         * tests/test-fstatat.c (main): Likewise.
30001         * tests/test-mkdirat.c (main): Likewise.
30002         * tests/test-openat.c (main): Likewise.
30003         * tests/test-unlinkat.c (main): Likewise.
30004         * tests/test-fchmodat.c: New file.
30005         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
30006         (Makefile.am): Also run 'test-fchmodat'.
30008 2011-09-20  Bruno Haible  <bruno@clisp.org>
30010         utimens, futimens, fdutimensat tests: EBADF tests.
30011         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
30013         Tests for function fstat().
30014         * modules/fstat-tests: New file.
30015         * tests/test-fstat.c: New file.
30016         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
30018 2011-09-20  Bruno Haible  <bruno@clisp.org>
30020         test-ttyname_r tests: EBADF tests.
30021         * tests/test-ttyname_r.c (main): Add tests for EBADF.
30023         Tests for module 'isatty'.
30024         * modules/isatty-tests: New file.
30025         * tests/test-isatty.c: New file.
30027         Tests for module 'write'.
30028         * modules/write-tests: New file.
30029         * tests/test-write.c: New file.
30031         Tests for module 'read'.
30032         * modules/read-tests: New file.
30033         * tests/test-read.c: New file.
30035         pwrite tests: EBADF tests.
30036         * tests/test-pwrite.c (main): Add tests for EBADF.
30038         pread tests: EBADF tests.
30039         * tests/test-pread.c (main): Add tests for EBADF.
30041         lseek tests: EBADF tests.
30042         * tests/test-lseek.c (main): Add more tests for EBADF.
30044         Tests for module 'ftruncate'.
30045         * modules/ftruncate-tests: New file.
30046         * tests/test-ftruncate.sh: New file.
30047         * tests/test-ftruncate.c: New file.
30049         fsync tests: EBADF tests.
30050         * tests/test-fsync.c (main): Add more tests for EBADF.
30052         fdatasync tests: EBADF tests.
30053         * tests/test-fdatasync.c (main): Add more tests for EBADF.
30055         Tests for module 'fchown'.
30056         * modules/fchown-tests: New file.
30057         * tests/test-fchown.c: New file.
30059         Tests for module 'fchmod'.
30060         * modules/fchmod-tests: New file.
30061         * tests/test-fchmod.c: New file.
30063         fchdir tests: EBADF tests.
30064         * tests/test-fchdir.c (main): Add more tests for EBADF.
30066         dup2 tests: EBADF tests.
30067         * tests/test-dup2.c (main): Add more tests for EBADF.
30069         Tests for module 'dup'.
30070         * modules/dup-tests: New file.
30071         * tests/test-dup.c: New file.
30073         Tests for module 'close'.
30074         * modules/close-tests: New file.
30075         * tests/test-close.c: New file.
30077 2011-09-20  Bruno Haible  <bruno@clisp.org>
30079         Tests for module 'shutdown'.
30080         * modules/shutdown-tests: New file.
30081         * tests/test-shutdown.c: New file.
30083         Tests for module 'setsockopt'.
30084         * modules/setsockopt-tests: New file.
30085         * tests/test-setsockopt.c: New file.
30087         Tests for module 'sendto'.
30088         * modules/sendto-tests: New file.
30089         * tests/test-sendto.c: New file.
30091         Tests for module 'send'.
30092         * modules/send-tests: New file.
30093         * tests/test-send.c: New file.
30095         Tests for module 'recvfrom'.
30096         * modules/recvfrom-tests: New file.
30097         * tests/test-recvfrom.c: New file.
30099         Tests for module 'recv'.
30100         * modules/recv-tests: New file.
30101         * tests/test-recv.c: New file.
30103         Tests for module 'listen'.
30104         * modules/listen-tests: New file.
30105         * tests/test-listen.c: New file.
30107         Tests for module 'getsockopt'.
30108         * modules/getsockopt-tests: New file.
30109         * tests/test-getsockopt.c: New file.
30111         Tests for module 'getsockname'.
30112         * modules/getsockname-tests: New file.
30113         * tests/test-getsockname.c: New file.
30115         Tests for module 'getpeername'.
30116         * modules/getpeername-tests: New file.
30117         * tests/test-getpeername.c: New file.
30119         Tests for module 'connect'.
30120         * modules/connect-tests: New file.
30121         * tests/test-connect.c: New file.
30123         Tests for module 'bind'.
30124         * modules/bind-tests: New file.
30125         * tests/test-bind.c: New file.
30127         accept4 tests: Fix for native Windows.
30128         * tests/test-accept4.c: Include sockets.h.
30129         (main): Invoke gl_sockets_startup.
30130         * modules/accept4-tests (Depends-on): Add sockets.
30132         accept tests: Fix for native Windows.
30133         * tests/test-accept.c: Include sockets.h.
30134         (main): Invoke gl_sockets_startup.
30135         * modules/accept-tests (Depends-on): Add sockets.
30137 2011-09-19  Bruno Haible  <bruno@clisp.org>
30139         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
30140         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
30141         do...while(0).
30142         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
30143         Suggested by Paul Eggert.
30145 2011-09-19  Bruno Haible  <bruno@clisp.org>
30147         sched: Ensure pid_t is defined.
30148         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
30149         not define pid_t.
30150         * lib/sched.in.h: Include <sys/types.h>.
30151         * doc/posix-headers/sched.texi: Mention the pid_t problem.
30152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30154 2011-09-19  Bruno Haible  <bruno@clisp.org>
30156         msvc-inval: Ensure the entire expansion is a single statement.
30157         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
30158         of braces.
30160 2011-09-19  Jim Meyering  <meyering@redhat.com>
30162         tests: use printf, not echo in init.sh's warn_ function
30163         * tests/init.sh (warn_): Use printf, not echo.  The latter would
30164         misbehave when given strings containing a backslash or starting
30165         with e.g., -n.  James Youngman suggested setting IFS.
30167 2011-09-19  Eric Blake  <eblake@redhat.com>
30169         futimens: enhance test
30170         * tests/test-futimens.h (test_futimens): Also check for EBADF on
30171         closed non-negative fd.
30173         date: accept 'hence' as opposite of 'ago'
30174         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
30175         * tests/test-parse-datetime.c (main): Enhance test.
30176         Suggested by Jesse Wilson.
30178 2011-09-19  Jim Meyering  <meyering@redhat.com>
30180         getcwd: don't fail in a deep directory on a system without openat
30181         Before this change, getcwd would fail when called from a directory
30182         of depth PATH_MAX / 3 or greater.  That was due to the fact that
30183         the non-openat implementation used "..", "../..", "../../..", etc.
30184         to access ancestor directories.  With too many, that string would
30185         be longer than PATH_MAX.
30186         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
30187         using gnulib's openat replacement.
30188         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
30189         we're using the replacement function.
30191 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
30193         maint.mk: avoid warnings from perl about missing files
30194         * top/maint.mk (def_sym_regex): Ignore files listed in
30195         $(gl_other_headers_) that do not exist, say because a project
30196         does not use a corresponding module.
30198 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
30200         stat: use pathmax.h only if needed
30201         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
30202         This is better for Emacs, which does not have a mingw port and
30203         therefore can avoid the pathmax module.
30205         utimens: remove dependency on dup2
30206         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
30207         to work around the Linux kernel bug.
30208         * modules/utimens (Depends-on): Remove dup2.
30210 2011-09-18  Bruno Haible  <bruno@clisp.org>
30212         inet_ntop, inet_pton: Look for it also in libresolv.
30213         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
30214         libnsl, search for it in libresolv.
30215         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30216         Needed on Solaris 7.
30218 2011-09-18  Bruno Haible  <bruno@clisp.org>
30220         accept, accept4 tests: Avoid link error on Solaris.
30221         * modules/accept-tests (Makefile.am): Link test-accept against
30222         $(LIBSOCKET).
30223         * modules/accept4-tests (Makefile.am): Link test-accept4 against
30224         $(LIBSOCKET).
30226         accept4: Avoid link error on Solaris.
30227         * modules/accept4 (Link): New section.
30229         socket functions: Avoid link errors on Solaris.
30230         * modules/accept (Depends-on): Add socketlib.
30231         (Link): New section.
30232         * modules/bind (Depends-on): Add socketlib.
30233         (Link): New section.
30234         * modules/connect (Depends-on): Add socketlib.
30235         (Link): New section.
30236         * modules/getpeername (Depends-on): Add socketlib.
30237         (Link): New section.
30238         * modules/getsockname (Depends-on): Add socketlib.
30239         (Link): New section.
30240         * modules/getsockopt (Depends-on): Add socketlib.
30241         (Link): New section.
30242         * modules/listen (Depends-on): Add socketlib.
30243         (Link): New section.
30244         * modules/recv (Depends-on): Add socketlib.
30245         (Link): New section.
30246         * modules/recvfrom (Depends-on): Add socketlib.
30247         (Link): New section.
30248         * modules/send (Depends-on): Add socketlib.
30249         (Link): New section.
30250         * modules/sendto (Depends-on): Add socketlib.
30251         (Link): New section.
30252         * modules/setsockopt (Depends-on): Add socketlib.
30253         (Link): New section.
30254         * modules/shutdown (Depends-on): Add socketlib.
30255         (Link): New section.
30256         * modules/socket (Depends-on): Add socketlib.
30257         (Link): New section.
30259 2011-09-18  Bruno Haible  <bruno@clisp.org>
30261         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
30262         * tests/test-ptsname.c (main): Terminate the test if it takes longer
30263         than 5 seconds.
30264         * modules/ptsname-tests (configure.ac): Test for alarm.
30266 2011-09-18  Bruno Haible  <bruno@clisp.org>
30268         posix_spawn_file_actions_add*: Fix module dependencies.
30269         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
30270         posix_spawn_file_actions_init.
30271         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
30272         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
30274 2011-09-18  Bruno Haible  <bruno@clisp.org>
30276         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
30277         * tests/test-rename.h (test_rename): Allow error code EEXIST.
30278         * tests/test-renameat.c (main): Likewise.
30280 2011-09-18  Bruno Haible  <bruno@clisp.org>
30282         Tests for module 'accept4'.
30283         * modules/accept4-tests: New file.
30284         * tests/test-accept4.c: New file.
30286 2011-09-18  Bruno Haible  <bruno@clisp.org>
30288         Tests for module 'accept'.
30289         * modules/accept-tests: New file.
30290         * tests/test-accept.c: New file.
30292 2011-09-18  Bruno Haible  <bruno@clisp.org>
30294         dup2: Support for MSVC.
30295         * lib/dup2.c: Include msvc-inval.h.
30296         (rpl_dup2): Handle invalid parameter notifications during dup2 and
30297         _get_osfhandle calls.
30298         * modules/dup2 (Depends-on): Add msvc-inval.
30299         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
30301         New module 'msvc-inval'.
30302         * lib/msvc-inval.h: New file.
30303         * lib/msvc-inval.c: New file.
30304         * m4/msvc-inval.m4: New file.
30305         * modules/msvc-inval: New file.
30307 2011-09-17  Bruno Haible  <bruno@clisp.org>
30309         Tests for module 'pclose'.
30310         * modules/pclose-tests: New file.
30312         New module 'pclose'.
30313         * lib/stdio.in.h (pclose): New declaration.
30314         * lib/pclose.c: New file.
30315         * m4/pclose.m4: New file.
30316         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
30317         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
30318         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
30319         * modules/pclose: New file.
30320         * modules/popen-tests (Depends-on): Add pclose.
30321         * modules/popen-safer-tests (Depends-on): Likewise.
30322         * doc/posix-functions/pclose.texi: Mention the new module.
30324 2011-09-17  Bruno Haible  <bruno@clisp.org>
30326         popen: Support for MSVC.
30327         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
30328         * lib/popen.c (popen): Provide alternate definition for native Windows.
30329         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
30330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
30331         * modules/popen (Depends-on, configure.ac): Update condition.
30332         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
30333         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
30334         fixed.
30336 2011-09-17  Bruno Haible  <bruno@clisp.org>
30338         isnanl, isnand, isnanf: Work around MSVC bug.
30339         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
30341 2011-09-17  Bruno Haible  <bruno@clisp.org>
30343         sys_socket tests: Fix recent mistake.
30344         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
30346 2011-09-17  Bruno Haible  <bruno@clisp.org>
30348         putenv: Support for MSVC.
30349         * modules/putenv (Depends-on): Add environ.
30350         * lib/putenv.c (environ): Disable declaration.
30351         * lib/unistd.in.h: Update comment.
30353 2011-09-17  Bruno Haible  <bruno@clisp.org>
30355         math: Avoid macro redefinition warnings on MSVC.
30356         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
30357         Undefine before redefining.
30359 2011-09-17  Bruno Haible  <bruno@clisp.org>
30361         doc: Mention functions which are declared as macros.
30362         * doc/posix-functions/*[fl].texi: Mention that some functions are
30363         defined as macros with arguments only.
30365 2011-09-17  Bruno Haible  <bruno@clisp.org>
30367         Add dependencies to new dirent related modules.
30368         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
30369         * modules/fts (Depends-on): Likewise.
30370         * modules/glob (Depends-on): Likewise.
30371         * modules/savedir (Depends-on): Likewise.
30372         * modules/scandir (Depends-on): Likewise.
30373         * modules/dirent-safer (Depends-on): Add opendir, closedir.
30374         * modules/fdopendir (Depends-on): Add opendir.
30376 2011-09-17  Bruno Haible  <bruno@clisp.org>
30378         inet_pton: Support for MSVC on Windows Vista or newer.
30379         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
30380         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
30381         HAVE_DECL_INET_PTON is defined.
30382         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30383         On platforms with <winsock2.h>, test whether inet_pton is declared in
30384         <ws2tcpip.h>. If so, arrange to replace it.
30385         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30386         REPLACE_INET_PTON.
30387         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
30388         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
30389         (Depends-on, configure.ac): Update condition.
30390         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
30392 2011-09-17  Bruno Haible  <bruno@clisp.org>
30394         inet_ntop: Support for MSVC on Windows Vista or newer.
30395         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
30396         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
30397         HAVE_DECL_INET_NTOP is defined.
30398         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30399         On platforms with <winsock2.h>, test whether inet_ntop is declared in
30400         <ws2tcpip.h>. If so, arrange to replace it.
30401         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30402         REPLACE_INET_NTOP.
30403         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
30404         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
30405         (Depends-on, configure.ac): Update condition.
30406         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
30408 2011-09-16  Eric Blake  <eblake@redhat.com>
30410         test-fsync: yet another enhancement
30411         * tests/test-fsync.c (main): Also test behavior on read-only text
30412         file.
30414 2011-09-16  Bruno Haible  <bruno@clisp.org>
30416         Enhance fsync, fdatasync tests.
30417         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
30418         * tests/test-fdatasync.c (main): Likewise.
30420 2011-09-16  Bruno Haible  <bruno@clisp.org>
30422         Support for MSVC compiler: Ensure mode_t gets defined.
30423         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
30424         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30425         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30426         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
30427         * tests/test-fcntl-h.c: Check that mode_t is defined.
30428         * tests/test-sys_stat.c: Likewise.
30429         * tests/test-sys_types.c: Likewise.
30430         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
30431         * doc/posix-headers/sys_stat.texi: Likewise.
30432         * doc/posix-headers/sys_types.texi: Likewise.
30434 2011-09-16  Bruno Haible  <bruno@clisp.org>
30436         sys_stat: Support for MSVC.
30437         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
30438         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
30439         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
30440         MSVC.
30442 2011-09-16  Bruno Haible  <bruno@clisp.org>
30444         Support for MSVC compiler: Ensure off_t gets defined.
30445         * lib/unistd.in.h: Include <sys/types.h>.
30446         * tests/test-fcntl-h.c: Check that off_t is defined.
30447         * tests/test-sys_stat.c: Likewise.
30448         * tests/test-sys_types.c: Likewise.
30450 2011-09-16  Eric Blake  <eblake@redhat.com>
30452         fdatasync: port to Solaris
30453         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
30454         * modules/fdatasync (Link): Document it.
30455         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
30457         fdatasync: port to MacOS X 10.7
30458         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
30459         declared.
30460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
30461         * modules/unistd (Makefile.am): Substitute it.
30462         * lib/unistd.in.h (fdatasync): Declare on MacOS.
30463         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
30465         fdatasync: minor improvements
30466         * modules/fdatasync (Depends-on): Add condition for fsync.
30467         * lib/fdatasync.c (fdatasync): Add comment.
30468         * tests/test-unistd-c++.cc: Test fdatasync.
30470         unistd: update refs to newer POSIX
30471         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
30472         Suggested by Bruno Haible.
30474         fdatasync: new module
30475         * modules/fsync (Description): Document difference to fdatasync.
30476         * modules/fdatasync: New module.
30477         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
30478         * lib/fdatasync.c (fdatasync): Likewise.
30479         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
30480         defaults.
30481         * modules/unistd (Makefile.am): Set witnesses.
30482         * lib/unistd.in.h (fdatasync): Declare.
30483         * MODULES.html.sh: Document it.
30484         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
30485         * modules/fdatasync-tests: New test.
30486         * tests/test-fdatasync.c: Likewise.
30488 2011-09-16  Eric Blake  <eblake@redhat.com>
30490         test-fsync: enhance tests
30491         * modules/fsync-tests (Depends-on): Add errno, for mingw.
30492         * tests/test-fsync.c (main): Enhance test.
30494 2011-09-15  Bruno Haible  <bruno@clisp.org>
30496         Support for MSVC compiler: Ensure ssize_t gets defined.
30497         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
30498         * doc/posix-headers/stdio.texi: Likewise.
30499         * modules/stdio (Depends-on): Add ssize_t.
30500         * modules/sys_socket (Depends-on): Likewise.
30501         * modules/sys_types (Depends-on): Likewise.
30502         * modules/sys_uio (Depends-on): Likewise.
30503         * modules/unistd (Depends-on): Likewise.
30504         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
30505         * tests/test-sys_types.c: Check that ssize_t is defined.
30507 2011-09-14  Bruno Haible  <bruno@clisp.org>
30509         Avoid using #, the m4 comment starter character, near brackets.
30510         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
30511         delimiter character in sed expressions.
30512         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30513         Suggested by Eric Blake.
30515         Properly quote AC_CHECK_DECLS' 4th argument.
30516         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
30517         argument.
30518         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30519         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30520         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30521         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30522         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30523         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
30524         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
30525         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
30526         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
30527         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
30528         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
30529         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30530         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30531         * m4/isinf.m4 (gl_ISINF): Likewise.
30532         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30533         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30534         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30535         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30536         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30537         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
30538         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30539         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
30540         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
30541         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30542         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30543         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30544         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
30545         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30547         Reported by Eric Blake.
30549         Properly quote AC_CHECK_DECL's 4th argument.
30550         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
30551         argument.
30552         * m4/argp.m4 (gl_ARGP): Likewise.
30553         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30554         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30555         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30556         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30557         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
30558         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
30559         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
30560         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30561         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30562         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30563         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30564         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30565         Reported by Eric Blake.
30567 2011-09-14  Eric Blake  <eblake@redhat.com>
30569         opendir: avoid compile warning
30570         * lib/opendir.c (includes): Always include errno.h.
30571         Reported by Tatsuro MATSUOKA.
30573 2011-09-14  Jim Meyering  <meyering@redhat.com>
30575         maint.mk: sc_tight_scope: propagate failure from sub-make
30576         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
30577         Reported by Martin von Gagern.
30579 2011-09-13  Bruno Haible  <bruno@clisp.org>
30581         tempname: Support for MSVC.
30582         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
30583         MSVC.
30584         * modules/tempname (Depends-on): Add fcntl-h.
30586 2011-09-13  Bruno Haible  <bruno@clisp.org>
30588         sys_time: Support for MSVC.
30589         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
30590         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
30591         include <winsock2.h>.
30592         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
30593         function declarations that collide with POSIX.
30594         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
30595         (Makefile.am): Substitute HAVE_WINSOCK2_H.
30597 2011-09-13  Bruno Haible  <bruno@clisp.org>
30599         stat: Support for MSVC.
30600         * lib/stat.c: Include pathmax.h.
30601         * modules/stat (Depends-on): Add pathmax.
30603         pathmax: Support for native Windows.
30604         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
30606 2011-09-12  Bruno Haible  <bruno@clisp.org>
30608         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
30609         * lib/dirent.in.h (struct dirent): New type.
30610         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
30611         DT_WHT): New macros.
30612         (DIR): New type.
30613         (opendir, closedir): Declare only if the module 'opendir' is enabled.
30614         (readdir, rewinddir): New declarations.
30615         * lib/dirent-private.h: New file.
30616         * lib/opendir.c: New file.
30617         * lib/readdir.c: New file.
30618         * lib/rewinddir.c: New file.
30619         * lib/closedir.c: New file.
30620         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
30621         * m4/opendir.m4: New file.
30622         * m4/readdir.m4: New file.
30623         * m4/rewinddir.m4: New file.
30624         * m4/closedir.m4: New file.
30625         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
30626         REPLACE_CLOSEDIR here.
30627         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
30628         readdir, rewinddir are declared.
30629         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
30630         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
30631         HAVE_REWINDDIR, HAVE_CLOSEDIR.
30632         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
30633         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
30634         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
30635         * modules/opendir: New file.
30636         * modules/readdir: New file.
30637         * modules/rewinddir: New file.
30638         * modules/closedir: New file.
30639         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
30640         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
30641         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
30642         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
30643         * NEWS: Mention the 'fchdir' change.
30645 2011-09-11  Bruno Haible  <bruno@clisp.org>
30647         asm-underscore.m4: Support for MSVC.
30648         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
30649         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
30651 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
30653         Doc about crypt functions.
30654         * doc/posix-functions/crypt.texi: Expand range of glibc versions
30655         needing for _GNU_SOURCE to get crypt.
30656         * doc/posix-functions/encrypt.texi: Likewise.
30657         * doc/posix-functions/setkey.texi: Likewise.
30659 2011-09-11  Bruno Haible  <bruno@clisp.org>
30661         doc: Update regarding MSVC 9.
30662         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
30663         tested".
30664         * doc/posix-functions/*.texi: Update with info about MSVC 9.
30665         * doc/posix-headers/*.texi: Likewise.
30666         * doc/pastposix-functions/*.texi: Likewise.
30667         * doc/glibc-functions/*.texi: Likewise.
30668         * doc/glibc-headers/*.texi: Likewise.
30670 2011-09-11  Bruno Haible  <bruno@clisp.org>
30672         unistd et al.: Don't assume <unistd.h> exists.
30673         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
30674         does not exist.
30675         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
30676         exist. But include <stdlib.h>.
30677         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
30678         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
30679         symlink() does not exist.
30680         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
30681         include <io.h> instead.
30682         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
30683         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
30684         include <direct.h> instead.
30685         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
30686         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
30687         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
30688         <io.h> instead.
30689         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
30690         correctly if the system does not have hard links.
30691         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
30692         <direct.h> instead.
30693         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
30694         it when looking for function declarations.
30695         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
30696         <direct.h> and <io.h> instead.
30697         * doc/posix-headers/unistd.texi: More details about MSVC problem.
30699 2011-09-11  Bruno Haible  <bruno@clisp.org>
30701         strcase: Support for MSVC.
30702         * modules/strcase (Status, Notice): Remove obsoletion mark.
30703         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
30704         * doc/posix-functions/strncasecmp.texi: Likewise.
30706         strings: Don't assume <strings.h> exists.
30707         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
30708         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
30709         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
30710         * doc/posix-headers/strings.texi: Mention the MSVC problem.
30712 2011-09-11  Bruno Haible  <bruno@clisp.org>
30714         dirent: Don't assume <dirent.h> exists.
30715         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
30716         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
30717         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
30718         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
30720 2011-09-11  Bruno Haible  <bruno@clisp.org>
30722         Fix wint_t on MSVC.
30723         * lib/wchar.in.h (wint_t): On MSVC, override it.
30724         * lib/wctype.in.h (wint_t): Likewise.
30725         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
30726         MSVC.
30727         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
30728         * doc/posix-headers/wctype.texi: Likewise.
30730 2011-09-11  Bruno Haible  <bruno@clisp.org>
30732         sys_types: Fix typo.
30733         * lib/sys_types.in.h: Fix typo in comment.
30734         Reported by Paul Eggert.
30736         Support for MSVC compiler: Ensure size_t gets defined.
30737         * modules/strings (Depends-on): Add 'sys_types'.
30738         * modules/sys_uio (Depends-on): Likewise.
30739         * lib/sys_uio.in.h: Update comment.
30741         C++ tests for module 'sys_types'.
30742         * modules/sys_types-c++-tests: New file.
30743         * tests/test-sys_types-c++.cc: New file.
30745         Tests for module 'sys_types'.
30746         * modules/sys_types-tests: New file.
30747         * tests/test-sys_types.c: New file.
30749         New module 'sys_types'.
30750         * lib/sys_types.in.h: New file.
30751         * m4/sys_types_h.m4: New file.
30752         * modules/sys_types: New file.
30753         * doc/posix-headers/sys_types.texi: Mention the new module and the
30754         size_t problem on MSVC 9.
30756 2011-09-11  Bruno Haible  <bruno@clisp.org>
30758         Support for MSVC compiler: Avoid division by a literal 0.
30759         * lib/math.in.h (NAN): Define through a function call also on MSVC.
30760         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
30761         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
30762         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
30763         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
30764         * tests/infinity.h: New file.
30765         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
30766         on MSVC.
30767         * tests/test-ceilf1.c: Include infinity.h.
30768         (main): Use Infinityf.
30769         * tests/test-ceil1.c: Include infinity.h.
30770         (main): Use Infinityd.
30771         * tests/test-ceill.c: Include infinity.h.
30772         (main): Use Infinityl.
30773         * tests/test-dprintf-posix.c: Include infinity.h.
30774         (test_function): Use Infinityd.
30775         * tests/test-floorf1.c: Include infinity.h.
30776         (main): Use Infinityf.
30777         * tests/test-floor1.c: Include infinity.h.
30778         (main): Use Infinityd.
30779         * tests/test-floorl.c: Include infinity.h.
30780         (main): Use Infinityl.
30781         * tests/test-fprintf-posix.c: Include infinity.h.
30782         (test_function): Use Infinityd.
30783         * tests/test-frexp.c: Include infinity.h.
30784         (main): Use Infinityd.
30785         * tests/test-frexpl.c: Include infinity.h.
30786         (main): Use Infinityl.
30787         * tests/test-isfinite.c: Include infinity.h.
30788         (test_isfinitef): Use Infinityf.
30789         (test_isfinited): Use Infinityd.
30790         (test_isfinitel): Use Infinityl.
30791         * tests/test-isinf.c: Include infinity.h.
30792         (test_isinff): Use Infinityf.
30793         (test_isinfd): Use Infinityd.
30794         (test_isinfl): Use Infinityl.
30795         * tests/test-isnan.c: Include infinity.h.
30796         (test_float): Use Infinityf.
30797         (test_double): Use Infinityd.
30798         (test_long_double): Use Infinityl.
30799         * tests/test-isnanf.h: Include infinity.h.
30800         (main): Use Infinityf.
30801         * tests/test-isnand.h: Include infinity.h.
30802         (main): Use Infinityd.
30803         * tests/test-isnanl.h: Include infinity.h.
30804         (main): Use Infinityl.
30805         * tests/test-ldexpl.c: Include infinity.h.
30806         (main): Use Infinityl.
30807         * tests/test-printf-posix.h: Include infinity.h.
30808         (test_function): Use Infinityd.
30809         * tests/test-roundf1.c: Include infinity.h.
30810         (main): Use Infinityf.
30811         * tests/test-round1.c: Include infinity.h.
30812         (main): Use Infinityd.
30813         * tests/test-roundl.c: Include infinity.h.
30814         (main): Use Infinityl.
30815         * tests/test-signbit.c: Include infinity.h.
30816         (test_signbitf): Use Infinityf.
30817         (test_signbitd): Use Infinityd.
30818         (test_signbitl): Use Infinityl.
30819         * tests/test-snprintf-posix.h: Include infinity.h.
30820         (test_function): Use Infinityd, Infinityl.
30821         * tests/test-sprintf-posix.h: Include infinity.h.
30822         (test_function): Use Infinityd, Infinityl.
30823         * tests/test-truncf1.c: Include infinity.h.
30824         (main): Use Infinityf.
30825         * tests/test-trunc1.c: Include infinity.h.
30826         (main): Use Infinityd.
30827         * tests/test-truncl.c: Include infinity.h.
30828         (main): Use Infinityl.
30829         * tests/test-vasnprintf-posix.c: Include infinity.h.
30830         (test_function): Use Infinityd, Infinityl.
30831         * tests/test-vasprintf-posix.c: Include infinity.h.
30832         (test_function): Use Infinityd, Infinityl.
30833         * modules/ceilf-tests (Files): Add tests/infinity.h.
30834         * modules/ceil-tests (Files): Likewise.
30835         * modules/ceill-tests (Files): Likewise.
30836         * modules/dprintf-posix-tests (Files): Likewise.
30837         * modules/floorf-tests (Files): Likewise.
30838         * modules/floor-tests (Files): Likewise.
30839         * modules/floorl-tests (Files): Likewise.
30840         * modules/fprintf-posix-tests (Files): Likewise.
30841         * modules/frexp-tests (Files): Likewise.
30842         * modules/frexp-nolibm-tests (Files): Likewise.
30843         * modules/frexpl-tests (Files): Likewise.
30844         * modules/frexpl-nolibm-tests (Files): Likewise.
30845         * modules/isfinite-tests (Files): Likewise.
30846         * modules/isinf-tests (Files): Likewise.
30847         * modules/isnan-tests (Files): Likewise.
30848         * modules/isnanf-tests (Files): Likewise.
30849         * modules/isnanf-nolibm-tests (Files): Likewise.
30850         * modules/isnand-tests (Files): Likewise.
30851         * modules/isnand-nolibm-tests (Files): Likewise.
30852         * modules/isnanl-tests (Files): Likewise.
30853         * modules/isnanl-nolibm-tests (Files): Likewise.
30854         * modules/ldexpl-tests (Files): Likewise.
30855         * modules/printf-posix-tests (Files): Likewise.
30856         * modules/roundf-tests (Files): Likewise.
30857         * modules/round-tests (Files): Likewise.
30858         * modules/roundl-tests (Files): Likewise.
30859         * modules/signbit-tests (Files): Likewise.
30860         * modules/snprintf-posix-tests (Files): Likewise.
30861         * modules/sprintf-posix-tests (Files): Likewise.
30862         * modules/truncf-tests (Files): Likewise.
30863         * modules/trunc-tests (Files): Likewise.
30864         * modules/truncl-tests (Files): Likewise.
30865         * modules/vasnprintf-posix-tests (Files): Likewise.
30866         * modules/vasprintf-posix-tests (Files): Likewise.
30867         * modules/vdprintf-posix-tests (Files): Likewise.
30868         * modules/vfprintf-posix-tests (Files): Likewise.
30869         * modules/vprintf-posix-tests (Files): Likewise.
30870         * modules/vsnprintf-posix-tests (Files): Likewise.
30871         * modules/vsprintf-posix-tests (Files): Likewise.
30872         * modules/xprintf-posix-tests (Files): Likewise.
30874 2011-09-11  Bruno Haible  <bruno@clisp.org>
30876         Ensure pid_t gets defined.
30877         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
30878         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
30879         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30880         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30881         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30882         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
30883         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
30884         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30885         * tests/test-fcntl-h.c: Check that pid_t is defined.
30886         * tests/test-sched.c: Likewise.
30887         * tests/test-termios.c: Likewise.
30888         * tests/test-time.c: Likewise.
30889         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
30890         * doc/posix-headers/signal.texi: Likewise.
30891         * doc/posix-headers/sys_types.texi: Likewise.
30892         * doc/posix-headers/time.texi: Likewise.
30894 2011-09-11  Bruno Haible  <bruno@clisp.org>
30896         acl: Fix compilation on Solaris 10 (older version).
30897         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
30898         of ACE_EVERYONE.
30899         * lib/set-mode-acl.c (qset_acl): Likewise.
30900         Reported by Christian Jullien <eligis@orange.fr>.
30902 2011-09-10  Bruno Haible  <bruno@clisp.org>
30904         iconv, unsetenv: Add support for MSVC compiler.
30905         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
30906         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
30908 2011-09-10  Bruno Haible  <bruno@clisp.org>
30910         *printf: Add support for MSVC compiler.
30911         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
30912         handles the exception caused by the %n directive. When cross-compiling,
30913         guess no on native Windows.
30914         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30915         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
30916         emulate it through vsnprintf.
30917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
30918         * doc/posix-functions/dprintf.texi: Update documentation regarding
30919         MSVC 9.
30920         * doc/posix-functions/fprintf.texi: Likewise.
30921         * doc/posix-functions/printf.texi: Likewise.
30922         * doc/posix-functions/snprintf.texi: Likewise.
30923         * doc/posix-functions/sprintf.texi: Likewise.
30924         * doc/posix-functions/swprintf.texi: Likewise.
30925         * doc/posix-functions/vdprintf.texi: Likewise.
30926         * doc/posix-functions/vfprintf.texi: Likewise.
30927         * doc/posix-functions/vprintf.texi: Likewise.
30928         * doc/posix-functions/vsnprintf.texi: Likewise.
30929         * doc/posix-functions/vsprintf.texi: Likewise.
30930         * doc/glibc-functions/asprintf.texi: Likewise.
30931         * doc/glibc-functions/obstack_printf.texi: Likewise.
30932         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30933         * doc/glibc-functions/vasprintf.texi: Likewise.
30935 2011-09-10  Bruno Haible  <bruno@clisp.org>
30937         nocrash: Add support for native Windows.
30938         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
30940 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
30941             Bruno Haible  <bruno@clisp.org>
30943         absolute-header, include-next: Add support for MSVC compiler.
30944         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
30945         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
30946         directory separator in #line directives.
30947         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
30948         recognize also backslash as directory separator in #line directives.
30950 2011-09-08  Jim Meyering  <meyering@redhat.com>
30952         maint.mk: mark the post-release commit log with "maint: " prefix
30953         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
30954         one-line commit-log summary.
30956 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
30957             Bruno Haible  <bruno@clisp.org>
30959         Doc about crypt functions.
30960         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
30961         systems.
30962         * doc/posix-functions/encrypt.texi: Likewise.
30963         * doc/posix-functions/setkey.texi: Likewise.
30965 2011-09-08  Simon Josefsson  <simon@josefsson.org>
30967         * lib/gc.h: Fix copyright header.
30969 2011-09-07  Bruno Haible  <bruno@clisp.org>
30971         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
30972         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
30973         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
30975 2011-09-07  Bruno Haible  <bruno@clisp.org>
30977         openat: Work around compilation error with OSF/1 5.1 DTK cc.
30978         * lib/fopen.c: Use different syntax for include of <stdio.h>.
30979         * lib/freopen.c: Likewise.
30980         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
30981         * lib/lstat.c: Likewise.
30982         * lib/stat.c: Likewise.
30983         * lib/open.c: Use different syntax for include of <fcntl.h>.
30984         * lib/openat.c: Include fcntl.h again, explicitly.
30986 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
30988         parse-datetime: document the newly accepted format
30989         * doc/parse-datetime.texi (Combined date and time of day items):
30990         New section.
30992 2011-09-06  Bruno Haible  <bruno@clisp.org>
30994         acl: Fix a test failure on newer Solaris 10 with ZFS.
30995         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
30996         ENOSYS as no ACL.
30997         Reported by Jim Meyering.
30999 2011-09-06  Bruno Haible  <bruno@clisp.org>
31001         acl: Update for AIX >= 5.3 with NFS.
31002         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
31003         ENOSYS as no ACL.
31005         acl: Fix a test failure on AIX >= 5.3 with NFS.
31006         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
31007         as no ACL.
31009 2011-09-06  Bruno Haible  <bruno@clisp.org>
31011         acl: Fix a test failure on IRIX 6.5 with NFS.
31012         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
31013         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
31014         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
31015         * lib/copy-acl.c (qcopy_acl): Likewise.
31017 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
31019         openat: port to AIX 7.1 with large files
31020         AIX 7.1 does a "#define openat open64at" if large files are in use,
31021         so we can't simply #undef openat.  Use the orig_openat trick (similar
31022         to orig_open in lib/open.c) to work around the problem.  Problem
31023         reported by Kevin Brott for GNU tar, in the thread containing
31024         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
31025         * lib/openat.c (__need_system_fcntl_h): Define first.
31026         Include <fcntl.h> and <sys/types.h> before undefining.
31027         (orig_openat) [HAVE_OPENAT]: New inline function.
31028         (openat) [HAVE_OPENAT]: Do not undef.
31029         (rpl_openat): Use orig_openat, not openat.
31031 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
31032             Bruno Haible  <bruno@clisp.org>
31034         acl: Avoid errors on NonStop Kernel.
31035         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
31036         ENOTSUP errors.
31038 2011-09-05  Bruno Haible  <bruno@clisp.org>
31040         acl: Clean up Solaris code.
31041         * lib/acl-internal.h: Remove no-op #if.
31042         * lib/file-has-acl.c: Likewise.
31043         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
31044         * lib/copy-acl.c (qcopy_acl): Likewise.
31046 2011-09-05  Bruno Haible  <bruno@clisp.org>
31048         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
31049         binaries built on the original Solaris 10.
31050         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
31051         trivial.
31053 2011-09-05  Bruno Haible  <bruno@clisp.org>
31055         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
31056         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
31057         10.
31058         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
31059         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
31060         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
31061         instead of acl_get, facl_get, acl_set, facl_set.
31063 2011-09-05  Bruno Haible  <bruno@clisp.org>
31065         copy-file: Try unit tests on more file systems.
31066         * tests/test-copy-file-1.sh: New file.
31067         * tests/test-copy-file-2.sh: New file.
31068         * modules/copy-file-tests (Files): Add them.
31069         (Makefile.am): Add them to TESTS.
31071         acl: Try unit tests on more file systems.
31072         * tests/test-file-has-acl-1.sh: New file.
31073         * tests/test-file-has-acl-2.sh: New file.
31074         * tests/test-set-mode-acl-1.sh: New file.
31075         * tests/test-set-mode-acl-2.sh: New file.
31076         * tests/test-copy-acl-1.sh: New file.
31077         * tests/test-copy-acl-2.sh: New file.
31078         * modules/acl-tests (Files): Add them.
31079         (Makefile.am): Add them to TESTS.
31081 2011-09-04  Bruno Haible  <bruno@clisp.org>
31083         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
31084         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
31085         10.
31086         (OLD_ALLOW, OLD_DENY): New macros.
31087         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
31088         ACE_ACCESS_ALLOWED_ACE_TYPE.
31089         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
31090         ACE_ACCESS_DENIED_ACE_TYPE.
31091         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
31092         (NEW_ACE_EXECUTE): Fix value.
31093         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
31094         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
31095         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
31096         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
31097         NEW_ACE_SYNCHRONIZE): New macros.
31098         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
31099         instead of acl_fromtext, acl_set, facl_set.
31100         Fixes a coreutils/tests/cp/perm failure.
31102 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
31104         openat: test for fstatat (..., 0) bug
31105         Further testing with tar suggests that fstatat (..., 0)
31106         does not work in general, on AIX 7.1; see
31107         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
31108         So, give up entirely on AIX 7.1's fstatat, and fall back on our
31109         replacement fstatat (which is what older AIX releases were using
31110         anyway).
31111         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
31112         use is now changed to orig_fstatat.  This was probably the right
31113         thing to do anyway.
31114         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
31115         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
31116         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
31117         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
31118         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
31119         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
31120         if the bug is found.
31122         openat: test for fstatat (AT_FDCWD, ..., 0) bug
31123         This tests for another fstatat bug on AIX 7.1:
31124         fstatat (AT_FDCWD, ..., 0) does not work.  See
31125         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
31126         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
31127         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
31128         (rpl_fstatat): Adjust so that it works around either (or both)
31129         bugs if present.
31130         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
31132 2011-09-03  Karl Berry  <karl@gnu.org>
31134         * doc/regex.texi (Character Class Operators): Avoid literal ":"
31135         in index entries.
31137 2011-09-02  Bruno Haible  <bruno@clisp.org>
31139         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
31140         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
31141         values of AR, ARFLAGS, RANLIB.
31142         Reported by John W. Eaton <jwe@gnu.org> for Octave.
31144 2011-09-02  Bruno Haible  <bruno@clisp.org>
31146         Find 'ar' program that fits with --host argument.
31147         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
31149 2011-09-02  Bruno Haible  <bruno@clisp.org>
31151         tests: init.sh: Support any non-GNU diff.
31152         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
31153         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
31154         Solaris 8.
31156 2011-09-02  Bruno Haible  <bruno@clisp.org>
31158         tests: init.sh: work also with any non-GNU diff that supports -u
31159         * tests/init.sh: Relax check for diff -u support.
31160         Rather than checking for GNU diff via --version, simply check
31161         for support for -u itself.  Useful at least on OpenBSD 4.9,
31162         AIX 7.1, IRIX 6.5, and Solaris 10.
31164 2011-09-01  Bruno Haible  <bruno@clisp.org>
31166         strtoimax, strtoumax: Document problem on HP-UX 11.
31167         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
31168         * doc/posix-functions/strtoumax.texi: Likewise.
31170 2011-09-01  Bruno Haible  <bruno@clisp.org>
31172         strtoumax: Avoid link error on OSF/1 with DTK cc.
31173         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
31174         defined as a function.
31175         * modules/strtoumax (Depends-on, configure.ac): Test only whether
31176         strtoumax is defined, not whether it is declared.
31178 2011-09-01  Bruno Haible  <bruno@clisp.org>
31180         strtoimax: Avoid link error on OSF/1 with DTK cc.
31181         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
31182         defined as a function.
31183         * modules/strtoimax (Depends-on, configure.ac): Test only whether
31184         strtoimax is defined, not whether it is declared.
31186 2011-09-01  Bruno Haible  <bruno@clisp.org>
31188         imaxdiv: Avoid link error on OSF/1 with DTK cc.
31189         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
31190         as a function.
31191         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
31192         whether it is declared.
31194 2011-09-01  Bruno Haible  <bruno@clisp.org>
31196         imaxabs: Avoid link error on OSF/1 with DTK cc.
31197         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
31198         as a function.
31199         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
31200         whether it is declared.
31202 2011-09-01  Bruno Haible  <bruno@clisp.org>
31204         Tests for module 'strtoumax'.
31205         * modules/strtoumax-tests: New file.
31206         * tests/test-strtoumax.c: New file.
31208         Tests for module 'strtoimax'.
31209         * modules/strtoimax-tests: New file.
31210         * tests/test-strtoimax.c: New file.
31212         Tests for module 'imaxdiv'.
31213         * modules/imaxdiv-tests: New file.
31214         * tests/test-imaxdiv.c: New file.
31216         Tests for module 'imaxabs'.
31217         * modules/imaxabs-tests: New file.
31218         * tests/test-imaxabs.c: New file.
31220 2011-09-01  Bruno Haible  <bruno@clisp.org>
31222         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
31223         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
31224         pthread_create.
31226 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31228         openat: work around AIX 7.1 fstatat issue
31229         This should fix the problem that was not properly fixed
31230         in the previous change, dated 2011-08-30.
31231         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
31232         __need_system_stat_h defined.
31233         (orig_fstatat) [HAVE_FSTATAT]: New function.
31234         (rpl_fstatat): Go back to the old way of doing things,
31235         except call orig_fstatat instead of fstatat.
31236         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
31237         Remove unnecessary check whether fstatat fills in st_size etc.
31239 2011-09-01  Bruno Haible  <bruno@clisp.org>
31241         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
31242         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
31243         just include the system's header.
31245 2011-08-31  Jim Meyering  <meyering@redhat.com>
31247         tests: avoid spurious assertion failure in test-float.c on ppc64
31248         * tests/test-float.c (test_long_double): Comment out an assertion,
31249         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
31250         with gcc-4.4.4.
31252         maint: indent with spaces, not TABs
31253         I need to get in the habit of running gnulib's "make check".
31254         Both of these would have been caught.
31255         * m4/largefile.m4: Indent with spaces, not TABs.
31256         * lib/parse-datetime.y (iso_8601_time): Likewise.
31257         Spotted by Pádraig Brady.
31259         test-parse-datetime.c: accommodate a relatively strict gcc warning
31260         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
31261         to avoid a warning from gcc's -Werror=missing-declarations.
31262         Insert a few spaces-before-funcall-parenthesis.
31264 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
31266         parse-datetime: accept ISO 8601 date and time rep with "T" separator
31267         The parser now accepts ISO 8601 date-time strings with "T" as the
31268         separator.  It has long parsed dates like "2004-02-29 16:21:42"
31269         with a space between the date and time strings.  Now it also parses
31270         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
31271         variants like "2004-02-29T16:21:42.333-07:00"
31272         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
31273         of day representation using the 'T' separator character.
31274         * doc/parse-datetime.texi (General date syntax): replace use of
31275         deprecated --iso-8601 option with --rfc-3339 in example of date
31276         command output formats that can be parsed.
31277         * tests/test-parse-datetime.c (tm_diff): New function, taken from
31278         lib/parse-datetime.y.
31279         (gmt_offset): New function.
31280         (main): Add additional test cases to validate ISO8601 extended
31281         date and time of day parsing.
31283 2011-08-31  Bruno Haible  <bruno@clisp.org>
31285         freopen: Documentation.
31286         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
31287         name.
31288         Reported by Claudio Bley <claudio.bley@gmail.com>.
31290 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
31292         freopen: Don't crash if the filename argument is NULL.
31293         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
31294         NULL.
31296 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31298         openat: work around AIX 7.1 fstatat bug
31299         Problem reported by Kevin Brott for GNU tar, in the thread containing
31300         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
31301         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
31302         FSTATAT_ST_SIZE_ETC_BROKEN.
31303         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
31304         rpl_fstatat.
31305         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
31306         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
31307         AC_CHECK_FUNCS_ONCE for fstatat.
31308         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
31309         fchmodat, mkdirat, openat and unlinkat.
31311 2011-08-30  Bruno Haible  <bruno@clisp.org>
31313         Avoid endless recursions if config.h includes some header files.
31314         * lib/fopen.c (__need_FILE): Define already before including config.h.
31315         * lib/freopen.c (__need_FILE): Likewise.
31316         * lib/open.c (__need_system_fcntl_h): Likewise.
31317         * lib/stat.c (__need_system_sys_stat_h): Likewise.
31318         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
31319         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
31321 2011-08-25  Karl Berry  <karl@gnu.org>
31323         * config/srclist.txt (ylwrap): new try.
31324         * build-aux/ylwrap: new file.
31326 2011-08-23  Bruno Haible  <bruno@clisp.org>
31328         tmpdir: Use a good default directory on native Windows.
31329         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
31330         (P_tmpdir): Default to _P_tmpdir on native Windows.
31331         (path_search): On native Windows, try the value returned by GetTempPath
31332         before trying P_tmpdir.
31333         * modules/tmpdir (Depends-on): Add pathmax.
31334         Suggested by John Darrington <john@darrington.wattle.id.au>.
31336 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
31338         doc: fix typo in README-release
31339         * top/README-release: Capitalize first word of a sentence.
31341 2011-08-19  Jim Meyering  <meyering@redhat.com>
31343         fts: do not exhaust memory when processing million-entry directories
31344         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
31345         directory would require about 256*N bytes of memory.  Thus, it was
31346         easy to construct a directory too large to be processed by any of
31347         those tools.  With this change, fts' maximum memory utilization is
31348         now limited to around 30MB.
31349         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
31350         (fts_read): When we've processed the final entry (i.e., when
31351         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
31352         using the parent entry to read any remaining entries.  Dispatch
31353         depending on what fts_build returns:
31354         - NULL+stop, aka failure: stop
31355         - NULL otherwise: move up in the dir hierarchy
31356         - non-NULL: handle this new entry
31357         (fts_build): Declare and use new local, continue_readdir.
31358         Prepare to be called from fts_read, when the entries
31359         from a partially-read directory have just been exhausted.
31360         In that case, we'll skip the opendir and instead use the parent's
31361         fts_dirp and derive dir_fd from that.
31362         Finally, in the readdir loop, if we read max_entries entries,
31363         exit the loop ensuring *not* to call closedir.  This is required
31364         so that fts_dirp can be reused on a subsequent call.
31365         Prompted by Ben England's report of memory exhaustion in find
31366         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
31368         maint: fts: move decl of `dp' down into while loop; split a long line
31369         * lib/fts.c (fts_build): No semantic change.
31371         fts: add/use new struct member, fts_dirp
31372         We are about to use this to manage any directory with
31373         too many entries to read all of them into memory at once.
31374         To do that, we'll need to save the DIR* pointer in each
31375         affected FTSENT struct.
31376         * lib/fts_.h: Include <dirent.h>.
31377         (struct FTSENT) [fts_dirp]: New member.
31378         * lib/fts.c (closedir_and_clear): Define.
31379         Use it in place of closedir so that we are sure to
31380         clear the new fts_dirp member when done with it.
31381         (fts_alloc): Initialize the new member.
31382         (fts_lfree): Free, if needed.
31384         maint: fts: give __opendir2 a new parameter and rename
31385         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
31386         than surreptitiously using sole caller's "dir_fd".
31387         (fts_opendir): Rename from __opendir2.
31389         maint: fts.c: remove __opendir2's now-unused parameter, oflag
31390         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
31392         maint: fts.c: correct off-by-one indentation
31393         * lib/fts.c (fts_build): Correct indentation, change style
31394         of a couple of block comments, and bracing style.
31396         maint: fts.c: move __opendir2 #define "up" out of function body
31397         * lib/fts.c (__opendir2): Move "up".  No semantic change.
31399         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
31400         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
31401         out for a long time and besides was useful only on BSD systems.
31403 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
31405         regex: port to Stratus OpenVOS
31406         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
31407         define to empty, rather than attempting nonportable optimizations.
31408         Problem reported by Paul Green in:
31409         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
31410         and fix suggested by Eric Blake in:
31411         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
31413 2011-08-17  Eric Blake  <eblake@redhat.com>
31415         getcwd: fix test failures on mingw
31416         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
31417         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
31418         test if long directory cannot be created, and allow mingw errno.
31420         getcwd-lgpl: fix m4 to match relaxed test for BSD
31421         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
31422         (gl_FUNC_GETCWD_SIGNATURE): New macro.
31423         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
31424         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
31425         signature problem.
31427         getcwd: fix compilation on mingw64
31428         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
31429         getcwd.
31430         Reported by Marc-André Lureau.
31432         pipe2: silence compiler warning
31433         * lib/pipe2.c (pipe2): Hide label if it is not used.
31435 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
31437         relocatable-prog: fix link error
31438         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
31439         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
31440         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
31441         into modules/relocatable-lib without noticing that
31442         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
31443         also needs to build relocatable.c.
31445 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31447         getaddrinfo: fix sh typo in gai_strerrorA decl checking
31448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
31449         shell code: it contained a 'break' that was not in a loop.
31450         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
31451         via a shell-language loop; this may have been true in old Autoconf
31452         versions, but it's not true in Autoconf 2.68.  I found this bug
31453         when testing coreutils git on Solaris 8, whose shell complains
31454         about the syntax error.
31456 2011-08-12  Simon Josefsson  <simon@josefsson.org>
31458         * lib/base64.c: Fix comment to reference RFC 4648.
31459         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
31460         <gvtulder@gmail.com>.
31462 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31464         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
31466         po/Makefile.in.in: fix make -q problem
31467         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
31468         rule, since there's no file named 'check-macro-version' and its
31469         use as a file breaks make -q.
31470         (all): Don't depend on check-macro-version.
31471         (CHECK_MACRO_VERSION): New macro.
31472         (stamp-po): Use it.
31474         configmake: fix make -q problem
31475         * modules/configmake (configmake.h): Update configmake.h's time stamp
31476         even if the file does not change.  Otherwise, 'make -q' fails.
31477         Problem reported by Simon Josefsson in
31478         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
31480 2011-08-11  Jim Meyering  <meyering@redhat.com>
31482         git-version-gen: correct the advice in a comment
31483         * build-aux/git-version-gen: Correct comment.
31484         Don't recommend to list .tarball-version in .gitignore.
31486 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31488         base64: fix off-by-one buffer size bug
31489         Problem and (trivial) fix reported by Gijs van Tulder in
31490         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
31491         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
31492         * tests/test-base64.c (main): Catch the bug.
31494 2011-08-10  Eric Blake  <eblake@redhat.com>
31496         closein: correct comments
31497         * lib/closein.c (close_stdin): Improve comments.
31499 2011-08-09  Bruno Haible  <bruno@clisp.org>
31501         More tests for 'fseeko'.
31502         * tests/test-fseeko3.c: New file, from Eric Blake.
31503         * tests/test-fseeko3.sh: New file.
31504         * modules/fseeko-tests (Files): Add them.
31505         (TESTS): Add test-fseeko3.sh.
31506         (check_PROGRAMS): Add test-fseeko3.
31508 2011-08-09  Eric Blake  <eblake@redhat.com>
31510         fseeko: remove unneeded hack
31511         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
31513         fseeko: fix bug on glibc
31514         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
31515         Reported by John W. Eaton.
31517 2011-08-08  Bruno Haible  <bruno@clisp.org>
31519         unictype/base: Fix interoperability with preinstalled libunistring.
31520         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
31521         Reported by Simon Josefsson.
31523 2011-08-08  Bruno Haible  <bruno@clisp.org>
31525         iswblank: Detect declaration correctly.
31526         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
31527         AC_CHECK_DECLS invocation.
31529 2011-08-08  Bruno Haible  <bruno@clisp.org>
31531         tcgetsid: Detect declaration correctly.
31532         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
31533         AC_CHECK_DECLS invocation.
31534         Reported by Simon Josefsson.
31536 2011-08-08  Eric Blake  <eblake@redhat.com>
31538         largefile: fix typo that regressed large file support
31539         * modules/largefile (configure.ac-early): Fix section name.
31541 2011-08-06  Karl Berry  <karl@gnu.org>
31543         * MODULES.html.sh (func_all_files): _Noreturn is no longer
31544         a separate module.
31546 2011-08-05  Simon Josefsson  <simon@josefsson.org>
31548         openat: Fix warnings and commens when building unlinkat.c on Hurd.
31549         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
31550         get prototype for free.
31552 2011-08-04  Bruno Haible  <bruno@clisp.org>
31554         Tests for module 'pathmax'.
31555         * modules/pathmax-tests: New file.
31556         * tests/test-pathmax.c: New file.
31558         canonicalize-lgpl: Support larger filenames on the Hurd.
31559         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
31560         Reported by Paul Eggert.
31562         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
31563         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
31564         * lib/chdir-long.h: Include pathmax.h.
31565         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
31566         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
31567         (PATH_MAX): Remove code that is done by pathmax.h.
31568         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
31569         * lib/tmpfile.c: Add a comment.
31570         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
31571         * modules/chdir-long (Depends-on): Add pathmax.
31572         * modules/getcwd (Depends-on): Add pathmax.
31573         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
31574         is not defined.
31575         * doc/posix-headers/limits.texi: Mention the pathmax module.
31576         * NEWS: Mention the change.
31578 2011-08-02  Bruno Haible  <bruno@clisp.org>
31580         pthread_sigmask: Actually use results of gl_THREADLIB.
31581         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
31582         gl_THREADLIB, not gl_[]THREADLIB.
31583         Reported by Eric Blake.
31585 2011-08-02  Jim Meyering  <meyering@redhat.com>
31587         maint.mk: relax the default _gl_TS_function_match regexp
31588         * top/maint.mk (_gl_TS_function_match): Don't require at least one
31589         space between function name and "(" in an "extern" declaration.
31590         That would fail to match a decl with no space there: extern void foo();
31592 2011-07-31  Iain Nicol  <iain@thenicols.net>
31594         git-version-gen: document that EXTRA_DIST must include .version
31595         * build-aux/git-version-gen: In the how-to-use comment, document
31596         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
31597         will fail when run from an unpacked distribution tarball.
31599 2011-08-01  Bruno Haible  <bruno@clisp.org>
31601         wctype-h: Fix last change.
31602         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
31603         REPLACE_TOWLOWER to 0.
31604         Reported by Sam Steingold <sds@gnu.org>.
31606 2011-07-31  Bruno Haible  <bruno@clisp.org>
31608         frexpl: Update autoconf test.
31609         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
31610         according to changes of 2011-06-20.
31612 2011-07-31  Bruno Haible  <bruno@clisp.org>
31614         sys_utsname: Add support for Minix.
31615         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
31616         <sys/utsname.h>.
31617         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31618         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
31620 2011-07-31  Bruno Haible  <bruno@clisp.org>
31622         strings: Add support for Minix.
31623         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
31624         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
31625         * doc/posix-headers/strings.texi: Document the Minix problem.
31627 2011-07-31  Bruno Haible  <bruno@clisp.org>
31629         wctype-h: Add support for Minix.
31630         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
31631         REPLACE_TOWLOWER.
31632         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
31633         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
31634         REPLACE_ISWCNTRL.
31636 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
31638         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
31639         This is a performance improvement for 64-bit hosts: it causes the
31640         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
31642 2011-07-31  Bruno Haible  <bruno@clisp.org>
31644         stdioext: Add support for Minix.
31645         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
31646         * lib/fpurge.c (fpurge): Likewise.
31647         * lib/freadahead.c (freadahead): Likewise.
31648         * lib/freadable.c (freadable): Likewise.
31649         * lib/freading.c (freading): Likewise.
31650         * lib/freadptr.c (freadptr): Likewise.
31651         * lib/freadseek.c (freadptrinc): Likewise.
31652         * lib/fseeko.c (rpl_fseeko): Likewise.
31653         * lib/fseterr.c (fseterr): Likewise.
31654         * lib/fwritable.c (fwritable): Likewise.
31655         * lib/fwriting.c (fwriting): Likewise.
31656         * lib/fflush.c (clear_ungetc_buffer): Update comment.
31657         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
31659 2011-07-31  Bruno Haible  <bruno@clisp.org>
31661         errno: Port to Minix.
31662         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
31663         ECONNABORTED are defined.
31664         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
31665         GNULIB_defined_ECONNABORTED): New macros.
31666         * lib/strerror-override.h (strerror_override): Test also
31667         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
31668         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
31669         ECONNABORTED.
31670         * doc/posix-headers/errno.texi: Mention the Minix problem.
31672 2011-07-31  Bruno Haible  <bruno@clisp.org>
31674         Work around declaration collisions on Minix.
31675         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
31676         defined, set REPLACE_MBSINIT.
31677         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
31678         defined, set REPLACE_MBRTOWC.
31679         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
31680         set REPLACE_MBRLEN.
31681         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
31682         defined, set REPLACE_MBSRTOWCS.
31683         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
31684         defined, set REPLACE_WCRTOMB.
31685         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
31686         defined, set REPLACE_WCSRTOMBS.
31688 2011-07-31  Bruno Haible  <bruno@clisp.org>
31690         Add support for Minix with ACK compiler.
31691         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
31692         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
31693         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
31695 2011-07-31  Bruno Haible  <bruno@clisp.org>
31697         Documentation about Minix.
31698         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
31699         * doc/glibc-headers/*.texi: Likewise.
31700         * doc/posix-functions/*.texi: Likewise.
31701         * doc/glibc-functions/*.texi: Likewise.
31703 2011-07-31  Bruno Haible  <bruno@clisp.org>
31705         snippet/warn-on-use: Fix indentation.
31706         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
31708 2011-07-25  Jim Meyering  <meyering@redhat.com>
31710         tests: test-update-copyright.sh: remove unnecessary "rm" commands
31711         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
31712         commands.
31714 2011-07-27  Jim Meyering  <meyering@redhat.com>
31716         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
31717         * top/maint.mk (gl_extract_significant_defines_): Now that
31718         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
31719         gnulib/lib/signal.in.h, and now that we recommend to
31720         define-if-undefined those two symbols in application code,
31721         we must filter them out of the "significant" list.
31722         This avoids a "make syntax-check" failure in coreutils.
31724 2011-07-26  Eric Blake  <eblake@redhat.com>
31726         warnings: add comments about previous patch
31727         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
31728         * m4/include_next.m4: Likewise.
31729         * m4/warn-on-use.m4: Likewise.
31730         * m4/warnings.m4: Likewise, and simplify use.
31731         Suggested by Stefano Lattarini.
31733         include-next, warnings: support older autoconf
31734         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
31735         AS_VAR_PUSHDEF in a way that works with older autoconf.
31736         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
31737         Reported by Daniel P. Berrange.
31739 2011-07-25  Bruno Haible  <bruno@clisp.org>
31741         fseek, ftell: Fix doc.
31742         * doc/posix-functions/fseek.texi: Reword statement about
31743         AC_SYS_LARGEFILE.
31744         * doc/posix-functions/ftell.texi: Likewise.
31746 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
31747             Bruno Haible  <bruno@clisp.org>
31749         Add dependencies to the 'largefile' module.
31750         * modules/fopen (Depends-on): Add 'largefile'.
31751         * modules/freopen (Depends-on): Likewise.
31752         * modules/fseeko (Depends-on): Likewise.
31753         * modules/ftello (Depends-on): Likewise.
31754         * modules/glob (Depends-on): Likewise.
31755         * modules/lseek (Depends-on): Likewise.
31756         * modules/lstat (Depends-on): Likewise.
31757         * modules/mkostemp (Depends-on): Likewise.
31758         * modules/mkostemps (Depends-on): Likewise.
31759         * modules/mkstemp (Depends-on): Likewise.
31760         * modules/mkstemps (Depends-on): Likewise.
31761         * modules/open (Depends-on): Likewise.
31762         * modules/openat (Depends-on): Likewise.
31763         * modules/pread (Depends-on): Likewise.
31764         * modules/pwrite (Depends-on): Likewise.
31765         * modules/scandir (Depends-on): Likewise.
31766         * modules/stat (Depends-on): Likewise.
31767         * modules/tmpfile (Depends-on): Likewise.
31768         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
31769         since the containing module now depends on the largefile module.
31770         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
31771         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
31772         off_t is fixed by gnulib.
31773         * doc/posix-functions/freopen.texi: Likewise.
31774         * doc/posix-functions/fseeko.texi: Likewise.
31775         * doc/posix-functions/fstatat.texi: Likewise.
31776         * doc/posix-functions/ftello.texi: Likewise.
31777         * doc/posix-functions/glob.texi: Likewise.
31778         * doc/posix-functions/lseek.texi: Likewise.
31779         * doc/posix-functions/lstat.texi: Likewise.
31780         * doc/posix-functions/mkstemp.texi: Likewise.
31781         * doc/posix-functions/open.texi: Likewise.
31782         * doc/posix-functions/openat.texi: Likewise.
31783         * doc/posix-functions/pread.texi: Likewise.
31784         * doc/posix-functions/pwrite.texi: Likewise.
31785         * doc/posix-functions/scandir.texi: Likewise.
31786         * doc/posix-functions/stat.texi: Likewise.
31787         * doc/posix-functions/tmpfile.texi: Likewise.
31788         * doc/glibc-functions/mkostemp.texi: Likewise.
31789         * doc/glibc-functions/mkostemps.texi: Likewise.
31790         * doc/glibc-functions/mkstemps.texi: Likewise.
31792 2011-07-25  Bruno Haible  <bruno@clisp.org>
31794         fcntl: Move AC_LIBOBJ invocation to module description.
31795         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
31796         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
31798         fcntl: Remove call-in from fchdir.m4.
31799         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
31800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
31802         dup3: Remove potential call-in from fchdir.m4.
31803         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
31804         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
31806         dup2: Move AC_LIBOBJ invocation to module description.
31807         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
31808         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
31809         Don't invoke AC_LIBOBJ.
31810         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
31812         dup2: Remove call-in from fchdir.m4.
31813         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
31814         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
31816         fclose: Move AC_LIBOBJ invocation to module description.
31817         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
31818         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
31819         to 1.
31820         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
31822         fclose: Remove call-in from close.m4.
31823         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
31824         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
31826         close: Move AC_LIBOBJ invocation to module description.
31827         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
31828         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
31829         1.
31830         * modules/close (configure.ac): Invoke AC_LIBOBJ.
31832         close: Remove call-in from fchdir.m4.
31833         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
31834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
31836         open: Move AC_LIBOBJ invocation to module description.
31837         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
31838         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
31839         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
31841         open: Remove call-in from fchdir.m4.
31842         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
31843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
31845         fchdir: Start to remove gl_REPLACE_* idiom.
31846         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
31847         (gl_FUNC_FCHDIR): Invoke it.
31849 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
31851         * lib/ftell.c (ftell): Comment out cast.
31853         close: use gl_REPLACE_FCLOSE only if defined
31854         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
31855         is defined.  The close module doesn't depend on the fclose module
31856         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
31857         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
31858         I reproduced the problem with "./gnulib-tool --test close sys_socket".
31860 2011-07-24  Jim Meyering  <meyering@redhat.com>
31862         test-select.h: avoid warning when using gcc's -Wmissing-declarations
31863         * tests/test-select.h (test_function): Declare as "static".
31865 2011-07-24  Bruno Haible  <bruno@clisp.org>
31867         doc: Mention the effects of AC_SYS_LARGEFILE.
31868         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
31869         on this function.
31870         * doc/posix-functions/aio_error.texi: Likewise.
31871         * doc/posix-functions/aio_fsync.texi: Likewise.
31872         * doc/posix-functions/aio_read.texi: Likewise.
31873         * doc/posix-functions/aio_return.texi: Likewise.
31874         * doc/posix-functions/aio_suspend.texi: Likewise.
31875         * doc/posix-functions/aio_write.texi: Likewise.
31876         * doc/posix-functions/fgetpos.texi: Likewise.
31877         * doc/posix-functions/fopen.texi: Likewise.
31878         * doc/posix-functions/freopen.texi: Likewise.
31879         * doc/posix-functions/fsetpos.texi: Likewise.
31880         * doc/posix-functions/fstatvfs.texi: Likewise.
31881         * doc/posix-functions/ftruncate.texi: Likewise.
31882         * doc/posix-functions/ftw.texi: Likewise.
31883         * doc/posix-functions/getrlimit.texi: Likewise.
31884         * doc/posix-functions/glob.texi: Likewise.
31885         * doc/posix-functions/lio_listio.texi: Likewise.
31886         * doc/posix-functions/lockf.texi: Likewise.
31887         * doc/posix-functions/mkstemp.texi: Likewise.
31888         * doc/posix-functions/mmap.texi: Likewise.
31889         * doc/posix-functions/nftw.texi: Likewise.
31890         * doc/posix-functions/openat.texi: Likewise.
31891         * doc/posix-functions/opendir.texi: Likewise.
31892         * doc/posix-functions/posix_fadvise.texi: Likewise.
31893         * doc/posix-functions/posix_fallocate.texi: Likewise.
31894         * doc/posix-functions/pread.texi: Likewise.
31895         * doc/posix-functions/pwrite.texi: Likewise.
31896         * doc/posix-functions/readdir.texi: Likewise.
31897         * doc/posix-functions/readdir_r.texi: Likewise.
31898         * doc/posix-functions/rewinddir.texi: Likewise.
31899         * doc/posix-functions/scandir.texi: Likewise.
31900         * doc/posix-functions/seekdir.texi: Likewise.
31901         * doc/posix-functions/setrlimit.texi: Likewise.
31902         * doc/posix-functions/statvfs.texi: Likewise.
31903         * doc/posix-functions/telldir.texi: Likewise.
31904         * doc/posix-functions/tmpfile.texi: Likewise.
31905         * doc/posix-functions/truncate.texi: Likewise.
31906         * doc/glibc-functions/fallocate.texi: Likewise.
31907         * doc/glibc-functions/fstatfs.texi: Likewise.
31908         * doc/glibc-functions/fts_children.texi: Likewise.
31909         * doc/glibc-functions/fts_read.texi: Likewise.
31910         * doc/glibc-functions/getdirentries.texi: Likewise.
31911         * doc/glibc-functions/mkostemp.texi: Likewise.
31912         * doc/glibc-functions/mkostemps.texi: Likewise.
31913         * doc/glibc-functions/mkstemps.texi: Likewise.
31914         * doc/glibc-functions/preadv.texi: Likewise.
31915         * doc/glibc-functions/pwritev.texi: Likewise.
31916         * doc/glibc-functions/sendfile.texi: Likewise.
31917         * doc/glibc-functions/statfs.texi: Likewise.
31919 2011-07-24  Bruno Haible  <bruno@clisp.org>
31921         doc: Fix typo.
31922         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
31924 2011-07-24  Bruno Haible  <bruno@clisp.org>
31926         doc: Mention fsusage.
31927         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
31929 2011-07-24  Bruno Haible  <bruno@clisp.org>
31931         doc: Mention new glibc headers and functions.
31932         * doc/glibc-headers/gshadow.texi: New file.
31933         * doc/glibc-functions/endsgent.texi: New file.
31934         * doc/glibc-functions/fgetsgent.texi: New file.
31935         * doc/glibc-functions/fgetsgent_r.texi: New file.
31936         * doc/glibc-functions/getsgent.texi: New file.
31937         * doc/glibc-functions/getsgent_r.texi: New file.
31938         * doc/glibc-functions/getsgnam.texi: New file.
31939         * doc/glibc-functions/getsgnam_r.texi: New file.
31940         * doc/glibc-functions/putsgent.texi: New file.
31941         * doc/glibc-functions/setsgent.texi: New file.
31942         * doc/glibc-functions/sgetsgent.texi: New file.
31943         * doc/glibc-functions/sgetsgent_r.texi: New file.
31944         * doc/glibc-functions/malloc_info.texi: New file.
31945         * doc/glibc-functions/preadv.texi: New file.
31946         * doc/glibc-functions/pwritev.texi: New file.
31947         * doc/glibc-functions/register_printf_modifier.texi: New file.
31948         * doc/glibc-functions/register_printf_specifier.texi: New file.
31949         * doc/glibc-functions/register_printf_type.texi: New file.
31950         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
31951         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
31952         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
31953         * doc/glibc-functions/pthread_getname_np.texi: New file.
31954         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
31955         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
31956         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
31957         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
31958         * doc/glibc-functions/pthread_setname_np.texi: New file.
31959         * doc/glibc-functions/pthread_sigqueue.texi: New file.
31960         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
31961         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
31962         * doc/glibc-functions/qsort_r.texi: New file.
31963         * doc/glibc-functions/quick_exit.texi: New file.
31964         * doc/glibc-functions/syncfs.texi: New file.
31965         * doc/gnulib.texi: Include them.
31966         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
31967         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
31968         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
31969         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
31970         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
31971         * doc/glibc-functions/execvpe.texi: Likewise.
31973 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31975         ftell: don't include <unistd.h>
31976         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
31977         guaranteed to define off_t, and the ftell module depends on the
31978         stdio module.
31980         ftell: do not assume wraparound signed arithmetic
31981         * lib/ftell.c: Include <limits.h>.
31982         (ftell): Don't assume wraparound signed arithmetic.
31984 2011-07-24  Bruno Haible  <bruno@clisp.org>
31986         close: No longer depend on module 'fclose'.
31987         * modules/close (Depends-on): Remove fclose.
31988         * NEWS: Mention the change.
31989         Suggested by Sam Steingold <sds@gnu.org>.
31991 2011-07-24  Bruno Haible  <bruno@clisp.org>
31993         fsusage: Enable large volume support on AIX >= 5.2.
31994         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
31995         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
31996         instead of STAT_STATVFS.
31997         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
31999         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
32000         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
32001         f_blocks field only on MacOS X.
32003         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
32004         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
32005         * modules/fsusage (Depends-on): Add largefile.
32007 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
32009         * README: Modernize discussion of signed integers.
32010         Assuming overflow wraparound is no longer safe.
32011         Mention ones' complement and signed magnitude.
32013 2011-07-22  Bruno Haible  <bruno@clisp.org>
32015         select tests, pselect tests: Refactor.
32016         * tests/test-select.h: New file, extracted from tests/test-select.c.
32017         (select_fn): New type.
32018         (test, do_select, do_select_nowait, do_select_wait, test_tty,
32019         test_connect_first, test_accept_first, test_pair, test_socket_pair,
32020         test_pipe): Add my_select argument.
32021         (test_function): Renamed from main. Add my_select argument.
32022         * tests/test-select.c: Move most code to tests/test-select.h. Include
32023         test-select.h.
32024         * modules/select-tests (Files): Add tests/test-select.h.
32025         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
32026         (my_select, main): New functions.
32027         * modules/pselect-tests (Files): Add tests/test-select.h,
32028         tests/macros.h, tests/signature.h.
32029         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
32030         (configure.ac): Check for <sys/wait.h>.
32032 2011-07-22  Bruno Haible  <bruno@clisp.org>
32034         sys_select tests: Check the signature of FD_*.
32035         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
32036         signature tests from here...
32037         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
32038         here.
32039         * modules/sys_select-tests (Files): Add tests/signature.h.
32041 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32043         largefile: new module, replacing large-inode
32044         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
32045         * MODULES.html.sh: Add largefile, remove large-inode.
32046         * modules/largefile, m4/largefile.m4: New files.
32047         * modules/large-inode, m4/large-inode.m4: Remove.
32049         fsusage: port to MacOS X 10.7 with 4 TiB file systems
32050         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
32051         implementations that use only 32 bits to count blocks.
32052         On typical hosts with 1024-byte blocks, this fails with file
32053         systems as small as 4 TiB.  Problem reported by Herb Wartens
32054         <http://debbugs.gnu.org/9140> and this should also fix a similar
32055         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
32057         large-inode: New module
32058         * MODULES.html.sh: Add it.
32059         * modules/large-inode, m4/large-inode.m4: New files.
32061         extensions: Enable extensions on MacOS X 10.5 and later.
32062         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
32064 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
32066         file-has-acl: use acl_extended_file_nofollow if available
32067         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
32068         (acl_extended_file): New macro.
32069         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
32070         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
32072 2011-07-21  Bruno Haible  <bruno@clisp.org>
32074         Declare system functions in a way that works with C++.
32075         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
32076         declare fdopendir as extern "C".
32077         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
32078         declare frexpl as extern "C".
32079         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
32080         declare gai_strerror as extern "C".
32081         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
32082         programs, declare gai_strerror as extern "C".
32083         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
32084         declare getlogin_r as extern "C".
32085         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
32086         as extern "C".
32087         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
32088         declare ldexpl as extern "C".
32089         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
32090         as extern "C".
32091         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
32092         program, declare getmntinfo as extern "C".
32093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
32094         stpncpy as extern "C".
32095         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
32096         program, declare __xpg_strerror_r as extern "C".
32097         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
32098         strndup as extern "C".
32099         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
32100         declare memset and bzero as extern "C".
32101         Reported by Sam Steingold <sds@gnu.org>.
32103 2011-07-12  Jim Meyering  <meyering@redhat.com>
32105         maint.mk: prohibit inclusion of "verify.h" without use
32106         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
32108 2011-07-19  Pádraig Brady  <P@draigBrady.com>
32110         timer-time: A new module to check for timer_settime()
32111         * m4/timer_time.m4: Check for the posix function.
32112         * modules/timer-time: Add the new module.
32113         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
32114         Mention it.
32116 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
32117             Bruno Haible  <bruno@clisp.org>
32119         pthread_sigmask: assume POSIX threads if --avoid=threadlib
32120         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
32121         not defined, assume POSIX threads and look for pthread_sigmask in
32122         $LIBS, without changing $CPPFLAGS.
32124 2011-07-19  Bruno Haible  <bruno@clisp.org>
32126         strstr: Update cross-compilation guess.
32127         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
32128         CPUs, guess no, in view of glibc
32129         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
32130         Suggested by Eric Blake. Reported by Reuben Thomas.
32132 2011-07-19  Pádraig Brady  <P@draigBrady.com>
32134         getopt-gnu: suppress core dumps from detection code
32135         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
32136         to suppress core dumps that may well occur on glibc systems.
32137         * modules/getopt-gnu: Depend on nocrash.
32139 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
32141         pthread_sigmask: ensure usleep is declared
32142         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
32143         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
32145 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32147         doc: Document NonStop portability issues.
32148         * doc/posix-functions/sigaction.texi (sigaction):
32149         * doc/posix-headers/signal.texi (signal.h):
32150         Document NonStop.  See Joachim Schmitz in
32151         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
32153 2011-07-15  Bruno Haible  <bruno@clisp.org>
32155         ffsl, ffsll: Avoid unportable behaviour.
32156         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
32158 2011-07-15  Bruno Haible  <bruno@clisp.org>
32160         ffs: More tests.
32161         * tests/test-ffs.c (NBITS): New macro.
32162         (main): Add more tests.
32163         * tests/test-ffsl.c (NBITS): New macro.
32164         (main): Add more tests.
32165         * tests/test-ffsll.c (NBITS): New macro.
32166         (main): Add more tests.
32168 2011-07-15  Eric Blake  <eblake@redhat.com>
32170         ffsl, ffsll: new modules
32171         * modules/ffsl: New file.
32172         * modules/ffsll: Likewise.
32173         * m4/ffsl.m4: Likewise.
32174         * m4/ffsll.m4: Likewise.
32175         * lib/ffsl.c: Likewise.
32176         * lib/ffsl.h: Likewise.
32177         * lib/ffsll.c: Likewise.
32178         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
32179         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
32180         * modules/string (Makefile.am): Substitute witnesses.
32181         * lib/strings.in.h (ffsl, ffsll): Declare.
32182         * modules/ffsl-tests: New test file.
32183         * modules/ffsll-tests: Likewise.
32184         * tests/test-ffsl.c: Likewise.
32185         * tests/test-ffsll.c: Likewise.
32186         * MODULES.html.sh (Integer arithmetic functions): Mention it.
32187         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
32188         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
32190         ffs: fix m4 prerequisite
32191         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
32193         ffs: avoid undefined behavior
32194         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
32195         * tests/test-ffs.c (naive, main): Avoid signed shifts.
32196         Reported by Bruno Haible.
32198 2011-07-12  Bruno Haible  <bruno@clisp.org>
32200         pthread_sigmask: Rely on module 'threadlib'.
32201         * modules/pthread_sigmask (Depends-on): Add threadlib.
32202         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
32203         is defined.
32205 2011-07-12  Bruno Haible  <bruno@clisp.org>
32207         regex: Depend on module 'strcase'.
32208         * modules/regex (Depends-on): Add strcase, for strcasecmp().
32210 2011-07-12  Jim Meyering  <meyering@redhat.com>
32212         warn-on-use: fix typo in file name
32213         * modules/snippet/warn-on-use (Files): Correct file name:
32214         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
32216 2011-07-12  Bruno Haible  <bruno@clisp.org>
32218         strings: Document module.
32219         * doc/posix-headers/strings.texi: Mention module 'strings'.
32221 2011-07-12  Bruno Haible  <bruno@clisp.org>
32223         Rename module '_Noreturn' to 'snippet/_Noreturn'.
32224         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
32225         (Files, Makefile.am): Update.
32226         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
32227         * modules/stdlib (Depends-on): Update.
32229 2011-07-12  Bruno Haible  <bruno@clisp.org>
32231         * NEWS: Mention the changes.
32233         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
32234         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
32235         (Files, Makefile.am): Update.
32236         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
32237         * modules/arpa_inet (Depends-on): Update.
32238         * modules/ctype (Depends-on): Update.
32239         * modules/dirent (Depends-on): Update.
32240         * modules/fcntl-h (Depends-on): Update.
32241         * modules/glob (Depends-on): Update.
32242         * modules/iconv-h (Depends-on): Update.
32243         * modules/inttypes-incomplete (Depends-on): Update.
32244         * modules/langinfo (Depends-on): Update.
32245         * modules/locale (Depends-on): Update.
32246         * modules/math (Depends-on): Update.
32247         * modules/netdb (Depends-on): Update.
32248         * modules/poll-h (Depends-on): Update.
32249         * modules/pty (Depends-on): Update.
32250         * modules/search (Depends-on): Update.
32251         * modules/signal (Depends-on): Update.
32252         * modules/spawn (Depends-on): Update.
32253         * modules/stdio (Depends-on): Update.
32254         * modules/stdlib (Depends-on): Update.
32255         * modules/string (Depends-on): Update.
32256         * modules/strings (Depends-on): Update.
32257         * modules/sys_file (Depends-on): Update.
32258         * modules/sys_ioctl (Depends-on): Update.
32259         * modules/sys_select (Depends-on): Update.
32260         * modules/sys_socket (Depends-on): Update.
32261         * modules/sys_stat (Depends-on): Update.
32262         * modules/sys_time (Depends-on): Update.
32263         * modules/sys_times (Depends-on): Update.
32264         * modules/sys_utsname (Depends-on): Update.
32265         * modules/sys_wait (Depends-on): Update.
32266         * modules/termios (Depends-on): Update.
32267         * modules/time (Depends-on): Update.
32268         * modules/unistd (Depends-on): Update.
32269         * modules/wchar (Depends-on): Update.
32270         * modules/wctype-h (Depends-on): Update.
32271         * MODULES.html.sh (Support for building libraries and executables):
32272         Update.
32274         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
32275         * modules/snippet/unused-parameter: Renamed from
32276         modules/unused-parameter.
32277         (Files, Makefile.am): Update.
32278         * build-aux/snippet/unused-parameter.h: Renamed from
32279         build-aux/unused-parameter.h.
32280         * modules/selinux-h (Depends-on): Update.
32281         * modules/unistr/base (Depends-on): Update.
32282         * MODULES.html.sh (Core language properties): Update.
32284         Rename module 'link-warning' to 'snippet/link-warning'.
32285         * modules/snippet/link-warning: Renamed from modules/link-warning.
32286         (Files, Makefile.am): Update.
32287         * build-aux/snippet/link-warning.h: Renamed from
32288         build-aux/link-warning.h.
32289         * MODULES.html.sh (Support for building libraries and executables):
32290         Update.
32292         Rename module 'c++defs' to 'snippet/c++defs'.
32293         * modules/snippet/c++defs: Renamed from modules/c++defs.
32294         (Files, Makefile.am): Update.
32295         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
32296         * modules/arpa_inet (Depends-on): Update.
32297         * modules/ctype (Depends-on): Update.
32298         * modules/dirent (Depends-on): Update.
32299         * modules/fcntl-h (Depends-on): Update.
32300         * modules/glob (Depends-on): Update.
32301         * modules/iconv-h (Depends-on): Update.
32302         * modules/langinfo (Depends-on): Update.
32303         * modules/locale (Depends-on): Update.
32304         * modules/math (Depends-on): Update.
32305         * modules/netdb (Depends-on): Update.
32306         * modules/poll-h (Depends-on): Update.
32307         * modules/pty (Depends-on): Update.
32308         * modules/search (Depends-on): Update.
32309         * modules/signal (Depends-on): Update.
32310         * modules/spawn (Depends-on): Update.
32311         * modules/stdio (Depends-on): Update.
32312         * modules/stdlib (Depends-on): Update.
32313         * modules/string (Depends-on): Update.
32314         * modules/strings (Depends-on): Update.
32315         * modules/sys_ioctl (Depends-on): Update.
32316         * modules/sys_select (Depends-on): Update.
32317         * modules/sys_socket (Depends-on): Update.
32318         * modules/sys_stat (Depends-on): Update.
32319         * modules/sys_time (Depends-on): Update.
32320         * modules/sys_wait (Depends-on): Update.
32321         * modules/termios (Depends-on): Update.
32322         * modules/time (Depends-on): Update.
32323         * modules/unistd (Depends-on): Update.
32324         * modules/wchar (Depends-on): Update.
32325         * modules/wctype-h (Depends-on): Update.
32327         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
32328         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
32329         (Files, Makefile.am): Update.
32330         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
32331         * modules/argv-iter (Depends-on): Update.
32332         * modules/arpa_inet (Depends-on): Update.
32333         * modules/dirent (Depends-on): Update.
32334         * modules/fcntl-h (Depends-on): Update.
32335         * modules/fnmatch (Depends-on): Update.
32336         * modules/getopt-posix (Depends-on): Update.
32337         * modules/glob (Depends-on): Update.
32338         * modules/iconv-h (Depends-on): Update.
32339         * modules/inttypes-incomplete (Depends-on): Update.
32340         * modules/locale (Depends-on): Update.
32341         * modules/math (Depends-on): Update.
32342         * modules/netdb (Depends-on): Update.
32343         * modules/search (Depends-on): Update.
32344         * modules/signal (Depends-on): Update.
32345         * modules/spawn (Depends-on): Update.
32346         * modules/stdio (Depends-on): Update.
32347         * modules/stdlib (Depends-on): Update.
32348         * modules/string (Depends-on): Update.
32349         * modules/strings (Depends-on): Update.
32350         * modules/sys_socket (Depends-on): Update.
32351         * modules/sys_stat (Depends-on): Update.
32352         * modules/sys_time (Depends-on): Update.
32353         * modules/sys_times (Depends-on): Update.
32354         * modules/sys_utsname (Depends-on): Update.
32355         * modules/time (Depends-on): Update.
32356         * modules/unistd (Depends-on): Update.
32357         * modules/wchar (Depends-on): Update.
32358         * MODULES.html.sh (Support for building libraries and executables):
32359         Update.
32361 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32363         Improvements on _Noreturn and related modules.
32365         modules/_Exit-tests: test _Noreturn too
32366         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
32367         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
32368         (main): Use them.
32370         stdnoreturn, stdnoreturn-tests: remove modules
32371         They're not needed here and a bit premature for use elsewhere.  See
32372         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
32373         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
32374         * tests/test-stdnoreturn.c: Remove files.
32375         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
32376         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
32377         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
32378         and using noreturn.
32379         * modules/openat, modules/sigpipe-die, modules/xalloc:
32380         * modules/xmemdup0, modules/xstrtol:
32381         Remove dependency on stdnoreturn.
32383         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
32384         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
32385         Reparenthesize to avoid GCC warning.
32386         Support Microsoft's syntax.
32387         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
32389         _Noreturn-tests: remove module
32390         * modules/_Noreturn-tests: Remove.
32391         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
32392         * tests/test-_Noreturn.c: Remove.
32393         * tests/test-stdnoreturn.c: Merge from the old
32394         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
32396 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32398         _Noreturn, stdnoreturn, and related modules.
32400         * top/maint.mk: Adjust to new noreturn support.
32401         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
32402         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
32404         xalloc: use stdnoreturn.h
32405         * lib/xalloc.h: Include <stdnoreturn.h>.
32406         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32407         * modules/xalloc (Depends-on): Add stdnoreturn.
32409         xstrtol: use stdnoreturn.h
32410         * lib/xstrtol.h: Include <stdnoreturn.h>.
32411         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32412         * modules/xstrtol (Depends-on): Add stdnoreturn.
32414         xmemdup0: use stdnoreturn.h
32415         * lib/xmemdup0.h: Include <stdnoreturn.h>.
32416         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32417         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
32419         sigpipe-die: use stdnoreturn.h
32420         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
32421         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32422         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
32424         openat: use stdnoreturn.h
32425         * lib/openat.h: Include <stdnoreturn.h>.
32426         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32427         * modules/openat (Depends-on): Add stdnoreturn.
32429         * lib/openat-die.c (openat_save_fail): Modernize comment.
32431         * lib/xalloc-die.c (xalloc_die): Modernize comment.
32433         * lib/glthread/thread.h: Modernize comment.
32435         obstack: use _Noreturn
32436         * lib/obstack.c (__attribute__): Remove macro.
32437         (print_and_abort): Use _Noreturn.
32439         c-stack: use _Noreturn
32440         * lib/c-stack.c (die, overflow_handler, segv_handler):
32441         Use _Noreturn rather than __attribute__((noreturn)).
32443         argmatch-tests, exclude_tests: use _Noreturn
32444         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
32445         Remove.
32446         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
32448         stdlib: use _Noreturn
32449         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
32450         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
32451         * modules/stdlib (Depends-on): Add _Noreturn.
32452         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
32454         stdnoreturn-tests: new module
32455         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
32457         stdnoreturn: new module
32458         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
32459         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
32461         _Noreturn-tests: new module
32462         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
32464         _Noreturn: new module
32465         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
32466         New section, mentioning it.
32467         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
32469         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
32471 2011-07-11  Eric Blake  <eblake@redhat.com>
32473         ffs: new module
32474         * modules/ffs: New file.
32475         * m4/ffs.m4: Likewise.
32476         * lib/ffs.c: Likewise.
32477         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
32478         * modules/strings (Makefile.am): Substitute witness.
32479         (Depends-on): Add c++defs.
32480         * lib/strings.in.h (ffs): Declare.
32481         * modules/ffs-tests: New test file.
32482         * tests/test-ffs.c: Test new module.
32483         * MODULES.html.sh (Integer arithmetic functions): Mention it.
32484         * doc/posix-functions/ffs.texi (ffs): Likewise.
32486         regex: avoid compiler warning
32487         * lib/regex.c (includes): Include <strings.h>, for use of
32488         strcasecmp in regcomp.c.
32489         Reported by Joachim Schmitz.
32491 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32493         stdint: respect system's intmax_t if INTMAX_MAX
32494         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
32495         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
32496         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
32497         long but int64_t is long long, and where we will clash with the
32498         system intmax_t if we override it.  See
32499         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
32500         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
32501         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
32502         similarly for UINTMAX_C.
32504 2011-07-08  Bruno Haible  <bruno@clisp.org>
32506         pthread_sigmask tests: Avoid a compiler warning.
32507         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
32508         non-zero.
32510         sigprocmask tests: A better way to avoid a compiler warning.
32511         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
32512         (main): Complain if system() returns non-zero.
32513         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
32515 2011-07-08  Bruno Haible  <bruno@clisp.org>
32517         pthread_sigmask: Work around IRIX bug.
32518         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
32519         bug.
32520         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
32521         there may be unblocked pending signals.
32522         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
32524 2011-07-08  Bruno Haible  <bruno@clisp.org>
32526         pthread_sigmask: Work around Cygwin bug.
32527         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
32528         bug.
32529         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
32530         the system's pthread_sigmask function.
32531         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
32533 2011-07-08  Bruno Haible  <bruno@clisp.org>
32535         pthread_sigmask: Work around bug in single-threaded implementation.
32536         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
32537         FreeBSD, HP-UX, Solaris bug.
32538         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
32539         * lib/pthread_sigmask.c: Include <stddef.h>.
32540         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
32541         the system's pthread_sigmask function.
32542         * modules/pthread_sigmask (configure.ac): Invoke
32543         gl_PREREQ_PTHREAD_SIGMASK.
32544         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
32545         HP-UX, Solaris.
32547 2011-07-08  Eric Blake  <eblake@redhat.com>
32549         test-sigprocmask: avoid compiler warning
32550         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
32551         * tests/test-sigprocmask.c (main): Use it to silence warning.
32552         Reported by Jim Meyering.
32554         test-snprintf: avoid compiler warning
32555         * tests/test-snprintf.c (main): Avoid shadowed declaration.
32556         * tests/test-vsnprintf.c (main): Likewise.
32557         Reported by Jim Meyering.
32559 2011-07-08  Bruno Haible  <bruno@clisp.org>
32561         Tests for module 'pthread_sigmask'.
32562         * modules/pthread_sigmask-tests: New file.
32563         * tests/test-pthread_sigmask1.c: New file, based on
32564         tests/test-sigprocmask.c.
32565         * tests/test-pthread_sigmask2.c: New file.
32567 2011-07-08  Jim Meyering  <meyering@redhat.com>
32569         test-getopt.h: avoid warning about an unused variable
32570         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
32572 2011-07-07  Jim Meyering  <meyering@redhat.com>
32574         maint: reduce list of files exempt from sc_prohibit_leading_TABs
32575         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
32576         now that it no longer contains leading TABs.
32577         Remove unused "url=FIXME" statement.
32579 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32581         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
32582         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32583         When gl_THREADLIB is not in use, assume that the POSIX sematics
32584         are desired.  This is better for Emacs, which uses POSIX semantics
32585         on GNUish and/or POSIXish platforms, and does not use threads at
32586         all otherwise.
32588         pthread_sigmask: fix typo when testing for libraries
32589         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32590         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
32592 2011-07-08  Eric Blake  <eblake@redhat.com>
32594         fts: introduce FTS_NOATIME
32595         * lib/fts_.h (FTS_NOATIME): New bit flag.
32596         (FTS_OPTIONMASK): Adjust.
32597         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
32598         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
32600 2011-07-08  Bruno Haible  <bruno@clisp.org>
32602         Tests for module 'thread'.
32603         * modules/thread-tests: New file.
32604         * tests/test-thread_self.c: New file.
32605         * tests/test-thread_create.cc: New file.
32607 2011-07-08  Bruno Haible  <bruno@clisp.org>
32609         thread: Avoid gcc warnings when using gl_thread_self().
32610         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
32611         'void *'.
32612         (gl_thread_self_pointer): Update.
32614 2011-07-07  Bruno Haible  <bruno@clisp.org>
32616         signal-c++-tests: Check declaration of pthread_sigmask.
32617         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
32618         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
32619         $(LIB_PTHREAD_SIGMASK).
32621 2011-07-07  Bruno Haible  <bruno@clisp.org>
32623         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
32624         * lib/signal.in.h (pthread_sigmask): Override if
32625         REPLACE_PTHREAD_SIGMASK is 1.
32626         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32627         REPLACE_PTHREAD_SIGMASK.
32628         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
32629         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
32630         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
32631         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
32632         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
32634 2011-07-07  Bruno Haible  <bruno@clisp.org>
32636         pthread_sigmask: Ensure declaration in <signal.h>.
32637         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
32638         include <pthread.h>.
32639         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
32640         problem.
32642 2011-07-07  Bruno Haible  <bruno@clisp.org>
32644         pthread_sigmask: Document the module.
32645         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
32647 2011-07-07  Bruno Haible  <bruno@clisp.org>
32649         pthread_sigmask: Follow gnulib conventions.
32650         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
32651         gl_PTHREAD_SIGMASK.
32652         * modules/pthread_sigmask (configure.ac): Update.
32654 2011-07-07  Bruno Haible  <bruno@clisp.org>
32656         pthread_sigmask: Make declaration C++ safe.
32657         * lib/signal.in.h: In two special conditions, just do an #include_next.
32658         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
32659         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
32660         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32661         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
32662         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
32663         not REPLACE_PTHREAD_MASK.
32664         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
32665         not REPLACE_PTHREAD_MASK.
32666         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
32668 2011-07-07  Bruno Haible  <bruno@clisp.org>
32670         pthread_sigmask: Fix return value.
32671         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
32672         * lib/pthread_sigmask.c: New file.
32673         * modules/pthread_sigmask (Files): Add it.
32674         (configure.ac): Invoke AC_LIBOBJ.
32676 2011-07-07  Eric Blake  <eblake@redhat.com>
32678         getopt: more portable argv creation
32679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
32680         const, use char arrays rather than strings.
32681         Suggested by Paul Eggert.
32683 2011-07-07  Bruno Haible  <bruno@clisp.org>
32685         Tests for module 'sigprocmask'.
32686         * modules/sigprocmask-tests: New file.
32687         * tests/test-sigprocmask.c: New file.
32689 2011-07-07  Bruno Haible  <bruno@clisp.org>
32691         float tests: Tweak.
32692         * tests/test-float.c (main): Tweak skip message.
32694 2011-07-07  Eric Blake  <eblake@redhat.com>
32696         getopt: avoid compiler warning during configure
32697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
32698         assigning string literals to non-const pointer.
32700         getopt-gnu: avoid crash in glibc getopt
32701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
32702         * tests/test-getopt.h (test_getopt): Enhance test.
32703         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32704         * doc/posix-functions/getopt.texi (getopt): Document it.
32705         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32706         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32707         Likewise.
32709 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
32711         getopt: handle W; without long options in getopt [BZ #12922]
32712         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
32713         but no long options are defined, just return 'W'.
32715 2011-07-07  Bruno Haible  <bruno@clisp.org>
32717         Avoid literal tabs.
32718         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
32719         variable containing a tab instead of a literal tab.
32720         Reported by Jim Meyering.
32722 2011-07-07  Bruno Haible  <bruno@clisp.org>
32724         Comments.
32725         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
32727 2011-07-06  Bruno Haible  <bruno@clisp.org>
32729         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
32730         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
32731         <winsock2.h>.
32732         (rpl_fd_isset, FD_ISSET): New definitions, copied from
32733         lib/sys_socket.in.h.
32734         (close, gethostname): Hide declarations from <winsock2.h>.
32735         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32736         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
32737         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
32738         (select): Don't override if gnulib's <sys/select.h> was already
32739         included.
32740         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32741         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32742         setsockopt, shutdown, select): Tweak indentation.
32744 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32746         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
32747         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
32748         in an application that does not use the sys_select module.
32750 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
32752         poll: do not return 0 on timeout=-1
32753         * lib/poll.c: Loop with yield if no events occurred.
32755 2011-07-06  Eric Blake  <eblake@redhat.com>
32757         pthread_sigmask: always replace when not using pthread
32758         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
32759         replacement when using some threading other than pthread.  Fix
32760         logic bug.
32762 2011-07-06  Bruno Haible  <bruno@clisp.org>
32764         Comments.
32765         * m4/printf.m4: Update comments about mingw.
32767 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32769         sys_select: define sigset_t more portably
32770         * lib/sys_select.in.h: Always include <sys/types.h>, since
32771         we now need sigset_t and mingw defines it there.
32772         Include <signal.h> before split inclusion guard, to avoid
32773         mishaps on Solaris, whose <signal.h> eventually includes us.
32774         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
32775         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
32776         which come from ...
32777         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
32778         gl_CHECK_TYPE_SIGSET_T.
32779         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
32780         does the real work.
32781         * modules/sys_select (Depends-on): Add 'signal'.
32783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
32784         Suggested by Bruno Haible.
32786         pselect: Use pthread_sigmask, not sigprocmask.
32787         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
32788         multithreaded apps better than sigprocmask does.
32789         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
32790         sigprocmask directly.
32792 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32794         * lib/pselect.c (pselect): Use plain name, without "rpl_".
32795         Don't #undef,  since we don't need any underlying pselect.
32796         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
32797         (Depends-on): Add select.
32798         (Link): Add $(LIBSOCKET).
32799         These changes suggested by Bruno Haible.
32801         pselect: document better
32802         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
32803         * doc/posix-functions/pselect.texi (pselect): Document new module.
32805         pthread_sigmask: new module
32806         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
32807         * doc/posix-functions/pthread_sigmask.texi: Document new module.
32808         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
32809         This is done only as a macro; I don't know how well that'll
32810         work for C++.  Move <sys/types.h> include before the include_next,
32811         to avoid mishap on Solaris.
32812         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
32813         * modules/signal (Makefile.am): Substitute the check's results.
32814         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
32816         test-pselect: new module
32817         * modules/pselect-tests, tests/test-pselect.c: New files.
32818         * tests/test-select.c, tests/test-sys_select-c++.cc:
32819         If TEST_PSELECT is defined, test pselect instead of testing select.
32821         * tests/test-sys_select.c (sigset_t): Test for it, too.
32822         Suggested by Bruno Haible.
32824 2011-07-05  Eric Blake  <eblake@redhat.com>
32826         snprintf: guarantee %1$d, for libintl
32827         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
32828         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
32829         * doc/posix-functions/snprintf.texi (snprintf): Update.
32830         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32831         * tests/test-snprintf.c (main): Enhance test.
32832         * tests/test-vsnprintf.c (main): Likewise.
32834 2011-07-05  Jim Meyering  <meyering@redhat.com>
32836         maint: exempt stdio-read.c and stdio-write.c from the cppi check
32837         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
32838         per Bruno's request, to accommodate this idiom (no space after "#")
32839         even when the function is inside an #if block:
32840         char *
32841         gets (char *s)
32842         #undef gets
32843         {
32844           ...
32845         }
32847 2011-07-04  Jim Meyering  <meyering@redhat.com>
32849         maint: indent with spaces, not TABs, and add a rule to check this
32850         * tests/test-userspec.c: Indent with spaces, not TABs.
32851         * tests/test-argp.c: Likewise.
32852         * tests/test-c-stack2.sh: Likewise.
32853         * tests/test-parse-duration.sh: Likewise
32854         * m4/strtod.m4: Likewise.
32855         * m4/alloca.m4: Likewise.
32856         * m4/pselect.m4: Likewise.
32857         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
32859 2011-07-03  Jim Meyering  <meyering@redhat.com>
32861         maint.mk: correct omissions in prohibit_argmatch_without_use check
32862         This rule would mistakenly report that argmatch.h is included without
32863         use even when both the argmatch and invalid_arg macro were used.
32864         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
32865         of argmatch and invalid_arg.
32867 2011-07-03  Bruno Haible  <bruno@clisp.org>
32869         Comments about EINTR.
32870         * lib/safe-read.h: Explain the purpose of this module.
32871         * lib/safe-write.h: Likewise.
32872         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
32873         module.
32874         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
32875         module.
32876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32878 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
32880         xnanosleep: Rewrite to use new dtotimespec module.
32881         It has the conversion code that used to be in xnanosleep.
32882         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
32883         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
32884         (TIME_T_MAX): Remove.
32885         (xnanosleep): Rewrite in terms of dtotimespec.
32886         * modules/xnanosleep (Depends-on): Add dtotimespec.
32887         Remove intprops, stdbool.
32889         timespec-add, timespec-sub: new modules
32890         * lib/timespec.h (timespec_add, timespec_sub): New decls.
32891         * lib/timespec-add.c, lib/timespec-sub.c:
32892         * modules/timespec-add, modules/timespec-sub: New files.
32894         dtotimespec: new module
32895         * lib/timespec.h (dtotimespec): New decl.
32896         * lib/dtotimespec.c, modules/dtotimespec: New files.
32898         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
32900         pselect: new module
32901         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
32902         (pselect): New decls.
32903         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
32904         since the standard pselect decl uses 'restrict'.
32905         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
32906         HAVE_PSELECT, REPLACE_PSELECT.
32907         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
32908         HAVE_PSELECT, REPLACE_PSELECT.
32909         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
32911         sys_select: don't depend on sys_socket
32912         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
32913         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
32914         This fix works on GNU and GNU-like platforms, but has not been tested
32915         on native Windows.
32916         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
32917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
32918         gl_HEADER_SYS_SOCKET.
32919         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
32920         gl_PREREQ_SYS_H_WINSOCK2.
32922 2011-06-29  Eric Blake  <eblake@redhat.com>
32924         pipe2: fix C89 compile problem
32925         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
32926         Reported by Bruno Haible.
32928         pipe, pipe2: don't corrupt fd on error
32929         * lib/pipe.c (pipe): Leave fd unchanged on error.
32930         * lib/pipe2.c (pipe2): Likewise.
32931         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
32932         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32934 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
32936         mmap-anon: do not use regular expressions inadvertently
32937         * m4/mmap-anon.m4: Remove trailing period from strings sought
32938         in the output.
32940 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
32942         nanosleep: fix integer overflow problem
32943         * lib/nanosleep.c (my_usleep): Don't assume signed integer
32944         arithmetic wraps around on overflow.
32946         nanosleep: simplify carrying
32947         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
32948         first call to the underyling nanosleep, not for the last one.
32949         This doesn't fix any bugs, but it simplifies the computation of
32950         the remaining delay.  Found while auditing integer overflow issues.
32952         dup2: remove test for existence of fcntl
32953         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
32954         "#if HAVE_FCNTL", in the configure-time test program.
32955         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
32956         and therefore speeds up "configure" a bit.  Found while
32957         adding the dup2 module to Emacs.
32959 2011-06-24  Eric Blake  <eblake@redhat.com>
32961         maint.mk: enhance useless header checks
32962         * top/maint.mk (_sc_header_without_use): Check both include
32963         styles.
32964         (sc_prohibit_assert_without_use)
32965         (sc_prohibit_close_stream_without_use)
32966         (sc_prohibit_getopt_without_use)
32967         (sc_prohibit_quotearg_without_use)
32968         (sc_prohibit_quote_without_use)
32969         (sc_prohibit_long_options_without_use)
32970         (sc_prohibit_inttostr_without_use)
32971         (sc_prohibit_ignore_value_without_use)
32972         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
32973         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
32974         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
32975         (sc_prohibit_hash_pjw_without_use)
32976         (sc_prohibit_safe_read_without_use)
32977         (sc_prohibit_argmatch_without_use)
32978         (sc_prohibit_canonicalize_without_use)
32979         (sc_prohibit_root_dev_ino_without_use)
32980         (sc_prohibit_openat_without_use)
32981         (sc_prohibit_c_ctype_without_use)
32982         (sc_prohibit_signal_without_use)
32983         (sc_prohibit_stdio--_without_use)
32984         (sc_prohibit_stdio-safer_without_use)
32985         (sc_prohibit_strings_without_use)
32986         (sc_prohibit_intprops_without_use)
32987         (sc_prohibit_stddef_without_use)
32988         (sc_prohibit_xfreopen_without_use): Update clients.
32990 2011-06-24  Jim Meyering  <meyering@redhat.com>
32992         syntax-check: keep one maint.mk rule in sync with its header
32993         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
32994         of the bug Eric has just fixed, with today's commit 25e4c2ec.
32995         I prefer to avoid temporary files here, so use <(...), but that
32996         is not supported by /bin/sh, so...
32997         (SHELL): Define to /bin/bash.
32999 2011-06-24  Eric Blake  <eblake@redhat.com>
33001         maint.mk: update sc_prohibit_intprops_without_use
33002         * top/maint.mk (_intprops_names): Match recent changes.
33004 2011-06-24  Bruno Haible  <bruno@clisp.org>
33006         strerror-override: No-op tweak.
33007         * lib/strerror-override.h (strerror_override): Reorder conditions,
33008         for consistency with lib/strerror-override.c.
33010 2011-06-23  Eric Blake  <eblake@redhat.com>
33012         maint.mk: test further PATH_MAX issues
33013         * top/maint.mk (sc_prohibit_path_max_array): Rename...
33014         (sc_prohibit_path_max_allocation): ...and also test alloca.
33015         Suggested by Jim Meyering.
33017 2011-06-22  Eric Blake  <eblake@redhat.com>
33019         maint.mk: add syntax-check to avoid char[PATH_MAX]
33020         * top/maint.mk (sc_prohibit_path_max_array): New rule.
33022         stat: be robust to PATH_MAX definition
33023         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
33024         * modules/stat (Depends-on): Add verify.
33026         link: work around IRIX bug
33027         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
33028         * lib/link.c (rpl_link): Work around it.
33029         * tests/test-link.h (test_link): Enhance test.
33030         * doc/posix-functions/link.texi (link): Document the bug.
33032         getopt: silence clang warning
33033         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
33034         dereference.
33035         Reported by Gustavo Martin Domato.
33037 2011-06-22  Jim Meyering  <meyering@redhat.com>
33039         bootstrap: do not insert a blank line into each .gitignore file
33040         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
33042 2011-06-21  Eric Blake  <eblake@redhat.com>
33044         perror: test for output mismatch
33045         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
33046         perror on IRIX.
33048         strerror_r: fix OpenBSD behavior on out-of-range
33049         * lib/strerror_r.c (strerror_r): Always use maximal string.
33050         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
33052         strerror_r: fix OpenBSD behavior on 0
33053         * lib/strerror-override.c (strerror_override): Also override 0
33054         when needed.
33055         * lib/strerror-override.h (strerror_override): Likewise.
33056         * lib/strerror.c (strerror): Simplify, now that 0 override is done
33057         earlier.
33058         * lib/strerror_r.c (strerror_r): Likewise.
33059         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
33060         behavior...
33061         (gl_FUNC_STRERROR_0): ...into new macro.
33062         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
33063         is overridden.
33064         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
33065         * modules/strerror-override (Files): Add strerror.m4.
33066         (configure.ac): Also provide override for 0 when needed.
33067         * doc/posix-functions/strerror.texi (strerror): Document this.
33068         * doc/posix-functions/perror.texi (perror): Likewise.
33070         perror: adjust array size
33071         * modules/perror (Depends-on): Add strerror-override.
33072         * lib/perror.c (perror): Use it to avoid magic number.
33074         strerror-override: reduce size
33075         * lib/strerror-override.c (strerror_override): Use fewer lines.
33077 2011-06-20  Bruno Haible  <bruno@clisp.org>
33079         pathmax: Ensure correct value for PATH_MAX on HP-UX.
33080         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
33082 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33084         alloca: port to compilers that can optimize like GCC 4.6.0
33085         * lib/alloca.c (find_stack_direction): New signature, taken from
33086         Autoconf git.  This works with GCC 4.6.0.  This code should never
33087         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
33088         be used with other compilers that optimize as well as GCC 4.6.0 does.
33089         (alloca): Adjust to new signature.
33090         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
33091         New macro, which patches Autoconf in a similar way.
33093         c-stack: stop worrying about stack direction
33094         * lib/c-stack.c (find_stack_direction): Remove.
33095         (segv_handler): Don't worry about stack direction growth, as it's
33096         too much of a pain to configure this correctly, given how compilers
33097         are optimizing-away our stack-growth detection code.  Instead, assume
33098         that any access to just before or just after the stack is OK.
33099         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
33100         Don't require AC_FUNC_ALLOCA; no longer needed.
33102 2011-06-20  Eric Blake  <eblake@redhat.com>
33104         test-stat: don't allocate PATH_MAX bytes
33105         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
33106         PATH_MAX-sized buffer.
33107         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
33108         * modules/stat-tests (Depends-on): Likewise.
33109         * tests/test-fstatat.c (includes): Drop pathmax.h.
33110         * tests/test-stat.c (includes): Likewise.
33111         Reported by Bruno Haible.
33113 2011-06-20  Bruno Haible  <bruno@clisp.org>
33115         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
33116         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
33117         * lib/float.c: New file.
33118         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
33119         REPLACE_FLOAT_LDBL.
33120         * modules/float (Files): Add lib/float.c.
33121         (configure.ac): Invoke AC_LIBOBJ.
33122         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
33124 2011-06-20  Bruno Haible  <bruno@clisp.org>
33126         Tests for module 'float'.
33127         * modules/float-tests: New file.
33128         * tests/test-float.c: New file.
33130 2011-06-19  Bruno Haible  <bruno@clisp.org>
33132         isinf: Coding style.
33133         * lib/isinf.c: Use GNU coding style.
33135 2011-06-19  Bruno Haible  <bruno@clisp.org>
33137         linkat test: Avoid test failure on AIX 7.1.
33138         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
33139         * tests/test-link.h (test_link): Likewise.
33141 2011-06-19  Bruno Haible  <bruno@clisp.org>
33143         pread test: Avoid test failure on OpenBSD 4.9.
33144         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
33146 2011-06-19  Bruno Haible  <bruno@clisp.org>
33148         sprintf-posix: Fix test failure on AIX 7.1.
33149         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
33150         * doc/posix-functions/dprintf.texi: Mention limited precision problem
33151         on AIX.
33152         * doc/posix-functions/fprintf.texi: Likewise.
33153         * doc/posix-functions/printf.texi: Likewise.
33154         * doc/posix-functions/snprintf.texi: Likewise.
33155         * doc/posix-functions/sprintf.texi: Likewise.
33156         * doc/posix-functions/vdprintf.texi: Likewise.
33157         * doc/posix-functions/vfprintf.texi: Likewise.
33158         * doc/posix-functions/vprintf.texi: Likewise.
33159         * doc/posix-functions/vsnprintf.texi: Likewise.
33160         * doc/posix-functions/vsprintf.texi: Likewise.
33162 2011-06-19  Bruno Haible  <bruno@clisp.org>
33164         roundl-ieee: Fix test failure on AIX 7.1.
33165         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
33166         * doc/posix-functions/roundl.texi: Mention problem with negative
33167         arguments.
33169 2011-06-19  Bruno Haible  <bruno@clisp.org>
33171         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
33172         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
33173         * doc/posix-functions/round.texi: Mention problem with negative
33174         arguments.
33175         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
33177 2011-06-19  Bruno Haible  <bruno@clisp.org>
33179         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
33180         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
33181         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
33182         * doc/posix-functions/roundf.texi: Mention problem with negative
33183         arguments.
33184         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
33186 2011-06-19  Bruno Haible  <bruno@clisp.org>
33188         ceilf-ieee: Work around bug on MacOS X 10.5.
33189         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
33191         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
33192         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
33193         IEEE compliant, avoid compiler optimizations.
33194         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
33195         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33196         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
33197         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33198         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33199         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
33200         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33201         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33202         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33203         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
33205 2011-06-19  Bruno Haible  <bruno@clisp.org>
33207         ceilf-ieee: Work around bug on AIX 7.1.
33208         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
33209         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
33211 2011-06-19  Bruno Haible  <bruno@clisp.org>
33213         ceil-ieee: Work around bug on AIX 7.1.
33214         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
33215         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
33217 2011-06-18  Bruno Haible  <bruno@clisp.org>
33219         fsync test: Avoid test failure on MacOS X and AIX.
33220         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
33221         EINVAL.
33223 2011-06-18  Bruno Haible  <bruno@clisp.org>
33225         openat, fdopendir tests: Fix link errors.
33226         * modules/openat-tests (Depends-on): Add progname.
33227         * modules/fdopendir-tests (Depends-on): Likewise.
33228         * tests/test-fchownat.c: Include progname.h.
33229         (main): Call set_program_name.
33230         * tests/test-fstatat.c: Include progname.h.
33231         (main): Call set_program_name.
33232         * tests/test-mkdirat.c: Include progname.h.
33233         (main): Call set_program_name.
33234         * tests/test-openat.c: Include progname.h.
33235         (main): Call set_program_name.
33236         * tests/test-unlinkat.c: Include progname.h.
33237         (main): Call set_program_name.
33238         * tests/test-fdopendir.c: Include progname.h.
33239         (main): Call set_program_name.
33241 2011-06-18  Bruno Haible  <bruno@clisp.org>
33243         Doc update.
33244         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
33245         HP-UX.
33246         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
33248 2011-06-18  Bruno Haible  <bruno@clisp.org>
33250         getcwd tests: Avoid compilation error on HP-UX 11.31.
33251         * modules/getcwd-tests (Depends-on): Add pathmax.
33252         * tests/test-getcwd.c: Include pathmax.h.
33254 2011-06-18  Bruno Haible  <bruno@clisp.org>
33256         isfinite, isinf: Fix link error on AIX 6 and 7.
33257         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
33258         needed, also test the macro with a 'float' argument.
33259         * m4/isinf.m4 (gl_ISINF): Likewise.
33261 2011-06-18  Bruno Haible  <bruno@clisp.org>
33263         getloadavg: Don't clobber LIBS. Regression from previous commit.
33264         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
33265         AC_CHECK_LIB from here...
33266         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
33267         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
33268         gl_func_getloadavg_done.
33269         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33271 2011-06-18  Bruno Haible  <bruno@clisp.org>
33273         clean-temp: Improve documentation.
33274         * lib/clean-temp.h: Explain better how to use this module.
33275         Reported by John Darrington <john@darrington.wattle.id.au>.
33277 2011-06-17  Bruno Haible  <bruno@clisp.org>
33279         pread, pwrite: Avoid cc warning on AIX.
33280         * lib/unistd.in.h (pread): Undefine before defining as a macro.
33281         (pwrite): Likewise.
33283 2011-06-17  Bruno Haible  <bruno@clisp.org>
33285         spawn-pipe tests: Fix link error.
33286         * tests/test-spawn-pipe-child.c: Undefine fprintf.
33287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33289 2011-06-17  Bruno Haible  <bruno@clisp.org>
33291         Tests: Remove unnecessary dependency.
33292         * modules/canonicalize-tests (Depends-on): Remove progname.
33293         * modules/chown-tests (Depends-on): Likewise.
33294         * modules/dirname-tests (Depends-on): Likewise.
33295         * modules/fdopendir-tests (Depends-on): Likewise.
33296         * modules/fdutimensat-tests (Depends-on): Likewise.
33297         * modules/hash-tests (Depends-on): Likewise.
33298         * modules/lchown-tests (Depends-on): Likewise.
33299         * modules/linkat-tests (Depends-on): Likewise.
33300         * modules/renameat-tests (Depends-on): Likewise.
33301         * modules/spawn-pipe-tests (Depends-on): Likewise.
33302         * modules/utimensat-tests (Depends-on): Likewise.
33304 2011-06-17  Bruno Haible  <bruno@clisp.org>
33306         spawn-pipe tests: Fix link error.
33307         * tests/test-spawn-pipe-child.c: Undefine fflush.
33309 2011-06-17  Bruno Haible  <bruno@clisp.org>
33311         Fix tests link errors.
33312         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
33313         * modules/chown-tests (Makefile.am): Don't link test-chown with
33314         LIBINTL.
33315         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
33316         LIBINTL.
33317         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
33318         LIBINTL.
33319         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
33320         LIBINTL.
33322 2011-06-16  Bruno Haible  <bruno@clisp.org>
33324         crypto/gc-sha1: Fix recent regression.
33325         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
33326         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
33328         crypto/gc-md5: Fix recent regression.
33329         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
33331         crypto/gc-md4: Fix recent regression.
33332         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
33333         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
33335         crypto/gc-arctwo: Fix recent regression.
33336         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
33337         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
33339         crypto/gc-rijndael: Fix recent regression.
33340         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
33341         (configure.ac): Invoke AC_LIBOBJ here.
33342         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
33343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33345         crypto/gc-hmac-sha1: Fix recent regression.
33346         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
33347         (configure.ac): Invoke AC_LIBOBJ here.
33348         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
33349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33351         crypto/gc-hmac-md5: Fix recent regression.
33352         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
33353         (configure.ac): Invoke AC_LIBOBJ here.
33354         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
33355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33357         crypto/gc-des: Fix recent regression.
33358         * modules/crypto/gc-des (Files): Remove m4/des.m4.
33359         (configure.ac): Invoke AC_LIBOBJ here.
33360         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
33361         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33363         crypto/gc-arcfour: Fix recent regression.
33364         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
33365         (configure.ac): Invoke AC_LIBOBJ here.
33366         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
33367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33369 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
33371         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
33372         After the 2011-05-21 change, this macro requires
33373         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
33374         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33376 2011-06-16  Bruno Haible  <bruno@clisp.org>
33378         fprintftime: Move AC_LIBOBJ invocations to module description.
33379         * m4/fprintftime.m4: Remove file.
33380         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
33381         (configure.ac): Remove gl_FPRINTFTIME call.
33382         (Makefile.am): Augment lib_SOURCES.
33383         Reported by Jim Meyering.
33385 2011-06-16  Bruno Haible  <bruno@clisp.org>
33387         tmpfile-safer: Finish 2011-05-23 commit.
33388         * m4/stdio-safer.m4: Really remove file.
33389         Reported by Jim Meyering.
33391 2011-06-16  Bruno Haible  <bruno@clisp.org>
33393         syntax-check: Fix typo.
33394         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
33395         printf-posix.m4.
33396         Reported by Jim Meyering.
33398 2011-06-13  Jim Meyering  <meyering@redhat.com>
33400         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
33401         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
33403 2011-05-23  Bruno Haible  <bruno@clisp.org>
33405         yesno: Move AC_LIBOBJ invocations to module description.
33406         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
33407         * modules/yesno (Makefile.am): Augment lib_SOURCES.
33409 2011-05-23  Bruno Haible  <bruno@clisp.org>
33411         xstrtol: Move AC_LIBOBJ invocations to module description.
33412         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
33413         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
33415 2011-05-23  Bruno Haible  <bruno@clisp.org>
33417         xstrtold: Move AC_LIBOBJ invocations to module description.
33418         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
33419         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
33421 2011-05-23  Bruno Haible  <bruno@clisp.org>
33423         xstrtod: Move AC_LIBOBJ invocations to module description.
33424         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
33425         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
33427 2011-05-23  Bruno Haible  <bruno@clisp.org>
33429         xnanosleep: Move AC_LIBOBJ invocations to module description.
33430         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
33431         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
33433 2011-05-23  Bruno Haible  <bruno@clisp.org>
33435         xgetcwd: Move AC_LIBOBJ invocations to module description.
33436         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
33437         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
33439 2011-05-23  Bruno Haible  <bruno@clisp.org>
33441         xalloc: Move AC_LIBOBJ invocations to module description.
33442         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
33443         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
33445 2011-05-23  Bruno Haible  <bruno@clisp.org>
33447         write-any-file: Move AC_LIBOBJ invocations to module description.
33448         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
33449         invocation.
33450         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
33452 2011-05-23  Bruno Haible  <bruno@clisp.org>
33454         utimens: Move AC_LIBOBJ invocations to module description.
33455         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
33456         * modules/utimens (Makefile.am): Augment lib_SOURCES.
33458 2011-05-23  Bruno Haible  <bruno@clisp.org>
33460         utimecmp: Move AC_LIBOBJ invocations to module description.
33461         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
33462         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
33464 2011-05-23  Bruno Haible  <bruno@clisp.org>
33466         userspec: Move AC_LIBOBJ invocations to module description.
33467         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
33468         * modules/userspec (Makefile.am): Augment lib_SOURCES.
33470 2011-05-23  Bruno Haible  <bruno@clisp.org>
33472         unlinkdir: Move AC_LIBOBJ invocations to module description.
33473         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
33474         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
33476 2011-05-23  Bruno Haible  <bruno@clisp.org>
33478         unistd-safer: Move AC_LIBOBJ invocations to module description.
33479         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
33480         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
33482 2011-05-23  Bruno Haible  <bruno@clisp.org>
33484         tempname: Move AC_LIBOBJ invocations to module description.
33485         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
33486         * modules/tempname (Makefile.am): Augment lib_SOURCES.
33488 2011-05-23  Bruno Haible  <bruno@clisp.org>
33490         strftime: Move AC_LIBOBJ invocations to module description.
33491         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
33492         * modules/strftime (Makefile.am): Augment lib_SOURCES.
33494 2011-05-23  Bruno Haible  <bruno@clisp.org>
33496         stdlib-safer: Move AC_LIBOBJ invocations to module description.
33497         * m4/stdlib-safer.m4: Remove file.
33498         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
33499         (configure.ac): Remove gl_STDLIB_SAFER call.
33500         (Makefile.am): Augment lib_SOURCES.
33502 2011-05-23  Bruno Haible  <bruno@clisp.org>
33504         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
33505         * m4/stdio-safer.m4: Remove file.
33506         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
33507         (configure.ac): Remove gl_TMPFILE_SAFER call.
33508         (Makefile.am): Augment lib_SOURCES.
33510 2011-05-23  Bruno Haible  <bruno@clisp.org>
33512         popen-safer: Move AC_LIBOBJ invocations to module description.
33513         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
33514         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
33515         (configure.ac): Remove gl_POPEN_SAFER call.
33516         (Makefile.am): Augment lib_SOURCES.
33518 2011-05-23  Bruno Haible  <bruno@clisp.org>
33520         freopen-safer: Move AC_LIBOBJ invocations to module description.
33521         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
33522         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
33523         (configure.ac): Remove gl_FREOPEN_SAFER call.
33524         (Makefile.am): Augment lib_SOURCES.
33526 2011-05-23  Bruno Haible  <bruno@clisp.org>
33528         fopen-safer: Move AC_LIBOBJ invocations to module description.
33529         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
33530         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
33531         (configure.ac): Remove gl_FOPEN_SAFER call.
33532         (Makefile.am): Augment lib_SOURCES.
33534 2011-05-23  Bruno Haible  <bruno@clisp.org>
33536         crypto/sha512: Move AC_LIBOBJ invocations to module description.
33537         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
33538         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
33540 2011-05-23  Bruno Haible  <bruno@clisp.org>
33542         crypto/sha256: Move AC_LIBOBJ invocations to module description.
33543         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
33544         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
33546 2011-05-23  Bruno Haible  <bruno@clisp.org>
33548         crypto/sha1: Move AC_LIBOBJ invocations to module description.
33549         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
33550         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
33552 2011-05-23  Bruno Haible  <bruno@clisp.org>
33554         settime: Move AC_LIBOBJ invocations to module description.
33555         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
33556         * modules/settime (Makefile.am): Augment lib_SOURCES.
33558 2011-05-23  Bruno Haible  <bruno@clisp.org>
33560         savedir: Move AC_LIBOBJ invocations to module description.
33561         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
33562         * modules/savedir (Makefile.am): Augment lib_SOURCES.
33564 2011-05-23  Bruno Haible  <bruno@clisp.org>
33566         save-cwd: Move AC_LIBOBJ invocations to module description.
33567         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
33568         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
33570 2011-05-23  Bruno Haible  <bruno@clisp.org>
33572         same: Move AC_LIBOBJ invocations to module description.
33573         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
33574         * modules/same (Makefile.am): Augment lib_SOURCES.
33576 2011-05-23  Bruno Haible  <bruno@clisp.org>
33578         safe-write: Move AC_LIBOBJ invocations to module description.
33579         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
33580         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
33581         instead of gl_SAFE_WRITE.
33582         (Makefile.am): Augment lib_SOURCES.
33584 2011-05-23  Bruno Haible  <bruno@clisp.org>
33586         safe-read: Move AC_LIBOBJ invocations to module description.
33587         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
33588         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
33589         of gl_SAFE_READ.
33590         (Makefile.am): Augment lib_SOURCES.
33592 2011-05-23  Bruno Haible  <bruno@clisp.org>
33594         safe-alloc: Move AC_LIBOBJ invocations to module description.
33595         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
33596         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
33598 2011-05-23  Bruno Haible  <bruno@clisp.org>
33600         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
33601         * m4/rijndael.m4: Remove file.
33602         * modules/crypto/rijndael (Files): Remove it.
33603         (configure.ac): Remove gl_RIJNDAEL call.
33604         (Makefile.am): Augment lib_SOURCES.
33606 2011-05-23  Bruno Haible  <bruno@clisp.org>
33608         readtokens: Move AC_LIBOBJ invocations to module description.
33609         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
33610         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
33612 2011-05-23  Bruno Haible  <bruno@clisp.org>
33614         read-file: Move AC_LIBOBJ invocations to module description.
33615         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
33616         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
33617         of gl_FUNC_READ_FILE.
33618         (Makefile.am): Augment lib_SOURCES.
33620 2011-05-23  Bruno Haible  <bruno@clisp.org>
33622         quotearg: Move AC_LIBOBJ invocations to module description.
33623         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
33624         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
33626 2011-05-23  Bruno Haible  <bruno@clisp.org>
33628         quote: Move AC_LIBOBJ invocations to module description.
33629         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
33630         * modules/quote (Makefile.am): Augment lib_SOURCES.
33632 2011-05-23  Bruno Haible  <bruno@clisp.org>
33634         posixver: Move AC_LIBOBJ invocations to module description.
33635         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
33636         * modules/posixver (Makefile.am): Augment lib_SOURCES.
33638 2011-05-23  Bruno Haible  <bruno@clisp.org>
33640         posixtm: Move AC_LIBOBJ invocations to module description.
33641         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
33642         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
33644 2011-05-23  Bruno Haible  <bruno@clisp.org>
33646         physmem: Move AC_LIBOBJ invocations to module description.
33647         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
33648         * modules/physmem (Makefile.am): Augment lib_SOURCES.
33650 2011-05-23  Bruno Haible  <bruno@clisp.org>
33652         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
33653         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
33654         invocation.
33655         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
33657 2011-05-23  Bruno Haible  <bruno@clisp.org>
33659         mpsort: Move AC_LIBOBJ invocations to module description.
33660         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
33661         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
33663 2011-05-23  Bruno Haible  <bruno@clisp.org>
33665         modechange: Move AC_LIBOBJ invocations to module description.
33666         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
33667         * modules/modechange (Makefile.am): Augment lib_SOURCES.
33669 2011-05-23  Bruno Haible  <bruno@clisp.org>
33671         mkdir-p: Move AC_LIBOBJ invocations to module description.
33672         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
33673         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
33675 2011-05-23  Bruno Haible  <bruno@clisp.org>
33677         mkancesdirs: Move AC_LIBOBJ invocations to module description.
33678         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
33679         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
33681 2011-05-23  Bruno Haible  <bruno@clisp.org>
33683         mgetgroups: Move AC_LIBOBJ invocations to module description.
33684         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
33685         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
33687 2011-05-23  Bruno Haible  <bruno@clisp.org>
33689         memxor: Move AC_LIBOBJ invocations to module description.
33690         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
33691         * modules/memxor (Makefile.am): Augment lib_SOURCES.
33693 2011-05-23  Bruno Haible  <bruno@clisp.org>
33695         memcoll: Move AC_LIBOBJ invocations to module description.
33696         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
33697         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
33699 2011-05-23  Bruno Haible  <bruno@clisp.org>
33701         memcasecmp: Move AC_LIBOBJ invocations to module description.
33702         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
33703         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
33705 2011-05-23  Bruno Haible  <bruno@clisp.org>
33707         crypto/md5: Move AC_LIBOBJ invocations to module description.
33708         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
33709         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
33711 2011-05-23  Bruno Haible  <bruno@clisp.org>
33713         crypto/md4: Move AC_LIBOBJ invocations to module description.
33714         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
33715         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
33717 2011-05-23  Bruno Haible  <bruno@clisp.org>
33719         crypto/md2: Move AC_LIBOBJ invocations to module description.
33720         * m4/md2.m4: Remove file.
33721         * modules/crypto/md2 (Files): Remove it.
33722         (configure.ac): Remove gl_MD2 call.
33723         (Makefile.am): Augment lib_SOURCES.
33725 2011-05-23  Bruno Haible  <bruno@clisp.org>
33727         long-options: Move AC_LIBOBJ invocations to module description.
33728         * m4/long-options.m4: Remove file.
33729         * modules/long-options (Files): Remove it.
33730         (configure.ac): Remove gl_LONG_OPTIONS call.
33731         (Makefile.am): Augment lib_SOURCES.
33733 2011-05-23  Bruno Haible  <bruno@clisp.org>
33735         i-ring: Move AC_LIBOBJ invocations to module description.
33736         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
33737         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
33739 2011-05-23  Bruno Haible  <bruno@clisp.org>
33741         idcache: Move AC_LIBOBJ invocations to module description.
33742         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
33743         * modules/idcache (Makefile.am): Augment lib_SOURCES.
33745 2011-05-23  Bruno Haible  <bruno@clisp.org>
33747         human: Move AC_LIBOBJ invocations to module description.
33748         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
33749         * modules/human (Makefile.am): Augment lib_SOURCES.
33751 2011-05-23  Bruno Haible  <bruno@clisp.org>
33753         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
33754         * m4/hmac-sha1.m4: Remove file.
33755         * modules/crypto/hmac-sha1 (Files): Remove it.
33756         (configure.ac): Remove gl_HMAC_SHA1 call.
33757         (Makefile.am): Augment lib_SOURCES.
33759 2011-05-23  Bruno Haible  <bruno@clisp.org>
33761         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
33762         * m4/hmac-md5.m4: Remove file.
33763         * modules/crypto/hmac-md5 (Files): Remove it.
33764         (configure.ac): Remove gl_HMAC_MD5 call.
33765         (Makefile.am): Augment lib_SOURCES.
33767 2011-05-23  Bruno Haible  <bruno@clisp.org>
33769         hash: Move AC_LIBOBJ invocations to module description.
33770         * m4/hash.m4: Remove file.
33771         * modules/hash (Files): Remove it.
33772         (configure.ac): Remove gl_HASH call.
33773         (Makefile.am): Augment lib_SOURCES.
33775 2011-05-23  Bruno Haible  <bruno@clisp.org>
33777         hard-locale: Move AC_LIBOBJ invocations to module description.
33778         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
33779         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
33781 2011-05-23  Bruno Haible  <bruno@clisp.org>
33783         getugroups: Move AC_LIBOBJ invocations to module description.
33784         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
33785         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
33787 2011-05-23  Bruno Haible  <bruno@clisp.org>
33789         gettime: Move AC_LIBOBJ invocations to module description.
33790         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
33791         * modules/gettime (Makefile.am): Augment lib_SOURCES.
33793 2011-05-23  Bruno Haible  <bruno@clisp.org>
33795         getndelim2: Move AC_LIBOBJ invocations to module description.
33796         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
33797         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
33799 2011-05-23  Bruno Haible  <bruno@clisp.org>
33801         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
33802         * m4/gc-pbkdf2-sha1.m4: Remove file.
33803         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
33804         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
33805         (Makefile.am): Augment lib_SOURCES.
33807 2011-05-23  Bruno Haible  <bruno@clisp.org>
33809         fts: Move AC_LIBOBJ invocations to module description.
33810         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
33811         * modules/fts (configure.ac): ... to here.
33813 2011-05-23  Bruno Haible  <bruno@clisp.org>
33815         file-type: Move AC_LIBOBJ invocations to module description.
33816         * m4/file-type.m4: Remove file.
33817         * modules/file-type (Files): Remove it.
33818         (configure.ac): Remove gl_FILE_TYPE call.
33819         (Makefile.am): Augment lib_SOURCES.
33821 2011-05-23  Bruno Haible  <bruno@clisp.org>
33823         filenamecat*: Respect rules for use of AC_LIBOBJ.
33824         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
33825         Remove AC_LIBOBJ invocation.
33826         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
33827         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
33829 2011-05-23  Bruno Haible  <bruno@clisp.org>
33831         filemode: Move AC_LIBOBJ invocations to module description.
33832         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
33833         * modules/filemode (Makefile.am): Augment lib_SOURCES.
33835 2011-05-23  Bruno Haible  <bruno@clisp.org>
33837         openat-safer: Move AC_LIBOBJ invocations to module description.
33838         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
33839         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
33841 2011-05-23  Bruno Haible  <bruno@clisp.org>
33843         fcntl-safer: Move AC_LIBOBJ invocations to module description.
33844         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
33845         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
33847 2011-05-23  Bruno Haible  <bruno@clisp.org>
33849         exclude: Move AC_LIBOBJ invocations to module description.
33850         * m4/exclude.m4: Remove file.
33851         * modules/exclude (Files): Remove it.
33852         (configure.ac): Remove gl_EXCLUDE call.
33853         (Makefile.am): Augment lib_SOURCES.
33855 2011-05-23  Bruno Haible  <bruno@clisp.org>
33857         dirname*: Respect rules for use of AC_LIBOBJ.
33858         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
33859         invocations.
33860         * modules/dirname (Makefile.am): Augment lib_SOURCES.
33861         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
33863 2011-05-23  Bruno Haible  <bruno@clisp.org>
33865         dirent-safer: Move AC_LIBOBJ invocations to module description.
33866         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
33867         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
33869 2011-05-23  Bruno Haible  <bruno@clisp.org>
33871         crypto/des: Move AC_LIBOBJ invocations to module description.
33872         * m4/des.m4: Remove file.
33873         * modules/crypto/des (Files): Remove it.
33874         (configure.ac): Remove gl_DES call.
33875         (Makefile.am): Augment lib_SOURCES.
33877 2011-05-23  Bruno Haible  <bruno@clisp.org>
33879         cycle-check: Move AC_LIBOBJ invocations to module description.
33880         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
33881         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
33883 2011-05-23  Bruno Haible  <bruno@clisp.org>
33885         c-strtold: Move AC_LIBOBJ invocations to module description.
33886         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
33887         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
33889 2011-05-23  Bruno Haible  <bruno@clisp.org>
33891         c-strtod: Move AC_LIBOBJ invocations to module description.
33892         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
33893         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
33895 2011-05-23  Bruno Haible  <bruno@clisp.org>
33897         crc: Move AC_LIBOBJ invocations to module description.
33898         * m4/crc.m4: Remove file.
33899         * modules/crc (Files): Remove it.
33900         (configure.ac): Remove gl_CRC call.
33901         (Makefile.am): Augment lib_SOURCES.
33903 2011-05-23  Bruno Haible  <bruno@clisp.org>
33905         close-stream: Move AC_LIBOBJ invocations to module description.
33906         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
33907         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
33909 2011-05-23  Bruno Haible  <bruno@clisp.org>
33911         closeout: Move AC_LIBOBJ invocations to module description.
33912         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
33913         * modules/closeout (Makefile.am): Augment lib_SOURCES.
33915 2011-05-23  Bruno Haible  <bruno@clisp.org>
33917         closein: Move AC_LIBOBJ invocations to module description.
33918         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
33919         * modules/closein (Makefile.am): Augment lib_SOURCES.
33921 2011-05-23  Bruno Haible  <bruno@clisp.org>
33923         cloexec: Move AC_LIBOBJ invocations to module description.
33924         * m4/cloexec.m4: Remove file.
33925         * modules/cloexec (Files): Remove it.
33926         (configure.ac): Remove gl_CLOEXEC call.
33927         (Makefile.am): Augment lib_SOURCES.
33929 2011-05-23  Bruno Haible  <bruno@clisp.org>
33931         check-version: Move AC_LIBOBJ invocations to module description.
33932         * m4/check-version.m4: Remove file.
33933         * modules/check-version (Files): Remove it.
33934         (configure.ac): Remove gl_CHECK_VERSION call.
33935         (Makefile.am): Augment lib_SOURCES.
33937 2011-05-23  Bruno Haible  <bruno@clisp.org>
33939         chdir-safer: Move AC_LIBOBJ invocations to module description.
33940         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
33941         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
33943 2011-05-23  Bruno Haible  <bruno@clisp.org>
33945         canonicalize: Move AC_LIBOBJ invocations to module description.
33946         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
33947         AC_LIBOBJ invocation.
33948         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
33950 2011-05-23  Bruno Haible  <bruno@clisp.org>
33952         canon-host: Move AC_LIBOBJ invocations to module description.
33953         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
33954         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
33955         instead of gl_CANON_HOST.
33956         (Makefile.am): Augment lib_SOURCES.
33958 2011-05-23  Bruno Haible  <bruno@clisp.org>
33960         backupfile: Move AC_LIBOBJ invocations to module description.
33961         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
33962         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
33964 2011-05-23  Bruno Haible  <bruno@clisp.org>
33966         argmatch: Move AC_LIBOBJ invocations to module description.
33967         * m4/argmatch.m4: Remove file.
33968         * modules/argmatch (Files): Remove it.
33969         (configure.ac): Remove gl_ARGMATCH call.
33970         (Makefile.am): Augment lib_SOURCES.
33972 2011-05-23  Bruno Haible  <bruno@clisp.org>
33974         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
33975         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
33976         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
33978 2011-05-23  Bruno Haible  <bruno@clisp.org>
33980         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
33981         * m4/arcfour.m4: Remove file.
33982         * modules/crypto/arcfour (Files): Remove it.
33983         (configure.ac): Remove gl_ARCFOUR call.
33984         (Makefile.am): Augment lib_SOURCES.
33986 2011-05-22  Bruno Haible  <bruno@clisp.org>
33988         write: Move AC_LIBOBJ invocations to module description.
33989         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
33990         * modules/write (configure.ac): ... to here.
33992 2011-05-22  Bruno Haible  <bruno@clisp.org>
33994         wmemset: Move AC_LIBOBJ invocations to module description.
33995         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
33996         here...
33997         * modules/wmemset (configure.ac): ... to here.
33999 2011-05-22  Bruno Haible  <bruno@clisp.org>
34001         wmemmove: Move AC_LIBOBJ invocations to module description.
34002         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
34003         here...
34004         * modules/wmemmove (configure.ac): ... to here.
34006 2011-05-22  Bruno Haible  <bruno@clisp.org>
34008         wmemcpy: Move AC_LIBOBJ invocations to module description.
34009         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
34010         here...
34011         * modules/wmemcpy (configure.ac): ... to here.
34013 2011-05-22  Bruno Haible  <bruno@clisp.org>
34015         wmemcmp: Move AC_LIBOBJ invocations to module description.
34016         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
34017         here...
34018         * modules/wmemcmp (configure.ac): ... to here.
34020 2011-05-22  Bruno Haible  <bruno@clisp.org>
34022         wmemchr: Move AC_LIBOBJ invocations to module description.
34023         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
34024         here...
34025         * modules/wmemchr (configure.ac): ... to here.
34027 2011-05-22  Bruno Haible  <bruno@clisp.org>
34029         wcswidth: Move AC_LIBOBJ invocations to module description.
34030         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
34031         here...
34032         * modules/wcswidth (configure.ac): ... to here.
34034 2011-05-22  Bruno Haible  <bruno@clisp.org>
34036         wcwidth: Respect rules for use of AC_LIBOBJ.
34037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
34038         invocation from here...
34039         * modules/wcwidth (configure.ac): ... to here.
34040         (Depends-on): Update conditions.
34042 2011-05-22  Bruno Haible  <bruno@clisp.org>
34044         wctype: Move AC_LIBOBJ invocations to module description.
34045         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
34046         invocation from here...
34047         * modules/wctype (configure.ac): ... to here.
34048         (Depends-on): Update conditions.
34050 2011-05-22  Bruno Haible  <bruno@clisp.org>
34052         wctrans: Move AC_LIBOBJ invocations to module description.
34053         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
34054         invocation from here...
34055         * modules/wctrans (configure.ac): ... to here.
34057 2011-05-22  Bruno Haible  <bruno@clisp.org>
34059         wctomb: Move AC_LIBOBJ invocations to module description.
34060         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
34061         invocations from here...
34062         * modules/wctomb (configure.ac): ... to here.
34064 2011-05-22  Bruno Haible  <bruno@clisp.org>
34066         wctob: Move AC_LIBOBJ invocations to module description.
34067         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
34068         gl_PREREQ_WCTOB invocations from here...
34069         * modules/wctob (configure.ac): ... to here.
34070         (Depends-on): Update conditions.
34072 2011-05-22  Bruno Haible  <bruno@clisp.org>
34074         wcsxfrm: Move AC_LIBOBJ invocations to module description.
34075         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
34076         here...
34077         * modules/wcsxfrm (configure.ac): ... to here.
34079 2011-05-22  Bruno Haible  <bruno@clisp.org>
34081         wcstok: Move AC_LIBOBJ invocations to module description.
34082         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
34083         * modules/wcstok (configure.ac): ... to here.
34085 2011-05-22  Bruno Haible  <bruno@clisp.org>
34087         wcsstr: Move AC_LIBOBJ invocations to module description.
34088         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
34089         * modules/wcsstr (configure.ac): ... to here.
34091 2011-05-22  Bruno Haible  <bruno@clisp.org>
34093         wcsspn: Move AC_LIBOBJ invocations to module description.
34094         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
34095         * modules/wcsspn (configure.ac): ... to here.
34097 2011-05-22  Bruno Haible  <bruno@clisp.org>
34099         wcsrtombs: Move AC_LIBOBJ invocations to module description.
34100         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
34101         gl_PREREQ_WCSRTOMBS invocations from here...
34102         * modules/wcsrtombs (configure.ac): ... to here.
34104 2011-05-22  Bruno Haible  <bruno@clisp.org>
34106         wcsrchr: Move AC_LIBOBJ invocations to module description.
34107         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
34108         here...
34109         * modules/wcsrchr (configure.ac): ... to here.
34111 2011-05-22  Bruno Haible  <bruno@clisp.org>
34113         wcspbrk: Move AC_LIBOBJ invocations to module description.
34114         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
34115         here...
34116         * modules/wcspbrk (configure.ac): ... to here.
34118 2011-05-22  Bruno Haible  <bruno@clisp.org>
34120         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
34121         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
34122         gl_PREREQ_WCSNRTOMBS invocations from here...
34123         * modules/wcsnrtombs (configure.ac): ... to here.
34125 2011-05-22  Bruno Haible  <bruno@clisp.org>
34127         wcsnlen: Move AC_LIBOBJ invocations to module description.
34128         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
34129         here...
34130         * modules/wcsnlen (configure.ac): ... to here.
34132 2011-05-22  Bruno Haible  <bruno@clisp.org>
34134         wcsncpy: Move AC_LIBOBJ invocations to module description.
34135         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
34136         here...
34137         * modules/wcsncpy (configure.ac): ... to here.
34139 2011-05-22  Bruno Haible  <bruno@clisp.org>
34141         wcsncmp: Move AC_LIBOBJ invocations to module description.
34142         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
34143         here...
34144         * modules/wcsncmp (configure.ac): ... to here.
34146 2011-05-22  Bruno Haible  <bruno@clisp.org>
34148         wcsncat: Move AC_LIBOBJ invocations to module description.
34149         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
34150         here...
34151         * modules/wcsncat (configure.ac): ... to here.
34153 2011-05-22  Bruno Haible  <bruno@clisp.org>
34155         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
34156         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
34157         from here...
34158         * modules/wcsncasecmp (configure.ac): ... to here.
34160 2011-05-22  Bruno Haible  <bruno@clisp.org>
34162         wcslen: Move AC_LIBOBJ invocations to module description.
34163         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
34164         * modules/wcslen (configure.ac): ... to here.
34166 2011-05-22  Bruno Haible  <bruno@clisp.org>
34168         wcsdup: Move AC_LIBOBJ invocations to module description.
34169         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
34170         * modules/wcsdup (configure.ac): ... to here.
34172 2011-05-22  Bruno Haible  <bruno@clisp.org>
34174         wcscspn: Move AC_LIBOBJ invocations to module description.
34175         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
34176         here...
34177         * modules/wcscspn (configure.ac): ... to here.
34179 2011-05-22  Bruno Haible  <bruno@clisp.org>
34181         wcscpy: Move AC_LIBOBJ invocations to module description.
34182         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
34183         * modules/wcscpy (configure.ac): ... to here.
34185 2011-05-22  Bruno Haible  <bruno@clisp.org>
34187         wcscoll: Move AC_LIBOBJ invocations to module description.
34188         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
34189         here...
34190         * modules/wcscoll (configure.ac): ... to here.
34192 2011-05-22  Bruno Haible  <bruno@clisp.org>
34194         wcscmp: Move AC_LIBOBJ invocations to module description.
34195         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
34196         * modules/wcscmp (configure.ac): ... to here.
34198 2011-05-22  Bruno Haible  <bruno@clisp.org>
34200         wcschr: Move AC_LIBOBJ invocations to module description.
34201         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
34202         * modules/wcschr (configure.ac): ... to here.
34204 2011-05-22  Bruno Haible  <bruno@clisp.org>
34206         wcscat: Move AC_LIBOBJ invocations to module description.
34207         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
34208         * modules/wcscat (configure.ac): ... to here.
34210 2011-05-22  Bruno Haible  <bruno@clisp.org>
34212         wcscasecmp: Move AC_LIBOBJ invocations to module description.
34213         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
34214         here...
34215         * modules/wcscasecmp (configure.ac): ... to here.
34217 2011-05-22  Bruno Haible  <bruno@clisp.org>
34219         wcrtomb: Move AC_LIBOBJ invocations to module description.
34220         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
34221         invocations from here...
34222         * modules/wcrtomb (configure.ac): ... to here.
34224 2011-05-22  Bruno Haible  <bruno@clisp.org>
34226         wcpncpy: Move AC_LIBOBJ invocations to module description.
34227         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
34228         here...
34229         * modules/wcpncpy (configure.ac): ... to here.
34231 2011-05-22  Bruno Haible  <bruno@clisp.org>
34233         wcpcpy: Move AC_LIBOBJ invocations to module description.
34234         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
34235         * modules/wcpcpy (configure.ac): ... to here.
34237 2011-05-22  Bruno Haible  <bruno@clisp.org>
34239         waitpid: Move AC_LIBOBJ invocations to module description.
34240         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
34241         invocation from here...
34242         * modules/waitpid (configure.ac): ... to here.
34244 2011-05-22  Bruno Haible  <bruno@clisp.org>
34246         utimensat: Move AC_LIBOBJ invocations to module description.
34247         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
34248         here...
34249         * modules/utimensat (configure.ac): ... to here.
34251 2011-05-22  Bruno Haible  <bruno@clisp.org>
34253         usleep: Move AC_LIBOBJ invocations to module description.
34254         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
34255         here...
34256         * modules/usleep (configure.ac): ... to here.
34258 2011-05-22  Bruno Haible  <bruno@clisp.org>
34260         unlockpt: Move AC_LIBOBJ invocations to module description.
34261         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
34262         gl_PREREQ_UNLOCKPT invocations from here...
34263         * modules/unlockpt (configure.ac): ... to here.
34265 2011-05-22  Bruno Haible  <bruno@clisp.org>
34267         unlink: Respect rules for use of AC_LIBOBJ.
34268         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
34269         * modules/unlink (configure.ac): ... to here.
34271 2011-05-22  Bruno Haible  <bruno@clisp.org>
34273         uname: Move AC_LIBOBJ invocations to module description.
34274         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
34275         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
34276         here...
34277         * modules/uname (configure.ac): ... to here.
34279 2011-05-22  Bruno Haible  <bruno@clisp.org>
34281         ttyname_r: Move AC_LIBOBJ invocations to module description.
34282         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
34283         gl_PREREQ_TTYNAME_R invocations from here...
34284         * modules/ttyname_r (configure.ac): ... to here.
34286 2011-05-22  Bruno Haible  <bruno@clisp.org>
34288         tsearch: Move AC_LIBOBJ invocations to module description.
34289         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
34290         invocations from here...
34291         * modules/tsearch (configure.ac): ... to here.
34293 2011-05-22  Bruno Haible  <bruno@clisp.org>
34295         towctrans: Move AC_LIBOBJ invocations to module description.
34296         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
34297         AC_LIBOBJ invocation from here...
34298         * modules/towctrans (configure.ac): ... to here.
34300 2011-05-22  Bruno Haible  <bruno@clisp.org>
34302         tmpfile: Move AC_LIBOBJ invocations to module description.
34303         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
34304         invocations from here...
34305         * modules/tmpfile (configure.ac): ... to here.
34307 2011-05-22  Bruno Haible  <bruno@clisp.org>
34309         times: Move AC_LIBOBJ invocations to module description.
34310         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
34311         * modules/times (configure.ac): ... to here.
34313 2011-05-22  Bruno Haible  <bruno@clisp.org>
34315         time_r: Move AC_LIBOBJ invocations to module description.
34316         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
34317         invocations from here...
34318         * modules/time_r (configure.ac): ... to here.
34320 2011-05-22  Bruno Haible  <bruno@clisp.org>
34322         timegm: Move AC_LIBOBJ invocations to module description.
34323         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
34324         invocations from here...
34325         * modules/timegm (configure.ac): ... to here.
34327 2011-05-22  Bruno Haible  <bruno@clisp.org>
34329         tcgetsid: Move AC_LIBOBJ invocations to module description.
34330         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
34331         and gl_PREREQ_TCGETSID invocations from here...
34332         * modules/tcgetsid (configure.ac): ... to here.
34333         (Depends-on): Update conditions.
34335 2011-05-22  Bruno Haible  <bruno@clisp.org>
34337         symlinkat: Move AC_LIBOBJ invocations to module description.
34338         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
34339         here...
34340         * modules/symlinkat (configure.ac): ... to here.
34342 2011-05-22  Bruno Haible  <bruno@clisp.org>
34344         symlink: Move AC_LIBOBJ invocations to module description.
34345         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
34346         here...
34347         * modules/symlink (configure.ac): ... to here.
34349 2011-05-22  Bruno Haible  <bruno@clisp.org>
34351         strverscmp: Move AC_LIBOBJ invocations to module description.
34352         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
34353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
34354         from here...
34355         * modules/strverscmp (configure.ac): ... to here.
34357 2011-05-22  Bruno Haible  <bruno@clisp.org>
34359         strtok_r: Move AC_LIBOBJ invocations to module description.
34360         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
34361         and gl_PREREQ_STRTOK_R invocations from here...
34362         * modules/strtok_r (configure.ac): ... to here.
34363         (Depends-on): Update conditions.
34365 2011-05-22  Bruno Haible  <bruno@clisp.org>
34367         strtoumax: Move AC_LIBOBJ invocations to module description.
34368         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
34369         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
34370         from here...
34371         * modules/strtoumax (configure.ac): ... to here.
34373 2011-05-22  Bruno Haible  <bruno@clisp.org>
34375         strtoimax: Move AC_LIBOBJ invocations to module description.
34376         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
34377         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
34378         from here...
34379         * modules/strtoimax (configure.ac): ... to here.
34381 2011-05-22  Bruno Haible  <bruno@clisp.org>
34383         strtoull: Move AC_LIBOBJ invocations to module description.
34384         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
34385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
34386         from here...
34387         * modules/strtoull (configure.ac): ... to here.
34389 2011-05-22  Bruno Haible  <bruno@clisp.org>
34391         strtoll: Move AC_LIBOBJ invocations to module description.
34392         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
34393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
34394         here...
34395         * modules/strtoll (configure.ac): ... to here.
34397 2011-05-22  Bruno Haible  <bruno@clisp.org>
34399         strtoul: Move AC_LIBOBJ invocations to module description.
34400         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
34401         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34402         * modules/strtoul (configure.ac): ... to here.
34404 2011-05-22  Bruno Haible  <bruno@clisp.org>
34406         strtol: Move AC_LIBOBJ invocations to module description.
34407         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
34408         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34409         * modules/strtol (configure.ac): ... to here.
34411 2011-05-22  Bruno Haible  <bruno@clisp.org>
34413         strtod: Move AC_LIBOBJ invocations to module description.
34414         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
34415         invocations from here...
34416         * modules/strtod (configure.ac): ... to here.
34418 2011-05-22  Bruno Haible  <bruno@clisp.org>
34420         strstr*: Move AC_LIBOBJ invocations to module description.
34421         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
34422         invocations from here...
34423         * modules/strstr-simple (configure.ac): ... to here.
34424         * modules/strstr (configure.ac): ... and here.
34426 2011-05-22  Bruno Haible  <bruno@clisp.org>
34428         strsignal: Move AC_LIBOBJ invocations to module description.
34429         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
34430         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
34431         * modules/strsignal (configure.ac): ... to here.
34432         (Depends-on): Update conditions.
34434 2011-05-22  Bruno Haible  <bruno@clisp.org>
34436         strsep: Move AC_LIBOBJ invocations to module description.
34437         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
34438         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
34439         here...
34440         * modules/strsep (configure.ac): ... to here.
34442 2011-05-22  Bruno Haible  <bruno@clisp.org>
34444         strptime: Move AC_LIBOBJ invocations to module description.
34445         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
34446         gl_PREREQ_STRPTIME invocations from here...
34447         * modules/strptime (configure.ac): ... to here.
34449 2011-05-22  Bruno Haible  <bruno@clisp.org>
34451         strpbrk: Move AC_LIBOBJ invocations to module description.
34452         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
34453         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
34454         here...
34455         * modules/strpbrk (configure.ac): ... to here.
34457 2011-05-22  Bruno Haible  <bruno@clisp.org>
34459         strnlen: Move AC_LIBOBJ invocations to module description.
34460         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
34461         invocations from here...
34462         * modules/strnlen (configure.ac): ... to here.
34464 2011-05-22  Bruno Haible  <bruno@clisp.org>
34466         strndup: Move AC_LIBOBJ invocations to module description.
34467         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
34468         invocations from here...
34469         * modules/strndup (configure.ac): ... to here.
34470         (Depends-on): Update conditions.
34472 2011-05-22  Bruno Haible  <bruno@clisp.org>
34474         strncat: Move AC_LIBOBJ invocations to module description.
34475         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
34476         invocations from here...
34477         * modules/strncat (configure.ac): ... to here.
34479 2011-05-22  Bruno Haible  <bruno@clisp.org>
34481         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
34482         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
34483         invocations from here...
34484         * modules/strdup (configure.ac): ... to here.
34485         * modules/strdup-posix (configure.ac): ... and here.
34487 2011-05-22  Bruno Haible  <bruno@clisp.org>
34489         strcspn: Move AC_LIBOBJ invocations to module description.
34490         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
34491         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
34492         here...
34493         * modules/strcspn (configure.ac): ... to here.
34495 2011-05-22  Bruno Haible  <bruno@clisp.org>
34497         strchrnul: Move AC_LIBOBJ invocations to module description.
34498         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
34499         gl_PREREQ_STRCHRNUL invocations from here...
34500         * modules/strchrnul (configure.ac): ... to here.
34502 2011-05-22  Bruno Haible  <bruno@clisp.org>
34504         strcasestr*: Move AC_LIBOBJ invocations to module description.
34505         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
34506         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
34507         * modules/strcasestr-simple (configure.ac): ... to here.
34508         * modules/strcasestr (configure.ac): ... and here.
34510 2011-05-22  Bruno Haible  <bruno@clisp.org>
34512         strcase: Move AC_LIBOBJ invocations to module description.
34513         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
34514         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
34515         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
34516         gl_PREREQ_STRNCASECMP invocations from here...
34517         * modules/strcase (configure.ac): ... to here.
34519 2011-05-22  Bruno Haible  <bruno@clisp.org>
34521         stpncpy: Move AC_LIBOBJ invocations to module description.
34522         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
34523         here...
34524         * modules/stpncpy (configure.ac): ... to here.
34526 2011-05-22  Bruno Haible  <bruno@clisp.org>
34528         stpcpy: Move AC_LIBOBJ invocations to module description.
34529         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
34530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
34531         here...
34532         * modules/stpcpy (configure.ac): ... to here.
34534 2011-05-21  Bruno Haible  <bruno@clisp.org>
34536         stat: Move AC_LIBOBJ invocations to module description.
34537         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
34538         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
34539         here...
34540         * modules/stat (configure.ac): ... to here.
34542 2011-05-21  Bruno Haible  <bruno@clisp.org>
34544         sleep: Move AC_LIBOBJ invocations to module description.
34545         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
34546         * modules/sleep (configure.ac): ... to here.
34548 2011-05-21  Bruno Haible  <bruno@clisp.org>
34550         signbit: Move AC_LIBOBJ invocations to module description.
34551         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
34552         * modules/signbit (configure.ac): ... to here.
34554 2011-05-21  Bruno Haible  <bruno@clisp.org>
34556         sigprocmask: Move AC_LIBOBJ invocations to module description.
34557         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
34558         gl_PREREQ_SIGPROMASK invocations from here...
34559         * modules/sigprocmask (configure.ac): ... to here.
34561 2011-05-21  Bruno Haible  <bruno@clisp.org>
34563         sigaction: Move AC_LIBOBJ invocations to module description.
34564         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
34565         gl_PREREQ_SIGACTION invocations from here...
34566         * modules/sigaction (configure.ac): ... to here.
34568 2011-05-21  Bruno Haible  <bruno@clisp.org>
34570         sig2str: Move AC_LIBOBJ invocations to module description.
34571         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
34572         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
34573         here...
34574         * modules/sig2str (configure.ac): ... to here.
34576 2011-05-21  Bruno Haible  <bruno@clisp.org>
34578         setlocale: Move AC_LIBOBJ invocations to module description.
34579         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
34580         gl_PREREQ_SETLOCALE invocations from here...
34581         * modules/setlocale (configure.ac): ... to here.
34583 2011-05-21  Bruno Haible  <bruno@clisp.org>
34585         unsetenv: Move AC_LIBOBJ invocations to module description.
34586         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
34587         and gl_PREREQ_UNSETENV invocations from here...
34588         * modules/unsetenv (configure.ac): ... to here.
34589         (Depends-on): Update.
34591 2011-05-21  Bruno Haible  <bruno@clisp.org>
34593         setenv: Move AC_LIBOBJ invocations to module description.
34594         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
34595         here...
34596         * modules/setenv (configure.ac): ... to here.
34598 2011-05-21  Bruno Haible  <bruno@clisp.org>
34600         selinux-h: Move AC_LIBOBJ invocations to module description.
34601         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
34602         AC_LIBOBJ invocation from here...
34603         * modules/selinux-h (configure.ac): ... to here.
34605 2011-05-21  Bruno Haible  <bruno@clisp.org>
34607         select: Respect rules for use of AC_LIBOBJ.
34608         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
34609         here...
34610         * modules/select (configure.ac): ... to here.
34612 2011-05-21  Bruno Haible  <bruno@clisp.org>
34614         scandir: Move AC_LIBOBJ invocations to module description.
34615         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
34616         invocations from here...
34617         * modules/scandir (configure.ac): ... to here.
34619 2011-05-21  Bruno Haible  <bruno@clisp.org>
34621         rpmatch: Move AC_LIBOBJ invocations to module description.
34622         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
34623         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
34624         here...
34625         * modules/rpmatch (configure.ac): ... to here.
34627 2011-05-21  Bruno Haible  <bruno@clisp.org>
34629         rmdir: Respect rules for use of AC_LIBOBJ.
34630         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
34631         * modules/rmdir (configure.ac): ... to here.
34633 2011-05-21  Bruno Haible  <bruno@clisp.org>
34635         renameat: Move AC_LIBOBJ invocations to module description.
34636         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
34637         here...
34638         * modules/renameat (configure.ac): ... to here.
34640 2011-05-21  Bruno Haible  <bruno@clisp.org>
34642         rename: Respect rules for use of AC_LIBOBJ.
34643         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
34644         here...
34645         * modules/rename (configure.ac): ... to here.
34647 2011-05-21  Bruno Haible  <bruno@clisp.org>
34649         remove: Move AC_LIBOBJ invocations to module description.
34650         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
34651         here...
34652         * modules/remove (configure.ac): ... to here.
34654 2011-05-21  Bruno Haible  <bruno@clisp.org>
34656         relocatable-lib: Move AC_LIBOBJ invocations to module description.
34657         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
34658         macro.
34659         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
34660         * modules/relocatable-lib (configure.ac): ... to here.
34661         * modules/relocatable-prog-wrapper (configure.ac): Invoke
34662         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
34664 2011-05-21  Bruno Haible  <bruno@clisp.org>
34666         relocatable-prog: Move AC_LIBOBJ invocations to module description.
34667         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
34668         here...
34669         * modules/relocatable-prog (configure.ac): ... to here.
34671 2011-05-21  Bruno Haible  <bruno@clisp.org>
34673         regex: Move AC_LIBOBJ invocations to module description.
34674         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
34675         invocations from here...
34676         * modules/regex (configure.ac): ... to here.
34678 2011-05-21  Bruno Haible  <bruno@clisp.org>
34680         realloc-*: Move AC_LIBOBJ invocations to module description.
34681         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
34682         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
34683         AC_LIBOBJ invocations from here...
34684         * modules/realloc-gnu (configure.ac): ... to here.
34685         * modules/realloc-posix (configure.ac): ... and here.
34687 2011-05-21  Bruno Haible  <bruno@clisp.org>
34689         readutmp: Move AC_LIBOBJ invocations to module description.
34690         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
34691         * modules/readutmp (configure.ac): ... to here.
34693 2011-05-21  Bruno Haible  <bruno@clisp.org>
34695         readlinkat: Move AC_LIBOBJ invocations to module description.
34696         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
34697         here...
34698         * modules/readlinkat (configure.ac): ... to here.
34700 2011-05-21  Bruno Haible  <bruno@clisp.org>
34702         readlink: Move AC_LIBOBJ invocations to module description.
34703         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
34704         gl_PREREQ_READLINK invocations from here...
34705         * modules/readlink (configure.ac): ... to here.
34707 2011-05-21  Bruno Haible  <bruno@clisp.org>
34709         readline: Move AC_LIBOBJ invocations to module description.
34710         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
34711         gl_PREREQ_READLINE invocations from here...
34712         * modules/readline (configure.ac): ... to here.
34714 2011-05-21  Bruno Haible  <bruno@clisp.org>
34716         read: Move AC_LIBOBJ invocations to module description.
34717         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
34718         * modules/read (configure.ac): ... to here.
34720 2011-05-21  Bruno Haible  <bruno@clisp.org>
34722         rawmemchr: Move AC_LIBOBJ invocations to module description.
34723         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
34724         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
34725         from here...
34726         * modules/rawmemchr (configure.ac): ... to here.
34728 2011-05-21  Bruno Haible  <bruno@clisp.org>
34730         random_r: Move AC_LIBOBJ invocations to module description.
34731         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
34732         gl_PREREQ_RANDOM_R invocations from here...
34733         * modules/random_r (configure.ac): ... to here.
34735 2011-05-21  Bruno Haible  <bruno@clisp.org>
34737         pwrite: Move AC_LIBOBJ invocations to module description.
34738         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
34739         * modules/pwrite (configure.ac): ... to here.
34741 2011-05-21  Bruno Haible  <bruno@clisp.org>
34743         putenv: Move AC_LIBOBJ invocations to module description.
34744         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
34745         * modules/putenv (configure.ac): ... to here.
34747 2011-05-21  Bruno Haible  <bruno@clisp.org>
34749         login_tty: Move AC_LIBOBJ invocations to module description.
34750         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
34751         * modules/login_tty (configure.ac): ... to here.
34753 2011-05-21  Bruno Haible  <bruno@clisp.org>
34755         openpty: Move AC_LIBOBJ invocations to module description.
34756         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
34757         * modules/openpty (configure.ac): ... to here.
34759 2011-05-21  Bruno Haible  <bruno@clisp.org>
34761         forkpty: Move AC_LIBOBJ invocations to module description.
34762         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
34763         * modules/forkpty (configure.ac): ... to here.
34765 2011-05-21  Bruno Haible  <bruno@clisp.org>
34767         ptsname: Move AC_LIBOBJ invocations to module description.
34768         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
34769         invocations from here...
34770         * modules/ptsname (configure.ac): ... to here.
34772 2011-05-21  Bruno Haible  <bruno@clisp.org>
34774         pread: Move AC_LIBOBJ invocations to module description.
34775         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
34776         * modules/pread (configure.ac): ... to here.
34778 2011-05-21  Bruno Haible  <bruno@clisp.org>
34780         posix_spawn*: Move AC_LIBOBJ invocations to module description.
34781         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
34782         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
34783         * modules/posix_spawn (configure.ac): ... to here.
34784         * modules/posix_spawnp (configure.ac): ... and here.
34786 2011-05-21  Bruno Haible  <bruno@clisp.org>
34788         popen: Move AC_LIBOBJ invocations to module description.
34789         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
34790         invocations from here...
34791         * modules/popen (configure.ac): ... to here.
34793 2011-05-21  Bruno Haible  <bruno@clisp.org>
34795         poll: Move AC_LIBOBJ invocations to module description.
34796         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
34797         invocations from here...
34798         * modules/poll (configure.ac): ... to here.
34800 2011-05-21  Bruno Haible  <bruno@clisp.org>
34802         pipe-posix: Move AC_LIBOBJ invocations to module description.
34803         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
34804         * modules/pipe-posix (configure.ac): ... to here.
34806 2011-05-21  Bruno Haible  <bruno@clisp.org>
34808         openat: Respect rules for use of AC_LIBOBJ.
34809         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
34810         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
34811         * modules/openat (configure.ac): ... to here.
34813 2011-05-21  Bruno Haible  <bruno@clisp.org>
34815         obstack-printf*: Move AC_LIBOBJ invocations to module description.
34816         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
34817         invocation from here...
34818         * modules/obstack-printf (configure.ac): ... to here.
34819         * modules/obstack-printf-posix (configure.ac): ... and here.
34821 2011-05-21  Bruno Haible  <bruno@clisp.org>
34823         nl_langinfo: Move AC_LIBOBJ invocations to module description.
34824         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
34825         from here...
34826         * modules/nl_langinfo (configure.ac): ... to here.
34828 2011-05-21  Bruno Haible  <bruno@clisp.org>
34830         nanosleep: Move AC_LIBOBJ invocations to module description.
34831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
34832         gl_PREREQ_NANOSLEEP invocations from here...
34833         * modules/nanosleep (configure.ac): ... to here.
34835 2011-05-21  Bruno Haible  <bruno@clisp.org>
34837         mountlist: Move AC_LIBOBJ invocations to module description.
34838         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
34839         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
34840         * modules/mountlist (configure.ac): ... to here.
34842 2011-05-21  Bruno Haible  <bruno@clisp.org>
34844         mktime: Respect rules for use of AC_LIBOBJ.
34845         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
34846         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
34847         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
34848         (gl_FUNC_MKTIME_INTERNAL): ... and here...
34849         * modules/mktime (configure.ac): ... to here.
34850         * modules/mktime-internal (configure.ac): ... and here.
34851         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
34853 2011-05-21  Bruno Haible  <bruno@clisp.org>
34855         mkstemps: Move AC_LIBOBJ invocations to module description.
34856         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
34857         here...
34858         * modules/mkstemps (configure.ac): ... to here.
34860 2011-05-21  Bruno Haible  <bruno@clisp.org>
34862         mkstemp: Move AC_LIBOBJ invocations to module description.
34863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
34864         gl_PREREQ_MKSTEMP invocations from here...
34865         * modules/mkstemp (configure.ac): ... to here.
34867 2011-05-21  Bruno Haible  <bruno@clisp.org>
34869         mkostemps: Move AC_LIBOBJ invocations to module description.
34870         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
34871         here...
34872         * modules/mkostemps (configure.ac): ... to here.
34874 2011-05-21  Bruno Haible  <bruno@clisp.org>
34876         mkostemp: Move AC_LIBOBJ invocations to module description.
34877         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
34878         gl_PREREQ_MKOSTEMP invocations from here...
34879         * modules/mkostemp (configure.ac): ... to here.
34881 2011-05-21  Bruno Haible  <bruno@clisp.org>
34883         mknod: Move AC_LIBOBJ invocations to module description.
34884         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
34885         * modules/mknod (configure.ac): ... to here.
34887 2011-05-21  Bruno Haible  <bruno@clisp.org>
34889         mkfifoat: Move AC_LIBOBJ invocations to module description.
34890         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
34891         here...
34892         * modules/mkfifoat (configure.ac): ... to here.
34894 2011-05-21  Bruno Haible  <bruno@clisp.org>
34896         mkfifo: Respect rules for use of AC_LIBOBJ.
34897         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
34898         here...
34899         * modules/mkfifo (configure.ac): ... to here.
34901 2011-05-21  Bruno Haible  <bruno@clisp.org>
34903         mkdtemp: Move AC_LIBOBJ invocations to module description.
34904         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
34905         invocations from here...
34906         * modules/mkdtemp (configure.ac): ... to here.
34908 2011-05-21  Bruno Haible  <bruno@clisp.org>
34910         mkdir: Move AC_LIBOBJ invocations to module description.
34911         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
34912         * modules/mkdir (configure.ac): ... to here.
34914 2011-05-21  Bruno Haible  <bruno@clisp.org>
34916         memset: Move AC_LIBOBJ invocations to module description.
34917         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
34918         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
34919         here...
34920         * modules/memset (configure.ac): ... to here.
34922 2011-05-21  Bruno Haible  <bruno@clisp.org>
34924         memrchr: Move AC_LIBOBJ invocations to module description.
34925         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
34926         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
34927         here...
34928         * modules/memrchr (configure.ac): ... to here.
34930 2011-05-21  Bruno Haible  <bruno@clisp.org>
34932         mempcpy: Move AC_LIBOBJ invocations to module description.
34933         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
34934         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
34935         here...
34936         * modules/mempcpy (configure.ac): ... to here.
34938 2011-05-21  Bruno Haible  <bruno@clisp.org>
34940         memmove: Move AC_LIBOBJ invocations to module description.
34941         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
34942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
34943         here...
34944         * modules/memmove (configure.ac): ... to here.
34946 2011-05-21  Bruno Haible  <bruno@clisp.org>
34948         memmem*: Move AC_LIBOBJ invocations to module description.
34949         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
34950         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
34951         here...
34952         (gl_FUNC_MEMMEM): ... and here...
34953         * modules/memmem-simple (configure.ac): ... to here.
34954         * modules/memmem (configure.ac): ... and here.
34956 2011-05-21  Bruno Haible  <bruno@clisp.org>
34958         memcpy: Move AC_LIBOBJ invocations to module description.
34959         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
34960         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
34961         here...
34962         * modules/memcpy (configure.ac): ... to here.
34964 2011-05-21  Bruno Haible  <bruno@clisp.org>
34966         memcmp: Simplify autoconf macro.
34967         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
34968         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
34969         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
34971 2011-05-21  Bruno Haible  <bruno@clisp.org>
34973         memcmp: Move AC_LIBOBJ invocations to module description.
34974         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
34975         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
34976         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
34977         * modules/memcmp (configure.ac): ... to here.
34978         (Depends-on): Update conditions.
34980 2011-05-21  Bruno Haible  <bruno@clisp.org>
34982         memchr: Respect rules for use of AC_LIBOBJ.
34983         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
34984         invocations from here...
34985         * modules/memchr (configure.ac): ... to here.
34987 2011-05-21  Bruno Haible  <bruno@clisp.org>
34989         mbtowc: Move AC_LIBOBJ invocations to module description.
34990         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
34991         invocations from here...
34992         * modules/mbtowc (configure.ac): ... to here.
34994 2011-05-21  Bruno Haible  <bruno@clisp.org>
34996         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
34997         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
34998         gl_PREREQ_MBSRTOWCS invocations from here...
34999         * modules/mbsrtowcs (configure.ac): ... to here.
35001 2011-05-21  Bruno Haible  <bruno@clisp.org>
35003         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
35004         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
35005         gl_PREREQ_MBSNRTOWCS invocations from here...
35006         * modules/mbsnrtowcs (configure.ac): ... to here.
35008 2011-05-21  Bruno Haible  <bruno@clisp.org>
35010         mbsinit: Move AC_LIBOBJ invocations to module description.
35011         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
35012         invocations from here...
35013         * modules/mbsinit (configure.ac): ... to here.
35015 2011-05-21  Bruno Haible  <bruno@clisp.org>
35017         mbrlen: Move AC_LIBOBJ invocations to module description.
35018         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
35019         invocations from here...
35020         * modules/mbrlen (configure.ac): ... to here.
35022 2011-05-21  Bruno Haible  <bruno@clisp.org>
35024         mbrtowc: Respect rules for use of AC_LIBOBJ.
35025         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
35026         invocations from here...
35027         * modules/mbrtowc (configure.ac): ... to here.
35029 2011-05-21  Bruno Haible  <bruno@clisp.org>
35031         malloc-*: Move AC_LIBOBJ invocations to module description.
35032         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
35033         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
35034         AC_LIBOBJ invocations from here...
35035         * modules/malloc-gnu (configure.ac): ... to here.
35036         * modules/malloc-posix (configure.ac): ... and here.
35038 2011-05-21  Bruno Haible  <bruno@clisp.org>
35040         lstat, openat: Respect rules for use of AC_LIBOBJ.
35041         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
35042         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
35043         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
35044         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
35045         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
35046         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
35047         here.
35048         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35050 2011-05-21  Bruno Haible  <bruno@clisp.org>
35052         lseek: Move AC_LIBOBJ invocations to module description.
35053         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
35054         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
35055         * modules/lseek (configure.ac): ... to here.
35057 2011-05-21  Bruno Haible  <bruno@clisp.org>
35059         linkat: Move AC_LIBOBJ invocations to module description.
35060         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
35061         here...
35062         * modules/linkat (configure.ac): ... to here.
35064 2011-05-21  Bruno Haible  <bruno@clisp.org>
35066         link: Respect rules for use of AC_LIBOBJ.
35067         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
35068         * modules/link (configure.ac): ... to here.
35070 2011-05-21  Bruno Haible  <bruno@clisp.org>
35072         lchown: Move AC_LIBOBJ invocations to module description.
35073         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
35074         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
35075         * modules/lchown (configure.ac): ... to here.
35077 2011-05-21  Bruno Haible  <bruno@clisp.org>
35079         iswctype: Move AC_LIBOBJ invocations to module description.
35080         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
35081         here...
35082         * modules/iswctype (configure.ac): ... to here.
35084 2011-05-21  Bruno Haible  <bruno@clisp.org>
35086         iswblank: Move AC_LIBOBJ invocations to module description.
35087         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
35088         here...
35089         * modules/iswblank (configure.ac): ... to here.
35091 2011-05-21  Bruno Haible  <bruno@clisp.org>
35093         atanl: Move AC_LIBOBJ invocations to module description.
35094         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
35095         * modules/atanl (configure.ac): ... to here.
35097 2011-05-21  Bruno Haible  <bruno@clisp.org>
35099         acosl: Move AC_LIBOBJ invocations to module description.
35100         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
35101         * modules/acosl (configure.ac): ... to here.
35103 2011-05-21  Bruno Haible  <bruno@clisp.org>
35105         asinl: Respect rules for use of AC_LIBOBJ.
35106         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
35107         * modules/asinl (configure.ac): ... to here.
35109 2011-05-21  Bruno Haible  <bruno@clisp.org>
35111         tanl: Move AC_LIBOBJ invocations to module description.
35112         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
35113         * modules/tanl (configure.ac): ... to here.
35115 2011-05-21  Bruno Haible  <bruno@clisp.org>
35117         cosl: Move AC_LIBOBJ invocations to module description.
35118         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
35119         * modules/cosl (configure.ac): ... to here.
35121 2011-05-21  Bruno Haible  <bruno@clisp.org>
35123         sinl: Move AC_LIBOBJ invocations to module description.
35124         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
35125         * modules/sinl (configure.ac): ... to here.
35127 2011-05-21  Bruno Haible  <bruno@clisp.org>
35129         logl: Move AC_LIBOBJ invocations to module description.
35130         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
35131         * modules/logl (configure.ac): ... to here.
35133 2011-05-21  Bruno Haible  <bruno@clisp.org>
35135         expl: Move AC_LIBOBJ invocations to module description.
35136         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
35137         * modules/expl (configure.ac): ... to here.
35139 2011-05-21  Bruno Haible  <bruno@clisp.org>
35141         roundl: Move AC_LIBOBJ invocations to module description.
35142         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
35143         * modules/roundl (configure.ac): ... to here.
35145 2011-05-21  Bruno Haible  <bruno@clisp.org>
35147         round: Move AC_LIBOBJ invocations to module description.
35148         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
35149         * modules/round (configure.ac): ... to here.
35151 2011-05-21  Bruno Haible  <bruno@clisp.org>
35153         roundf: Move AC_LIBOBJ invocations to module description.
35154         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
35155         * modules/roundf (configure.ac): ... to here.
35157 2011-05-21  Bruno Haible  <bruno@clisp.org>
35159         truncl: Move AC_LIBOBJ invocations to module description.
35160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
35161         * modules/truncl (configure.ac): ... to here.
35163 2011-05-21  Bruno Haible  <bruno@clisp.org>
35165         trunc: Move AC_LIBOBJ invocations to module description.
35166         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
35167         * modules/trunc (configure.ac): ... to here.
35169 2011-05-21  Bruno Haible  <bruno@clisp.org>
35171         truncf: Move AC_LIBOBJ invocations to module description.
35172         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
35173         * modules/truncf (configure.ac): ... to here.
35175 2011-05-21  Bruno Haible  <bruno@clisp.org>
35177         ceill: Move AC_LIBOBJ invocations to module description.
35178         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
35179         * modules/ceill (configure.ac): ... to here.
35181 2011-05-21  Bruno Haible  <bruno@clisp.org>
35183         ceil: Move AC_LIBOBJ invocations to module description.
35184         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
35185         * modules/ceil (configure.ac): ... to here.
35187 2011-05-21  Bruno Haible  <bruno@clisp.org>
35189         ceilf: Move AC_LIBOBJ invocations to module description.
35190         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
35191         * modules/ceilf (configure.ac): ... to here.
35193 2011-05-21  Bruno Haible  <bruno@clisp.org>
35195         floorl: Respect rules for use of AC_LIBOBJ.
35196         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
35197         * modules/floorl (configure.ac): ... to here.
35199 2011-05-21  Bruno Haible  <bruno@clisp.org>
35201         floor: Respect rules for use of AC_LIBOBJ.
35202         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
35203         * modules/floor (configure.ac): ... to here.
35205 2011-05-21  Bruno Haible  <bruno@clisp.org>
35207         floorf: Move AC_LIBOBJ invocations to module description.
35208         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
35209         * modules/floorf (configure.ac): ... to here.
35211 2011-05-20  Bruno Haible  <bruno@clisp.org>
35213         sqrtl: Respect rules for use of AC_LIBOBJ.
35214         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
35215         * modules/sqrtl (configure.ac): ... to here.
35217 2011-05-20  Bruno Haible  <bruno@clisp.org>
35219         ldexpl: Respect rules for use of AC_LIBOBJ.
35220         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
35221         * modules/ldexpl (configure.ac): ... to here.
35223 2011-05-20  Bruno Haible  <bruno@clisp.org>
35225         frexpl*: Respect rules for use of AC_LIBOBJ.
35226         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
35227         invocation from here...
35228         * modules/frexpl (configure.ac): ... to here.
35229         * modules/frexpl-nolibm (configure.ac): ... and here.
35231 2011-05-20  Bruno Haible  <bruno@clisp.org>
35233         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
35234         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
35235         invocation from here...
35236         * modules/frexp (configure.ac): ... to here.
35237         * modules/frexp-nolibm (configure.ac): ... and here.
35239 2011-05-20  Bruno Haible  <bruno@clisp.org>
35241         isnan: Respect rules for use of AC_LIBOBJ.
35242         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
35243         invocations here.
35244         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
35245         REPLACE_ISNAN.
35246         * modules/isnand (configure.ac): Likewise.
35247         * modules/isnanl (configure.ac): Likewise.
35249 2011-05-20  Bruno Haible  <bruno@clisp.org>
35251         isnanl*: Respect rules for use of AC_LIBOBJ.
35252         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
35253         invocation from here...
35254         * modules/isnanl (configure.ac): ... to here.
35255         * modules/isnanl-nolibm (configure.ac): ... and here.
35257 2011-05-20  Bruno Haible  <bruno@clisp.org>
35259         isnand*: Move AC_LIBOBJ invocations to module description.
35260         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
35261         invocation from here...
35262         * modules/isnand (configure.ac): ... to here.
35263         * modules/isnand-nolibm (configure.ac): ... and here.
35265 2011-05-20  Bruno Haible  <bruno@clisp.org>
35267         isnanf*: Move AC_LIBOBJ invocations to module description.
35268         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
35269         invocation from here...
35270         * modules/isnanf (configure.ac): ... to here.
35271         * modules/isnanf-nolibm (configure.ac): ... and here.
35273 2011-05-20  Bruno Haible  <bruno@clisp.org>
35275         isnan*: Separate the AC_LIBOBJ invocations.
35276         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
35277         AC_LIBOBJ invocation.
35278         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
35279         here.
35280         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
35281         AC_LIBOBJ invocation.
35282         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
35283         here.
35284         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
35285         AC_LIBOBJ invocation.
35286         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
35287         here.
35288         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
35290 2011-05-08  Bruno Haible  <bruno@clisp.org>
35292         isinf: Move AC_LIBOBJ invocations to module description.
35293         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
35294         * modules/isinf (configure.ac): ... to here.
35296 2011-05-08  Bruno Haible  <bruno@clisp.org>
35298         isfinite: Move AC_LIBOBJ invocations to module description.
35299         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
35300         * modules/isfinite (configure.ac): ... to here.
35302 2011-05-08  Bruno Haible  <bruno@clisp.org>
35304         isblank: Move AC_LIBOBJ invocations to module description.
35305         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
35306         here...
35307         * modules/isblank (configure.ac): ... to here.
35309 2011-05-08  Bruno Haible  <bruno@clisp.org>
35311         isapipe: Move AC_LIBOBJ invocations to module description.
35312         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
35313         gl_PREREQ_ISAPIPE invocations from here...
35314         * modules/isapipe (configure.ac): ... to here.
35315         (Depends-on): Update condition.
35317 2011-05-08  Bruno Haible  <bruno@clisp.org>
35319         ioctl: Move AC_LIBOBJ invocations to module description.
35320         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
35321         invocations from here...
35322         * modules/ioctl (configure.ac): ... to here.
35323         (Depends-on): Update condition.
35325 2011-05-08  Bruno Haible  <bruno@clisp.org>
35327         imaxdiv: Move AC_LIBOBJ invocations to module description.
35328         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
35329         invocations from here...
35330         * modules/imaxdiv (configure.ac): ... to here.
35332 2011-05-08  Bruno Haible  <bruno@clisp.org>
35334         imaxabs: Move AC_LIBOBJ invocations to module description.
35335         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
35336         invocations from here...
35337         * modules/imaxabs (configure.ac): ... to here.
35339 2011-05-08  Bruno Haible  <bruno@clisp.org>
35341         getaddrinfo: Move AC_LIBOBJ invocations to module description.
35342         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
35343         AC_LIBOBJ invocations from here...
35344         * modules/getaddrinfo (configure.ac): ... to here.
35345         (Depends-on): Add conditions.
35347 2011-05-08  Bruno Haible  <bruno@clisp.org>
35349         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35350         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
35351         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35352         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
35353         (gl_PREREQ_INET_PTON): ... from here.
35354         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
35355         gl_PREREQ_INET_PTON here.
35356         (Depends-on): Update condition.
35358 2011-05-08  Bruno Haible  <bruno@clisp.org>
35360         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35361         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
35362         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35363         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
35364         (gl_PREREQ_INET_NTOP): ... from here.
35365         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
35366         gl_PREREQ_INET_NTOP here.
35367         (Depends-on): Update condition.
35369 2011-05-08  Bruno Haible  <bruno@clisp.org>
35371         iconv_open: Move AC_LIBOBJ invocations to module description.
35372         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
35373         AC_LIBOBJ invocations from here...
35374         * modules/iconv_open (configure.ac): ... to here.
35376 2011-05-08  Bruno Haible  <bruno@clisp.org>
35378         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
35379         If module 'iconv_open' is among the main modules and module
35380         'iconv_open-utf' is among the tests dependencies, then
35381         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
35382         return the special iconv_t values. Therefore iconv() and iconv_close()
35383         must support these special iconv_t values, already in lib, not only in
35384         tests.
35385         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
35386         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
35387         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
35388         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
35389         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
35390         (Depends-on): Add the dependencies of iconv_open-utf.
35391         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
35392         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
35393         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
35395 2011-05-08  Bruno Haible  <bruno@clisp.org>
35397         group-member: Move AC_LIBOBJ invocations to module description.
35398         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
35399         gl_PREREQ_GROUP_MEMBER invocations from here...
35400         * modules/group-member (configure.ac): ... to here.
35402 2011-05-08  Bruno Haible  <bruno@clisp.org>
35404         grantpt: Move AC_LIBOBJ invocations to module description.
35405         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
35406         invocations from here...
35407         * modules/grantpt (configure.ac): ... to here.
35409 2011-05-08  Bruno Haible  <bruno@clisp.org>
35411         glob: Move AC_LIBOBJ invocations to module description.
35412         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
35413         from here...
35414         * modules/glob (configure.ac): ... to here.
35416 2011-05-08  Bruno Haible  <bruno@clisp.org>
35418         getusershell: Move AC_LIBOBJ invocations to module description.
35419         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
35420         Move AC_LIBOBJ invocation from here...
35421         * modules/getusershell (configure.ac): ... to here.
35422         (Depends-on): Update condition.
35424 2011-05-08  Bruno Haible  <bruno@clisp.org>
35426         gettimeofday: Move AC_LIBOBJ invocations to module description.
35427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
35428         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
35429         gl_PREREQ_GETTIMEOFDAY invocations from here...
35430         * modules/gettimeofday (configure.ac): ... to here.
35432 2011-05-08  Bruno Haible  <bruno@clisp.org>
35434         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
35435         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
35436         just gl_FUNC_TZSET.
35437         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
35438         (gl_FUNC_TZSET_CLOBBER): Remove actions.
35439         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
35440         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
35442 2011-05-08  Bruno Haible  <bruno@clisp.org>
35444         getsubopt: Move AC_LIBOBJ invocations to module description.
35445         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
35446         gl_PREREQ_GETSUBOPT invocations from here...
35447         * modules/getsubopt (configure.ac): ... to here.
35449 2011-05-08  Bruno Haible  <bruno@clisp.org>
35451         getpass-gnu: Move AC_LIBOBJ invocations to module description.
35452         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
35453         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
35454         * modules/getpass-gnu (configure.ac): ... to here.
35456 2011-05-08  Bruno Haible  <bruno@clisp.org>
35458         getpass: Move AC_LIBOBJ invocations to module description.
35459         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
35460         gl_PREREQ_GETPASS invocations from here...
35461         * modules/getpass (configure.ac): ... to here.
35463 2011-05-08  Bruno Haible  <bruno@clisp.org>
35465         getpagesize: Move AC_LIBOBJ invocations to module description.
35466         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
35467         from here...
35468         * modules/getpagesize (configure.ac): ... to here.
35470 2011-05-08  Bruno Haible  <bruno@clisp.org>
35472         getopt: Move AC_LIBOBJ invocations to module description.
35473         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
35474         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
35475         invocations from here...
35476         * modules/getopt-gnu (configure.ac): ... to here.
35477         * modules/getopt-posix (configure.ac): ... and here.
35478         (Depends-on): Update condition.
35480 2011-05-08  Bruno Haible  <bruno@clisp.org>
35482         getopt, argp: Respect rules for use of AC_LIBOBJ.
35483         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
35484         (gl_REPLACE_GETOPT_ALWAYS): New macro.
35485         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
35486         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
35488 2011-05-08  Bruno Haible  <bruno@clisp.org>
35490         getlogin_r: Move AC_LIBOBJ invocations to module description.
35491         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
35492         gl_PREREQ_GETLOGIN_R invocations from here...
35493         * modules/getlogin_r (configure.ac): ... to here.
35495 2011-05-08  Bruno Haible  <bruno@clisp.org>
35497         getlogin: Move AC_LIBOBJ invocations to module description.
35498         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
35499         here...
35500         * modules/getlogin (configure.ac): ... to here.
35502 2011-05-08  Bruno Haible  <bruno@clisp.org>
35504         getloadavg: Move AC_LIBOBJ invocations to module description.
35505         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
35506         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
35507         * modules/getloadavg (configure.ac): ... to here.
35509 2011-05-08  Bruno Haible  <bruno@clisp.org>
35511         gethrxtime: Move AC_LIBOBJ invocations to module description.
35512         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
35513         LIB_GETHRXTIME from here...
35514         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
35515         invocations from here...
35516         * modules/gethrxtime (configure.ac): ... to here.
35518 2011-05-08  Bruno Haible  <bruno@clisp.org>
35520         gethostname: Move AC_LIBOBJ invocations to module description.
35521         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
35522         gl_PREREQ_GETHOSTNAME invocations from here...
35523         * modules/gethostname (configure.ac): ... to here.
35525 2011-05-08  Bruno Haible  <bruno@clisp.org>
35527         getgroups: Move AC_LIBOBJ invocations to module description.
35528         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
35529         here...
35530         * modules/getgroups (configure.ac): ... to here.
35532 2011-05-08  Bruno Haible  <bruno@clisp.org>
35534         getdtablesize: Move AC_LIBOBJ invocations to module description.
35535         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
35536         invocation from here...
35537         * modules/getdtablesize (configure.ac): ... to here.
35539 2011-05-08  Bruno Haible  <bruno@clisp.org>
35541         getdomainname: Move AC_LIBOBJ invocations to module description.
35542         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
35543         gl_PREREQ_GETDOMAINNAME invocations from here...
35544         * modules/getdomainname (configure.ac): ... to here.
35546 2011-05-08  Bruno Haible  <bruno@clisp.org>
35548         getline: Move AC_LIBOBJ invocations to module description.
35549         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
35550         invocations from here...
35551         * modules/getline (configure.ac): ... to here.
35553 2011-05-08  Bruno Haible  <bruno@clisp.org>
35555         getline: Simplify.
35556         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
35557         It's already handled through the module dependency.
35559 2011-05-08  Bruno Haible  <bruno@clisp.org>
35561         getdelim: Move AC_LIBOBJ invocations to module description.
35562         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
35563         and gl_PREREQ_GETDELIM invocations from here...
35564         * modules/getdelim (configure.ac): ... to here.
35565         (Depends-on): Fix condition.
35567 2011-05-08  Bruno Haible  <bruno@clisp.org>
35569         getcwd: Move AC_LIBOBJ invocations to module description.
35570         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
35571         invocations from here...
35572         * modules/getcwd (configure.ac): ... to here.
35574 2011-05-08  Bruno Haible  <bruno@clisp.org>
35576         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
35577         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
35578         here...
35579         * modules/getcwd-lgpl (configure.ac): ... to here.
35581 2011-05-07  Bruno Haible  <bruno@clisp.org>
35583         crypto/gc: Move AC_LIBOBJ invocations to module description.
35584         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
35585         * modules/crypto/gc (configure.ac): ... to here.
35587 2011-05-07  Bruno Haible  <bruno@clisp.org>
35589         fwriting: Move AC_LIBOBJ invocations to module description.
35590         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
35591         here...
35592         * modules/fwriting (configure.ac): ... to here.
35594 2011-05-07  Bruno Haible  <bruno@clisp.org>
35596         fwritable: Move AC_LIBOBJ invocations to module description.
35597         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
35598         here...
35599         * modules/fwritable (configure.ac): ... to here.
35601 2011-05-07  Bruno Haible  <bruno@clisp.org>
35603         futimens: Move AC_LIBOBJ invocations to module description.
35604         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
35605         here...
35606         * modules/futimens (configure.ac): ... to here.
35608 2011-05-07  Bruno Haible  <bruno@clisp.org>
35610         ftruncate: Move AC_LIBOBJ invocations to module description.
35611         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
35612         gl_PREREQ_FTRUNCATE invocations from here...
35613         * modules/ftruncate (configure.ac): ... to here.
35615 2011-05-07  Bruno Haible  <bruno@clisp.org>
35617         fsync: Move AC_LIBOBJ invocations to module description.
35618         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
35619         invocations from here...
35620         * modules/fsync (configure.ac): ... to here.
35622 2011-05-07  Bruno Haible  <bruno@clisp.org>
35624         fsusage: Move AC_LIBOBJ invocations to module description.
35625         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
35626         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
35627         * modules/fsusage (configure.ac): ... to here.
35629 2011-05-07  Bruno Haible  <bruno@clisp.org>
35631         freopen: Move AC_LIBOBJ invocations to module description.
35632         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
35633         invocations from here...
35634         * modules/freopen (configure.ac): ... to here.
35636 2011-05-07  Bruno Haible  <bruno@clisp.org>
35638         free: Move AC_LIBOBJ invocations to module description.
35639         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
35640         invocations from here...
35641         * modules/free (configure.ac): ... to here.
35643 2011-05-07  Bruno Haible  <bruno@clisp.org>
35645         freadable: Move AC_LIBOBJ invocations to module description.
35646         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
35647         here...
35648         * modules/freadable (configure.ac): ... to here.
35650 2011-05-07  Bruno Haible  <bruno@clisp.org>
35652         fpurge: Move AC_LIBOBJ invocations to module description.
35653         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
35654         invocations from here...
35655         * modules/fpurge (configure.ac): ... to here.
35657 2011-05-07  Bruno Haible  <bruno@clisp.org>
35659         fpending: Move AC_LIBOBJ invocations to module description.
35660         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
35661         gl_FUNC_FPENDING.
35662         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
35663         invocations from here...
35664         * modules/fpending (configure.ac): ... to here.
35666 2011-05-07  Bruno Haible  <bruno@clisp.org>
35668         fopen: Move AC_LIBOBJ invocations to module description.
35669         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
35670         invocations from here...
35671         * modules/fopen (configure.ac): ... to here.
35673 2011-05-07  Bruno Haible  <bruno@clisp.org>
35675         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
35676         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
35677         gl_FUNC_FNMATCH_POSIX.
35678         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
35679         invocations from here...
35680         * modules/fnmatch (configure.ac): ... to here.
35681         * modules/fnmatch-gnu (configure.ac): ... and here.
35683 2011-05-07  Bruno Haible  <bruno@clisp.org>
35685         flock: Move AC_LIBOBJ invocations to module description.
35686         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
35687         invocations from here...
35688         * modules/flock (configure.ac): ... to here.
35690 2011-05-07  Bruno Haible  <bruno@clisp.org>
35692         fileblocks: Move AC_LIBOBJ invocations to module description.
35693         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
35694         gl_PREREQ_FILEBLOCKS invocations from here...
35695         * modules/fileblocks (configure.ac): ... to here.
35697 2011-05-06  Bruno Haible  <bruno@clisp.org>
35699         fflush: Move AC_LIBOBJ invocations to module description.
35700         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
35701         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
35702         invocations from here...
35703         * modules/fflush (configure.ac): ... to here.
35705 2011-05-06  Bruno Haible  <bruno@clisp.org>
35707         fdopendir: Move AC_LIBOBJ invocations to module description.
35708         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
35709         here...
35710         * modules/fdopendir (configure.ac): ... to here.
35711         (Depends-on): Improve conditions.
35713 2011-05-06  Bruno Haible  <bruno@clisp.org>
35715         _Exit: Move AC_LIBOBJ invocations to module description.
35716         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
35717         invocations from here...
35718         * modules/_Exit (configure.ac): ... to here.
35720 2011-05-21  Bruno Haible  <bruno@clisp.org>
35722         euidaccess: Respect rules for use of AC_LIBOBJ.
35723         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
35724         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
35725         from here...
35726         * modules/euidaccess (configure.ac): ... to here.
35728 2011-05-06  Bruno Haible  <bruno@clisp.org>
35730         error: Move AC_LIBOBJ invocations to module description.
35731         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
35732         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
35733         invocations from here...
35734         * modules/error (configure.ac): ... to here.
35736 2011-05-06  Bruno Haible  <bruno@clisp.org>
35738         duplocale: Move AC_LIBOBJ invocations to module description.
35739         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
35740         gl_PREREQ_DUPLOCALE invocations from here...
35741         * modules/duplocale (configure.ac): ... to here.
35743 2011-05-05  Bruno Haible  <bruno@clisp.org>
35745         dirfd: Move AC_LIBOBJ invocations to module description.
35746         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
35747         gl_FUNC_DIRFD.
35748         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
35749         here...
35750         * modules/dirfd (configure.ac): ... to here.
35751         (Depends-on): Fix condition.
35753 2011-05-05  Bruno Haible  <bruno@clisp.org>
35755         chown: Respect rules for use of AC_LIBOBJ.
35756         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
35757         * modules/chown (configure.ac): ... to here.
35759 2011-05-05  Bruno Haible  <bruno@clisp.org>
35761         chdir-long: Move AC_LIBOBJ invocations to module description.
35762         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
35763         gl_PREREQ_CHDIR_LONG invocations from here...
35764         * modules/chdir-long (configure.ac): ... to here.
35766 2011-05-05  Bruno Haible  <bruno@clisp.org>
35768         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
35769         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
35770         from here...
35771         * modules/canonicalize-lgpl (configure.ac): ... to here.
35773 2011-05-05  Bruno Haible  <bruno@clisp.org>
35775         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
35776         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
35777         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
35778         REPLACE_CALLOC.
35779         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
35780         * modules/calloc-gnu (configure.ac): Likewise.
35782 2011-05-05  Bruno Haible  <bruno@clisp.org>
35784         btowc: Move AC_LIBOBJ invocations to module description.
35785         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
35786         invocations from here...
35787         * modules/btowc (configure.ac): ... to here.
35789 2011-05-21  Bruno Haible  <bruno@clisp.org>
35791         atexit: Move AC_LIBOBJ invocations to module description.
35792         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
35793         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
35794         here...
35795         * modules/atexit (configure.ac): ... to here.
35797 2011-05-05  Bruno Haible  <bruno@clisp.org>
35799         atoll: Move AC_LIBOBJ invocations to module description.
35800         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
35801         invocations from here...
35802         * modules/atoll (configure.ac): ... to here.
35804 2011-05-05  Bruno Haible  <bruno@clisp.org>
35806         argz: Move AC_LIBOBJ invocations to module description.
35807         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
35808         * modules/argz (configure.ac): ... to here.
35810 2011-05-05  Bruno Haible  <bruno@clisp.org>
35812         alphasort: Move AC_LIBOBJ invocations to module description.
35813         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
35814         gl_PREREQ_ALPHASORT invocations from here...
35815         * modules/alphasort (configure.ac): ... to here.
35817 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35819         verify: new macro verify_expr; verify_true deprecated
35820         * NEWS: Mention this.
35821         * doc/verify.texi (Compile-time Assertions): Document this.
35822         * lib/verify.h (verify_true): Deprecate.
35823         (verify_expr): New macro.
35824         * tests/test-verify.c (function): Test verify_expr.
35826 2011-06-14  Jim Meyering  <meyering@redhat.com>
35828         init.sh: give more portable redirection-related advice in a comment
35829         * tests/init.sh (stderr_fileno_): Update the advice in comments.
35830         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
35831         for lots of discussion.  Stefano Lattarini suggested the solution
35832         of putting "9>&2" after the command.  Reported by Bruno Haible.
35834 2011-06-13  Bruno Haible  <bruno@clisp.org>
35836         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
35837         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
35838         'none'.
35840 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
35842         ftoastr: use strtof only if HAVE_STRTOF
35843         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
35844         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
35845         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
35846         * modules/ftoastr (configure.ac): Check for strtof.
35848 2011-06-13  Bruno Haible  <bruno@clisp.org>
35850         gnulib-tool: Addendum to 2011-06-08 commit.
35851         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
35852         and --witness-c-macro have been given, augment AM_CPPFLAGS.
35854 2011-06-13  Bruno Haible  <bruno@clisp.org>
35856         fseeko: Provide a non-inline replacement of fseek().
35857         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
35858         * modules/fseeko (Depends-on): Add fseek.
35859         * modules/fseek (License): Change to LGPLv2+.
35861 2011-06-13  Bruno Haible  <bruno@clisp.org>
35863         ftello: Provide a non-inline replacement of ftell().
35864         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
35865         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
35866         not have ftello() (such as on mingw).
35867         * modules/ftello (Depends-on): Add ftell.
35868         * modules/ftell (License): Change to LGPLv2+.
35870 2011-05-07  Bruno Haible  <bruno@clisp.org>
35872         ftell: Move AC_LIBOBJ invocations to module description.
35873         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
35874         * modules/ftell (configure.ac): ... to here.
35876 2011-05-07  Bruno Haible  <bruno@clisp.org>
35878         ftello: Respect rules for use of AC_LIBOBJ.
35879         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
35880         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
35881         here...
35882         * modules/ftello (configure.ac): ... to here.
35884 2011-05-07  Bruno Haible  <bruno@clisp.org>
35886         fseeko: Simplify.
35887         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
35888         (gl_FUNC_FSEEKO): Inline it here.
35890 2011-05-07  Bruno Haible  <bruno@clisp.org>
35892         fseek: Move AC_LIBOBJ invocations to module description.
35893         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
35894         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
35895         * modules/fseek (configure.ac): ... to here.
35897 2011-05-07  Bruno Haible  <bruno@clisp.org>
35899         fseek: Respect rules for use of AC_LIBOBJ.
35900         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
35901         here...
35902         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
35904 2011-05-07  Bruno Haible  <bruno@clisp.org>
35906         fseeko: Respect rules for use of AC_LIBOBJ.
35907         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
35908         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
35909         here...
35910         * modules/fseeko (configure.ac): ... to here.
35912 2011-06-13  Bruno Haible  <bruno@clisp.org>
35914         gnulib-tool: Allow comments in the 'Depends-on' section.
35915         * doc/gnulib.texi (Module description): Mention comment syntax in the
35916         Depends-on section.
35917         * gnulib-tool (func_get_dependencies): Filter out comment lines.
35919 2011-06-13  Bruno Haible  <bruno@clisp.org>
35921         file-set.h: guard __attibute__ use, now that it's not always defined
35922         * lib/file-set.h (record_file): Use __attribute__ only with compiler
35923         versions that support it.  This fixes a coreutils build failure with
35924         the vendor cc on HP-UX 11.31.
35926 2011-06-12  Bruno Haible  <bruno@clisp.org>
35928         acl: Add support for HP-UX >= 11.11 JFS ACLs.
35929         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
35930         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
35931         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
35932         (acl, aclsort): New declarations.
35933         (aclv_nontrivial): New declaration.
35934         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
35935         (file_has_acl): Read also the second kind of HP-UX ACLs.
35936         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
35937         kind of HP-UX ACLs if the first kind fails.
35938         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
35939         second kind of HP-UX ACLs.
35940         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
35941         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
35942         agree.
35943         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
35944         hpuxjfs.
35945         Handle hpuxjfs.
35946         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
35947         hpuxjfs.
35948         Handle hpuxjfs.
35949         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
35950         (func_test_same_acls): Use both lsacl and getacl.
35951         Handle hpuxjfs.
35952         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
35953         (func_test_same_acls): Use both lsacl and getacl.
35954         Handle hpuxjfs.
35956 2011-06-12  Bruno Haible  <bruno@clisp.org>
35958         acl: Complete the 2010-08-10 fix.
35959         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
35960         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
35961         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
35962         explicitly.
35963         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
35964         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
35966 2011-06-12  Bruno Haible  <bruno@clisp.org>
35968         spawn-pipe tests: Comments.
35969         * tests/test-spawn-pipe-child.c (main): Update comment.
35970         Reported by James Youngman <jay@gnu.org>.
35972 2011-06-11  James Youngman  <jay@gnu.org>
35974         New module 'stat-size'.
35975         * modules/stat-size: New module.  Provides macros for accessing
35976         file size information in instances of struct stat.  Depends on the
35977         fileblocks module because it calls st_blocks.
35978         * lib/stat-size.h: New file, adapted from coreutils' system.h.
35979         * doc/gnulib.texi: Include stat-size.texi.
35980         * doc/stat-size.texi: Documentation for this module.
35981         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
35982         * m4/fileblocks.m4: Mention that stat-size depends on the call to
35983         AC_STRUCT_ST_BLOCKS.
35985 2011-06-09  Bruno Haible  <bruno@clisp.org>
35987         thread: Support pthreads-win32.
35988         * lib/glthread/thread.h (gl_thread_self): Define differently on
35989         pthreads-win32.
35990         (gl_null_thread): New declaration.
35991         (gl_thread_self_pointer): New macro.
35992         * lib/glthread/thread.c (gl_null_thread): New constant.
35993         * tests/test-lock.c: Use gl_thread_self_pointer instead of
35994         gl_thread_self.
35995         * tests/test-tls.c: Likewise.
35996         Suggested by Paul Eggert. Reported by Eric Blake.
35998 2011-06-09  Bruno Haible  <bruno@clisp.org>
36000         thread: Fix confusion between NULL and 0.
36001         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
36002         Reported by Paul Eggert.
36004 2011-06-09  Bruno Haible  <bruno@clisp.org>
36006         spawn-pipe tests: Avoid test failure on HP-UX 11.
36007         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
36008         is closed.
36010 2011-06-09  Bruno Haible  <bruno@clisp.org>
36012         acl tests: Fix compilation error on HP-UX 11.
36013         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
36015 2011-06-09  Bruno Haible  <bruno@clisp.org>
36017         rmdir: Avoid test failure on HP-UX 10.20.
36018         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
36019         EEXIST.
36021 2011-06-08  Eric Blake  <eblake@redhat.com>
36023         perror: fix test on mingw
36024         * modules/perror-tests (Depends-on): Add dup2.
36026         strerror_r-posix: fix on MacOS
36027         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
36028         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
36029         logic bug.
36030         * lib/strerror_r.c (strerror_r): Fix the bug.
36031         * lib/strerror.c (strerror): Likewise.
36032         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
36033         problem.
36034         * doc/posix-functions/strerror.texi (strerror): Likewise.
36035         * doc/posix-functions/perror.texi (perror): Likewise.
36036         * tests/test-strerror.c (main): Enhance test.
36037         * tests/test-strerror_r.c (main): Likewise.
36039 2011-06-08  Bruno Haible  <bruno@clisp.org>
36041         gnulib-tool: Better isolation between different gnulib-tool invocations.
36042         * gnulib-tool: New option --witness-c-macro.
36043         (witness_c_macro): New variable.
36044         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
36045         AM_CPPFLAGS define it as a C macro.
36046         (func_emit_tests_Makefile_am): Likewise.
36047         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
36048         read it from there.
36049         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
36050         m4_define, not AC_DEFUN.
36051         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
36052         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
36053         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
36054         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
36055         s|...|...|, to substitute the values of the GNULIB_* module indicator
36056         variables.
36057         * modules/dirent (Makefile.am): Likewise.
36058         * modules/fcntl-h (Makefile.am): Likewise.
36059         * modules/iconv-h (Makefile.am): Likewise.
36060         * modules/langinfo (Makefile.am): Likewise.
36061         * modules/locale (Makefile.am): Likewise.
36062         * modules/math (Makefile.am): Likewise.
36063         * modules/netdb (Makefile.am): Likewise.
36064         * modules/poll-h (Makefile.am): Likewise.
36065         * modules/pty (Makefile.am): Likewise.
36066         * modules/search (Makefile.am): Likewise.
36067         * modules/signal (Makefile.am): Likewise.
36068         * modules/spawn (Makefile.am): Likewise.
36069         * modules/stdio (Makefile.am): Likewise.
36070         * modules/stdlib (Makefile.am): Likewise.
36071         * modules/string (Makefile.am): Likewise.
36072         * modules/sys_ioctl (Makefile.am): Likewise.
36073         * modules/sys_select (Makefile.am): Likewise.
36074         * modules/sys_socket (Makefile.am): Likewise.
36075         * modules/sys_stat (Makefile.am): Likewise.
36076         * modules/sys_times (Makefile.am): Likewise.
36077         * modules/sys_utsname (Makefile.am): Likewise.
36078         * modules/sys_wait (Makefile.am): Likewise.
36079         * modules/termios (Makefile.am): Likewise.
36080         * modules/time (Makefile.am): Likewise.
36081         * modules/unistd (Makefile.am): Likewise.
36082         * modules/wchar (Makefile.am): Likewise.
36084 2011-06-08  Eric Blake  <eblake@redhat.com>
36086         strerror: simplify replacement
36087         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
36088         * modules/strerror (configure.ac): No prereqs needed here...
36089         * modules/strerror-override (configure.ac): ...but this needs it.
36090         (Files): Add file for needed prereq macro.
36092 2011-06-08  Bruno Haible  <bruno@clisp.org>
36094         strerror_r-posix: Tweaks.
36095         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
36096         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
36097         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
36098         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
36099         (gl_FUNC_STRERROR_R): ... to here.
36100         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
36102 2011-06-07  Eric Blake  <eblake@redhat.com>
36104         perror: document fixed bugs
36105         * doc/posix-functions/perror.texi (perror): Document recent
36106         patches.
36108 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
36110         stat-time: get_stat_birthtime failure is better-defined
36111         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
36112         return a timestamp whose tv_sec and tv_nsec values are both -1.
36113         Previously, the spec said only that the tv_nsec value was negative.
36114         This upward-compatible change simplifies GNU tar a bit.
36116 2011-06-07  Eric Blake  <eblake@redhat.com>
36118         strerror_r-posix: work around cygwin 1.7.9
36119         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
36120         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
36121         bug without replacing strerror_r.
36122         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
36123         strerror_r is buggy, but without requiring strerror_r compilation.
36124         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
36126         test-perror: relax test to ignore cygwin bug
36127         * tests/test-perror2.c (main): Relax test on requiring detection
36128         of stream errors, and use unbuffered stream.
36129         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
36130         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
36131         * doc/posix-functions/fputc.texi (fputc): Likewise.
36132         * doc/posix-functions/fputs.texi (fputs): Likewise.
36133         * doc/posix-functions/fputws.texi (fputws): Likewise.
36134         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
36135         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
36136         * doc/posix-functions/getopt.texi (getopt): Likewise.
36137         * doc/posix-functions/perror.texi (perror): Likewise.
36138         * doc/posix-functions/printf.texi (printf): Likewise.
36139         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
36140         * doc/posix-functions/psignal.texi (psignal): Likewise.
36141         * doc/posix-functions/putc.texi (putc): Likewise.
36142         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
36143         Likewise.
36144         * doc/posix-functions/putchar.texi (putchar): Likewise.
36145         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
36146         Likewise.
36147         * doc/posix-functions/puts.texi (puts): Likewise.
36148         * doc/posix-functions/putwc.texi (putwc): Likewise.
36149         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36150         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36151         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36152         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
36153         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36154         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36155         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36156         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
36158 2011-05-22  Bruno Haible  <bruno@clisp.org>
36160         strerror: Move AC_LIBOBJ invocations to module description.
36161         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
36162         gl_PREREQ_STRERROR invocations from here...
36163         * modules/strerror (configure.ac): ... to here.
36165 2011-05-21  Bruno Haible  <bruno@clisp.org>
36167         perror: Use common idiom.
36168         * modules/perror (configure.ac): Reorder statements.
36170 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
36172         tests: fix usage message in 'mktempd_'
36173         * tests/init.sh (mktempd_): In the usage message, use literal
36174         'mktempd_', not '$ME' (which is even undefined), as the name of
36175         the subroutine.
36177 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
36179         tests init: new function 'fatal_', for hard errors
36180         Before this patch, the only way offered by tests/init.sh to
36181         properly signal a hard error was the `framework_failure_'
36182         function.  But the error message issued by that function,
36183         as its name would suggest, refers to a set-up failure in the
36184         testsuite, while hard errors can obviously also be due to
36185         other reasons.  The best way to fix this inconsistency is to
36186         introduce a new function with a more general error message.
36187         * tests/init.sh (fatal_): New function.
36189 2011-06-06  Eric Blake  <eblake@redhat.com>
36191         canonicalize-lgpl: use common idiom
36192         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
36193         over newer POSIX -Rf.
36194         Reported by Bruno Haible.
36196         canonicalize-lgpl: work around AIX realpath bug
36197         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
36198         * doc/posix-functions/realpath.texi (realpath): Document it.
36199         Reported by Bruno Haible.
36201         strerror: work around FreeBSD bug
36202         * lib/strerror.c (strerror): Special case 0.
36203         Reported by Bruno Haible.
36205         strerror-override: avoid bloating errno module
36206         * modules/errno (Files, configure.ac): Move replacement strings...
36207         * modules/strerror-override: ...to new module.
36208         * modules/strerror (Depends-on): Add strerror-override.
36209         * modules/strerror_r-posix (Depends-on): Likewise.
36210         * MODULES.html.sh: Document new module.
36211         Reported by Bruno Haible.
36213 2011-06-06  Bruno Haible  <bruno@clisp.org>
36215         spawn-pipe tests: Rename program.
36216         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
36217         * tests/test-spawn-pipe-child.c: Update comment.
36218         * tests/test-spawn-pipe.sh: Update.
36219         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
36221         spawn-pipe tests: Link the child program only against libc.
36222         * tests/test-spawn-pipe-child.c: New file, extracted from
36223         tests/test-spawn-pipe.c.
36224         (main): Expect only one argument.
36225         (is_open): New function, copied from tests/test-pipe.c.
36226         * tests/test-spawn-pipe.c: Don't include <errno.h>.
36227         (child_main): Remove function.
36228         (test_pipe): Pass only one argument to the child program.
36229         (main): Remove child process code. Expect the child program's name as
36230         first argument.
36231         * tests/test-spawn-pipe.sh: Pass the child program's name as first
36232         argument.
36233         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
36234         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
36235         test-spawn-pipe-child against no libraries.
36237 2011-06-06  Bruno Haible  <bruno@clisp.org>
36239         careadlinkat: Avoid mismatch between ssize_t and int.
36240         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
36241         * lib/careadlinkat.c (careadlinkatcwd): Define always.
36243 2011-06-06  Jim Meyering  <meyering@redhat.com>
36245         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
36246         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
36247         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
36249 2011-06-05  Bruno Haible  <bruno@clisp.org>
36251         ansi-c++-opt: Interoperability with libtool.
36252         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
36253         set the variable to "no", not to ":".
36254         * NEWS: Mention the change.
36256 2011-06-05  Bruno Haible  <bruno@clisp.org>
36258         acl: Fix test failure on AIX 7.
36259         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
36260         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
36262 2011-06-05  Bruno Haible  <bruno@clisp.org>
36264         pipe-filter-ii: Fix test failure on AIX and IRIX.
36265         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
36266         with EAGAIN, retry with a smaller buffer size.
36268 2011-06-05  Bruno Haible  <bruno@clisp.org>
36270         localename: Fix link dependencies.
36271         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
36272         * modules/localename-tests (Makefile.am): Link test-localename with
36273         $(LIBTHREAD).
36275 2011-06-05  Bruno Haible  <bruno@clisp.org>
36277         error: Avoid gcc warning.
36278         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
36280 2011-06-05  Bruno Haible  <bruno@clisp.org>
36282         unsetenv: Avoid gcc warning.
36283         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
36285 2011-06-05  Bruno Haible  <bruno@clisp.org>
36287         setenv: Avoid gcc warning.
36288         * lib/setenv.c (setenv): Provide declaration if system lacks it.
36290 2011-06-05  Bruno Haible  <bruno@clisp.org>
36292         sys_select: Ensure memset is declared also on AIX 7.
36293         * lib/sys_select.in.h: Include <string.h> also on AIX.
36294         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
36295         self-contained also on AIX 7.1.
36297 2011-06-04  Jim Meyering  <meyering@redhat.com>
36299         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
36300         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
36301         function name, "error".
36302         (_gl_translatable_diag_func_re): New configurable variable.
36304 2011-06-04  Bruno Haible  <bruno@clisp.org>
36306         getopt: Avoid gcc warning.
36307         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
36309 2011-06-04  Bruno Haible  <bruno@clisp.org>
36311         strerror_r: Fix comments.
36312         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
36313         commit.
36315 2011-06-04  Bruno Haible  <bruno@clisp.org>
36317         perror: Fix compilation error.
36318         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
36319         Undefine fprintf, not sprintf.
36320         * modules/perror (Depends-on): Remove intprops, verify.
36322 2011-06-04  Bruno Haible  <bruno@clisp.org>
36324         setlocale: Enable replacement on Cygwin 1.5.
36325         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
36326         Cygwin 1.5.x.
36327         * doc/posix-functions/setlocale.texi: Mention that the problem with the
36328         LC_CTYPE category also exists on Cygwin 1.5.x.
36330 2011-06-04  Bruno Haible  <bruno@clisp.org>
36332         strerror-override: Don't disable symbol renamings.
36333         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
36334         * lib/strerror-override.c: Include config.h.
36335         (strerror_override): Don't undefine.
36337 2011-06-03  Bruno Haible  <bruno@clisp.org>
36339         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
36340         * lib/localename.h: Update copyright header.
36341         * lib/localename.c: Likewise.
36342         * lib/relocatable.h: Likewise.
36343         * lib/relocatable.c: Likewise.
36345 2011-06-02  Bruno Haible  <bruno@clisp.org>
36347         doc: Fix a module name.
36348         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
36350 2011-06-02  Bruno Haible  <bruno@clisp.org>
36352         pipe2: Remove dependency on 'nonblocking' module.
36353         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
36354         O_NONBLOCK is defined by gnulib.
36355         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
36356         is zero.
36357         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
36358         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
36359         defined by gnulib.
36360         (get_nonblocking_flag): New function.
36361         (main): Test O_NONBLOCK flag only if it is nonzero.
36362         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
36364 2011-06-03  Jim Meyering  <meyering@redhat.com>
36366         maint: three new prohibit-header-without-use rules
36367         Prohibit use of cloexec.h, posixver.h, same.h without use.
36368         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
36369         (sc_prohibit_posixver_without_use): Likewise.
36370         (sc_prohibit_same_without_use): Likewise.
36372 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
36374         allocator: 'die' routine is now given requested size
36375         * lib/allocator.h (struct allocator.die): New size arg.
36376         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
36377         If the actual problem is an ssize_t limitation, not a size_t or
36378         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
36380 2011-06-01  Eric Blake  <eblake@redhat.com>
36382         strerror: drop strerror_r dependency
36383         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
36384         * lib/strerror-override.c (strerror_override): ...to new file.
36385         * lib/strerror-override.h: Add prototype.
36386         * lib/strerror-impl.h: Delete.
36387         * lib/strerror.c (strerror): New implementation.
36388         * modules/errno (Files): Add new files.
36389         (configure.ac): Compile new file as appropriate.
36390         * modules/strerror (Files): Drop unused file.
36391         (Depends-on): Drop strerror_r-posix.
36392         * MODULES.html.sh: Document strerror_r-posix.
36393         Requested by Sam Steingold.
36395         perror: call strerror_r directly
36396         * modules/perror (Files): Drop strerror-impl.h.
36397         * lib/perror.c (perror): Use our own stack buffer, rather than
36398         calling a wrapper that uses static storage.
36399         * doc/posix-functions/perror.texi (perror): Document a limitation
36400         of our replacement.
36402         strerror_r: fix includes for FreeBSD
36403         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
36404         since we use abort on some platforms.
36405         Reported by Matthias Bolte.
36407 2011-05-31  Bruno Haible  <bruno@clisp.org>
36409         Fix link errors in tests: openat-die uses gettext-h.
36410         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
36411         against $(LIBINTL).
36412         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
36413         against $(LIBINTL).
36414         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
36415         $(LIBINTL).
36416         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
36417         against $(LIBINTL).
36418         * modules/linkat-tests (Makefile.am): Link test-linkat against
36419         $(LIBINTL).
36420         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
36421         $(LIBINTL).
36422         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
36423         against $(LIBINTL).
36424         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
36425         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
36426         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
36427         $(LIBINTL).
36428         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
36429         $(LIBINTL).
36430         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
36431         $(LIBINTL).
36432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36434 2011-05-31  Bruno Haible  <bruno@clisp.org>
36436         Fix link errors in tests: wait-process uses gettext-h.
36437         * modules/nonblocking-pipe-tests (Makefile.am): Set
36438         test_nonblocking_pipe_main_LDADD.
36439         * modules/nonblocking-socket-tests (Makefile.am): Link
36440         test-nonblocking-socket-main against $(LIBINTL).
36441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36443 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
36445         assert-h: work around 'verify' incompatibility
36446         * lib/verify.h: Use @...@ directives, not ifdef.
36447         * modules/assert-h (assert.h): Implement the directives.
36448         (assert.h): Substitute the symbol-prefix more consistently.
36450 2011-05-29  Jim Meyering  <meyering@redhat.com>
36452         trim: remove three superfluous assignments
36453         * lib/trim.c (trim2): Remove three superfluous assignments
36454         and correct brace positioning.
36456 2011-05-29  Bruno Haible  <bruno@clisp.org>
36458         wctype-h: Avoid namespace pollution on Solaris 2.6.
36459         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
36460         identifiers.
36461         * doc/posix-headers/wctype.texi: Mention the problem.
36462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36464 2011-05-28  Jim Meyering  <meyering@redhat.com>
36466         parse-datetime.y: accommodate -Wstrict-overflow
36467         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
36468         placate -Wstrict-overflow.
36470         trim: avoid a warning from -O2 -Wstrict-overflow
36471         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
36473 2011-05-29  Bruno Haible  <bruno@clisp.org>
36475         gnulib-tool: Fix bug in yesterday's commit.
36476         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
36477         twice.
36479 2011-05-29  Bruno Haible  <bruno@clisp.org>
36481         Allow multiple gnulib generated include files to be combined.
36482         * gnulib-tool (func_compute_include_guard_prefix): New function.
36483         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
36484         ${gl_include_guard_prefix} references.
36485         (func_import, func_create_testdir): Invoke
36486         func_compute_include_guard_prefix.
36487         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
36488         * lib/ctype.in.h: Likewise.
36489         * lib/dirent.in.h: Likewise.
36490         * lib/errno.in.h: Likewise.
36491         * lib/fcntl.in.h: Likewise.
36492         * lib/float.in.h: Likewise.
36493         * lib/getopt.in.h: Likewise.
36494         * lib/iconv.in.h: Likewise.
36495         * lib/langinfo.in.h: Likewise.
36496         * lib/locale.in.h: Likewise.
36497         * lib/math.in.h: Likewise.
36498         * lib/netdb.in.h: Likewise.
36499         * lib/netinet_in.in.h: Likewise.
36500         * lib/poll.in.h: Likewise.
36501         * lib/pthread.in.h: Likewise.
36502         * lib/pty.in.h: Likewise.
36503         * lib/sched.in.h: Likewise.
36504         * lib/se-selinux.in.h: Likewise.
36505         * lib/search.in.h: Likewise.
36506         * lib/signal.in.h: Likewise.
36507         * lib/spawn.in.h: Likewise.
36508         * lib/stdarg.in.h: Likewise.
36509         * lib/stddef.in.h: Likewise.
36510         * lib/stdint.in.h: Likewise.
36511         * lib/stdio.in.h: Likewise.
36512         * lib/stdlib.in.h: Likewise.
36513         * lib/string.in.h: Likewise.
36514         * lib/strings.in.h: Likewise.
36515         * lib/sys_file.in.h: Likewise.
36516         * lib/sys_ioctl.in.h: Likewise.
36517         * lib/sys_select.in.h: Likewise.
36518         * lib/sys_socket.in.h: Likewise.
36519         * lib/sys_stat.in.h: Likewise.
36520         * lib/sys_time.in.h: Likewise.
36521         * lib/sys_times.in.h: Likewise.
36522         * lib/sys_uio.in.h: Likewise.
36523         * lib/sys_utsname.in.h: Likewise.
36524         * lib/sys_wait.in.h: Likewise.
36525         * lib/sysexits.in.h: Likewise.
36526         * lib/termios.in.h: Likewise.
36527         * lib/time.in.h: Likewise.
36528         * lib/unistd.in.h: Likewise.
36529         * lib/wchar.in.h: Likewise.
36530         * lib/wctype.in.h: Likewise.
36531         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
36532         * modules/ctype (Makefile.am): Likewise.
36533         * modules/dirent (Makefile.am): Likewise.
36534         * modules/errno (Makefile.am): Likewise.
36535         * modules/fcntl-h (Makefile.am): Likewise.
36536         * modules/float (Makefile.am): Likewise.
36537         * modules/getopt-posix (Makefile.am): Likewise.
36538         * modules/iconv-h (Makefile.am): Likewise.
36539         * modules/langinfo (Makefile.am): Likewise.
36540         * modules/locale (Makefile.am): Likewise.
36541         * modules/math (Makefile.am): Likewise.
36542         * modules/netdb (Makefile.am): Likewise.
36543         * modules/netinet_in (Makefile.am): Likewise.
36544         * modules/poll-h (Makefile.am): Likewise.
36545         * modules/pthread (Makefile.am): Likewise.
36546         * modules/pty (Makefile.am): Likewise.
36547         * modules/sched (Makefile.am): Likewise.
36548         * modules/search (Makefile.am): Likewise.
36549         * modules/selinux-h (Makefile.am): Likewise.
36550         * modules/signal (Makefile.am): Likewise.
36551         * modules/spawn (Makefile.am): Likewise.
36552         * modules/stdarg (Makefile.am): Likewise.
36553         * modules/stddef (Makefile.am): Likewise.
36554         * modules/stdint (Makefile.am): Likewise.
36555         * modules/stdio (Makefile.am): Likewise.
36556         * modules/stdlib (Makefile.am): Likewise.
36557         * modules/string (Makefile.am): Likewise.
36558         * modules/strings (Makefile.am): Likewise.
36559         * modules/sys_file (Makefile.am): Likewise.
36560         * modules/sys_ioctl (Makefile.am): Likewise.
36561         * modules/sys_select (Makefile.am): Likewise.
36562         * modules/sys_socket (Makefile.am): Likewise.
36563         * modules/sys_stat (Makefile.am): Likewise.
36564         * modules/sys_time (Makefile.am): Likewise.
36565         * modules/sys_times (Makefile.am): Likewise.
36566         * modules/sys_uio (Makefile.am): Likewise.
36567         * modules/sys_utsname (Makefile.am): Likewise.
36568         * modules/sys_wait (Makefile.am): Likewise.
36569         * modules/sysexits (Makefile.am): Likewise.
36570         * modules/termios (Makefile.am): Likewise.
36571         * modules/time (Makefile.am): Likewise.
36572         * modules/unistd (Makefile.am): Likewise.
36573         * modules/wchar (Makefile.am): Likewise.
36574         * modules/wctype-h (Makefile.am): Likewise.
36575         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
36577 2011-05-29  Bruno Haible  <bruno@clisp.org>
36579         assert-h: Allow multiple gnulib generated replacements to coexist.
36580         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
36582 2011-05-29  Bruno Haible  <bruno@clisp.org>
36584         argp: Allow coexistence with strerror_r-posix module.
36585         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
36586         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
36587         by gnulib's <string.h> replacement), assume it has the POSIX signature,
36588         not the glibc signature.
36590 2011-05-28  Bruno Haible  <bruno@clisp.org>
36592         gnulib-tool: Alternative structure of testdirs, similar to --import.
36593         * gnulib-tool: New option --single-configure.
36594         (func_usage): Document it.
36595         (single_configure): New variable.
36596         (func_modules_transitive_closure_separately,
36597         func_modules_transitive_closure_separately,
36598         func_determine_use_libtests, func_modules_add_dummy_separately,
36599         func_modules_to_filelist_separately): New functions, extracted from
36600         func_import.
36601         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
36602         (func_import): Use the new functions.
36603         (func_create_testdir): Set final_modules. Handle $single_configure =
36604         true case.
36606 2011-05-28  Bruno Haible  <bruno@clisp.org>
36608         getloadavg: Remove an unreliable safety check.
36609         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
36610         getloadavg.c is in place.
36611         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
36612         Reported by Sam Steingold <sds@gnu.org>.
36614 2011-05-28  Bruno Haible  <bruno@clisp.org>
36616         doc: Cleanup yet another file produced by texinfo.tex.
36617         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
36619 2011-05-28  Bruno Haible  <bruno@clisp.org>
36621         Finish the conditional dependencies mechanism.
36622         * gnulib-tool: New option --no-conditional-dependencies.
36623         (func_usage): Document it. Don't mark --conditional-dependencies as
36624         experimental.
36625         (cond_dependencies): The possible values can now be true, false, empty.
36626         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
36627         (func_import): Store setting in gnulib-cache.m4 and read it from there.
36628         * doc/gnulib-tool.texi (Conditional dependencies): New section.
36630 2011-05-28  Bruno Haible  <bruno@clisp.org>
36632         doc: Use a recent texinfo.tex.
36633         * doc/Makefile (tex_opts): New variable.
36634         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
36636 2011-05-28  Jim Meyering  <meyering@redhat.com>
36638         intprops.h: adjust comment to match code change
36639         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
36640         only once, it *may* have side effects.  Also fix an unrelated typo.
36641         (_GL_INT_SIGNED): Likewise.
36643 2011-05-26  Simon Josefsson  <simon@josefsson.org>
36645         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
36647 2011-05-26  Bruno Haible  <bruno@clisp.org>
36649         mbsrchr: Avoid collision with system function on Interix.
36650         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
36651         Reported by Markus Duft <mduft@gentoo.org>.
36653 2011-05-15  James Youngman  <jay@gnu.org>
36655         getopt: for ambiguous options, enumerate the possibilities.
36656         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
36657         the ambiguous options when an ambiguous prefix is given. This was
36658         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
36659         glibc change was
36660         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
36662 2011-05-25  Eric Blake  <eblake@redhat.com>
36664         getcwd: work around mingw bug
36665         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
36666         * doc/posix-functions/getcwd.texi (getcwd): Document it.
36667         Reported by Matthias Bolte.
36669 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
36671         test-intprops: disable -Wtype-limits diagnostics
36672         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
36673         diagnostics.  Otherwise, the integer overflow macros generate many
36674         diagnostics.  Reported by Jim Meyering in
36675         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
36677         intprops: shorten, to pacify gcc -Woverlength-strings
36678         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
36679         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
36680         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
36681         likely to run afoul of C compiler limits for string constant lengths.
36682         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
36684 2011-05-24  Eric Blake  <eblake@redhat.com>
36686         docs: document recently fixed glibc printf bug
36687         * doc/posix-functions/fprintf.texi (fprintf): Document it.
36688         * doc/posix-functions/printf.texi (printf): Likewise.
36689         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36690         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36692         closein-tests: convert to init.sh
36693         * modules/closein-tests (Files): Add init.sh
36694         * tests/test-closein.sh Use it.
36696         yesno-tests: convert to init.sh
36697         * modules/yesno-tests (Files): Add init.sh.
36698         * tests/test-yesno.sh: Use it.
36700         atexit-tests: ensure reliable exit status
36701         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
36702         Reported by Bruno Haible.
36704 2011-05-24  Bruno Haible  <bruno@clisp.org>
36706         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
36707         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
36708         gl_PREREQ_STRERROR_R invocations from here...
36709         * modules/strerror_r-posix (configure.ac): ... to here.
36711 2011-05-24  Eric Blake  <eblake@redhat.com>
36713         strerror_r: fix missing header
36714         * lib/strerror_r.c: Avoid compiler warning about snprintf.
36716         strerror_r: fix AIX test failures
36717         * lib/strerror_r.c (strerror_r): Convert silent truncation to
36718         ERANGE failure.
36720         strerror_r: fix Solaris test failures
36721         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
36722         failures.
36723         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
36725         strerror_r: enforce POSIX recommendations
36726         * lib/strerror_r.c (safe_copy): New helper method.
36727         (strerror_r): Guarantee a non-empty string.
36728         * tests/test-strerror_r.c (main): Enhance tests to incorporate
36729         recent POSIX rulings and to match our strerror guarantees.
36730         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
36732 2011-05-24  Jim Meyering  <meyering@redhat.com>
36734         test-perror2.c: avoid warning about unused variable
36735         * tests/test-perror2.c (main): Remove declaration of unused "fp".
36737 2011-05-24  Eric Blake  <eblake@redhat.com>
36739         perror: avoid spurious test failure on HP-UX
36740         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
36742         tests: fix logic bug in init.sh
36743         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
36744         shell.
36746 2011-05-24  Jim Meyering  <meyering@redhat.com>
36748         utimensat: do not reference an out-of-scope buffer
36749         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
36750         declared in an inner scope, yet "times" would be dereferenced outside
36751         the scope in which "ts" was valid.
36752         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
36753         of ts[2] "out/up", so that the use of aliased "times" (via
36754         "times = ts;") does not end up referencing an out-of-scope "ts"
36756         opendir-safer.c: don't clobber errno; don't close negative FD
36757         * lib/opendir-safer.c (opendir_safer):
36758         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
36759         file descriptor, and more importantly, don't clobber the
36760         offending errno value with EINVAL.  Before, upon failure
36761         of dup_safer, we would pass the negative file descriptor to
36762         fdopendir, which would clobber errno.
36764 2011-05-23  Bruno Haible  <bruno@clisp.org>
36766         idcache: Fix module description.
36767         * modules/idcache (Include): Set to "idcache.h".
36769 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
36771         gnulib-tool: fix portability problem with MacOS sed
36772         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
36773         before the "}".  Problem reported by Leo in
36774         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
36775         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
36776         sed_extract_condition1, sed_extract_condition2.
36778 2011-05-23  Bruno Haible  <bruno@clisp.org>
36780         hash: Simplify autoconf macro.
36781         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
36783 2011-05-23  Bruno Haible  <bruno@clisp.org>
36785         getugroups: Fix module description.
36786         * modules/getugroups (Include): Set to "getugroups.h".
36788 2011-05-23  Bruno Haible  <bruno@clisp.org>
36790         linkat: Simplify autoconf macro.
36791         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
36793 2011-05-23  Bruno Haible  <bruno@clisp.org>
36794             Eric Blake  <eblake@redhat.com>
36796         linkat, renameat: Update dependencies.
36797         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
36798         * modules/linkat (Depends-on): Likewise. Remove also readlink,
36799         symlinkat.
36801 2011-05-23  Jim Meyering  <meyering@redhat.com>
36803         maint.mk: more tight_scope improvements
36804         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
36805         (_gl_TS_headers): Define only in if-0'd block.
36806         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
36807         sometimes we must *not* use it.  Adjust uses accordingly.
36808         (sc_tight_scope): Use much simpler grep-based test to determine
36809         whether we skip this rule.
36811         maint.mk: generalize/improve the tight-scope rule
36812         * top/maint.mk: Emit a warning when the test is skipped.
36813         (_gl_TS_dir): Add $(srcdir)/ prefix.
36814         (_gl_TS_function_match): Simplify, rather than trying
36815         to enumerate common types.  Otherwise, it would fail to match an
36816         "extern unsigned char const *" declaration in idutils.
36817         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
36818         a way to support use of that type of macro.
36819         (_gl_TS_var_match): Simplify regexp.
36820         (_gl_TS_obj_files): New configurable variable.
36821         (_gl_TS_headers): Likewise.
36823 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
36825         verify: fix bug when gnulib <assert.h> is also included
36826         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
36827         is defined, not if _GL_STATIC_ASSERT_H is not defined.
36828         Perhaps there's a better way, but this fixes the immediate problem.
36829         Problem reported by Bruno Haible in
36830         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
36832 2011-05-22  Bruno Haible  <bruno@clisp.org>
36834         xgetcwd: Simplify autoconf macro.
36835         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
36837 2011-05-22  Bruno Haible  <bruno@clisp.org>
36839         New module 'mktime-internal'.
36840         * modules/mktime-internal: New file.
36841         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
36842         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
36843         mktime_internal as a C macro if libc has __mktime_internal.
36844         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
36845         conditions.
36846         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
36848 2011-05-22  Bruno Haible  <bruno@clisp.org>
36850         timegm: Correct mktime replacement statements.
36851         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
36852         defining mktime as a C macro. This completes a 2009-07-28 commit.
36854 2011-05-22  Bruno Haible  <bruno@clisp.org>
36856         timegm: Simplify autoconf macro.
36857         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
36859 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
36861         clock-time: change to LGPLv2+.
36862         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
36863         BSD-like but we have no mark for that; this is good enough for now.
36865 2011-05-21  Bruno Haible  <bruno@clisp.org>
36867         strerror_r: Fix comments.
36868         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
36870 2011-05-21  Bruno Haible  <bruno@clisp.org>
36872         relocatable-prog-wrapper: Fix possible link error.
36873         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
36874         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
36875         (gl_FUNC_SETENV): ... to here.
36876         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
36877         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
36879 2011-05-21  Bruno Haible  <bruno@clisp.org>
36881         relocatable-prog-wrapper: Assume strerror() exists.
36882         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
36883         m4/strerror.m4.
36884         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
36885         * lib/relocwrapper.c: Remove mention of strerror module.
36886         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
36887         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
36888         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
36889         C macro.
36891 2011-05-21  Bruno Haible  <bruno@clisp.org>
36893         select: Simplify replacement idiom.
36894         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
36895         Win32 platforms.
36896         * lib/sys_select.in.h (select): Simplify accordingly.
36897         * modules/select (Depends-on): Likewise.
36899 2011-05-21  Bruno Haible  <bruno@clisp.org>
36901         mkdir-p: Simplify autoconf macro.
36902         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
36903         gl_FUNC_LCHOWN.
36905 2011-05-21  Eric Blake  <eblake@redhat.com>
36907         strerror_r: avoid clobbering strerror on cygwin
36908         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
36909         fall back instead to sys_errlist.
36910         * modules/strerror (configure.ac): Add witness.
36911         * tests/test-strerror_r.c (main): Enhance test.
36912         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
36913         * tests/test-perror2.c (main): Free memory before exit.
36915 2011-05-21  Bruno Haible  <bruno@clisp.org>
36917         mkdtemp: Use gnulib naming conventions.
36918         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
36919         * modules/mkdtemp (configure.ac): Update.
36921 2011-05-20  Eric Blake  <eblake@redhat.com>
36923         strerror_r: avoid corrupting errno on Solaris
36924         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
36925         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
36927         strerror_r: avoid compiler warning
36928         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
36930         strerror_r: simplify AIX code
36931         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
36933         test-perror: avoid spurious failure on FreeBSD
36934         * modules/perror-tests (Depends-on): Add strerror, now that
36935         strerror_r no longer pulls it in.
36937 2011-05-20  Bruno Haible  <bruno@clisp.org>
36939         strerror_r-posix: Remove unused dependencies.
36940         * modules/strerror_r-posix (Depends-on): Remove strerror.
36941         Reported by Eric Blake.
36943 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
36945         intprops: remove assumption about A|B representation
36946         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
36947         is a valid integer if both A and B are.  Although this is true for
36948         all known practical hosts, the C standard doesn't guarantee it,
36949         and the code need not assume it.  Also, this change may work around
36950         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
36951         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
36953 2011-05-20  Eric Blake  <eblake@redhat.com>
36955         perror: work around FreeBSD bug
36956         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
36957         is broken.  Move AC_LIBOBJ...
36958         * modules/perror (configure.ac): Here.
36959         * doc/posix-functions/perror.texi (perror): Document this.
36960         * tests/test-perror2.c (main): Enhance test.
36962         test-perror: check for strerror interactions
36963         * tests/macros.h (STREQ): Add macro.
36964         * modules/perror-tests (Files): Add second test.
36965         * tests/test-perror2.c (main): New file.
36966         * doc/posix-functions/perror.texi (perror): Document glibc bug.
36968         test-perror: rewrite to use init script
36969         * modules/perror-tests (Files): Add init.sh.
36970         * tests/test-perror.sh: Use temporary directory.
36972 2011-05-20  Jim Meyering  <meyering@redhat.com>
36974         maint: replace misused "a" with "an"
36975         * doc/intprops.texi: "a integer"
36976         * doc/regex.texi: "a explanation"
36977         * lib/alignof.h: "a object"
36978         * lib/argmatch.h: "a explanation"
36979         * lib/argp-help.c: "a option" and "a OPTION_DOC"
36980         * lib/stdint.in.h: "a integer"
36981         * lib/userspec.c: "a owner"
36982         * doc/gnulib.texi: Fix "a idea", and reword.
36984 2011-05-19  Jim Meyering  <meyering@redhat.com>
36986         maint: correct misuse of "a" and "an"
36987         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
36988         * lib/argp-help.c: "an docum...": s/an/a/
36989         * lib/argp-parse.c: "An vector": s/An/A/
36990         * lib/execute.c: "an native": s/an/a/
36991         * lib/spawn-pipe.c: Likewise.
36992         * lib/gc.h: "an Gc_rc": s/an/a/
36993         * lib/unigbrk.in.h: "an grapheme": s/an/a/
36994         * lib/fts.c: "an stat.st_dev": s/an/a/
36996 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36998         intprops-tests: work around HP-UX 11.23 cc bug with constants
36999         * tests/test-intprops.c (VERIFY): New macro.
37000         (main): Use it, instead of verify, to work around the compiler bug; see
37001         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37003         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
37004         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
37005         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
37006         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
37007         (_GL_REMAINDER_OVERFLOW): Use it.
37009         intprops-tests: revert unsigned part of previous change
37010         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
37011         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
37012         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
37013         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
37015 2011-05-19  Bruno Haible  <bruno@clisp.org>
37017         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
37018         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
37019         strerror_r() returned without filling the buffer.
37020         Reported by Eric Blake.
37022 2011-05-19  Eric Blake  <eblake@redhat.com>
37024         strerror_r: guarantee unchanged errno
37025         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
37026         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
37027         failure.
37028         * tests/test-strerror_r.c (main): Enhance test.
37030 2011-05-19  Bruno Haible  <bruno@clisp.org>
37032         strerror_r: Reorder #if blocks.
37033         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
37034         for consistency with the previous commit.
37036 2011-05-19  Bruno Haible  <bruno@clisp.org>
37038         perror: Avoid clobbering the strerror buffer when possible.
37039         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
37040         * lib/strerror.c: Include it.
37041         * modules/strerror (Files): Add lib/strerror-impl.h.
37042         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
37043         (my_strerror): New function, defined through lib/strerror-impl.h.
37044         (perror): Use it instead of strerror.
37045         * modules/perror (Files): Add lib/strerror-impl.h.
37046         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
37048 2011-05-19  Eric Blake  <eblake@redhat.com>
37050         strerror_r: fix on newer cygwin
37051         * lib/strerror_r.c (strerror_r): Cygwin now has
37052         __xpg_strerror_r, use it.
37054 2011-05-19  Bruno Haible  <bruno@clisp.org>
37056         strerror_r: Avoid clobbering the strerror buffer when possible.
37057         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
37058         (sys_nerr, sys_errlist): New declarations.
37059         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
37060         HP-UX, native Win32, IRIX, and 32-bit Solaris.
37061         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
37063 2011-05-19  Bruno Haible  <bruno@clisp.org>
37065         strerror_r: Fix test failure on mingw.
37066         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
37067         EXTEND_STRERROR_R.
37068         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
37069         macros from errno.in.h instead.
37071 2011-05-19  Eric Blake  <eblake@redhat.com>
37073         strerror: relax test for Solaris
37074         * tests/test-strerror.c (main): Permit Solaris behavior.
37075         * tests/test-strerror_r.c (main): Likewise.
37077         strerror: enforce POSIX ruling on strerror(0)
37078         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
37079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
37080         * lib/strerror_r.c (rpl_strerror_r): Work around it.
37081         * doc/posix-functions/strerror.texi (strerror): Document it.
37082         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
37083         * tests/test-strerror.c (main): Strengthen test.
37084         * tests/test-strerror_r.c (main): Likewise.
37086 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
37088         intprop-tests: port to older and more-pedantic compilers
37089         * modules/intprops-tests (Files): Add tests/macros.h.
37090         * tests/test-intprops.c: Include macros.h.
37091         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
37092         it's no longer documented to expand to an integer constant expression.
37093         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
37094         argument is floating point, as it's no longer documented to expand
37095         to an integer constant expression in that case.
37096         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
37097         compiler bugs reported by Bruno Haible.  See
37098         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37099         (U0, U1): New constants, to work around the same bugs.  Also,
37100         in tests, use e.g., "(unsigned int) 39" rather than "39u".
37102         intprops: work around C compiler bugs
37103         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
37104         bug in Sun C 5.11 2010/08/13 and other compilers; see
37105         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37107         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
37108         * doc/intprops.texi (Integer Type Determination): Fix
37109         documentation for TYPE_IS_INTEGER: it returns an constant
37110         expression, not an integer constant expression.  Fix doc for
37111         TYPE_SIGNED: it returns an integer constant expression only if its
37112         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
37113         hardly worth documented that way....)
37115 2011-05-18  Bruno Haible  <bruno@clisp.org>
37117         strerror_r: Avoid clobbering the strerror buffer when possible.
37118         * lib/strerror_r.c (strerror_r): Merge the three implementations.
37119         Handle gnulib defined errno values here. When strerror() returns NULL
37120         or an empty string, return EINVAL.
37121         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
37122         gnulib defined errno values here.
37123         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
37125 2011-05-18  Eric Blake  <eblake@redhat.com>
37127         fnmatch: avoid compiler warning
37128         * lib/fnmatch_loop.c (FCT): Use correct type.
37129         Reported by Matthias Bolte.
37131 2011-05-13  Jim Meyering  <meyering@redhat.com>
37133         maint.mk: three new prohibit_<HDR>_without_use rules
37134         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
37135         (sc_prohibit_stdio-safer_without_use): Likewise.
37136         (sc_prohibit_xfreopen_without_use): Likewise.
37138 2011-05-17  Jim Meyering  <meyering@redhat.com>
37140         announce-gen: fail if the NEWS delta is empty
37141         If there's nothing noteworthy in NEWS, then either you forgot
37142         or you shouldn't be releasing.
37143         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
37145 2011-05-17  Pádraig Brady  <P@draigBrady.com>
37147         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
37148         reserved symbols starting with double underscore from the check.
37150 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
37152         intprops: add doc
37153         * doc/intprops.texi: New file, documenting intprops.
37154         * doc/gnulib.texi (Particular Modules): Include it.
37156         verify: add doc to gnulib manual and fix example
37157         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
37158         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
37159         (Compile-time Assertions): Fix example so it can't overflow.
37161 2011-05-17  Jim Meyering  <meyering@redhat.com>
37163         warnings.m4: don't usurp save_CPPFLAGS variable name
37164         * m4/warnings.m4: Prefix local temporary variable name with gl_.
37166         doc: fix typo
37167         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
37169 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37170             Bruno Haible  <bruno@clisp.org>
37172         doc: Tweak recent change.
37173         * README (Portability guidelines): Tweak new text.
37174         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
37175         Interix 6.1.
37177 2011-05-16  Eric Blake  <eblake@redhat.com>
37179         inttypes: avoid autoconf warning
37180         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
37181         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37183 2011-05-16  Sam Steingold  <sds@gnu.org>
37184         and Eric Blake  <eblake@redhat.com>
37186         vc-list-files: accept multiple directory operands
37187         * build-aux/vc-list-files: Iterate over all remaining operands.
37189 2011-05-16  Bruno Haible  <bruno@clisp.org>
37191         Fix confusion regarding deprecated modules.
37192         * modules/calloc (Status, Notice): Mark module as deprecated, not
37193         obsolete.
37194         * modules/fnmatch-posix (Status, Notice): Likewise.
37195         * modules/getdate (Status, Notice): Likewise.
37196         * modules/getopt (Status, Notice): Likewise.
37197         * modules/malloc (Status, Notice): Likewise.
37198         * modules/pipe (Status, Notice): Likewise.
37199         * modules/realloc (Status, Notice): Likewise.
37200         * modules/rename-dest-slash (Status, Notice): Likewise.
37201         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
37202         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
37203         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
37204         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
37205         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
37207 2011-05-16  Bruno Haible  <bruno@clisp.org>
37209         doc: List the target platforms.
37210         * doc/gnulib-intro.texi (Target Platforms): New section.
37211         * doc/gnulib.texi (Introduction): Update menu.
37212         * README (Portability guidelines): Refer to the new section. Update
37213         statement about oldest supported environment. Remove rationale why
37214         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
37215         unportable C89 function.
37216         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
37217         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
37219 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37221         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
37223 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37225         intprops-tests: new module
37226         * modules/intprops-tests, tests/test-intprops.c: New files.
37228         intprops: add safe, portable integer overflow checking
37229         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
37230         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
37231         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
37232         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
37233         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
37234         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
37235         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
37236         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
37237         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
37238         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
37239         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
37241 2011-05-12  James Youngman  <jay@gnu.org>
37243         Add a test for glibc's Bugzilla bug #12378.
37244         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
37245         doesn't allow the literal matching of a lone "[" (which is
37246         required by POSIX).
37247         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
37249 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
37251         Sync glibc change fixing Bugzilla bug #12378.
37252         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
37253         beginning and fall back to matching as normal character if the
37254         string ends before the matching ']' is found.  This is what POSIX
37255         requires.
37257 2011-05-13  Eric Blake  <eblake@redhat.com>
37259         getcwd-lgpl: relax test for FreeBSD
37260         * doc/posix-functions/getcwd.texi (getcwd): Document portability
37261         issue.
37262         * tests/test-getcwd-lgpl.c (main): Relax test.
37263         Reported by Matthias Bolte.
37265 2011-05-11  Eric Blake  <eblake@redhat.com>
37267         test-fflush: silence compiler warning
37268         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
37270 2011-05-11  Bruno Haible  <bruno@clisp.org>
37272         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
37273         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
37274         * modules/canonicalize (Depends-on): Add 'nocrash'.
37275         * modules/canonicalize-lgpl (Depends-on): Likewise.
37276         * doc/posix-functions/realpath.texi: Update platforms list.
37277         Reported by Ryan Schmidt <ryandesign@macports.org>.
37279 2011-05-11  Bruno Haible  <bruno@clisp.org>
37281         group-member: Declare function in <unistd.h>.
37282         * lib/unistd.in.h (group_member): New declaration.
37283         * lib/group-member.h: Remove file.
37284         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
37285         * tests/test-unistd-c++.cc: Check signature of group_member.
37286         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
37287         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
37288         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
37289         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
37290         HAVE_GROUP_MEMBER.
37291         * modules/group-member (Files): Remove lib/group-member.h.
37292         (Depends-on): Add unistd. Specify conditions.
37293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37294         (Include): Change to <unistd.h>.
37295         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
37296         HAVE_GROUP_MEMBER.
37297         * NEWS: Mention the change.
37298         * lib/euidaccess.c: Don't include group-member.h.
37300 2011-05-11  Bruno Haible  <bruno@clisp.org>
37302         group-member: Document module.
37303         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
37304         module.
37306 2011-05-11  Bruno Haible  <bruno@clisp.org>
37308         fclose: Fix mistake earlier today.
37309         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
37311 2011-05-11  Eric Blake  <eblake@redhat.com>
37313         fclose: preserve fflush errors
37314         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
37315         Reported by Jim Meyering.
37317         bootstrap: support a prereq of 'rpcgen -' on RHEL5
37318         * build-aux/bootstrap (check_versions): When no specific version
37319         is required, merely check that the app produces an exit status
37320         that indicates its existence.
37322         maint.mk: drop redundant check
37323         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
37324         the same but better.
37326 2011-05-11  Bruno Haible  <bruno@clisp.org>
37328         fclose: Fix possible link error.
37329         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
37330         unregister_shadow_fd. Improve comments.
37331         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
37332         Eric Blake.
37334 2011-05-11  Jim Meyering  <meyering@redhat.com>
37336         maint.mk: improve "can not" detection and generalize rule name
37337         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
37338         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
37339         Use the same technique as in sc_prohibit_doubled_word, so that
37340         we recognize "can not" also when the words are separated by a newline.
37341         Suggested by Eric Blake.
37342         (perl_filename_lineno_text_): Define.  Factored out of...
37343         (prohibit_doubled_word_): ...here.  Use the new definition.
37344         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
37345         (prohibit_undesirable_word_seq_RE_): New overridable variable.
37346         (ignore_undesirable_word_sequence_RE_): New overridable variable.
37348 2011-05-10  Eric Blake  <eblake@redhat.com>
37350         fclose: avoid double close race when possible
37351         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
37352         all but WINDOWS_SOCKETS.
37354 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
37356         openat: correct new comment
37357         * lib/openat-proc.c (openat_proc_name): Correct the comment.
37359 2011-05-10  Jim Meyering  <meyering@redhat.com>
37361         openat: add comments
37362         * lib/openat-proc.c (openat_proc_name): Add comments,
37363         mostly from Eric Blake.
37365 2011-05-09  Eric Blake  <eblake@redhat.com>
37367         openat: reduce syscalls in first probe of /proc
37368         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
37369         be a directory.  Simplify the probe for .. bugs.
37370         * modules/openat (Depends-on): Drop same-inode.
37371         Reported by Bastien ROUCARIES.
37373 2011-05-09  Jim Meyering  <meyering@redhat.com>
37375         maint.mk: change semantics/name of tight_scope variables
37376         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
37377         Rename variables to align with semantics that make them more useful.
37379         maint.mk: tweak new rule's name not to impinge
37380         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
37381         (sc_tight_scope): Use new rule name rather than $@-0.
37383         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
37384         * top/maint.mk (sc_tight_scope): New rule.
37385         (sc_tight_scope-0): New rule, ifdef'd out.
37386         (_gl_TS_dir): Default.
37387         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
37388         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
37390 2011-05-09  Simon Josefsson  <simon@josefsson.org>
37392         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
37393         Haible <bruno@clisp.org>.
37395 2011-05-08  Bruno Haible  <bruno@clisp.org>
37397         Comments.
37398         * m4/isnanf.m4: Add comment.
37399         * m4/isnanl.m4: Likewise.
37401 2011-05-08  Bruno Haible  <bruno@clisp.org>
37403         glob: Remove obsolete macro.
37404         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
37406 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
37408         intprops: Sun C 5.11 supports __typeof__
37409         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
37410         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
37411         which is new.
37412         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
37414         intprops: switch to usual gnulib indenting and naming
37415         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
37416         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
37418         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
37420 2011-05-08  Jim Meyering  <meyering@redhat.com>
37422         maint.mk: suppress "Entering/Leaving directory" diag in announcement
37423         * top/maint.mk (release-prep): Use make's --no-print-directory
37424         option when generating the announcement.  This eliminates the
37425         pesky "make[2]: Entering/Leaving directory" diagnostics in the
37426         generated announcement template.
37428 2011-05-08  Bruno Haible  <bruno@clisp.org>
37430         tzset: Fix gettimeofday wrapper on Solaris 2.6.
37431         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
37432         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
37434 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
37436         ignore-value, verify: Omit include files from lib_SOURCES.
37437         * modules/ignore-value, modules/verify (Makefile.am):
37438         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
37439         that leads Automake to duplicate use of am__objects_... variables
37440         in Makefile.in.  See
37441         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
37443 2011-05-07  Bruno Haible  <bruno@clisp.org>
37445         fclose: Simplify autoconf macro.
37446         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
37447         defined.
37449 2011-05-07  Bruno Haible  <bruno@clisp.org>
37451         canonicalize-lgpl: Fix autoconf macro ordering bug.
37452         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
37453         gl_STDLIB_H_DEFAULTS.
37455 2011-05-06  Eric Blake  <eblake@redhat.com>
37457         maintainer-makefile: make sc_po_check easier to tune
37458         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
37459         to probe for strings, such as an alternate location for gnulib.
37461         fclose: guarantee behavior on seekable stdin
37462         * modules/fclose (Depends-on): Add fflush.
37463         * doc/posix-functions/fclose.texi (fclose): Document this.
37464         * tests/test-fclose.c (main): Make test for this unconditional.
37466 2011-05-06  Bruno Haible  <bruno@clisp.org>
37468         fflush, fpurge: Relicense under LGPLv2+.
37469         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
37470         * modules/fpurge (License): Likewise.
37471         With permission from Eric Blake and Jim Meyering.
37472         Suggested by Eric Blake.
37474 2011-05-06  Karl Berry  <karl@gnu.org>
37476         * MODULES.html.sh (func_all_modules): remove exit.
37478 2011-05-06  Jim Meyering  <meyering@redhat.com>
37480         maint.mk: use info-gnu@ as the default only for a stable release
37481         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
37482         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
37483         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
37484         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
37486 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
37488         assert-h: new module, which supports C1X-style static_assert
37489         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
37490         * lib/verify.h: Revamp so that this can be copied into assert.h,
37491         while retaining the ability to use it standalone as before.
37492         Rename private identifiers so as not to encroach on the
37493         standard C namespace, since this is now used by assert.h.
37494         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
37495         the old verify_true.
37496         (_GL_VERIFY_TRUE): New macro, with much of the contents of
37497         the old verify_true.  Use _GL_VERIFY_TYPE.
37498         (_GL_VERIFY): New macro, with much of the contents of the old verify.
37499         (static_assert): New macro, if _GL_STATIC_ASSERT_H
37500         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
37501         defined when this file is copied into the replacement assert.h.
37502         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
37503         and _Static_assert is not built in.
37504         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
37505         defined, and use the new macros mentioned above.
37506         * doc/posix-headers/assert.texi: Document this.
37508 2011-05-05  Bruno Haible  <bruno@clisp.org>
37510         fclose, fflush: Respect rules for use of AC_LIBOBJ.
37511         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
37512         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
37513         gl_REPLACE_FCLOSE here.
37514         * modules/fflush (Depends-on): Remove fclose.
37515         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
37516         combination with module 'fclose'.
37518 2011-05-05  Bruno Haible  <bruno@clisp.org>
37520         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
37521         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
37522         gl_FUNC_FFLUSH.
37523         (gl_FUNC_FFLUSH): Use it.
37524         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
37525         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
37526         gl_REPLACE_FSEEKO here.
37528 2011-05-05  Bruno Haible  <bruno@clisp.org>
37530         tzset: Relicense under LGPL.
37531         * modules/tzset (License): Change to LGPL.
37532         No agreement needed; it's a no-op.
37534         strtoimax, strtoumax: Relicense under LGPL.
37535         * modules/strtoimax (License): Change to LGPL.
37536         * modules/strtoumax (License): Likewise.
37537         With permission from Jim Meyering, Paul Eggert:
37538         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
37539         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
37541         getgroups: Relicense under LGPL.
37542         * modules/getgroups (License): Change to LGPL.
37543         With permission from Jim Meyering, Paul Eggert, Eric Blake:
37544         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
37545         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
37546         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37548         nanosleep: Relicense under LGPL.
37549         * modules/nanosleep (License): Change to LGPL.
37550         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
37551         Haible:
37552         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
37553         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
37554         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37555         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
37557         futimens: Relicense under LGPL.
37558         * modules/futimens (License): Change to LGPL.
37559         With permission from Eric Blake:
37560         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37562         fflush: Relicense under LGPL.
37563         * modules/fflush (License): Change to LGPL.
37564         With permission from Eric Blake, Bruno Haible, Jim Meyering:
37565         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37566         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
37567         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
37569         tmpfile: Relicense under LGPL.
37570         * modules/tmpfile (License): Change to LGPL.
37571         With permission from Ben Pfaff:
37572         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
37574         isfinite: Relicense under LGPL.
37575         * modules/isfinite (License): Change to LGPL.
37576         With permission from Ben Pfaff, Bruno Haible:
37577         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
37578         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
37580         acosl..tanl: Relicense under LGPL.
37581         * modules/acosl (License): Change to LGPL.
37582         * modules/asinl (License): Likewise.
37583         * modules/atanl (License): Likewise.
37584         * modules/cosl (License): Likewise.
37585         * modules/expl (License): Likewise.
37586         * modules/logl (License): Likewise.
37587         * modules/sinl (License): Likewise.
37588         * modules/sqrtl (License): Likewise.
37589         * modules/tanl (License): Likewise.
37590         Source code originally from glibc and Paolo Bonzini. Agreements:
37591         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
37592         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
37594 2011-05-05  Bruno Haible  <bruno@clisp.org>
37596         signal: Define sighandler_t.
37597         * lib/signal.in.h (sighandler_t): New type.
37598         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
37599         whether sighandler_t is defined.
37600         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
37601         * modules/signal (Depends-on): Add extensions.
37602         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
37603         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
37604         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
37606 2011-05-05  Eric Blake  <eblake@redhat.com>
37608         maint: remove useless REPLACE_*_H macros
37609         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
37610         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37611         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37612         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
37613         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37614         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37615         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
37616         * m4/btowc.m4: Update callers.
37617         * m4/dirfd.m4: Likewise.
37618         * m4/duplocale.m4: Likewise.
37619         * m4/fchdir.m4: Likewise.
37620         * m4/fdopendir.m4: Likewise.
37621         * m4/inet_ntop.m4: Likewise.
37622         * m4/inet_pton.m4: Likewise.
37623         * m4/ioctl.m4: Likewise.
37624         * m4/mbrlen.m4: Likewise.
37625         * m4/mbrtowc.m4: Likewise.
37626         * m4/mbsinit.m4: Likewise.
37627         * m4/mbsnrtowcs.m4: Likewise.
37628         * m4/mbsrtowcs.m4: Likewise.
37629         * m4/poll.m4: Likewise.
37630         * m4/setlocale.m4: Likewise.
37631         * m4/wcrtomb.m4: Likewise.
37632         * m4/wcsnrtombs.m4: Likewise.
37633         * m4/wcsrtombs.m4: Likewise.
37634         * m4/wctob.m4: Likewise.
37635         * m4/wcwidth.m4: Likewise.
37636         * modules/posix_spawn: Likewise.
37637         * modules/posix_spawn_file_actions_addclose: Likewise.
37638         * modules/posix_spawn_file_actions_adddup2: Likewise.
37639         * modules/posix_spawn_file_actions_addopen: Likewise.
37640         * modules/posix_spawn_file_actions_destroy: Likewise.
37641         * modules/posix_spawn_file_actions_init: Likewise.
37642         * modules/posix_spawnattr_destroy: Likewise.
37643         * modules/posix_spawnattr_getflags: Likewise.
37644         * modules/posix_spawnattr_getpgroup: Likewise.
37645         * modules/posix_spawnattr_getschedparam: Likewise.
37646         * modules/posix_spawnattr_getschedpolicy: Likewise.
37647         * modules/posix_spawnattr_getsigdefault: Likewise.
37648         * modules/posix_spawnattr_getsigmask: Likewise.
37649         * modules/posix_spawnattr_init: Likewise.
37650         * modules/posix_spawnattr_setflags: Likewise.
37651         * modules/posix_spawnattr_setpgroup: Likewise.
37652         * modules/posix_spawnattr_setschedparam: Likewise.
37653         * modules/posix_spawnattr_setschedpolicy: Likewise.
37654         * modules/posix_spawnattr_setsigdefault: Likewise.
37655         * modules/posix_spawnattr_setsigmask: Likewise.
37656         * modules/posix_spawnp: Likewise.
37658 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
37660         Add option to do-release-commit-and-tag to specify branch.
37661         * build-aux/do-release-commit-and-tag: Add --branch.
37663 2011-05-03  Bruno Haible  <bruno@clisp.org>
37665         Avoid unnecessary compilation units, through conditional dependencies.
37666         * modules/accept (Depends-on): Add conditions to the dependencies.
37667         * modules/acosl (Depends-on): Likewise.
37668         * modules/argz (Depends-on): Likewise.
37669         * modules/asinl (Depends-on): Likewise.
37670         * modules/atanl (Depends-on): Likewise.
37671         * modules/atoll (Depends-on): Likewise.
37672         * modules/bind (Depends-on): Likewise.
37673         * modules/btowc (Depends-on): Likewise.
37674         * modules/canonicalize-lgpl (Depends-on): Likewise.
37675         * modules/ceil (Depends-on): Likewise.
37676         * modules/ceilf (Depends-on): Likewise.
37677         * modules/ceill (Depends-on): Likewise.
37678         * modules/chdir-long (Depends-on): Likewise.
37679         * modules/chown (Depends-on): Likewise.
37680         * modules/close (Depends-on): Likewise.
37681         * modules/connect (Depends-on): Likewise.
37682         * modules/cosl (Depends-on): Likewise.
37683         * modules/dirfd (Depends-on): Likewise.
37684         * modules/dprintf (Depends-on): Likewise.
37685         * modules/dprintf-posix (Depends-on): Likewise.
37686         * modules/error (Depends-on): Likewise.
37687         * modules/euidaccess (Depends-on): Likewise.
37688         * modules/expl (Depends-on): Likewise.
37689         * modules/faccessat (Depends-on): Likewise.
37690         * modules/fchdir (Depends-on): Likewise.
37691         * modules/fclose (Depends-on): Likewise.
37692         * modules/fcntl (Depends-on): Likewise.
37693         * modules/fdopendir (Depends-on): Likewise.
37694         * modules/fflush (Depends-on): Likewise.
37695         * modules/floor (Depends-on): Likewise.
37696         * modules/floorf (Depends-on): Likewise.
37697         * modules/floorl (Depends-on): Likewise.
37698         * modules/fnmatch (Depends-on): Likewise.
37699         * modules/fopen (Depends-on): Likewise.
37700         * modules/fprintf-posix (Depends-on): Likewise.
37701         * modules/frexp (Depends-on): Likewise.
37702         * modules/frexp-nolibm (Depends-on): Likewise.
37703         * modules/frexpl (Depends-on): Likewise.
37704         * modules/frexpl-nolibm (Depends-on): Likewise.
37705         * modules/fseek (Depends-on): Likewise.
37706         * modules/fsusage (Depends-on): Likewise.
37707         * modules/ftell (Depends-on): Likewise.
37708         * modules/ftello (Depends-on): Likewise.
37709         * modules/futimens (Depends-on): Likewise.
37710         * modules/getcwd (Depends-on): Likewise.
37711         * modules/getcwd-lgpl (Depends-on): Likewise.
37712         * modules/getdelim (Depends-on): Likewise.
37713         * modules/getdomainname (Depends-on): Likewise.
37714         * modules/getgroups (Depends-on): Likewise.
37715         * modules/gethostname (Depends-on): Likewise.
37716         * modules/getline (Depends-on): Likewise.
37717         * modules/getlogin_r (Depends-on): Likewise.
37718         * modules/getopt-posix (Depends-on): Likewise.
37719         * modules/getpeername (Depends-on): Likewise.
37720         * modules/getsockname (Depends-on): Likewise.
37721         * modules/getsockopt (Depends-on): Likewise.
37722         * modules/getsubopt (Depends-on): Likewise.
37723         * modules/getusershell (Depends-on): Likewise.
37724         * modules/glob (Depends-on): Likewise.
37725         * modules/grantpt (Depends-on): Likewise.
37726         * modules/iconv_open (Depends-on): Likewise.
37727         * modules/iconv_open-utf (Depends-on): Likewise.
37728         * modules/inet_ntop (Depends-on): Likewise.
37729         * modules/inet_pton (Depends-on): Likewise.
37730         * modules/ioctl (Depends-on): Likewise.
37731         * modules/isapipe (Depends-on): Likewise.
37732         * modules/isfinite (Depends-on): Likewise.
37733         * modules/isinf (Depends-on): Likewise.
37734         * modules/lchown (Depends-on): Likewise.
37735         * modules/ldexpl (Depends-on): Likewise.
37736         * modules/link (Depends-on): Likewise.
37737         * modules/linkat (Depends-on): Likewise.
37738         * modules/listen (Depends-on): Likewise.
37739         * modules/logl (Depends-on): Likewise.
37740         * modules/lstat (Depends-on): Likewise.
37741         * modules/mbrlen (Depends-on): Likewise.
37742         * modules/mbrtowc (Depends-on): Likewise.
37743         * modules/mbsinit (Depends-on): Likewise.
37744         * modules/mbsnrtowcs (Depends-on): Likewise.
37745         * modules/mbsrtowcs (Depends-on): Likewise.
37746         * modules/mbtowc (Depends-on): Likewise.
37747         * modules/memcmp (Depends-on): Likewise.
37748         * modules/mkdir (Depends-on): Likewise.
37749         * modules/mkdtemp (Depends-on): Likewise.
37750         * modules/mkfifo (Depends-on): Likewise.
37751         * modules/mkfifoat (Depends-on): Likewise.
37752         * modules/mknod (Depends-on): Likewise.
37753         * modules/mkostemp (Depends-on): Likewise.
37754         * modules/mkostemps (Depends-on): Likewise.
37755         * modules/mkstemp (Depends-on): Likewise.
37756         * modules/mkstemps (Depends-on): Likewise.
37757         * modules/mktime (Depends-on): Likewise.
37758         * modules/nanosleep (Depends-on): Likewise.
37759         * modules/open (Depends-on): Likewise.
37760         * modules/openat (Depends-on): Likewise.
37761         * modules/perror (Depends-on): Likewise.
37762         * modules/poll (Depends-on): Likewise.
37763         * modules/popen (Depends-on): Likewise.
37764         * modules/posix_spawn (Depends-on): Likewise.
37765         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
37766         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37767         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37768         * modules/posix_spawnp (Depends-on): Likewise.
37769         * modules/pread (Depends-on): Likewise.
37770         * modules/printf-posix (Depends-on): Likewise.
37771         * modules/ptsname (Depends-on): Likewise.
37772         * modules/putenv (Depends-on): Likewise.
37773         * modules/pwrite (Depends-on): Likewise.
37774         * modules/readline (Depends-on): Likewise.
37775         * modules/readlink (Depends-on): Likewise.
37776         * modules/readlinkat (Depends-on): Likewise.
37777         * modules/recv (Depends-on): Likewise.
37778         * modules/recvfrom (Depends-on): Likewise.
37779         * modules/regex (Depends-on): Likewise.
37780         * modules/remove (Depends-on): Likewise.
37781         * modules/rename (Depends-on): Likewise.
37782         * modules/renameat (Depends-on): Likewise.
37783         * modules/rmdir (Depends-on): Likewise.
37784         * modules/round (Depends-on): Likewise.
37785         * modules/roundf (Depends-on): Likewise.
37786         * modules/roundl (Depends-on): Likewise.
37787         * modules/rpmatch (Depends-on): Likewise.
37788         * modules/select (Depends-on): Likewise.
37789         * modules/send (Depends-on): Likewise.
37790         * modules/sendto (Depends-on): Likewise.
37791         * modules/setenv (Depends-on): Likewise.
37792         * modules/setlocale (Depends-on): Likewise.
37793         * modules/setsockopt (Depends-on): Likewise.
37794         * modules/shutdown (Depends-on): Likewise.
37795         * modules/sigaction (Depends-on): Likewise.
37796         * modules/signbit (Depends-on): Likewise.
37797         * modules/sigprocmask (Depends-on): Likewise.
37798         * modules/sinl (Depends-on): Likewise.
37799         * modules/sleep (Depends-on): Likewise.
37800         * modules/snprintf (Depends-on): Likewise.
37801         * modules/snprintf-posix (Depends-on): Likewise.
37802         * modules/socket (Depends-on): Likewise.
37803         * modules/sprintf-posix (Depends-on): Likewise.
37804         * modules/sqrtl (Depends-on): Likewise.
37805         * modules/stat (Depends-on): Likewise.
37806         * modules/strchrnul (Depends-on): Likewise.
37807         * modules/strdup-posix (Depends-on): Likewise.
37808         * modules/strerror (Depends-on): Likewise.
37809         * modules/strerror_r-posix (Depends-on): Likewise.
37810         * modules/strndup (Depends-on): Likewise.
37811         * modules/strnlen (Depends-on): Likewise.
37812         * modules/strptime (Depends-on): Likewise.
37813         * modules/strsep (Depends-on): Likewise.
37814         * modules/strsignal (Depends-on): Likewise.
37815         * modules/strstr-simple (Depends-on): Likewise.
37816         * modules/strtod (Depends-on): Likewise.
37817         * modules/strtoimax (Depends-on): Likewise.
37818         * modules/strtok_r (Depends-on): Likewise.
37819         * modules/strtoumax (Depends-on): Likewise.
37820         * modules/symlink (Depends-on): Likewise.
37821         * modules/symlinkat (Depends-on): Likewise.
37822         * modules/tanl (Depends-on): Likewise.
37823         * modules/tcgetsid (Depends-on): Likewise.
37824         * modules/tmpfile (Depends-on): Likewise.
37825         * modules/trunc (Depends-on): Likewise.
37826         * modules/truncf (Depends-on): Likewise.
37827         * modules/truncl (Depends-on): Likewise.
37828         * modules/uname (Depends-on): Likewise.
37829         * modules/unlink (Depends-on): Likewise.
37830         * modules/unlockpt (Depends-on): Likewise.
37831         * modules/unsetenv (Depends-on): Likewise.
37832         * modules/usleep (Depends-on): Likewise.
37833         * modules/utimensat (Depends-on): Likewise.
37834         * modules/vasprintf (Depends-on): Likewise.
37835         * modules/vdprintf (Depends-on): Likewise.
37836         * modules/vdprintf-posix (Depends-on): Likewise.
37837         * modules/vfprintf-posix (Depends-on): Likewise.
37838         * modules/vprintf-posix (Depends-on): Likewise.
37839         * modules/vsnprintf (Depends-on): Likewise.
37840         * modules/vsnprintf-posix (Depends-on): Likewise.
37841         * modules/vsprintf-posix (Depends-on): Likewise.
37842         * modules/wcrtomb (Depends-on): Likewise.
37843         * modules/wcscasecmp (Depends-on): Likewise.
37844         * modules/wcscspn (Depends-on): Likewise.
37845         * modules/wcsdup (Depends-on): Likewise.
37846         * modules/wcsncasecmp (Depends-on): Likewise.
37847         * modules/wcsnrtombs (Depends-on): Likewise.
37848         * modules/wcspbrk (Depends-on): Likewise.
37849         * modules/wcsrtombs (Depends-on): Likewise.
37850         * modules/wcsspn (Depends-on): Likewise.
37851         * modules/wcsstr (Depends-on): Likewise.
37852         * modules/wcstok (Depends-on): Likewise.
37853         * modules/wcswidth (Depends-on): Likewise.
37854         * modules/wctob (Depends-on): Likewise.
37855         * modules/wctomb (Depends-on): Likewise.
37856         * modules/wctype (Depends-on): Likewise.
37857         * modules/wcwidth (Depends-on): Likewise.
37858         * modules/write (Depends-on): Likewise.
37860 2011-05-03  Bruno Haible  <bruno@clisp.org>
37862         Support for conditional dependencies.
37863         * doc/gnulib.texi (Module description): Document the syntax of
37864         conditional dependencies.
37865         * gnulib-tool: New option --conditional-dependencies.
37866         (func_usage): Document it.
37867         (cond_dependencies): New variable.
37868         (func_get_automake_snippet_conditional,
37869         func_get_automake_snippet_unconditional): New functions, extracted from
37870         func_get_automake_snippet.
37871         (func_get_automake_snippet): Use them.
37872         (sed_first_32_chars): New variable.
37873         (func_module_shellfunc_name): New function.
37874         (func_module_shellvar_name): New function.
37875         (func_module_conditional_name): New function.
37876         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
37877         func_cond_module_condition): New functions.
37878         (func_modules_transitive_closure): Add support for conditional
37879         dependencies.
37880         (func_emit_lib_Makefile_am): For a conditional module, enclose the
37881         conditional automake snippet in an automake conditional.
37882         (func_emit_autoconf_snippets): Emit shell functions that contain the
37883         code for conditional modules.
37884         (func_import, func_create_testdir): Update specification.
37886 2011-05-03  Eric Blake  <eblake@redhat.com>
37888         test-getaddrinfo: report error information
37889         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
37891 2011-05-03  Jim Meyering  <meyering@redhat.com>
37893         bootstrap: avoid build failure when $GZIP is set
37894         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
37895         program name.  If defined at all, it is supposed to list gzip options.
37896         Reported by Alan Curry in http://debbugs.gnu.org/8609
37898 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
37900         readme-release: new module with release instructions
37901         * modules/readme-release: New module.
37902         * top/README-release: New file, from coreutils, grep, diffutils.
37903         * MODULES.html.sh (Support for maintaining and releasing): Add it.
37905 2011-05-02  Eric Blake  <eblake@redhat.com>
37907         fflush: also replace fclose when fixing fflush
37908         * modules/fflush (Depends-on): Add fclose.
37909         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
37910         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
37911         memstreams with no backing fd.
37912         * doc/posix-functions/fclose.texi (fclose): Document the use of
37913         fflush module to fix the bug.
37914         * tests/test-fclose.c (main): Relax test when fclose is used in
37915         isolation.
37917         fclose: add some tests
37918         * modules/fclose-tests: New test module.
37919         * tests/test-fclose.c: New file.
37920         * doc/posix-functions/fclose.texi (fclose): Document the bug.
37922         fclose: reduced dependencies
37923         * modules/fclose (Depends-on): Switch from fflush/fseeko to
37924         simpler lseek.
37925         * lib/fclose.c (rpl_fclose): Likewise.
37926         Reported by Simon Josefsson.
37928         exit: drop remaining clients
37929         * modules/argmatch (Depends-on): Replace exit with stdlib.
37930         * modules/copy-file (Depends-on): Likewise.
37931         * modules/execute (Depends-on): Likewise.
37932         * modules/exitfail (Depends-on): Likewise.
37933         * modules/obstack (Depends-on): Likewise.
37934         * modules/pagealign_alloc (Depends-on): Likewise.
37935         * modules/pipe-filter-gi (Depends-on): Likewise.
37936         * modules/pipe-filter-ii (Depends-on): Likewise.
37937         * modules/savewd (Depends-on): Likewise.
37938         * modules/spawn-pipe (Depends-on): Likewise.
37939         * modules/wait-process (Depends-on): Likewise.
37940         * modules/xsetenv (Depends-on): Likewise.
37941         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
37942         * modules/git-merge-changelog (Depends-on): Likewise.
37943         * modules/long-options (Depends-on): Likewise.
37944         * modules/pt_chown (Depends-on): Likewise.
37945         * modules/sysexits (Depends-on): Likewise.
37947         freading: relax license from LGPLv3+ to LGPLv2+
37948         * modules/freading (License): Relax LGPL version.
37950 2011-05-02  Bruno Haible  <bruno@clisp.org>
37952         fchdir: Remove unused dependencies.
37953         * modules/fchdir (Depends-on): Remove include_next.
37955 2011-05-02  Bruno Haible  <bruno@clisp.org>
37957         gnulib-tool: Refactor.
37958         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
37959         from func_emit_autoconf_snippets.
37960         (func_emit_autoconf_snippets): Use it.
37962 2011-05-02  Simon Josefsson  <simon@josefsson.org>
37964         * NEWS: Document removal of 'exit'.
37965         * modules/exit: Remove file.
37967 2011-05-01  Bruno Haible  <bruno@clisp.org>
37969         Update DEPENDENCIES.
37970         * DEPENDENCIES (gettext): Recommend the newest release.
37971         Reported by Simon Josefsson.
37973 2011-05-01  Bruno Haible  <bruno@clisp.org>
37975         gnulib-tool: Reduce code duplication.
37976         * gnulib-tool (func_emit_autoconf_snippets): New function.
37977         (func_import, func_create_testdir): Use it.
37979 2011-04-30  Eric Blake  <eblake@redhat.com>
37981         fclose: don't fail on non-seekable input stream
37982         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
37983         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
37984         since fflush is allowed to fail in that case.
37986 2011-04-30  Bruno Haible  <bruno@clisp.org>
37988         dup3: cleanup
37989         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
37991 2011-04-30  Bruno Haible  <bruno@clisp.org>
37993         netdb: Make it work in C++ mode.
37994         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
37995         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
37996         module.
37997         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
37998         gl_MODULE_INDICATOR_FOR_TESTS.
37999         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
38000         * modules/netdb-c++-tests: New file.
38001         * tests/test-netdb-c++.cc: New file.
38003 2011-04-30  Bruno Haible  <bruno@clisp.org>
38005         New modules 'vfscanf', 'vscanf'.
38006         * modules/vfscanf: New file.
38007         * modules/vscanf: New file.
38008         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
38009         here.
38010         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
38011         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
38013 2011-04-30  Bruno Haible  <bruno@clisp.org>
38015         passfd: Add comments.
38016         * lib/passfd.c: Add comments about platforms.
38018 2011-04-30  Bruno Haible  <bruno@clisp.org>
38020         sys_uio: Make <sys/uio.h> self-contained.
38021         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
38022         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
38024 2011-04-30  Bruno Haible  <bruno@clisp.org>
38026         sys_socket: Ensure 'struct iovec' definition.
38027         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
38028         <sys/socket.h>.
38029         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
38031 2011-04-30  Bruno Haible  <bruno@clisp.org>
38033         sys_uio: Protect definition of 'struct iovec'.
38034         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
38035         it as a C struct.
38037 2011-04-30  Bruno Haible  <bruno@clisp.org>
38039         manywarnings: fix indentation
38040         * m4/manywarnings.m4: Indent by 2 spaces consistently.
38042 2011-04-30  Pádraig Brady  <P@draigBrady.com>
38044         manywarnings: add -Wno-missing-field-initializers if needed.
38045         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
38046         option if it's needed to allow initialization with { 0, }
38048 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
38050         announce-gen: cosmetic improvement
38051         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
38053 2011-04-29  Jim Meyering  <meyering@redhat.com>
38055         vc-list-files: indent with spaces, not TABs
38056         * build-aux/vc-list-files: Convert leading TABs to spaces,
38057         to match the style of most other files in gnulib.
38059         announce-gen: indent with spaces, not TABs
38060         * build-aux/announce-gen: Convert all TABs to spaces, to match
38061         the style of most other files in gnulib.
38063 2011-04-29  Eric Blake  <eblake@redhat.com>
38065         quotearg: avoid uninitialized variable use
38066         * lib/quotearg.c (quoting_options_from_style): Initialize
38067         remaining fields, and ensure that custom styles are only used via
38068         quoting_options rather than quoting_style.
38070 2011-04-29  Jim Meyering  <meyering@redhat.com>
38072         maint.mk: remove unused VC-tag variable
38073         * top/maint.mk (VC-tag): Remove unused variable.
38075 2011-04-29  Bruno Haible  <bruno@clisp.org>
38077         netdb: fix gai_strerror replacements
38078         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
38079         * modules/netdb: Substitute it.
38081 2011-04-29  Jim Meyering  <meyering@redhat.com>
38083         test-getcwd.c: avoid new set-but-not-used warning
38084         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
38085         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
38086         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
38087         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
38089         test-hash.c: avoid a new shadowing warning
38090         * tests/test-hash.c (main): Don't shadow "dup".
38092 2011-04-28  Eric Blake  <eblake@redhat.com>
38094         getaddrinfo: fix gai_strerror signature
38095         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
38096         and work around mingw with UNICODE defined.
38097         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
38098         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
38099         * modules/netdb (Makefile.am): Substitute it.
38100         * lib/netdb.in.h (gai_strerror): Declare replacement.
38101         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
38102         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
38103         the fix.
38105         getsockopt: avoid compiler warning
38106         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
38107         Reported by Matthias Bolte.
38109         tests: drop unused link dependency
38110         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
38111         * modules/dirent-safer-tests (Makefile.am): Likewise.
38112         * modules/fdopendir-tests (Makefile.am): Likewise.
38113         * modules/mkfifoat-tests (Makefile.am): Likewise.
38114         * modules/openat-safer-tests (Makefile.am): Likewise.
38115         * modules/openat-tests (Makefile.am): Likewise.
38116         * modules/readlinkat-tests (Makefile.am): Likewise.
38117         * modules/symlinkat-tests (Makefile.am): Likewise.
38118         * modules/linkat-tests (Makefile.am): Likewise.
38119         (Depends-on): Switch to filenamecat-lgpl.
38120         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
38121         LIBINTL.
38122         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
38123         * tests/test-linkat.c (main): Don't require xalloc.
38125         hash, mgetgroups: drop xalloc dependency
38126         * lib/hash.c (includes): Adjust includes.
38127         * lib/mgetgroups.c (includes): Likewise.
38128         (xgetgroups): Move...
38129         * lib/xgetgroups.c: ...to new file.
38130         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
38131         * modules/xgetgroups: New file, split from...
38132         * modules/mgetgroups: ...here.
38133         (Depends-on): Add xalloc-oversized.
38134         * modules/hash (Depends-on): Likewise.
38135         * modules/hash-tests (Depends-on): Drop xalloc.
38136         (test_hash_LDADD): Drop unused library.
38137         * tests/test-hash.c (main): Break xalloc dependency.
38138         (includes): Drop unused include.
38140         xalloc-oversized: new module
38141         * modules/xalloc-oversized: New module.
38142         * modules/xalloc (Depends-on): Add it.
38143         * lib/xalloc.h (xalloc_oversized): Move...
38144         * lib/xalloc-oversized.h: ...into new file.
38146         utimecmp: drop dependency on xmalloc
38147         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
38148         due to memory pressure.
38149         * modules/utimecmp (Depends-on): Drop xalloc.
38151 2011-04-27  Eric Blake  <eblake@redhat.com>
38153         getcwd: fix mingw bugs
38154         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
38155         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
38156         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
38158 2011-04-27  Bruno Haible  <bruno@clisp.org>
38160         mkstemps: Ensure declaration on MacOS X 10.5.
38161         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
38162         * doc/glibc-functions/mkstemps.texi: Document header file problem on
38163         MacOS X.
38165 2011-04-27  Bruno Haible  <bruno@clisp.org>
38167         mkstemp: More documentation.
38168         * doc/posix-functions/mkstemp.texi: Document header file problem on
38169         MacOS X.
38171 2011-04-27  Bruno Haible  <bruno@clisp.org>
38173         mkstemp: Tweak configure message when cross-compiling.
38174         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
38175         result as a guess.
38177 2011-04-27  Bruno Haible  <bruno@clisp.org>
38179         clean-temp: Clarify what it does.
38180         * lib/clean-temp.h: Add more comments.
38181         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
38182         module.
38183         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
38184         * doc/glibc-functions/mkstemps.texi: Likewise.
38185         * doc/glibc-functions/mkostemps.texi: Likewise.
38187 2011-04-27  Eric Blake  <eblake@redhat.com>
38189         fchdir: avoid extra chdir and fix test
38190         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
38191         getcwd-lgpl.
38192         * lib/fchdir.c (get_name): Any absolute name will do; it does not
38193         have to be canonical.
38194         (canonicalize_file_name): Drop unused macro.
38195         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
38197         filenamecat-lgpl: fix licence
38198         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
38199         when it was first created.
38201         linkat, renameat: add missing dependency
38202         * modules/linkat (Depends-on): Require getcwd-lgpl.
38203         * modules/renameat (Depends-on): Likewise.
38205         tests: reduce dependencies
38206         * tests/test-linkat.c (main): Use lighter-weight getcwd.
38207         * tests/test-renameat.c (main): Likewise.
38208         * modules/linkat-tests (Depends-on): Relax dependency.
38209         * modules/renameat-tests (Depends-on): Likewise.
38210         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
38211         dependency explicit.
38213         save-cwd: reduce default dependency
38214         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
38215         * lib/save-cwd.c: Update comments.
38216         * NEWS: Document the semantic change.
38218         getcwd: enhance tests
38219         * tests/test-getcwd-lgpl.c: New file, taken from...
38220         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
38221         repeat long path stress tests from m4 probe.
38222         * modules/getcwd-lgpl-tests: New module.
38223         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
38224         * m4/getcwd-abort-bug.m4: Update comment.
38225         * m4/getcwd-path-max.m4: Likewise.
38227         getcwd-lgpl: new module
38228         * modules/getcwd-lgpl: New module.
38229         * lib/getcwd-lgpl.c: New file.
38230         * doc/posix-functions/getcwd.texi (getcwd): Document it.
38231         * MODULES.html.sh (lacking POSIX:2008): Likewise.
38232         * modules/getcwd (configure.ac): Set C witness.
38233         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
38235         getcwd: tweak comments
38236         * m4/getcwd-abort-bug.m4: Fix comments.
38237         * m4/getcwd-path-max.m4: Likewise.
38238         * m4/getcwd.m4: Likewise.
38240 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
38241         and Eric Blake  <eblake@redhat.com>
38243         mkstemp: replace if system version uses wrong permissions
38244         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
38245         read/write mode bits set in file created by mkstemp.
38246         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
38248 2011-04-27  Eric Blake  <eblake@redhat.com>
38250         passfd: avoid compiler warning
38251         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
38252         Reported by Laine Stump.
38254 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
38256         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
38257         required by the NetBSD (and perhaps other 4.4BSD derived) join.
38259 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
38260         and Eric Blake  <eblake@redhat.com>
38262         mkstemp: mention clean-temp module
38263         * lib/mkstemp.c: Add comment.
38264         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
38266 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
38268         inttypes: also provide default values for 32-bit tests
38269         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
38270         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
38272 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
38274         strtoumax: remove dependency on strtoimax
38275         This is like the strtoull change of yesterday.
38276         * modules/strtoumax (Files): Add lib/strtoimax.c.
38277         (Depends-on): Remove strtoimax and add verify.
38279         inttypes-incomplete: new module
38280         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
38281         all but the PRI* and SCN* parts of gl_INTTYPES_H.
38282         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
38283         of gl_INTTYPES_H.
38284         (gl_INTTYPES_H): Rewrite in terms of these new macros.
38285         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
38286         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
38287         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
38288         * modules/strtoumax, modules/xstrtol (Depends-on):
38289         Depend on inttypes-incomplete, not inttypes.
38290         * modules/inttypes-incomplete: New module, containing the contents
38291         of the old modules/inttypes module, except that the Files: section
38292         omits m4/inttypes-pri.m4, and the configure.ac section invokes
38293         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
38294         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
38295         (Depends-on): Depend only on inttypes-incomplete.
38296         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
38298         inttypes: omit now-redundant strtoimax and strtoumax work
38299         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
38300         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
38302         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
38303         This supports apps that need pointers to strtoimax and strtoumax,
38304         and ports to HP-UX 11.00 64.bit, which has macros that expand to
38305         nonexistent functions.  See
38306         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
38307         et seq.
38308         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
38309         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
38310         a macro.
38311         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38313 2011-04-25  Simon Josefsson  <simon@josefsson.org>
38315         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
38317 2011-04-25  Bruno Haible  <bruno@clisp.org>
38319         strtol, strtoul: Mark modules as obsolete.
38320         * modules/strtol (Status, Notice): New sections.
38321         * modules/strtoul (Status, Notice): New sections.
38323 2011-04-25  Bruno Haible  <bruno@clisp.org>
38325         strtod: Remove check for strtod, unless supporting old platforms.
38326         * modules/strtod-obsolete: New file.
38327         * m4/strtod-obsolete.m4: New file.
38328         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
38329         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
38330         * modules/strtod (Depends-on): Add strtod-obsolete.
38331         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
38333 2011-04-25  Bruno Haible  <bruno@clisp.org>
38335         strcase: Make module obsolete.
38336         * modules/strcase (Status, Notice): New sections.
38338 2011-04-25  Bruno Haible  <bruno@clisp.org>
38340         dup2: Remove check for dup2, unless supporting old obsolete platforms.
38341         * modules/dup2-obsolete: New file.
38342         * m4/dup2-obsolete.m4: New file.
38343         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
38344         gl_FUNC_DUP2_OBSOLETE is not also defined.
38345         * modules/dup2 (Depends-on): Add dup2-obsolete.
38346         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
38348 2011-04-25  Bruno Haible  <bruno@clisp.org>
38350         strnlen: Avoid memchr related link error on old obsolete platforms.
38351         * modules/memchr-obsolete: New file.
38352         * m4/memchr-obsolete.m4: New file.
38353         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
38354         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
38355         * modules/memchr (Depends-on): Add memchr-obsolete.
38356         * modules/strnlen (Depends-on): Likewise.
38357         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
38359 2011-04-25  Jim Meyering  <meyering@redhat.com>
38361         maint.mk: makefile_at_at_check extend and clean up
38362         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
38363         in addition to */Makefile.am.
38364         Exempt legitimate uses of @VAR@ notation, e.g.,
38365         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
38366         Remove obsolete coreutils-specific comment.
38367         Prompted by discussion here:
38368         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
38370 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
38372         strtoul: remove dependency on strtol
38373         This is so that 'configure' need not check for strtol merely because
38374         the application needs strtoul.
38375         * modules/strtoul (Files): Add lib/strtol.c.
38376         (Depends-on): Remove strtol.
38378         strtoull: remove dependency on strtoul
38379         This is like the strtoll change.
38380         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
38381         (Depends-on): Remove strtoul.
38383         strtoll: remove dependency on strtol
38384         This is so that 'configure' need not check for strtol merely because
38385         the application needs strtoll.
38386         * modules/strtoll (Files): Add lib/strtol.c.
38387         (Depends-on): Remove strtol.
38389 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38391         inttypes: Move some configure check to module 'imaxdiv'.
38392         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
38393         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
38394         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
38396 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38398         inttypes: Move some configure check to module 'imaxabs'.
38399         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
38400         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
38401         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
38403 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38405         inttypes: Remove configure tests that are not needed since 2009-12-31.
38406         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
38407         gl_cv_header_working_inttypes_h.
38409 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38411         * modules/strnlen (Depends-on): Remove memchr.
38412         The strnlen implementation doesn't need the memchr module's fixes; see
38413         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
38415         strtol: remove dependency on wchar
38416         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
38417         * modules/strtol (Depends-on): Remove wchar.
38419 2011-04-21  Eric Blake  <eblake@redhat.com>
38421         passfd: fix test regression on Linux
38422         * modules/passfd-tests (configure.ac): Correct socketpair check.
38424         passfd: speed up configure and drop unused code
38425         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
38426         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
38427         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
38428         Instead of probing at configure for unix_scm_rights_bsd44_way,
38429         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
38430         check to a struct member probe.
38431         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
38432         (sendfd, recvfd): Update preprocessor checks.
38433         * modules/passfd (Files): Reflect rename, and drop unused file.
38434         (Depends-on): Drop unused dependency.
38436         passfd: allow compilation on mingw
38437         * modules/sys_socket (Depends-on): Add sys_uio.
38438         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
38439         iovec and a minimal struct msghdr.
38440         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
38441         * tests/test-sys_socket.c (main): Enhance test.
38442         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
38443         guaranteed to provide what we need.
38444         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
38445         * modules/passfd-tests (Depends-on): Add sys_wait.
38446         * tests/test-passfd.c (main): Skip test on mingw, for now.
38447         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
38448         partial 'struct msghdr' implementation.
38450         sys_uio: new module
38451         * modules/sys_uio: New module.
38452         * modules/sys_uio-tests: Likewise.
38453         * lib/sys_uio.in.h: New file.
38454         * m4/sys_uio_h.m4: Likewise.
38455         * tests/test-sys_uio.c: Likewise.
38456         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
38457         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
38459 2011-04-20  Jim Meyering  <meyering@redhat.com>
38461         useless-if-before-free: avoid false-positive
38462         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
38463         disjunct so that it too requires a terminating ";".  Without that,
38464         this script would identify as useless one statement from gcc that
38465         was not:
38466           if (aligned_ptr)
38467             free (((void **) aligned_ptr) [-1]);
38469 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
38471         doc: update users.txt.
38472         * users.txt: Add barcode.
38474 2011-04-19  Bruno Haible  <bruno@clisp.org>
38476         ioctl: Remove link dependency on native Windows.
38477         * lib/fd-hook.h: Renamed from lib/close-hook.h.
38478         (gl_close_fn, gl_ioctl_fn): New types.
38479         (struct fd_hook): Renamed from struct close_hook. Change type of
38480         private_close_fn field. Add private_ioctl_fn field.
38481         (close_hook_fn): Add parameter for primary close method.
38482         (execute_close_hooks, execute_all_close_hooks): Likewise.
38483         (ioctl_hook_fn): New type.
38484         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
38485         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
38486         argument.
38487         (unregister_fd_hook): Renamed from unregister_close_hook.
38488         * lib/fd-hook.c: Renamed from lib/close-hook.c.
38489         Don't include <unistd.h>.
38490         (close): Remove undef.
38491         (anchor): Update.
38492         (execute_close_hooks): Add argument for primary close method.
38493         (execute_all_close_hooks): Likewise.
38494         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
38495         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
38496         argument. Allow each argument to be NULL.
38497         (unregister_fd_hook): Renamed from unregister_close_hook.
38498         * lib/close.c (rpl_close): Pass 'close' function pointer to
38499         execute_all_close_hooks.
38500         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
38501         (primary_ioctl): New function.
38502         (ioctl): Don't call ioctlsocket here. Instead, call
38503         execute_all_ioctl_hooks.
38504         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
38505         close method.
38506         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
38507         (fd_sockets_hook): Renamed from close_sockets_hook.
38508         (gl_sockets_startup, gl_sockets_cleanup): Update.
38509         * modules/fd-hook: Renamed from modules/close-hook. Update.
38510         * modules/close (Depends-on): Add fd-hook, remove close-hook.
38511         * modules/sockets (Depends-on): Likewise.
38512         * modules/ioctl (Depends-on): Add fd-hook.
38513         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
38514         GNULIB_SOCKET.
38516 2011-04-19  Bruno Haible  <bruno@clisp.org>
38518         Move the support of O_NONBLOCK in open() to the 'open' module.
38519         * modules/nonblocking (Depends-on): Remove 'open'.
38520         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
38521         gl_cv_have_open_O_NONBLOCK.
38522         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
38523         O_NONBLOCK support.
38524         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
38526 2011-04-17  Bruno Haible  <bruno@clisp.org>
38528         pipe2: Simplify code.
38529         * lib/pipe2.c (pipe2): Reduce code duplication.
38531 2011-04-17  Bruno Haible  <bruno@clisp.org>
38533         nonblocking: Add comment.
38534         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
38536 2011-04-17  Bruno Haible  <bruno@clisp.org>
38538         nonblocking: Add tests for sockets.
38539         * tests/test-nonblocking-socket.sh: New file.
38540         * tests/test-nonblocking-socket-main.c: New file.
38541         * tests/test-nonblocking-socket-child.c: New file.
38542         * tests/test-nonblocking-socket.h: New file.
38543         * tests/socket-server.h: New file.
38544         * tests/socket-client.h: New file.
38545         * modules/nonblocking-socket-tests: New file.
38546         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
38548 2011-04-17  Bruno Haible  <bruno@clisp.org>
38550         nonblocking: Add tests for pipes.
38551         * tests/test-nonblocking-pipe.sh: New file.
38552         * tests/test-nonblocking-pipe-main.c: New file.
38553         * tests/test-nonblocking-pipe-child.c: New file.
38554         * tests/test-nonblocking-pipe.h: New file.
38555         * tests/test-nonblocking-writer.h: New file.
38556         * tests/test-nonblocking-reader.h: New file.
38557         * tests/test-nonblocking-misc.h: New file.
38558         * modules/nonblocking-pipe-tests: New file.
38559         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
38561 2011-04-16  Bruno Haible  <bruno@clisp.org>
38563         gettext: Clarify the needed programmer actions.
38564         * modules/gettext (Notice): New field.
38565         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
38567 2011-04-16  Bruno Haible  <bruno@clisp.org>
38569         strchrnul: Tweak last commit.
38570         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
38571         bug.
38572         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
38573         as in _GL_FUNCDECL_SYS.
38574         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
38575         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
38577 2011-04-15  Eric Blake  <eblake@redhat.com>
38579         strchrnul: work around cygwin bug
38580         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
38581         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
38582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
38583         * modules/string (Makefile.am): Substitute it.
38584         * lib/string.in.h (strchrnul): Use it.
38586 2011-04-15  Bruno Haible  <bruno@clisp.org>
38588         Don't require lib/stdio-write.c when only module 'stdio' is used.
38589         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
38590         invocation.
38591         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
38593 2011-04-14  Bruno Haible  <bruno@clisp.org>
38595         Support non-blocking pipe I/O in read() on native Windows.
38596         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
38597         (read): New declaration.
38598         * lib/read.c: New file.
38599         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
38600         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
38601         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
38602         vscanf): New declarations.
38603         * lib/stdio-read.c: New file.
38604         * m4/read.m4: New file.
38605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
38606         REPLACE_READ.
38607         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
38608         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38609         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
38610         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
38611         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
38612         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38613         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38614         * modules/read: New file.
38615         * modules/nonblocking (Files): Add lib/stdio-read.c.
38616         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
38617         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
38618         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38619         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38620         * modules/pread (Depends-on): Add read.
38621         * modules/safe-read (Depends-on): Likewise.
38622         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
38623         gets, scanf, vfscanf, vscanf): Verify signatures.
38624         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
38625         problem with non-blocking pipes.
38626         * doc/posix-functions/fgetc.texi: Likewise.
38627         * doc/posix-functions/fgets.texi: Likewise.
38628         * doc/posix-functions/fread.texi: Likewise.
38629         * doc/posix-functions/fscanf.texi: Likewise.
38630         * doc/posix-functions/getc.texi: Likewise.
38631         * doc/posix-functions/getchar.texi: Likewise.
38632         * doc/posix-functions/gets.texi: Likewise.
38633         * doc/posix-functions/scanf.texi: Likewise.
38634         * doc/posix-functions/vfscanf.texi: Likewise.
38635         * doc/posix-functions/vscanf.texi: Likewise.
38637 2011-04-14  Bruno Haible  <bruno@clisp.org>
38639         Support non-blocking pipe I/O in write() on native Windows.
38640         * lib/write.c (rpl_write): Split a write request that failed merely
38641         because the byte count was larger than the pipe buffer's size.
38642         * doc/posix-functions/write.texi: Mention the problem with large byte
38643         counts.
38645 2011-04-14  Bruno Haible  <bruno@clisp.org>
38647         wchar: Ensure that wchar_t gets defined on uClibc.
38648         * lib/wchar.in.h: On uClibc, include <stddef.h>.
38649         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
38651 2011-04-13  Bruno Haible  <bruno@clisp.org>
38653         safe-write, full-read: Avoid unnecessary compilation units.
38654         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
38655         (Depends-on): Remove safe-read. Add ssize_t.
38656         * modules/full-read (Files): Add lib/full-write.c.
38657         (Depends-on): Add full-write.
38659 2011-04-13  Bruno Haible  <bruno@clisp.org>
38661         Support non-blocking pipe I/O and SIGPIPE in pwrite().
38662         * modules/pwrite (Depends-on): Add 'write'.
38664 2011-04-13  Bruno Haible  <bruno@clisp.org>
38666         Support non-blocking pipe I/O in write() on native Windows.
38667         * lib/unistd.in.h (write): Enable replacement also if
38668         GNULIB_UNISTD_H_NONBLOCKING is 1.
38669         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
38670         (rpl_write): When failing to write on a non-blocking pipe, change
38671         errno from ENOSPC to EAGAIN.
38672         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
38673         putchar, puts, vfprintf, vprintf): Enable replacement also if
38674         GNULIB_STDIO_H_NONBLOCKING is 1.
38675         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
38676         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
38677         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
38678         CALL_WITH_SIGPIPE_EMULATION.
38679         (CALL_WITH_SIGPIPE_EMULATION): Use them.
38680         * m4/nonblocking.m4: New file.
38681         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
38682         for non-blocking I/O support.
38683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38684         GNULIB_UNISTD_H_NONBLOCKING.
38685         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
38686         required for non-blocking I/O support.
38687         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
38688         * modules/nonblocking (Files): Add m4/nonblocking.m4,
38689         lib/stdio-write.c, m4/asm-underscore.m4.
38690         (Depends-on): Add stdio, unistd.
38691         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
38692         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
38693         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
38694         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
38695         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
38696         problem with non-blocking pipes.
38697         * doc/posix-functions/fputc.texi: Likewise.
38698         * doc/posix-functions/fputs.texi: Likewise.
38699         * doc/posix-functions/fwrite.texi: Likewise.
38700         * doc/posix-functions/printf.texi: Likewise.
38701         * doc/posix-functions/putc.texi: Likewise.
38702         * doc/posix-functions/putchar.texi: Likewise.
38703         * doc/posix-functions/puts.texi: Likewise.
38704         * doc/posix-functions/vfprintf.texi: Likewise.
38705         * doc/posix-functions/vprintf.texi: Likewise.
38706         * doc/posix-functions/write.texi: Likewise.
38708 2011-04-10  Jim Meyering  <meyering@redhat.com>
38710         maint.mk: prohibit doubled words
38711         Detect them also when they're separated by a newline.
38712         There are 3 ways to customize it:
38713           - disable the test on a per file basis, as usual with rules using
38714             $(VC_LIST_EXCEPT)
38715           - replace the default doubled-word-selecting regexp (affects all files)
38716           - ignore a particular file-vs-doubled-word match
38717         I nearly used that last one to ignore the "is is" match in
38718         coreutils' NEWS file, since the text was "ls -is is ..."
38719         To do that, I would have added this line to cfg.mk:
38720           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
38721         but it would have ignored any "is is" match in NEWS.
38722         Low probability, but still...
38723         Instead, I changed the text, slightly:
38724           -  ls -is is now consistent with ls -lis in ignoring values returned
38725           +  "ls -is" is now consistent with ls -lis in ignoring values returned
38726         * top/maint.mk (prohibit_double_word_RE_): Provide default.
38727         (prohibit_doubled_word_): Define.
38728         (sc_prohibit_doubled_word): New rule.
38729         (sc_prohibit_the_the): Remove.  Subsumed by the above.
38731 2011-04-10  Jim Meyering  <meyering@redhat.com>
38733         maint: fix doubled-word typo in comment
38734         * m4/gethostname.m4: s/is is/it is/
38735         * m4/getdomainname.m4: Likewise.
38737 2011-04-10  Jim Meyering  <meyering@redhat.com>
38739         maint: remove doubled word: s/it it/it/
38740         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
38742 2011-04-10  Jim Meyering  <meyering@redhat.com>
38744         maint.mk: remove useless semicolon and backslash
38745         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
38746         semicolon and backslash.
38748 2011-04-10  Bruno Haible  <bruno@clisp.org>
38750         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
38751         * modules/stdint-tests (Depends-on): Add wchar.
38753 2011-04-10  Jim Meyering  <meyering@redhat.com>
38755         maint: remove doubled words in comments, e.g., s/a a/a/
38756         * lib/strptime.c (day_of_the_week): s/the the/the/
38757         * tests/test-chown.h (test_chown): s/a a/a/
38759         test-chown.h: correct a cast
38760         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
38761         when the destination is a stat.st_gid.
38763 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
38765         getaddrinfo: Fix test for sa_len member.
38766         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
38767         include <sys/types.h> before <sys/socket.h>.
38769 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38771         maint: change "can not" to "cannot"
38772         * doc/posix-functions/iconv.texi (iconv): This one crossed line
38773         boundaries.
38775 2011-04-09  Jim Meyering  <meyering@redhat.com>
38777         maint: change "a a" to "a"
38778         * tests/test-lchown.h (test_lchown): s/a a/a/
38780         maint.mk: prohibit \<the the\>
38781         * top/maint.mk (sc_prohibit_the_the): New rule.
38783         maint: fix "the the" in comment
38784         * lib/count-one-bits.h: s/the the/the/
38786         maint: change "can not" to "cannot"
38787         But do not change the occurrences in maintain.texi or in
38788         build-aux/po/Makefile.in.in, which I presume comes from gettext.
38789         * doc/gnulib-tool.texi: s/can not/cannot/
38790         * doc/posix-functions/accept.texi (accept): Likewise.
38791         * doc/posix-functions/socket.texi (socket): Likewise.
38792         * lib/mbrtowc.c: Likewise.
38794         maint.mk: prohibit use of "can not"
38795         * top/maint.mk (sc_prohibit_can_not): New rule.
38796         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
38798 2011-04-09  Bruno Haible  <bruno@clisp.org>
38800         careadlinkat: Guard against misuse of careadlinkatcwd.
38801         * lib/careadlinkat.c: Include <stdlib.h>.
38802         (careadlinkatcwd): Check that the fd argument is as expected.
38804 2011-04-09  Bruno Haible  <bruno@clisp.org>
38806         careadlinkat: Use common coding style.
38807         * lib/careadlinkat.c: Move gnulib includes after system includes.
38809 2011-04-09  Bruno Haible  <bruno@clisp.org>
38811         careadlinkat: Clarify specification.
38812         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
38813         (careadlinkatcwd): Add comment.
38814         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
38816 2011-04-09  Bruno Haible  <bruno@clisp.org>
38818         areadlinkat: Avoid link error on many platforms.
38819         * modules/areadlinkat (Depends-on): Add areadlink.
38821 2011-04-09  Bruno Haible  <bruno@clisp.org>
38823         allocator, careadlinkat: Fix double-inclusion guard.
38824         * lib/allocator.h: Fix double-inclusion guard.
38825         * lib/careadlinkat.h: Likewise.
38827 2011-04-09  Bruno Haible  <bruno@clisp.org>
38829         relocatable-prog-wrapper: Update after module 'areadlink' changed.
38830         * lib/relocwrapper.c: Update dependencies hierarchy.
38831         * build-aux/install-reloc: Update list of files to be compiled.
38832         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
38833         lib/allocator.[hc].
38835 2011-04-08  Eric Blake  <eblake@redhat.com>
38837         strftime: silence gnulib-tool warning
38838         * modules/strftime-tests (Depends-on): Drop automatic dependency.
38840 2011-04-08  Bruno Haible  <bruno@clisp.org>
38842         verify: Fix syntax error with GCC 4.6 in C++ mode.
38843         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
38844         (HAVE_STATIC_ASSERT): New macro.
38845         (verify_true, verify): Use 'static_assert' if it is supported and
38846         '_Static_assert' is not supported.
38848 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
38850         allocator: New module.
38851         * modules/allocator, lib/allocator.c: New files.
38852         * lib/allocator.h (stdlib_allocator): New decl.
38853         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
38854         Remove.  Do not include <stdlib.h>.
38855         (careadlinkat): Use stdlib_allocator instead of rolling our own.
38856         * modules/careadlinkat (Files): Remove lib/allocator.h.
38857         (Depends-on): Add allocator.
38859         stdlib: let modules use system malloc, realloc
38860         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
38861         if !_GL_USE_STDLIB_ALLOC.
38862         (malloc, realloc): Limit this change to a smaller scope.
38864         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
38865         (malloc, realloc): Don't #undef; no longer needed.
38866         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38867         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38868         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
38869         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38870         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38871         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38872         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
38873         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
38875         careadlinkat: rename members to avoid problem
38876         * lib/allocator.h (struct allocator): Rename members from
38877         malloc/realloc to allocate/reallocate, to avoid problems if malloc
38878         and realloc are #define'd.  Reported by Eric Blake in
38879         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
38880         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
38882 2011-04-08  Eric Blake  <eblake@redhat.com>
38884         nonblocking: reduce dependency
38885         * tests/test-nonblocking.c: Only test sockets when in use.
38886         * modules/nonblocking-tests (Depends-on): Drop socket.
38887         (Makefile.am): Link even if sockets are not present.
38888         * modules/pipe2-tests (Makefile.am): Likewise.
38889         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
38891         pipe2: fix O_NONBLOCK support on mingw
38892         * modules/pipe2 (Depends-on): Add nonblocking.
38893         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
38894         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
38895         * tests/test-nonblocking.c (main): Likewise.
38896         * modules/pipe2-tests (Makefile.am): Avoid link failure.
38898         fcntl-h: fix O_ACCMODE on cygwin
38899         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
38900         * lib/fcntl.in.h (O_ACCMODE): Fix it.
38902         pipe-filter: drop O_NONBLOCK workarounds
38903         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
38904         * modules/pipe-filter-ii (Depends-on): Likewise.
38905         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
38907         nonblocking: provide O_NONBLOCK for mingw
38908         * modules/nonblocking (Depends-on): Add open.
38909         (configure.ac): Set new witness macro.
38910         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
38911         * modules/fcntl-h (Makefile.am): Substitute it.
38912         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
38913         nonblocking module is in use.
38914         * lib/nonblocking.c: Adjust portability test.
38915         * lib/open.c (open): Don't let native open see gnulib flag.
38916         * tests/test-fcntl-h.c (main): Enhance test.
38917         * tests/test-open.h (test_open): Likewise.
38918         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
38920         careadlinkat: fix compilation error on mingw
38921         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
38922         within struct allocator.
38924 2011-04-06  Eric Blake  <eblake@redhat.com>
38926         binary-io: relicense under LGPLv2+
38927         * modules/binary-io (License): Relax to LGPLv2+.
38928         Requested for libvirt, and required by pipe2.
38930 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
38932         verify: use _Static_assert if available
38933         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
38934         (verify_true, verify): Use it if available.  This generates better
38935         diagnostics with GCC 4.6.0 and later.
38937 2011-04-05  Bruno Haible  <bruno@clisp.org>
38939         Remove leftover generated .h files after config.status changed.
38941         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
38942         GL_GENERATE_ALLOCA_H.
38943         * modules/alloca-opt (Makefile.am): Remove alloca.h if
38944         GL_GENERATE_ALLOCA_H evaluates to false.
38946         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
38947         GL_GENERATE_ARGZ_H.
38948         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
38949         evaluates to false.
38951         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
38952         GL_GENERATE_BYTESWAP_H.
38953         * modules/byteswap (Makefile.am): Remove byteswap.h if
38954         GL_GENERATE_BYTESWAP_H evaluates to false.
38956         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
38957         GL_GENERATE_ERRNO_H.
38958         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
38959         evaluates to false.
38961         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
38962         GL_GENERATE_FLOAT_H.
38963         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
38964         evaluates to false.
38966         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
38967         GL_GENERATE_FNMATCH_H.
38968         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
38969         GL_GENERATE_FNMATCH_H evaluates to false.
38971         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
38972         GL_GENERATE_GLOB_H.
38973         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
38974         evaluates to false.
38976         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
38977         automake conditional GL_GENERATE_ICONV_H.
38978         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
38979         evaluates to false.
38981         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
38982         GL_GENERATE_NETINET_IN_H.
38983         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
38984         GL_GENERATE_NETINET_IN_H evaluates to false.
38986         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
38987         conditional GL_GENERATE_PTHREAD_H.
38988         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
38989         * modules/pthread (Makefile.am): Remove pthread.h if
38990         GL_GENERATE_PTHREAD_H evaluates to false.
38992         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
38993         GL_GENERATE_SCHED_H.
38994         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
38995         evaluates to false.
38997         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
38998         conditional GL_GENERATE_SELINUX_CONTEXT_H.
38999         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
39000         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
39002         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
39003         GL_GENERATE_STDARG_H.
39004         * modules/stdarg (Makefile.am): Remove stdarg.h if
39005         GL_GENERATE_STDARG_H evaluates to false.
39007         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
39008         GL_GENERATE_STDBOOL_H.
39009         * modules/stdbool (Makefile.am): Remove stdbool.h if
39010         GL_GENERATE_STDBOOL_H evaluates to false.
39012         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
39013         conditional GL_GENERATE_STDDEF_H.
39014         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
39015         * modules/stddef (Makefile.am): Remove stddef.h if
39016         GL_GENERATE_STDDEF_H evaluates to false.
39018         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
39019         GL_GENERATE_STDINT_H.
39020         * modules/stdint (Makefile.am): Remove stdint.h if
39021         GL_GENERATE_STDINT_H evaluates to false.
39023         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
39024         GL_GENERATE_SYSEXITS_H.
39025         * modules/sysexits (Makefile.am): Remove sysexits.h if
39026         GL_GENERATE_SYSEXITS_H evaluates to false.
39028         Reported by Karl Berry and Ralf Wildenhues.
39030 2011-04-05  Bruno Haible  <bruno@clisp.org>
39032         Ensure to rebuild generated .h files when config.status has changed.
39033         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
39034         config.status.
39035         * modules/ctype (Makefile.am): Likewise.
39036         * modules/dirent (Makefile.am): Likewise.
39037         * modules/errno (Makefile.am): Likewise.
39038         * modules/fcntl-h (Makefile.am): Likewise.
39039         * modules/float (Makefile.am): Likewise.
39040         * modules/getopt-posix (Makefile.am): Likewise.
39041         * modules/glob (Makefile.am): Likewise.
39042         * modules/iconv-h (Makefile.am): Likewise.
39043         * modules/inttypes (Makefile.am): Likewise.
39044         * modules/langinfo (Makefile.am): Likewise.
39045         * modules/locale (Makefile.am): Likewise.
39046         * modules/math (Makefile.am): Likewise.
39047         * modules/netdb (Makefile.am): Likewise.
39048         * modules/netinet_in (Makefile.am): Likewise.
39049         * modules/poll-h (Makefile.am): Likewise.
39050         * modules/pthread (Makefile.am): Likewise.
39051         * modules/pty (Makefile.am): Likewise.
39052         * modules/sched (Makefile.am): Likewise.
39053         * modules/search (Makefile.am): Likewise.
39054         * modules/selinux-h (Makefile.am): Likewise.
39055         * modules/signal (Makefile.am): Likewise.
39056         * modules/spawn (Makefile.am): Likewise.
39057         * modules/stdarg (Makefile.am): Likewise.
39058         * modules/stdbool (Makefile.am): Likewise.
39059         * modules/stddef (Makefile.am): Likewise.
39060         * modules/stdint (Makefile.am): Likewise.
39061         * modules/stdio (Makefile.am): Likewise.
39062         * modules/stdlib (Makefile.am): Likewise.
39063         * modules/string (Makefile.am): Likewise.
39064         * modules/strings (Makefile.am): Likewise.
39065         * modules/sys_file (Makefile.am): Likewise.
39066         * modules/sys_ioctl (Makefile.am): Likewise.
39067         * modules/sys_select (Makefile.am): Likewise.
39068         * modules/sys_socket (Makefile.am): Likewise.
39069         * modules/sys_stat (Makefile.am): Likewise.
39070         * modules/sys_time (Makefile.am): Likewise.
39071         * modules/sys_times (Makefile.am): Likewise.
39072         * modules/sys_utsname (Makefile.am): Likewise.
39073         * modules/sys_wait (Makefile.am): Likewise.
39074         * modules/sysexits (Makefile.am): Likewise.
39075         * modules/termios (Makefile.am): Likewise.
39076         * modules/time (Makefile.am): Likewise.
39077         * modules/unistd (Makefile.am): Likewise.
39078         * modules/wchar (Makefile.am): Likewise.
39079         * modules/wctype-h (Makefile.am): Likewise.
39080         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
39082 2011-04-05  Bruno Haible  <bruno@clisp.org>
39084         pipe2: Relicense under LGPLv2+.
39085         * modules/pipe2 (License): Change to LGPLv2+.
39086         Requested by Eric Blake, for libvirt.
39088 2011-04-05  Bruce Korb  <bkorb@gnu.org>
39090         bootstrap: compute gnulib_extra_files after updating build_aux
39091         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
39092         change build_aux or also supply gnulib_extra_files.  Handle correctly.
39094 2011-04-05  Eric Blake  <eblake@redhat.com>
39096         bootstrap: preserve git whitelist item sorting
39097         * build-aux/bootstrap (sort_patterns): New function.
39098         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
39100 2011-04-05  Simon Josefsson  <simon@josefsson.org>
39102         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
39103         sc_space_tab check.
39105 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
39107         areadlink, areadlinkat: rewrite in terms of careadlinkat
39108         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
39109         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
39110         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
39111         (malloc, realloc): Remove #undefs.
39112         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
39113         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
39114         readlink, ssize_t, stdint, unistd.
39115         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
39116         areadlink, stdint.
39118         careadlinkat: new module
39119         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
39120         * modules/careadlinkat: New files, written by me with
39121         a review and feedback from Ben Pfaff in
39122         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
39124 2011-04-01  Bruno Haible  <bruno@clisp.org>
39126         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
39127         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
39128         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
39129         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
39130         Reported by Bruce Korb <bruce.korb@gmail.com>.
39132 2011-04-01  Bruno Haible  <bruno@clisp.org>
39134         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
39135         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
39136         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
39137         * modules/wcpcpy (Depends-on): Add extensions.
39138         * modules/wcpncpy (Depends-on): Likewise.
39139         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
39140         systems.
39141         * doc/posix-functions/wcpncpy.texi: Likewise.
39142         * doc/posix-functions/wcwidth.texi: Likewise.
39144 2011-03-31  Eric Blake  <eblake@redhat.com>
39146         nonblocking: fix mingw test failures
39147         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
39148         non-blocking flag on regular file.
39149         (get_nonblocking_flag): Set errno on invalid fd.
39150         * tests/test-nonblocking.c (main): Avoid test failure on
39151         directories if fchdir is not active.
39152         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
39154 2011-03-31  Bruno Haible  <bruno@clisp.org>
39156         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
39157         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
39158         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
39159         Reported by Simon Josefsson <simon@josefsson.org>.
39161 2011-03-31  Bruno Haible  <bruno@clisp.org>
39162         and Eric Blake  <eblake@redhat.com>
39164         nonblocking: new module
39165         * modules/nonblocking: New module.
39166         * modules/nonblocking-tests: Likewise.
39167         * lib/nonblocking.h: New file.
39168         * lib/nonblocking.c: Likewise.
39169         * tests/test-nonblocking.c: New test.
39170         * lib/ioctl.c (ioctl) [mingw]: Update comment.
39172 2011-03-30  Bruno Haible  <bruno@clisp.org>
39174         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
39175         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
39176         instead of 'printf' format for GCC >= 4.4.
39177         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
39178         (fprintf, printf, vfprintf, vprintf): Declare with
39179         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
39180         the system's vfprintf() function.
39181         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
39183 2011-03-30  Eric Blake  <eblake@redhat.com>
39185         passfd: fix scoping bug
39186         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
39187         before sendmsg/recvmsg.
39189         passfd: standardize coding conventions
39190         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
39191         can be learned at compile time.
39192         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
39193         ifdefs.
39194         (sendfd, recvfd): Follow gnulib code conventions.
39196         passfd: fix incorrect sendmsg arguments
39197         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
39198         incorrect msg_controllen value.
39199         * modules/passfd-tests (Depends-on): Check for alarm.
39200         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
39201         Reported by Bastien ROUCARIES.
39203 2011-03-30  Bruno Haible  <bruno@clisp.org>
39205         c-strcasestr: Relicense under LGPLv2+.
39206         * modules/c-strcasestr (License): Change to LGPLv2+.
39207         Requested by Eric Blake, for libvirt.
39209 2011-03-30  Simon Josefsson  <simon@josefsson.org>
39211         * users.txt: Add libidn2.  Fix libtasn1 link.
39213 2011-03-30  Jim Meyering  <meyering@redhat.com>
39215         tests: readlink* ("",... fails with EINVAL on newer kernels
39216         readlink and readlinkat have typically failed with ENOENT for
39217         the invalid, empty file name,  "".  However, with the advent
39218         of linux-2.6.39, they fail with EINVAL.
39219         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
39220         when operating on the empty file name.
39221         * tests/test-readlink.h (test_readlink): Likewise.
39223 2011-03-29  Bruno Haible  <bruno@clisp.org>
39225         Relicense some modules under LGPLv2+, for libidn2.
39226         * modules/array-mergesort (License): Change to LGPLv2+.
39227         * modules/c-strcaseeq (License): Likewise.
39228         * modules/striconveh (License): Likewise.
39229         * modules/striconveha (License): Likewise.
39230         * modules/uniconv/base (License): Likewise.
39231         * modules/uniconv/u8-conv-from-enc (License): Likewise.
39232         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
39233         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
39234         * modules/unictype/base (License): Likewise.
39235         * modules/unictype/bidiclass-of (License): Likewise.
39236         * modules/unictype/category-M (License): Likewise.
39237         * modules/unictype/category-none (License): Likewise.
39238         * modules/unictype/category-of (License): Likewise.
39239         * modules/unictype/category-test (License): Likewise.
39240         * modules/unictype/category-test-withtable (License): Likewise.
39241         * modules/unictype/combining-class (License): Likewise.
39242         * modules/unictype/joiningtype-of (License): Likewise.
39243         * modules/unictype/scripts (License): Likewise.
39244         * modules/uninorm/base (License): Likewise.
39245         * modules/uninorm/canonical-decomposition (License): Likewise.
39246         * modules/uninorm/composition (License): Likewise.
39247         * modules/uninorm/decompose-internal (License): Likewise.
39248         * modules/uninorm/decomposition-table (License): Likewise.
39249         * modules/uninorm/nfc (License): Likewise.
39250         * modules/uninorm/nfd (License): Likewise.
39251         * modules/uninorm/u32-normalize (License): Likewise.
39252         * modules/unistr/base (License): Likewise.
39253         * modules/unistr/u32-cpy (License): Likewise.
39254         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
39255         * modules/unistr/u32-to-u8 (License): Likewise.
39256         * modules/unistr/u32-uctomb (License): Likewise.
39257         * modules/unistr/u8-check (License): Likewise.
39258         * modules/unistr/u8-mblen (License): Likewise.
39259         * modules/unistr/u8-mbtouc (License): Likewise.
39260         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
39261         * modules/unistr/u8-mbtoucr (License): Likewise.
39262         * modules/unistr/u8-prev (License): Likewise.
39263         * modules/unistr/u8-strlen (License): Likewise.
39264         * modules/unistr/u8-to-u32 (License): Likewise.
39265         * modules/unistr/u8-uctomb (License): Likewise.
39266         * modules/unitypes (License): Likewise.
39267         Requested by Simon Josefsson.
39269 2011-03-29  Simon Josefsson  <simon@josefsson.org>
39271         lib-symbol-visibility: Add a notice.
39272         * modules/lib-symbol-visibility (Notice): New field.
39274 2011-03-29  Bruno Haible  <bruno@clisp.org>
39276         getaddrinfo: Doc fix.
39277         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
39278         section "fixed in Gnulib".
39280 2011-03-28  Simon Josefsson  <simon@josefsson.org>
39282         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
39283         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
39285 2011-03-26  Bruno Haible  <bruno@clisp.org>
39287         unictype/property-byname: Reduce the number of load-time relocations.
39288         * lib/unictype/pr_byname.c: Include <stdlib.h>.
39289         (UC_PROPERTY_INDEX_*): New enumeration values.
39290         (uc_property_byname): Convert an index from the lookup table to an
39291         uc_property_t.
39292         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
39293         values.
39295 2011-03-26  Bruno Haible  <bruno@clisp.org>
39297         unictype/property-byname: Allow omitted word separators and aliases.
39298         * lib/unictype/pr_byname.gperf: Add property names without word
39299         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
39300         for 'space'.
39302 2011-03-26  Bruno Haible  <bruno@clisp.org>
39304         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
39305         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
39306         also hyphens to space.
39307         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
39308         without spaces.
39309         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
39311 2011-03-26  Bruno Haible  <bruno@clisp.org>
39313         unictype/joiningtype-byname: Recognize long names as well.
39314         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
39315         a long name.
39316         * lib/unictype/joiningtype_byname.c: Include <string.h>,
39317         unictype/joiningtype_byname.h.
39318         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
39319         * lib/unictype/joiningtype_byname.gperf: New file.
39320         * modules/unictype/joiningtype-byname (Files): Add
39321         lib/unictype/joiningtype_byname.gperf.
39322         (Depends-on): Add gperf.
39323         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
39324         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
39325         long names.
39327         Tests for module 'unictype/joiningtype-longname'.
39328         * modules/unictype/joiningtype-longname-tests: New file.
39329         * tests/unictype/test-joiningtype_longname.c: New file.
39331         New module 'unictype/joiningtype-longname'.
39332         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
39333         * lib/unictype/joiningtype_longname.c: New file.
39334         * modules/unictype/joiningtype-longname: New file.
39335         * modules/unictype/joiningtype-all (Depends-on): Add
39336         unictype/joiningtype-longname.
39338 2011-03-26  Bruno Haible  <bruno@clisp.org>
39340         unictype/bidiclass-byname: Recognize long names as well.
39341         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
39342         name.
39343         * lib/unictype/bidi_byname.c: Include <string.h>,
39344         unictype/bidi_byname.h.
39345         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
39346         * lib/unictype/bidi_byname.gperf: New file.
39347         * modules/unictype/bidiclass-byname (Files): Add
39348         lib/unictype/bidi_byname.gperf.
39349         (Depends-on): Add gperf.
39350         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
39351         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
39352         long names.
39354         Tests for module 'unictype/bidiclass-longname'.
39355         * modules/unictype/bidiclass-longname-tests: New file.
39356         * tests/unictype/test-bidi_longname.c: New file.
39358         New module 'unictype/bidiclass-longname'.
39359         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
39360         * lib/unictype/bidi_longname.c: New file.
39361         * modules/unictype/bidiclass-longname: New file.
39362         * modules/unictype/bidiclass-all (Depends-on): Add
39363         unictype/bidiclass-longname.
39365 2011-03-26  Bruno Haible  <bruno@clisp.org>
39367         unictype/bidi*: Rename modules.
39368         * modules/unictype/bidiclass-all: Renamed from
39369         modules/unictype/bidicategory-all.
39370         * modules/unictype/bidiclass-name: Renamed from
39371         modules/unictype/bidiclass-name.
39372         (Description): Update.
39373         * modules/unictype/bidiclass-name-tests: Renamed from
39374         modules/unictype/bidicategory-name-tests.
39375         * modules/unictype/bidiclass-byname: Renamed from
39376         modules/unictype/bidicategory-byname.
39377         (Description): Update.
39378         * modules/unictype/bidiclass-byname-tests: Renamed from
39379         modules/unictype/bidicategory-byname-tests.
39380         * modules/unictype/bidiclass-of: Renamed from
39381         modules/unictype/bidicategory-of.
39382         (Description): Update.
39383         * modules/unictype/bidiclass-of-tests: Renamed from
39384         modules/unictype/bidicategory-of-tests.
39385         * modules/unictype/bidiclass-test: Renamed from
39386         modules/unictype/bidicategory-test.
39387         (Description): Update.
39388         * modules/unictype/bidiclass-test-tests: Renamed from
39389         modules/unictype/bidicategory-test-tests.
39390         * modules/unictype/bidicategory-all: New file, a simple redirection.
39391         * modules/unictype/bidicategory-name: Likewise.
39392         * modules/unictype/bidicategory-byname: Likewise.
39393         * modules/unictype/bidicategory-of: Likewise.
39394         * modules/unictype/bidicategory-test: Likewise.
39395         * modules/unictype/property-bidi-* (Dependencies): Update.
39396         * lib/unictype/bidi_*.c: Update comment.
39398 2011-03-26  Bruno Haible  <bruno@clisp.org>
39400         unictype/bidi*: Rename functions, part 2.
39401         * modules/unictype/bidicategory-name (configure.ac): Update required
39402         libunistring version.
39403         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
39405 2011-03-25  Bruno Haible  <bruno@clisp.org>
39407         New module 'unictype/combining-class-all'.
39408         * modules/unictype/combining-class-all: New file.
39410         Tests for module 'unictype/combining-class-byname'.
39411         * modules/unictype/combining-class-byname-tests: New file.
39412         * tests/unictype/test-combiningclass_byname.c: New file.
39414         New module 'unictype/combining-class-byname'.
39415         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
39416         * lib/unictype/combiningclass_byname.c: New file.
39417         * lib/unictype/combiningclass_byname.gperf: New file.
39418         * modules/unictype/combining-class-byname: New file.
39420         Tests for module 'unictype/combining-class-longname'.
39421         * modules/unictype/combining-class-longname-tests: New file.
39422         * tests/unictype/test-combiningclass_longname.c: New file.
39424         New module 'unictype/combining-class-longname'.
39425         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
39426         * lib/unictype/combiningclass_longname.c: New file.
39427         * modules/unictype/combining-class-longname: New file.
39429         Tests for module 'unictype/combining-class-name'.
39430         * modules/unictype/combining-class-name-tests: New file.
39431         * tests/unictype/test-combiningclass_name.c: New file.
39433         New module 'unictype/combining-class-name'.
39434         * lib/unictype.in.h (uc_combining_class_name): New declaration.
39435         * lib/unictype/combiningclass_name.c: New file.
39436         * modules/unictype/combining-class-name: New file.
39438 2011-03-25  Bruno Haible  <bruno@clisp.org>
39440         unictype/combining-class: Rename source files.
39441         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
39442         of unictype/combining.h.
39443         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
39444         Update.
39445         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
39446         * modules/unictype/combining-class (Description): Fix.
39447         (Files, Makefile.am): Update.
39448         * tests/unictype/test-combiningclass.c: Renamed from
39449         tests/unictype/test-combining.c.
39450         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
39452 2011-03-25  Bruno Haible  <bruno@clisp.org>
39454         unictype: Update list of canonical combining classes.
39455         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
39457 2011-03-25  Bruno Haible  <bruno@clisp.org>
39459         unictype/category-byname: Recognize long names as well.
39460         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
39461         a long name.
39462         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
39463         unictype/categ_byname.h.
39464         (UC_CATEGORY_INDEX_*): New enumeration values.
39465         (uc_general_category_byname): Use uc_general_category_lookup and
39466         convert from index to value.
39467         * lib/unictype/categ_byname.gperf: New file.
39468         * modules/unictype/category-byname (Files): Add
39469         lib/unictype/categ_byname.gperf.
39470         (Depends-on): Add gperf.
39471         (Makefile.am): Add rule for generating unictype/categ_byname.h.
39472         * tests/unictype/test-categ_byname.c (main): Test the recognition of
39473         long names.
39475         Tests for module 'unictype/category-longname'.
39476         * modules/unictype/category-longname-tests: New file.
39477         * tests/unictype/test-categ_longname.c: New file.
39479         New module 'unictype/category-longname'.
39480         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
39481         * lib/unictype/categ_longname.c: New file.
39482         * modules/unictype/category-longname: New file.
39483         * modules/unictype/category-all (Depends-on): Add it.
39485 2011-03-25  Bruno Haible  <bruno@clisp.org>
39487         Tests for module 'unictype/category-LC'.
39488         * modules/unictype/category-LC-tests: New file.
39489         * tests/unictype/test-categ_LC.c: New file, automatically generated.
39491         New module 'unictype/category-LC'.
39492         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
39493         (UC_CATEGORY_LC): New declaration.
39494         (UC_CASED_LETTER): New macro.
39495         * lib/gen-uni-tables.c (is_category_LC): New function.
39496         (output_categories): Also handle category LC.
39497         (UC_CATEGORY_MASK_LC): New enumeration value.
39498         (general_category_byname): Also handle category LC.
39499         * lib/unictype/categ_LC.c: New file.
39500         * lib/unictype/categ_LC.h: New file, automatically generated.
39501         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
39502         category LC.
39503         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
39504         * modules/unictype/category-LC: New file.
39505         * modules/unictype/category-byname (Depends-on): Add
39506         unictype/category-LC.
39507         * modules/unictype/category-all (Depends-on): Likewise.
39509 2011-03-25  Eric Blake  <eblake@redhat.com>
39511         xmalloc: revert yesterday's regression
39512         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
39513         realloc's underlying behavior (allowing allocation of zero-size
39514         objects, especially if malloc-gnu is also in use).
39516 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
39518         maint.mk: add missing version to VC-tag
39519         * top/maint.mk: git tag was missing actual tag name; add it.
39521         valgrind: do leak checking, and exit with code 1 on error (not 0)
39522         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
39523         to VALGRIND.
39525 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
39527         posix-modules: say what it does.
39528         * posix-modules: Add a line to the --help output saying what it does.
39530 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
39532         xmalloc: Do not leak if underlying realloc is C99 compatible.
39533         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
39534         This avoids a leak on C99-based systems.  See
39535         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
39537 2011-03-24  Eric Blake  <eblake@redhat.com>
39539         realloc: document portability problem
39540         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
39541         passing 0 size to realloc.
39543 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
39545         doc: update users.txt
39546         * users.txt: Add cvsps, tmpwatch
39548 2011-03-23  Matt Rice  <ratmice@gmail.com>
39550         doc: update users.txt
39551         * users.txt: Add gdb.
39553 2011-03-23  Jim Meyering  <meyering@redhat.com>
39555         doc: update users.txt
39556         Looking through matches up to the following URL (there are still
39557         several more pages), I found several projects that use gnulib:
39558         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
39559         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
39560         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
39562 2011-03-22  Bruno Haible  <bruno@clisp.org>
39564         unictype/bidi*: Rename functions.
39565         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
39566         uc_bidi_class, uc_is_bidi_class): New declarations.
39567         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
39568         uc_bidi_category_byname.
39569         (uc_bidi_category_byname): New function.
39570         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
39571         u_bidi_category_name.
39572         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
39573         (uc_bidi_category_name): New function.
39574         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
39575         uc_bidi_category.
39576         (uc_bidi_category): New function.
39577         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
39578         uc_is_bidi_category. Invoke uc_bidi_class.
39579         (uc_is_bidi_category): New function.
39580         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
39581         instead of uc_bidi_category_byname.
39582         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
39583         instead of uc_bidi_category_name.
39584         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
39585         uc_bidi_category.
39586         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
39587         instead of uc_is_bidi_category.
39589 2011-03-21  Bruno Haible  <bruno@clisp.org>
39591         New module 'unictype/joininggroup-all'.
39592         * modules/unictype/joininggroup-all: New file.
39594         Tests for module 'unictype/joininggroup-of'.
39595         * modules/unictype/joininggroup-of-tests: New file.
39596         * tests/unictype/test-joininggroup_of.c: New file.
39597         * tests/unictype/test-joininggroup_of.h: New file, automatically
39598         generated by gen-uni-tables.
39600         New module 'unictype/joininggroup-of'.
39601         * modules/unictype/joininggroup-of: New file.
39602         * lib/unictype/joininggroup_of.c: New file.
39603         * lib/unictype/joininggroup_of.h: New file, automatically generated by
39604         gen-uni-tables.
39606         Tests for module 'unictype/joininggroup-byname'.
39607         * modules/unictype/joininggroup-byname-tests: New file.
39608         * tests/unictype/test-joininggroup_byname.c: New file.
39610         New module 'unictype/joininggroup-byname'.
39611         * modules/unictype/joininggroup-byname: New file.
39612         * lib/unictype/joininggroup_byname.c: New file.
39613         * lib/unictype/joininggroup_byname.gperf: New file.
39615         Tests for module 'unictype/joininggroup-name'.
39616         * modules/unictype/joininggroup-name-tests: New file.
39617         * tests/unictype/test-joininggroup_name.c: New file.
39619         New module 'unictype/joininggroup-name'.
39620         * modules/unictype/joininggroup-name: New file.
39621         * lib/unictype/joininggroup_name.c: New file.
39622         * lib/unictype/joininggroup_name.h: New file.
39624         New module 'unictype/joiningtype-all'.
39625         * modules/unictype/joiningtype-all: New file.
39627         Tests for module 'unictype/joiningtype-of'.
39628         * modules/unictype/joiningtype-of-tests: New file.
39629         * tests/unictype/test-joiningtype_of.c: New file.
39630         * tests/unictype/test-joiningtype_of.h: New file, automatically
39631         generated by gen-uni-tables.
39633         New module 'unictype/joiningtype-of'.
39634         * modules/unictype/joiningtype-of: New file.
39635         * lib/unictype/joiningtype_of.c: New file.
39636         * lib/unictype/joiningtype_of.h: New file, automatically generated by
39637         gen-uni-tables.
39639         Tests for module 'unictype/joiningtype-byname'.
39640         * modules/unictype/joiningtype-byname-tests: New file.
39641         * tests/unictype/test-joiningtype_byname.c: New file.
39643         New module 'unictype/joiningtype-byname'.
39644         * modules/unictype/joiningtype-byname: New file.
39645         * lib/unictype/joiningtype_byname.c: New file.
39647         Tests for module 'unictype/joiningtype-name'.
39648         * modules/unictype/joiningtype-name-tests: New file.
39649         * tests/unictype/test-joiningtype_name.c: New file.
39651         New module 'unictype/joiningtype-name'.
39652         * modules/unictype/joiningtype-name: New file.
39653         * lib/unictype/joiningtype_name.c: New file.
39655         unictype: Add support for Arabic shaping properties.
39656         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
39657         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
39658         declarations.
39659         (UC_JOINING_GROUP_*): New enumeration values.
39660         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
39661         declarations.
39662         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
39663         (unicode_joining_type): New variable.
39664         (UC_JOINING_GROUP_*): New enumeration values.
39665         (unicode_joining_group): New variable.
39666         (fill_arabicshaping, joining_type_as_c_identifier,
39667         output_joining_type_test, output_joining_type,
39668         joining_group_as_c_identifier, output_joining_group_test,
39669         output_joining_group): New functions.
39670         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
39671         fill_arabicshaping and output_joining_type_test, output_joining_type,
39672         output_joining_group_test, output_joining_group.
39673         Reported by Simon Josefsson.
39675 2011-03-21  Jim Meyering  <meyering@redhat.com>
39677         strftime: fix a bug in yesterday's change
39678         * lib/strftime.c (add): Accommodate width's initial value of -1.
39679         Otherwise, nstrftime would copy uninitialized data into
39680         the result buffer.
39682 2011-03-21  Jim Meyering  <meyering@redhat.com>
39684         tests: add strftime-tests module
39685         * tests/test-strftime.c: New file.
39686         * modules/strftime-tests: New module.
39688 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39690         strftime: don't assume a byte count fits in 'int'
39691         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
39692         found this problem by static analysis, using gcc -Wstrict-overflow
39693         (GCC 4.5.2, x86-64).  This reported an optimization that depended
39694         on an integer overflow having undefined behavior, but it turns out
39695         that the argument is a size, which might not fit in 'int' anyway,
39697 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39699         stdio: don't require ignore_value around fwrite
39701         This patch works around libc bug 11959
39702         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
39703         Without this patch, applications must often write
39704         ignore_value (fwrite (...)) even though the ignore_value is
39705         not helpful here.  It's common to write many objects, using
39706         fwrite/printf/etc., and then use ferror to detect output error.
39708         I considered making this patch optional, but decided against it,
39709         because libc is obviously being inconsistent here: there is no
39710         reason libc should insist that user code must inspect fwrite
39711         return's value without also insisting that it inspect printf's,
39712         putchar's, etc.  If user code wants to have a strict style where
39713         all these functions' values are checked (so that ferror need not
39714         be checked), we could add support for that style in a new gnulib
39715         module, but in the meantime it's better to be consistent and to
39716         support common usage.
39718         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
39719         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
39720         that we are compiling in checking mode, and if not C++, and
39721         if not already wrapping fwrite for some other reason.
39722         (fwrite): #define to rpl_fwrite if the latter is defined.
39724 2011-03-20  Bruno Haible  <bruno@clisp.org>
39726         verror: Fix compilation error introduced on 2011-02-13.
39727         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
39728         instead of __attribute__.
39729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39731 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
39732             Bruno Haible  <bruno@clisp.org>
39734         socklen: do not depend on sys_socket
39735         While trying to modify Emacs to use gnulib's socklen module,
39736         I discovered a circular dependency: socklen depends on sys_socket
39737         and vice versa.  Emacs can use socklen, but it does not need
39738         sys_socket because it has its own substitute for sys/socket.h.
39739         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
39740         gl_TYPE_SOCKLEN_T.
39741         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
39742         gl_PREREQ_SYS_H_SOCKET.
39743         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
39744         gl_PREREQ_SYS_H_SOCKET.
39745         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
39746         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
39747         * modules/socklen (Depends-on): Do not depend on sys_socket.
39748         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
39750 2011-03-20  Jim Meyering  <meyering@redhat.com>
39752         maint.mk: sort file names *after* new transformation
39753         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
39754         prefix would have led to an unwarranted failure in GNU parted.
39755         Sort after that transformation.
39757 2011-03-19  Jim Meyering  <meyering@redhat.com>
39759         maint.mk: fix po-file syntax-check rule
39760         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
39761         Patch by Bruno Haible.
39763 2011-03-19  Bruno Haible  <bruno@clisp.org>
39765         socklen: Update comment.
39766         * m4/socklen.m4: Update comment about platforms.
39768 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39769             Bruno Haible  <bruno@clisp.org>
39771         inet_ntop, inet_pton: Simplify.
39772         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
39773         documented to provide socklen_t and we already depend on sys_socket.
39774         * modules/inet_pton (Depends-on): Likewise.
39775         * lib/arpa_inet.in.h: Adjust comment.
39777 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39778             Bruno Haible  <bruno@clisp.org>
39780         netdb: Simplify.
39781         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
39782         documented to provide socklen_t and we already depend on sys_socket.
39783         * lib/netdb.in.h: Adjust comment.
39785 2011-03-19  Bruno Haible  <bruno@clisp.org>
39787         sys_socket, netdb: Document problem with socklen_t.
39788         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
39789         platforms.
39790         * doc/posix-headers/netdb.texi: Likewise.
39792 2011-03-18  Eric Blake  <eblake@redhat.com>
39794         maint.mk: let po check work in VPATH build
39795         * top/maint.mk (po_file): Allow cfg.mk override.
39796         (sc_po_check): Allow VPATH use.
39797         Reported by Jiri Denemark.
39799 2011-03-16  Jim Meyering  <meyering@redhat.com>
39801         maint.mk: allow fine-grained syntax-check exclusion via Make variables
39802         Before, you would have had to create one .x-sc_ file per rule in order
39803         to exempt offending files.  Now, you may instead use a Make variable --
39804         usually defined in cfg.mk -- whose name identifies the affected rule.
39805         * top/maint.mk (_sc_excl): Define.
39806         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
39807         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
39809 2011-03-13  Bruno Haible  <bruno@clisp.org>
39811         ignore-value tests: Avoid warnings.
39812         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
39813         empty for gcc < 3.4.
39815 2011-03-13  Bruno Haible  <bruno@clisp.org>
39817         passfd: Fix link error on Solaris.
39818         * modules/passfd (Description): Correct.
39819         (Depends-on): Add socketlib.
39820         (Link): New section.
39821         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
39823 2011-03-13  Bruno Haible  <bruno@clisp.org>
39825         passfd: Fix link error on AIX 5.2.
39826         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
39828 2011-03-13  Bruno Haible  <bruno@clisp.org>
39830         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
39831         * lib/sys_socket.in.h: Include <stddef.h>.
39832         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
39833         CMSG_FIRSTHDR. Remove unused variable.
39835 2011-03-13  Bruno Haible  <bruno@clisp.org>
39837         passfd: Fix compilation error on OpenBSD.
39838         * lib/passfd.c: Include <sys/uio.h>.
39840 2011-03-13  Bruno Haible  <bruno@clisp.org>
39842         passfd test: Fix warnings.
39843         * tests/test-passfd.c: Include <sys/wait.h>.
39844         (main): Fix typo.
39846 2011-03-13  Bruno Haible  <bruno@clisp.org>
39848         passfd module, part 4, tweaks.
39849         * tests/test-passfd.c: Reorder includes.
39850         (main): Fix perror and printf calls.
39852 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39854         passfd module, part 4.
39855         * modules/passfd-tests: New file.
39856         * tests/test-passfd.c: New file.
39858 2011-03-13  Jim Meyering  <meyering@redhat.com>
39860         Makefile: rely on GNU make; derive syntax-check rule names
39861         Rather than requiring that each sc_ rule be listed as a dependent
39862         of "check", use features of GNU make to derive the list.
39863         * Makefile (syntax-check-rules): Define.
39864         (check): Depend on the new variable, not the hard-coded list.
39866 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
39867             Bruno Haible  <bruno@clisp.org>
39869         passfd module, part 3.
39870         * lib/passfd.h (recvfd): Add a flags argument.
39871         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
39872         (recvfd): Add a flags argument.
39873         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
39874         exists.
39875         * modules/passfd (Depends-on): Add cloexec.
39876         Suggested by Eric Blake.
39878 2011-03-13  Bruno Haible  <bruno@clisp.org>
39880         passfd module, part 2, tweaks.
39881         * modules/passfd (Files): Reorder.
39882         (Depends-on): Remove errno.
39883         (Include): Remove <sys/socket.h>, <sys/un.h>.
39884         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
39885         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
39886         specification header. Include <sys/socket.h> always. Don't include
39887         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
39888         (sendfd): Clarify that it sets errno when it fails.
39889         (recvfd): Fix specification.
39891 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39893         passfd module, part 2.
39894         * modules/passfd: New file.
39895         * lib/passfd.h: New file.
39896         * lib/passfd.c: New file.
39898 2011-03-12  Bruno Haible  <bruno@clisp.org>
39900         wcswidth, mbswidth: Avoid integer overflow.
39901         * lib/wcswidth.c: Include <limits.h>.
39902         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
39903         * lib/mbswidth.c: Include <limits.h>.
39904         (mbsnwidth): Avoid 'int' overflow.
39905         Reported by Jim Meyering.
39907 2011-03-12  Bruno Haible  <bruno@clisp.org>
39909         futimens, utimensat: Avoid endless recursion on Solaris 10.
39910         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
39911         Solaris.
39912         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
39913         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
39915 2011-03-11  Jim Meyering  <meyering@redhat.com>
39917         maint.mk: relax a regexp to accommodate other formatting styles
39918         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
39919         between "ngettext" and the following "(".
39921 2011-03-11  Pádraig Brady  <P@draigBrady.com>
39923         maint.mk: suppress a false positive warning
39924         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
39925         diagnostics are marked with ngettext.
39927 2011-03-10  Eric Blake  <eblake@redhat.com>
39929         wchar: add explicit dependencies, for Tru64
39930         * modules/mbmemcasecoll (Depends-on): Add wchar.
39931         * modules/mbtowc (Depends-on): Likewise.
39932         * modules/vasnprintf (Depends-on): Likewise.
39933         * modules/unistdio/u-printf-args (Depends-on): Likewise.
39934         * modules/wctomb (Depends-on): Likewise.
39935         Reported by Peter O'Gorman.
39937 2011-03-08  Bruno Haible  <bruno@clisp.org>
39939         passfd module, part 1, tweaks.
39940         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
39941         Improve indentation. Improve AC_MSG_CHECKING messages.
39942         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
39943         gl_SOCKET_FAMILIES.
39945 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
39947         passfd module, part 1.
39948         * m4/afunix.m4: New file.
39949         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
39950         sockets.
39952 2011-03-08  Bruno Haible  <bruno@clisp.org>
39954         regex-quote: New API.
39955         * lib/regex-quote.h: Include <stdbool.h>.
39956         (struct regex_quote_spec): New type.
39957         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
39958         New declarations.
39959         (regex_quote_length, regex_quote_copy, regex_quote): Take a
39960         'const struct regex_quote_spec *' argument.
39961         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
39962         (pcre_special): New constant.
39963         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
39964         New functions.
39965         (regex_quote_length, regex_quote_copy, regex_quote): Take a
39966         'const struct regex_quote_spec *' argument.
39967         * modules/regex-quote (Depends-on): Add stdbool.
39968         * tests/test-regex-quote.c (check): Update for new API. Add test for
39969         anchored results.
39970         * NEWS: Mention the API change.
39971         Reported by Reuben Thomas and Eric Blake.
39973 2011-03-06  Bruno Haible  <bruno@clisp.org>
39975         regex-quote: Fix creation of POSIX extended regular expressions.
39976         * lib/regex-quote.c (ere_special): Add grouping and alternation
39977         operators.
39979 2011-03-05  Bruno Haible  <bruno@clisp.org>
39981         doc: Improve doc regarding autopoint vs. gnulib.
39982         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
39983         disable autopoint while running autoreconf.
39984         Suggested by Ralf Wildenhues.
39986 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39988         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
39989         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
39991 2011-03-03  Bruce Korb  <bkorb@gnu.org>
39993         parse-duration: remove xalloc.h dependency
39994         * lib/parse-duration.c (parse_period): handle NULL return from
39995         strdup instead of calling xstrdup().
39996         * modules/parse-duration: remove "xalloc" dependency
39998 2011-03-03  Matthew Booth  <mbooth@redhat.com>
40000         bootstrap: honor m4_base when running aclocal
40001         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
40003 2011-03-02  Jim Meyering  <meyering@redhat.com>
40005         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
40006         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
40007         on request from Matt Booth.
40009 2011-03-01  Eric Blake  <eblake@redhat.com>
40011         test-link: work on Hurd
40012         * tests/test-link.h (test_link): Hurd rejects linking directories
40013         with EISDIR instead of the POSIX-mandated EPERM.
40015 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
40017         stdio: simplify by moving files to printf-posix, sigpipe
40018         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
40019         since this symbol is needed only if printf is replaced.
40020         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
40021         Require gl_ASM_SYMBOL_PREFIX.
40022         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
40023         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
40024         (Depends-on): Add 'raise'.
40025         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
40026         * modules/stdio (Files): Remove lib/stdio-write.c,
40027         m4/asm-underscore.m4.
40028         (Depends-on): Remove 'raise'.
40030         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
40031         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
40032         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
40033         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
40035 2011-02-28  Bruno Haible  <bruno@clisp.org>
40037         localcharset: Assume ANSI C behaviour of free().
40038         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
40039         calling free().
40040         Suggested by Simon Josefsson <simon@josefsson.org>.
40042 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
40043             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
40044             Bruno Haible  <bruno@clisp.org>  (tiny change)
40046         On Cygwin, use /proc file system instead of win32 API.
40047         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
40048         Win32 file names.
40049         (DllMain): Simplify by removing Cygwin specific code.
40050         (find_shared_library_fullname): Use Linux specific implementation also
40051         for Cygwin.
40052         (get_shared_library_fullname): Update accordingly.
40053         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
40054         Win32 file names.
40055         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
40056         Cygwin specific code.
40058 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
40059             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
40061         Fix OpenMP flag detection for various Fortran compilers.
40062         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
40063         OpenMP-conditional compilation construct, to force compile
40064         failure with missing OpenMP flag.
40065         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
40067 2011-02-25  Eric Blake  <eblake@redhat.com>
40069         strstr: expand test coverage
40070         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
40071         compilation.
40072         * tests/test-memmem.c (main): Duplicate tests.
40073         * tests/test-strcasestr.c (main): Likewise.
40074         * tests/test-c-strcasestr.c (main): Likewise.
40076 2011-02-25  Jim Meyering  <meyering@redhat.com>
40078         maint.mk: detect missing-NL-at-EOF, too
40079         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
40080         it also detects when a file lacks a newline at EOF.
40081         (require_exactly_one_NL_at_EOF_): Renamed from
40082         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
40083         since people may well have .x-sc_... file names tied to the
40084         existing name.  Suggested by Eric Blake.
40086 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40088         dirname: move m4/dos.m4 functionality into lib/dosname.h
40090         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
40091         extracts symbols from it, puts them into config.h; but it's much
40092         easier to use the symbols directly.  filename.h already does this,
40093         but it disagrees with dos.m4 in some respects.  This patch
40094         introduces a different include file dosname.h that packages up
40095         dos.m4, and then later we can work on merging filename.h and
40096         dosname.h.  Applications that need only the easy-to-configure
40097         symbols should consider including dosname.h rather than dirname.h.
40098         * NEWS: Mention incompatible changes.
40099         * m4/dos.m4: Remove.
40100         * lib/dosname.h, modules/dosname: New files.
40101         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
40102         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
40103         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
40104         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
40105         Include dosname.h, not dirname.h.
40106         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
40107         Include dosname.h, for definitions of symbols like ISSLASH
40108         that used to be in config.h.
40109         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
40110         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
40111         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40112         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40113         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
40114         * modules/rmdir (Files): Likewise.
40115         * modules/stat (Files): Likewise.
40116         * modules/unlink (Files): Likewise.
40117         * modules/dirname-lgpl (Depends-on): Add dosname.
40118         * modules/lstat (Depends-on): Likewise.
40119         * modules/openat (Depends-on): Likewise.
40120         * modules/rmdir (Depends-on): Likewise.
40121         * modules/savewd (Depends-on): Likewise.
40122         * modules/stat (Depends-on): Likewise.
40123         * modules/unlink (Depends-on): Likewise.
40124         * modules/openat (Depends-on): Remove dirname-lgpl.
40125         * modules/savewd (Depends-on): Likewise.
40126         * tests/test-dirname.c: Do not use removed symbols like
40127         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
40128         the remaining symbols, e.g., ISSLASH ('\\').
40130 2011-02-25  Eric Blake  <eblake@redhat.com>
40132         strstr: revert patches that introduced bug and pessimization
40133         * lib/str-two-way.h: Add another reference.
40134         (two_way_short_needle, two_way_long_needle): Revert changes from
40135         2011-02-24; they pessimize search speed.
40136         (critical_factorization): Partially revert changes from
40137         2010-06-22; they violate the requirement that the left half of the
40138         needle be smaller than the period of the needle.
40140 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
40142         filenamecat: remove unnecessary dependency on dirname-lgpl
40143         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
40144         is no direct dependency, just an indirect one via filenamecat-lgpl.
40146         remove: remove unnecessary use of m4/dos.m4
40147         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
40148         * modules/remove (FILES): Remove m4/dos.m4.
40150         * lib/openat-proc.c: Don't include dirname.h; not needed.
40152         backupfile: remove unnecessary use of m4/dos.m4
40153         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
40154         of its symbols are used by the backupfile code.  backupfile.c does
40155         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
40156         for the rare case of programs that want all their backup file
40157         names to live within 8+3 limits, and dos.m4 doesn't address that.
40158         * modules/backupfile (Files): Remove m4/dos.m4.
40160 2011-02-24  Jim Meyering  <meyering@redhat.com>
40162         strstr: fix a bug whereby strstr would mistakenly return NULL
40163         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
40164         in period calculation.
40165         (two_way_long_needle): Likewise.
40166         The original problem was reported by Mike Stump in
40167         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
40168         Ralf Wildenhues provided the short needle and haystack.
40169         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
40170         Add a more involved test to trigger the bug in two_way_long_needle.
40172 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40174         gnulib-tool: remove use of bold display in help screen
40175         * gnulib-tool (func_usage): Do not use bold display anymore in the
40176         help screen.  That was just meant to be a temporary emphasis for a
40177         backward-incompatible change.
40179 2011-02-23  Bruno Haible  <bruno@clisp.org>
40181         Fix misindentation of preprocessor directives.
40182         * lib/argp-namefrob.h: Reindent preprocessor directives.
40183         * lib/getopt_int.h (struct _getopt_data): Likewise.
40184         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
40185         * lib/vasnprintf.c (decode_long_double): Likewise.
40186         * tests/test-argmatch.c: Insert blank lines, for clarity.
40187         * tests/test-exclude.c: Likewise.
40189 2011-02-22  Bruno Haible  <bruno@clisp.org>
40191         ioctl: Fix for MacOS X in 64-bit mode.
40192         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
40193         value.
40194         Suggested by Eric Blake.
40195         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
40197 2011-02-22  Jim Meyering  <meyering@redhat.com>
40199         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
40200         * Makefile (sc_cpp_indent_check): Don't limit the check to files
40201         in lib/.
40203 2011-02-22  Eric Blake  <eblake@redhat.com>
40205         maint: avoid any CDPATH issue
40206         * Makefile (sc_cpp_indent_check): Anchor cd argument.
40208         maint: adjust cpp indentation for my modules, as well
40209         * Makefile (sc_cpp_indent_check): Add my name.
40210         * lib/fbufmode.c: Filter through cppi.
40211         * lib/fpurge.c: Likewise.
40212         * lib/freadable.c: Likewise.
40213         * lib/freading.c: Likewise.
40214         * lib/fwritable.c: Likewise.
40215         * lib/fwriting.c: Likewise.
40216         * lib/sigaction.c: Likewise.
40218 2011-02-22  Jim Meyering  <meyering@redhat.com>
40220         maint: adjust cpp indentation to reflect nesting depth
40221         I.e., in a block of code that begins with an unnested "#if",
40222         put one space between the "#" in column 1 and following token.
40223         For example,
40224         -#include <sys/vfs.h>
40225         +# include <sys/vfs.h>
40226         Do this only in .c files that are part of a module I maintain.
40227         * lib/linkat.c: Filter through cppi.
40228         * lib/nanosleep.c: Likewise.
40229         * lib/openat.c: Likewise.
40230         * lib/openat-die.c: Likewise.
40231         * lib/dup3.c: Likewise.
40232         * lib/fchownat.c: Likewise.
40233         * lib/flock.c: Likewise.
40234         * lib/fsync.c: Likewise.
40235         * lib/fts.c: Likewise.
40236         * lib/getpass.c: Likewise.
40237         * lib/gettimeofday.c: Likewise.
40238         * lib/userspec.c: Likewise.
40239         * Makefile (sc_cpp_indent_check): New rule, to check this.
40241 2011-02-22  Bruno Haible  <bruno@clisp.org>
40243         New module 'wctomb'.
40244         * lib/stdlib.in.h (wctomb): New declaration.
40245         * lib/wctomb.c: New file.
40246         * lib/wctomb-impl.h: New file.
40247         * m4/wctomb.m4: New file.
40248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
40249         REPLACE_WCTOMB.
40250         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
40251         REPLACE_WCTOMB.
40252         * modules/wctomb: New file.
40253         * tests/test-stdlib-c++.cc: Test signature of wctomb.
40254         * doc/posix-functions/wctomb.texi: Mention the new module.
40255         * modules/wctob (Depends-on): Add wctomb.
40257 2011-02-22  Bruno Haible  <bruno@clisp.org>
40259         New module 'mbtowc'.
40260         * lib/stdlib.in.h (mbtowc): New declaration.
40261         * lib/mbtowc.c: New file.
40262         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
40263         * m4/mbtowc.m4: New file.
40264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
40265         REPLACE_MBTOWC.
40266         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
40267         REPLACE_MBTOWC.
40268         * modules/mbtowc: New file.
40269         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
40270         * doc/posix-functions/mbtowc.texi: Mention the new module.
40271         * modules/btowc (Depends-on): Add mbtowc.
40273 2011-02-22  Bruno Haible  <bruno@clisp.org>
40275         wcrtomb: Add more tests for native Windows platforms.
40276         * tests/test-wcrtomb-w32-1.sh: New file.
40277         * tests/test-wcrtomb-w32-2.sh: New file.
40278         * tests/test-wcrtomb-w32-3.sh: New file.
40279         * tests/test-wcrtomb-w32-4.sh: New file.
40280         * tests/test-wcrtomb-w32-5.sh: New file.
40281         * tests/test-wcrtomb-w32.c: New file.
40282         * modules/wcrtomb-tests (Files): Add them.
40283         (Makefile.am): Arrange to run these tests.
40284         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
40285         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
40287 2011-02-20  Bruno Haible  <bruno@clisp.org>
40289         wcrtomb: Enhance test.
40290         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
40292 2011-02-20  Bruno Haible  <bruno@clisp.org>
40294         mbrtowc: Tiny optimization.
40295         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
40297 2011-02-20  Jim Meyering  <meyering@redhat.com>
40299         test-exclude.c: remove unmatched #endif
40300         * tests/test-exclude.c: Remove stray #endif, left over from
40301         the change of a week ago.
40303 2011-02-19  Jim Meyering  <meyering@redhat.com>
40305         git-version-gen: skip "-dirty" check when appropriate
40306         * build-aux/git-version-gen: Don't run any git commands when the
40307         version string comes from .tarball-version.  Prior to this, we
40308         would run git update-index --refresh even from a just-unpacked
40309         tarball directory, and that could affect a .git/ directory in a
40310         parent of the build directory.  Reported by Mike Frysinger.
40312 2011-02-19  Bruno Haible  <bruno@clisp.org>
40314         unictype/property-byname: Reduce the size of the 'data' segment.
40315         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
40317 2011-02-19  Bruno Haible  <bruno@clisp.org>
40319         unictype/scripts: Reduce the size of the 'data' segment.
40320         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
40321         '%pic'.
40322         * lib/unictype/scripts_byname.gperf: Regenerated.
40324 2011-02-19  Bruno Haible  <bruno@clisp.org>
40326         stdint: Update documentation.
40327         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
40329 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
40331         stdint: omit redundant check for wchar.h
40332         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
40333         always tests whether wchar.h exists, so remove the now-redundant test.
40335 2011-02-18  Bruno Haible  <bruno@clisp.org>
40337         stdint: Cut dependency to module 'wchar'.
40338         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
40339         include the necessary prerequisites.
40340         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
40341         * modules/stdint (Depends-on): Remove wchar.
40342         (Makefile.am): Substitute HAVE_WCHAR_H.
40343         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
40345 2011-02-18  Eric Blake  <eblake@redhat.com>
40347         longlong: skip, rather than fail, on cross-compilation
40348         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
40349         when cross-compiling; regression from 2011-02-16.
40351 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40353         * NEWS: Mention 2011-02-08 change to stdlib.
40355 2011-02-17  Bruno Haible  <bruno@clisp.org>
40357         getloadavg: Add comments about platforms.
40358         * m4/getloadavg.m4: Add comment.
40359         * lib/getloadavg.c: Likewise.
40361 2011-02-17  Bruno Haible  <bruno@clisp.org>
40363         getloadavg: Fix link error on Solaris 2.6.
40364         * modules/getloadavg (Link): New section.
40365         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
40366         linking test-getloadavg.
40367         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
40368         getloadavg.
40370 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40372         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
40373         It was 'int', but this doesn't match the IRIX 6.5 manual.
40374         Suggested by Bruno Haible in
40375         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
40377 2011-02-17  Bruno Haible  <bruno@clisp.org>
40379         havelib: Fix comments.
40380         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
40381         change.
40383 2011-02-17  Bruno Haible  <bruno@clisp.org>
40385         havelib: Update config.rpath.
40386         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
40388 2011-02-17  Bruno Haible  <bruno@clisp.org>
40390         getloadavg test: Add some plausibility checks.
40391         * tests/test-getloadavg.c (check_avg): Print a warning when the value
40392         is improbable.
40394 2011-02-16  Eric Blake  <eblake@redhat.com>
40396         maintainer-makefile: make syntax-check a no-op from tarballs
40397         * top/maint.mk (no-vc-detected): New rule.
40398         (local-checks-available): Use it to avoid hanging if someone tries
40399         'make syntax-check' from a tarball.  Also append to any non-syntax
40400         checks already defined in cfg.mk.
40402 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
40404         longlong: tune, particularly for common case of c99
40406         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
40407         or running anything if c99, or if unsigned long long int does not
40408         work.  In either case, we know the answer without further tests.
40409         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
40410         it at most once, and use its results for both long long int and
40411         unsigned long long int.  This is more likely to be efficient in
40412         the common case where the program wants to check for both long
40413         long int and unsigned long long int.
40414         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
40415         since the answer is already known.
40417 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
40419         getloadavg: set errno
40420         * lib/getloadavg.c: Set errno when returning -1.  If no other
40421         error number looks appropriate, set it to ENOSYS if the getloadavg
40422         looks like it can't possibly ever work, ENOTSUP otherwise.
40423         Suggested by Bruno Haible in
40424         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
40426         getloadavg: trim unused parts and speed up 'configure'
40427         * NEWS: Document this.
40428         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
40429         always compiled if getloadavg is absent.
40430         Move test code to ...
40431         * tests/test-getloadavg.c: New file, containing previous
40432         contents of test from lib/getloadavg.c.  It also contains
40433         suggestions by Bruno Haible in
40434         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
40435         * modules/getloadavg-tests: New file.
40436         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
40437         Do tests in the same order as they're needed for getloadavg.c.
40438         Omit setgid-related tests that generate symbols KMEM_GROUP,
40439         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
40440         Do only the tests that are needed to see whether the system has
40441         getloadavg, moving the other tests into ...
40442         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
40443         NLIST_NAME_UNION; nobody should be using it.  Do not define
40444         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
40445         relevant, as the user of this module shouldn't care how getloadavg
40446         is implemented.
40448         getloadavg: omit unused var
40449         * lib/getloadavg.c (getloadavg): Omit unused local variable.
40451 2011-02-15  Jim Meyering  <meyering@redhat.com>
40453         doc: update users.txt
40454         * users.txt: Update iwhd's URL.
40456 2011-02-13  Bruno Haible  <bruno@clisp.org>
40458         Consistent macro naming for macros that use GCC __attribute__.
40459         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
40460         _ATTRIBUTE_NONNULL_.
40461         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
40462         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
40463         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
40464         ATTRIBUTE_DEPRECATED.
40465         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
40466         ATTRIBUTE_NORETURN.
40467         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40468         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40469         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40470         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40471         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
40472         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
40473         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
40474         ATTRIBUTE_SENTINEL.
40475         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
40476         ATTRIBUTE_RETURN_CHECK.
40477         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
40478         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
40479         ATTRIBUTE_NORETURN.
40480         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
40481         Reported by Paul Eggert.
40483 2011-02-13  Bruno Haible  <bruno@clisp.org>
40485         Don't interfere with a program's definition of __attribute__.
40486         * lib/argp.h (__attribute__): Remove definition.
40487         (_GL_ATTRIBUTE_FORMAT): New macro.
40488         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
40489         * lib/argp-fmtstream.h (__attribute__): Remove definition.
40490         (_GL_ATTRIBUTE_FORMAT): New macro.
40491         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
40492         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
40493         GCC 3 or newer.
40494         * lib/error.h (__attribute__): Remove definition.
40495         (_GL_ATTRIBUTE_FORMAT): New macro.
40496         (error, error_at_line): Use it.
40497         * lib/hash.h (__attribute__): Remove definition.
40498         (ATTRIBUTE_WUR): Update definition. Define always.
40499         * lib/openat.h (__attribute__): Remove definition.
40500         (ATTRIBUTE_NORETURN): Update definition. Define always.
40501         * lib/sigpipe-die.h (__attribute__): Remove definition.
40502         (ATTRIBUTE_NORETURN): Update definition. Define always.
40503         * lib/vasnprintf.h (__attribute__): Remove definition.
40504         (_GL_ATTRIBUTE_FORMAT): New macro.
40505         (asnprintf, vasnprintf): Use it.
40506         * lib/xalloc.h (__attribute__): Remove definition.
40507         (ATTRIBUTE_NORETURN): Update definition. Define always.
40508         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
40509         * lib/xmemdup0.h (__attribute__): Remove definition.
40510         (ATTRIBUTE_NORETURN): Update definition. Define always.
40511         * lib/xprintf.h (__attribute__): Remove definition.
40512         (_GL_ATTRIBUTE_FORMAT): New macro.
40513         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
40514         * lib/xstrtol.h (__attribute__): Remove definition.
40515         (ATTRIBUTE_NORETURN): Update definition. Define always.
40516         * lib/xvasprintf.h (__attribute__): Remove definition.
40517         (_GL_ATTRIBUTE_FORMAT): New macro.
40518         (xasprintf, xvasprintf): Use it.
40519         * tests/test-argmatch.c (__attribute__): Remove definition.
40520         (ATTRIBUTE_NORETURN): Update definition. Define always.
40521         * tests/test-exclude.c (__attribute__): Remove definition.
40522         (ATTRIBUTE_NORETURN): Update definition. Define always.
40523         Reported by Paul Eggert.
40525 2011-02-13  Bruno Haible  <bruno@clisp.org>
40527         mbrtowc: Add more tests for native Windows platforms.
40528         * tests/test-mbrtowc-w32-1.sh: New file.
40529         * tests/test-mbrtowc-w32-2.sh: New file.
40530         * tests/test-mbrtowc-w32-3.sh: New file.
40531         * tests/test-mbrtowc-w32-4.sh: New file.
40532         * tests/test-mbrtowc-w32-5.sh: New file.
40533         * tests/test-mbrtowc-w32.c: New file.
40534         * modules/mbrtowc-tests (Files): Add them.
40535         (Makefile.am): Arrange to run these tests.
40536         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
40537         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
40539 2011-02-13  Bruno Haible  <bruno@clisp.org>
40541         mbrtowc: Work around native Windows bug.
40542         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
40543         guess when no suitable locale for testing was found.
40544         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
40546 2011-02-13  Bruno Haible  <bruno@clisp.org>
40548         mbsinit: Work around mingw bug.
40549         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
40550         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
40551         Windows.
40552         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
40554 2011-02-13  Bruno Haible  <bruno@clisp.org>
40556         mbsinit: Don't crash for a NULL argument.
40557         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
40558         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
40560 2011-02-13  Bruno Haible  <bruno@clisp.org>
40562         Don't interfere with a program's definition of __attribute__.
40563         * lib/stdio.in.h (__attribute__): Remove definition.
40564         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
40565         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
40566         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
40567         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
40568         * lib/string.in.h (__attribute__): Remove definition.
40569         Reported by Paul Eggert.
40571 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40573         stdlib: don't get in the way of non-GCC __attribute__
40574         See thread starting at
40575         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
40576         Revert previous stdlib change, installing the following instead:
40577         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
40578         to get in the way of a non-GCC compiler that supports __attribute__.
40579         (_GL_ATTRIBUTE_RETURN): New macro.
40580         (_Exit): Use it instead of __attribute__.
40582 2011-02-12  Bruno Haible  <bruno@clisp.org>
40584         quotearg test: Avoid test failure on mingw.
40585         * tests/test-quotearg.sh: Convert the locale identifier from native
40586         Windows syntax to Unix syntax.
40588 2011-02-12  Bruno Haible  <bruno@clisp.org>
40590         setlocale: Prefer gnulib's override over libintl's override.
40591         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
40592         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
40593         GNULIB_defined_setlocale is set.
40595 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40597         stdlib: support non-GCC __attribute__
40599         Fix a serious and tricky problem encountered when attempting to
40600         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
40601         5.5, but it crashed due to memory corruption on Solaris 10 with
40602         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
40603         bits that are otherwise zero.  This tagging is optional inside
40604         Emacs but is preferred and is used when __attribute__ ((__aligned
40605         (8))) works, as it does with both recent-enough GCC and with Sun C
40606         5.11.  However, Sun C 5.11 is not GCC and does not #define
40607         __GNUC__ and __GNUC_MINOR__.
40609         When I added the getloadavg module to Emacs, it brought in
40610         stdlib.in.h, which contained this fragment:
40612            #ifndef __attribute__
40613            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
40614            #  define __attribute__(Spec)   /* empty */
40615            # endif
40616            #endif
40618         When files that include <stdlib.h> were compiled with Sun C 5.11,
40619         the above code disabled __attribute__ ((__aligned (8))), which
40620         caused variables to not be properly aligned, which eventually led
40621         to the pointer corruption mentioned above.  (This was a bit hard
40622         to diagnose, unfortunately.)
40624         Several "#define __attribute__(X) /* empty */" code snippets need
40625         to be eradicated from Gnulib to work with non-GCC compilers that
40626         support __attribute__.  The Autoconf way to do this is to test for
40627         each kind of attribute that we want support for, and selectively
40628         enable that in source code.
40630         Fix this problem just for stdlib.h, by adding a test for the
40631         __noreturn__ attribute, and change stdlib.in.h to use that test
40632         when needed.  This technique can be easily generalized to the
40633         other *.in.h files and attributes, and a similar technique can be
40634         used for *.h and *.c files.  This patch is enough to solve the
40635         problem for Emacs + getloadavg, and I thought I'd publish it for
40636         feedback before undertaking further, similar fixes in other
40637         modules.
40639         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
40640         because it's not needed for stdlib.h.  It merely substitutes the
40641         value directly into stdlib.h.  We may well need to #define it, or
40642         similar symbols, for other modules, but it's nice to also have an
40643         option to not #define it for applications like Emacs that do not
40644         need it.
40646         * lib/stdlib.in.h (__attribute__): Do not #define.
40647         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
40648         be defined only if the _Exit module is also used.
40649         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
40650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
40651         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
40652         platforms.
40653         * modules/_Exit (Files): Add m4/attribute.m4.
40654         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
40655         * m4/attribute.m4: New file.
40657 2011-02-12  Bruno Haible  <bruno@clisp.org>
40659         wcsrtombs: Work around bug on native Windows.
40660         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
40661         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
40662         instead of len.
40663         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
40665 2011-02-12  Bruno Haible  <bruno@clisp.org>
40667         mbsrtowcs: Work around bug on native Windows.
40668         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
40669         against mingw bug.
40670         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
40672 2011-02-12  Bruno Haible  <bruno@clisp.org>
40674         Avoid setlocale bugs in tests.
40675         * modules/btowc (Dependencies): Add setlocale.
40676         * modules/c-strcase (Dependencies): Likewise.
40677         * modules/mbmemcasecmp (Dependencies): Likewise.
40678         * modules/mbmemcasecoll (Dependencies): Likewise.
40679         * modules/mbrtowc (Dependencies): Likewise.
40680         * modules/mbscasecmp (Dependencies): Likewise.
40681         * modules/mbscasestr (Dependencies): Likewise.
40682         * modules/mbschr (Dependencies): Likewise.
40683         * modules/mbscspn (Dependencies): Likewise.
40684         * modules/mbsinit (Dependencies): Likewise.
40685         * modules/mbsncasecmp (Dependencies): Likewise.
40686         * modules/mbsnrtowcs (Dependencies): Likewise.
40687         * modules/mbspbrk (Dependencies): Likewise.
40688         * modules/mbspcasecmp (Dependencies): Likewise.
40689         * modules/mbsrchr (Dependencies): Likewise.
40690         * modules/mbsrtowcs (Dependencies): Likewise.
40691         * modules/mbsspn (Dependencies): Likewise.
40692         * modules/mbsstr (Dependencies): Likewise.
40693         * modules/nl_langinfo (Dependencies): Likewise.
40694         * modules/quotearg (Dependencies): Likewise.
40695         * modules/unicase/locale-language (Dependencies): Likewise.
40696         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
40697         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
40698         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
40699         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
40700         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
40701         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
40702         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
40703         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
40704         * modules/vasnprintf-posix (Dependencies): Likewise.
40705         * modules/wcrtomb (Dependencies): Likewise.
40706         * modules/wcsnrtombs (Dependencies): Likewise.
40707         * modules/wcsrtombs (Dependencies): Likewise.
40709 2011-02-12  Bruno Haible  <bruno@clisp.org>
40711         setlocale: Workaround native Windows bug.
40712         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
40713         succeeds but sets LC_CTYPE to "C", report a failure.
40714         * tests/test-setlocale2.sh: New file.
40715         * tests/test-setlocale2.c: New file.
40716         * modules/setlocale-tests (Files): Add the new files.
40717         (Makefile.am): Enable test-setlocale2.sh test.
40718         * doc/posix-functions/setlocale.texi: Mention workaround.
40720 2011-02-11  Bruno Haible  <bruno@clisp.org>
40722         Tests for module 'setlocale'.
40723         * modules/setlocale-tests: New file.
40724         * tests/test-setlocale1.sh: New file.
40725         * tests/test-setlocale1.c: New file.
40727         New module 'setlocale'.
40728         * lib/locale.in.h (setlocale): New declaration.
40729         * lib/setlocale.c: New file, based on
40730         gettext/gettext-runtime/intl/setlocale.c.
40731         * m4/setlocale.m4: New file.
40732         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
40733         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
40734         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
40735         REPLACE_SETLOCALE.
40736         * modules/setlocale: New file.
40737         * tests/test-locale-c++.cc: Test the declaration of setlocale.
40738         * doc/posix-functions/setlocale.texi: Mention the new module.
40740 2011-02-11  Bruno Haible  <bruno@clisp.org>
40742         Prepare for locale dependent tests on mingw.
40743         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
40744         because it has the wrong locale encoding.
40745         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
40746         French_France.1252 instead of "fr".
40747         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
40748         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
40749         because it has the wrong locale encoding.
40750         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
40751         native Windows, try Turkish_Turkey.65001.
40752         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
40753         Chinese_China.54936.
40755         Prepare for locale dependent tests on mingw.
40756         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
40757         differently.
40758         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
40759         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
40760         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40761         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40763 2011-02-11  Eric Blake  <eblake@redhat.com>
40765         strptime: avoid compiler warnings
40766         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
40767         compiler warnings about dead code.
40768         Reported by Daniel P. Berrange.
40770 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
40772         doc: update users.txt
40773         * users.txt: Add rcs.
40775 2011-02-10  John W. Eaton  <jwe@gnu.org>
40777         doc: update users.txt
40778         * users.txt: Add octave.
40780 2011-02-10  Jim Meyering  <meyering@redhat.com>
40782         doc: update users.txt
40783         * users.txt: Add iwhd.
40785 2011-02-09  Bruno Haible  <bruno@clisp.org>
40787         gnulib-tool: Make copyright notice adjustment more robust.
40788         * gnulib-tool (func_import): In sed_transform_main_lib_file,
40789         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
40790         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
40791         License".
40792         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
40794 2011-02-06  Bruno Haible  <bruno@clisp.org>
40796         New module 'towctrans'.
40797         * modules/towctrans: New file.
40798         * lib/wctype.in.h (towctrans): New declaration.
40799         * lib/towctrans.c: New file.
40800         * lib/towctrans-impl.h: New file.
40801         * m4/towctrans.m4: New file.
40802         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
40803         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
40804         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
40805         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
40806         * doc/posix-functions/towctrans.texi: Mention the new module.
40808 2011-02-06  Bruno Haible  <bruno@clisp.org>
40810         New module 'wctrans'.
40811         * modules/wctrans: New file.
40812         * lib/wctype.in.h (wctrans): New declaration.
40813         * lib/wctrans.c: New file.
40814         * lib/wctrans-impl.h: New file.
40815         * m4/wctrans.m4: New file.
40816         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
40817         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
40818         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
40819         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
40820         * doc/posix-functions/wctrans.texi: Mention the new module.
40822 2011-02-06  Bruno Haible  <bruno@clisp.org>
40824         New module 'iswctype'.
40825         * modules/iswctype: New file.
40826         * lib/wctype.in.h (iswctype): New declaration.
40827         * lib/iswctype.c: New file.
40828         * lib/iswctype-impl.h: New file.
40829         * m4/iswctype.m4: New file.
40830         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
40831         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
40832         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
40833         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
40834         * doc/posix-functions/iswctype.texi: Mention the new module and the
40835         HP-UX 11.00 problem.
40837 2011-02-06  Bruno Haible  <bruno@clisp.org>
40839         New module 'wctype'.
40840         * modules/wctype: Change to represent the wctype() substitute.
40841         * lib/wctype.in.h (wctype): New declaration.
40842         * lib/wctype.c: New file.
40843         * lib/wctype-impl.h: New file.
40844         * m4/wctype.m4: New file.
40845         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
40846         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
40847         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
40848         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
40849         * doc/posix-functions/wctype.texi: Mention the new module and the
40850         HP-UX 11.00 problem.
40852 2011-02-06  Bruno Haible  <bruno@clisp.org>
40854         wctype-h: Ensure wctype_t and wctrans_t are defined.
40855         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
40856         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
40857         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
40858         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
40859         HAVE_WCTRANS_T.
40860         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
40862 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
40864         flock: fix license typo
40866         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
40867         omitted.
40869 2011-02-08  Bruno Haible  <bruno@clisp.org>
40871         Split large sed scripts, for HP-UX sed.
40872         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
40873         to avoid HP-UX limit of 99 commands, in the near future.
40874         * modules/stdlib (Makefile.am): Likewise.
40875         * modules/unistd (Makefile.am): Likewise.
40876         * modules/wchar (Makefile.am): Likewise.
40877         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40878         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
40879         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
40881 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
40882             Bruno Haible  <bruno@clisp.org>
40884         stdlib: improve random_r modularization
40885         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
40886         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
40887         you also need the random_r module to get this material right.
40888         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
40889         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
40890         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
40892 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
40894         stdlib: don't depend on stdint
40895         * lib/stdlib.in.h: Don't include <stdint.h> merely because
40896         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
40897         be independent of whether stdint.h is needed.
40898         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
40899         here, instead of ...
40900         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
40901         struct random_data should be using the random_r module, not just
40902         the stdlib module (which wouldn't make sense: what package needs
40903         just struct random_data without also needing random_r?).
40904         * modules/stdlib (Depends-on): Remove stdint.
40906         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
40907         See the thread rooted at
40908         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
40909         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
40910         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
40911         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
40912         __VMS)); previously it was always included (via fcntl--.h).
40913         (getloadavg): Do not use c_strtod.  Instead, approximate it by
40914         hand; this is good enough for load averages.  Also, do not use
40915         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
40916         flags directly if available and don't bother otherwise.  (Packages
40917         that need the extra reliability should use the modules that define
40918         these flags on older platforms that lack them.)
40919         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
40920         fcntl-safer.
40922 2011-02-08  Jim Meyering  <meyering@redhat.com>
40924         di-set.h, ino-map.h: add multiple-inclusion guard
40925         Technically, the guard is required only for ino-map.h, due to its
40926         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
40927         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
40928         * lib/ino-map.h: Likewise.
40930 2011-02-06  Bruno Haible  <bruno@clisp.org>
40932         iswblank: Ensure declaration on glibc systems.
40933         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
40934         * modules/iswblank (Dependencies): Add 'extensions'.
40935         * doc/posix-functions/iswblank.texi: Document the glibc problem.
40937 2011-02-06  Bruno Haible  <bruno@clisp.org>
40939         New module 'iswblank'.
40940         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
40941         * modules/iswblank: New file.
40942         * modules/wctype-h (Files): Remove lib/iswblank.c.
40943         (Makefile.am): Substitute GNULIB_ISWBLANK.
40944         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
40945         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
40946         (gl_WCTYPE_H_DEFAULTS): New macro.
40947         (gl_WCTYPE_H): Require it. Remove iswblank related code.
40948         * modules/iswblank-tests: New file.
40949         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
40950         * tests/test-wctype-h.c (main): Remove iswblank tests.
40951         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
40952         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
40953         of 'wctype-h'.
40954         * NEWS: Mention the change.
40955         * modules/mbchar (Depends-on): Add iswblank.
40957 2011-02-08  Bruno Haible  <bruno@clisp.org>
40959         di-set tests: Refactor.
40960         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
40961         unnecessary includes.
40962         (ASSERT): Remove macro.
40963         (main): Make C90 compliant by avoiding variable declaration after
40964         statement.
40965         * modules/di-set-tests (Files): Add tests/macros.h.
40967 2011-02-08  Bruno Haible  <bruno@clisp.org>
40969         ino-map tests: Refactor.
40970         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
40971         unnecessary includes.
40972         (ASSERT): Remove macro.
40973         (main): Make C90 compliant by avoiding variable declaration after
40974         statement.
40975         * modules/ino-map-tests (Files): Add tests/macros.h.
40977 2011-02-08  Jim Meyering  <meyering@redhat.com>
40979         di-set: add "const" to a cast
40980         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
40981         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
40983 2011-02-06  Bruno Haible  <bruno@clisp.org>
40985         Rename module 'wctype' to 'wctype-h'.
40986         * modules/wctype-h: Renamed from modules/wctype.
40987         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
40988         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
40989         (Files, Depends-on, Makefile.am): Update.
40990         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
40991         (Files, Makefile.am): Update.
40992         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
40993         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
40994         * doc/posix-headers/wctype.texi: Update.
40995         * doc/posix-functions/iswalnum.texi: Update.
40996         * doc/posix-functions/iswalpha.texi: Update.
40997         * doc/posix-functions/iswblank.texi: Update.
40998         * doc/posix-functions/iswcntrl.texi: Update.
40999         * doc/posix-functions/iswdigit.texi: Update.
41000         * doc/posix-functions/iswgraph.texi: Update.
41001         * doc/posix-functions/iswlower.texi: Update.
41002         * doc/posix-functions/iswprint.texi: Update.
41003         * doc/posix-functions/iswpunct.texi: Update.
41004         * doc/posix-functions/iswspace.texi: Update.
41005         * doc/posix-functions/iswupper.texi: Update.
41006         * doc/posix-functions/iswxdigit.texi: Update.
41007         * doc/posix-functions/towlower.texi: Update.
41008         * doc/posix-functions/towupper.texi: Update.
41009         * NEWS: Mention the change.
41010         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
41011         * modules/mbchar (Dependencies): Likewise.
41012         * modules/mbswidth (Dependencies): Likewise.
41013         * modules/quotearg (Dependencies): Likewise.
41014         * modules/regex (Dependencies): Likewise.
41015         * modules/wcscasecmp (Dependencies): Likewise.
41016         * modules/wcsncasecmp (Dependencies): Likewise.
41017         * modules/wcwidth (Dependencies): Likewise.
41019 2011-02-06  Bruno Haible  <bruno@clisp.org>
41021         New module 'wcswidth'.
41022         * modules/wcswidth: New file.
41023         * lib/wchar.in.h (wcswidth): New declaration.
41024         * lib/wcswidth.c: New file.
41025         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
41026         * m4/wcswidth.m4: New file.
41027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
41028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
41029         REPLACE_WCSWIDTH.
41030         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
41031         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
41032         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
41033         * doc/posix-functions/wcswidth.texi: Mention the new module.
41035 2011-02-06  Bruno Haible  <bruno@clisp.org>
41037         New module 'wcstok'.
41038         * modules/wcstok: New file.
41039         * lib/wchar.in.h (wcstok): New declaration.
41040         * lib/wcstok.c: New file.
41041         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
41042         * m4/wcstok.m4: New file.
41043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
41044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
41045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
41046         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
41047         * doc/posix-functions/wcstok.texi: Mention the new module.
41049 2011-02-06  Bruno Haible  <bruno@clisp.org>
41051         New module 'wcsstr'.
41052         * modules/wcsstr: New file.
41053         * lib/wchar.in.h (wcsstr): New declaration.
41054         * lib/wcsstr.c: New file.
41055         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
41056         * m4/wcsstr.m4: New file.
41057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
41058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
41059         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
41060         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
41061         * doc/posix-functions/wcsstr.texi: Mention the new module.
41063 2011-02-06  Bruno Haible  <bruno@clisp.org>
41065         New module 'wcspbrk'.
41066         * modules/wcspbrk: New file.
41067         * lib/wchar.in.h (wcspbrk): New declaration.
41068         * lib/wcspbrk.c: New file.
41069         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
41070         * m4/wcspbrk.m4: New file.
41071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
41072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
41073         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
41074         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
41075         * doc/posix-functions/wcspbrk.texi: Mention the new module.
41077 2011-02-06  Bruno Haible  <bruno@clisp.org>
41079         New module 'wcsspn'.
41080         * modules/wcsspn: New file.
41081         * lib/wchar.in.h (wcsspn): New declaration.
41082         * lib/wcsspn.c: New file.
41083         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
41084         * m4/wcsspn.m4: New file.
41085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
41086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
41087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
41088         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
41089         * doc/posix-functions/wcsspn.texi: Mention the new module.
41091 2011-02-06  Bruno Haible  <bruno@clisp.org>
41093         New module 'wcscspn'.
41094         * modules/wcscspn: New file.
41095         * lib/wchar.in.h (wcscspn): New declaration.
41096         * lib/wcscspn.c: New file.
41097         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
41098         * m4/wcscspn.m4: New file.
41099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
41100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
41101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
41102         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
41103         * doc/posix-functions/wcscspn.texi: Mention the new module.
41105 2011-02-06  Bruno Haible  <bruno@clisp.org>
41107         New module 'wcsrchr'.
41108         * modules/wcsrchr: New file.
41109         * lib/wchar.in.h (wcsrchr): New declaration.
41110         * lib/wcsrchr.c: New file.
41111         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
41112         * m4/wcsrchr.m4: New file.
41113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
41114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
41115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
41116         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
41117         * doc/posix-functions/wcsrchr.texi: Mention the new module.
41119 2011-02-06  Bruno Haible  <bruno@clisp.org>
41121         New module 'wcschr'.
41122         * modules/wcschr: New file.
41123         * lib/wchar.in.h (wcschr): New declaration.
41124         * lib/wcschr.c: New file.
41125         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
41126         * m4/wcschr.m4: New file.
41127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
41128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
41129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
41130         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
41131         * doc/posix-functions/wcschr.texi: Mention the new module.
41133 2011-02-06  Bruno Haible  <bruno@clisp.org>
41135         New module 'wcsdup'.
41136         * modules/wcsdup: New file.
41137         * lib/wchar.in.h (wcsdup): New declaration.
41138         * lib/wcsdup.c: New file.
41139         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
41140         * m4/wcsdup.m4: New file.
41141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
41142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
41143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
41144         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
41145         * doc/posix-functions/wcsdup.texi: Mention the new module.
41147 2011-02-06  Bruno Haible  <bruno@clisp.org>
41149         New module 'wcsxfrm'.
41150         * modules/wcsxfrm: New file.
41151         * lib/wchar.in.h (wcsxfrm): New declaration.
41152         * lib/wcsxfrm.c: New file.
41153         * lib/wcsxfrm-impl.h: New file.
41154         * m4/wcsxfrm.m4: New file.
41155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
41156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
41157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
41158         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
41159         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
41161 2011-02-06  Bruno Haible  <bruno@clisp.org>
41163         New module 'wcscoll'.
41164         * modules/wcscoll: New file.
41165         * lib/wchar.in.h (wcscoll): New declaration.
41166         * lib/wcscoll.c: New file.
41167         * lib/wcscoll-impl.h: New file.
41168         * m4/wcscoll.m4: New file.
41169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
41170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
41171         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
41172         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
41173         * doc/posix-functions/wcscoll.texi: Mention the new module.
41175 2011-02-06  Bruno Haible  <bruno@clisp.org>
41177         New module 'wcsncasecmp'.
41178         * modules/wcsncasecmp: New file.
41179         * lib/wchar.in.h (wcsncasecmp): New declaration.
41180         * lib/wcsncasecmp.c: New file.
41181         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
41182         * m4/wcsncasecmp.m4: New file.
41183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
41184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
41185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
41186         HAVE_WCSNCASECMP.
41187         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
41188         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
41190 2011-02-06  Bruno Haible  <bruno@clisp.org>
41192         New module 'wcscasecmp'.
41193         * modules/wcscasecmp: New file.
41194         * lib/wchar.in.h (wcscasecmp): New declaration.
41195         * lib/wcscasecmp.c: New file.
41196         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
41197         * m4/wcscasecmp.m4: New file.
41198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
41199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
41200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
41201         HAVE_WCSCASECMP.
41202         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
41203         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
41205 2011-02-05  Bruno Haible  <bruno@clisp.org>
41207         New module 'wcsncmp'.
41208         * modules/wcsncmp: New file.
41209         * lib/wchar.in.h (wcsncmp): New declaration.
41210         * lib/wcsncmp.c: New file.
41211         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
41212         * m4/wcsncmp.m4: New file.
41213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
41214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
41215         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
41216         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
41217         * doc/posix-functions/wcsncmp.texi: Mention the new module.
41219 2011-02-05  Bruno Haible  <bruno@clisp.org>
41221         New module 'wcscmp'.
41222         * modules/wcscmp: New file.
41223         * lib/wchar.in.h (wcscmp): New declaration.
41224         * lib/wcscmp.c: New file.
41225         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
41226         * m4/wcscmp.m4: New file.
41227         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
41228         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
41229         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
41230         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
41231         * doc/posix-functions/wcscmp.texi: Mention the new module.
41233 2011-02-05  Bruno Haible  <bruno@clisp.org>
41235         New module 'wcsncat'.
41236         * modules/wcsncat: New file.
41237         * lib/wchar.in.h (wcsncat): New declaration.
41238         * lib/wcsncat.c: New file.
41239         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
41240         * m4/wcsncat.m4: New file.
41241         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
41242         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
41243         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
41244         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
41245         * doc/posix-functions/wcsncat.texi: Mention the new module.
41247 2011-02-05  Bruno Haible  <bruno@clisp.org>
41249         New module 'wcscat'.
41250         * modules/wcscat: New file.
41251         * lib/wchar.in.h (wcscat): New declaration.
41252         * lib/wcscat.c: New file.
41253         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
41254         * m4/wcscat.m4: New file.
41255         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
41256         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
41257         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
41258         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
41259         * doc/posix-functions/wcscat.texi: Mention the new module.
41261 2011-02-05  Bruno Haible  <bruno@clisp.org>
41263         New module 'wcpncpy'.
41264         * modules/wcpncpy: New file.
41265         * lib/wchar.in.h (wcpncpy): New declaration.
41266         * lib/wcpncpy.c: New file.
41267         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
41268         * m4/wcpncpy.m4: New file.
41269         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
41270         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
41271         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
41272         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
41273         * doc/posix-functions/wcpncpy.texi: Mention the new module.
41275 2011-02-05  Bruno Haible  <bruno@clisp.org>
41277         New module 'wcsncpy'.
41278         * modules/wcsncpy: New file.
41279         * lib/wchar.in.h (wcsncpy): New declaration.
41280         * lib/wcsncpy.c: New file.
41281         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
41282         * m4/wcsncpy.m4: New file.
41283         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
41284         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
41285         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
41286         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
41287         * doc/posix-functions/wcsncpy.texi: Mention the new module.
41289 2011-02-05  Bruno Haible  <bruno@clisp.org>
41291         New module 'wcpcpy'.
41292         * modules/wcpcpy: New file.
41293         * lib/wchar.in.h (wcpcpy): New declaration.
41294         * lib/wcpcpy.c: New file.
41295         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
41296         * m4/wcpcpy.m4: New file.
41297         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
41298         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
41299         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
41300         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
41301         * doc/posix-functions/wcpcpy.texi: Mention the new module.
41303 2011-02-05  Bruno Haible  <bruno@clisp.org>
41305         New module 'wcscpy'.
41306         * modules/wcscpy: New file.
41307         * lib/wchar.in.h (wcscpy): New declaration.
41308         * lib/wcscpy.c: New file.
41309         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
41310         * m4/wcscpy.m4: New file.
41311         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
41312         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
41313         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
41314         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
41315         * doc/posix-functions/wcscpy.texi: Mention the new module.
41317 2011-02-05  Bruno Haible  <bruno@clisp.org>
41319         New module 'wcsnlen'.
41320         * modules/wcsnlen: New file.
41321         * lib/wchar.in.h (wcsnlen): New declaration.
41322         * lib/wcsnlen.c: New file.
41323         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
41324         * m4/wcsnlen.m4: New file.
41325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
41326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
41327         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
41328         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
41329         * doc/posix-functions/wcsnlen.texi: Mention the new module.
41331 2011-02-05  Bruno Haible  <bruno@clisp.org>
41333         New module 'wcslen'.
41334         * modules/wcslen: New file.
41335         * lib/wchar.in.h (wcslen): New declaration.
41336         * lib/wcslen.c: New file.
41337         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
41338         * m4/wcslen.m4: New file.
41339         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
41340         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
41341         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
41342         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
41343         * doc/posix-functions/wcslen.texi: Mention the new module.
41345 2011-02-05  Bruno Haible  <bruno@clisp.org>
41347         New module 'wmemset'.
41348         * modules/wmemset: New file.
41349         * lib/wchar.in.h (wmemset): New declaration.
41350         * lib/wmemset.c: New file.
41351         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
41352         * m4/wmemset.m4: New file.
41353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
41354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
41355         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
41356         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
41357         * doc/posix-functions/wmemset.texi: Mention the new module.
41359 2011-02-05  Bruno Haible  <bruno@clisp.org>
41361         New module 'wmemmove'.
41362         * modules/wmemmove: New file.
41363         * lib/wchar.in.h (wmemmove): New declaration.
41364         * lib/wmemmove.c: New file.
41365         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
41366         * m4/wmemmove.m4: New file.
41367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
41368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
41369         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
41370         HAVE_WMEMMOVE.
41371         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
41372         * doc/posix-functions/wmemmove.texi: Mention the new module.
41374 2011-02-05  Bruno Haible  <bruno@clisp.org>
41376         New module 'wmemcpy'.
41377         * modules/wmemcpy: New file.
41378         * lib/wchar.in.h (wmemcpy): New declaration.
41379         * lib/wmemcpy.c: New file.
41380         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
41381         * m4/wmemcpy.m4: New file.
41382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
41383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
41384         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
41385         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
41386         * doc/posix-functions/wmemcpy.texi: Mention the new module.
41388 2011-02-05  Bruno Haible  <bruno@clisp.org>
41390         New module 'wmemcmp'.
41391         * modules/wmemcmp: New file.
41392         * lib/wchar.in.h (wmemcmp): New declaration.
41393         * lib/wmemcmp.c: New file.
41394         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
41395         * m4/wmemcmp.m4: New file.
41396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
41397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
41398         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
41399         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
41400         * doc/posix-functions/wmemcmp.texi: Mention the new module.
41402 2011-02-07  Jim Meyering  <meyering@redhat.com>
41404         di-set, ino-map: new modules, from coreutils
41405         * lib/di-set.c: New file.
41406         * lib/di-set.h: Likewise.
41407         * lib/ino-map.c: Likewise.
41408         * lib/ino-map.h: Likewise.
41409         * modules/di-set: Likewise.
41410         * modules/di-set-tests: Likewise.
41411         * modules/ino-map: Likewise.
41412         * modules/ino-map-tests: Likewise.
41413         * tests/test-di-set.c: Likewise.
41414         * tests/test-ino-map.c: Likewise.
41416 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
41418         getloadavg: merge minor changes from Emacs
41420         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
41421         (getloadavg): Use memset, not bzero.
41423         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
41424         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
41425         clash (bug#86).
41427 2010-11-14  Bruno Haible  <bruno@clisp.org>
41429         Allow multiple gnulib generated replacements to coexist.
41430         * lib/getopt.in.h (struct option): Avoid identical redefinition.
41431         * lib/inttypes.in.h (imaxdiv_t): Likewise.
41432         * lib/langinfo.in.h (nl_item): Likewise.
41433         * lib/math.in.h (_NaN, NAN): Likewise.
41434         * lib/netdb.in.h (struct addrinfo): Likewise.
41435         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
41436         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
41437         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
41438         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
41439         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
41440         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
41441         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
41442         pthread_mutexattr_init, pthread_mutexattr_settype,
41443         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
41444         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
41445         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
41446         pthread_spin_trylock, pthread_spin_unlock): Likewise.
41447         * lib/sched.in.h (struct sched_param): Likewise.
41448         * lib/se-selinux.in.h (security_class_t, security_context_t,
41449         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
41450         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
41451         lsetfilecon, fsetfilecon, security_check_context,
41452         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
41453         Likewise.
41454         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
41455         Likewise.
41456         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
41457         _gl_function_taking_int_returning_void_t, union sigval,
41458         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
41459         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
41460         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
41461         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
41462         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
41463         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
41464         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
41465         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
41466         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
41467         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
41468         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
41469         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
41470         socklen_t, rpl_fd_isset): Likewise.
41471         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
41472         * lib/sys_time.in.h (struct timeval): Likewise.
41473         * lib/sys_times.in.h (struct tms): Likewise.
41474         * lib/sys_utsname.in.h (struct utsname):
41475         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
41476         * lib/unistd.in.h (getpagesize): Likewise.
41477         * lib/wchar.in.h (mbstate_t): Likewise.
41478         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41479         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
41480         towlower, towupper): Likewise.
41481         Reported by Sam Steingold <sds@gnu.org>.
41483 2011-02-05  Eric Blake  <eblake@redhat.com>
41485         unsetenv: work around Haiku issues
41486         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
41487         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
41489 2010-12-30  Bruce Korb  <bkorb@gnu.org>
41491         libposix: avoid calling error() within libposix
41492         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
41493         is defined.
41495 2011-02-05  Eric Blake  <eblake@redhat.com>
41497         strerror_r-posix: port to cygwin
41498         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
41499         implementation.
41500         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
41501         * tests/test-strerror_r.c (main): Fix test.
41502         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
41503         issue.
41505 2011-02-05  Bruno Haible  <bruno@clisp.org>
41507         New module 'wmemchr'.
41508         * modules/wmemchr: New file.
41509         * lib/wchar.in.h (wmemchr): New declaration.
41510         * lib/wmemchr.c: New file.
41511         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
41512         * m4/wmemchr.m4: New file.
41513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
41514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
41515         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
41516         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
41517         * doc/posix-functions/wmemchr.texi: Mention the new module.
41519 2011-02-04  Eric Blake  <eblake@redhat.com>
41521         fdopendir: detect FreeBSD bug
41522         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
41523         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
41525 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41527         stdbool: do not define HAVE_STDBOOL_H
41528         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
41529         AC_HEADER_STDBOOL.  All uses changed.  Do not define
41530         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
41531         imported from the latest Autoconf git.  It was motivated by Emacs,
41532         which uses gnulib but does not need HAVE_STDBOOL_H.
41534 2011-02-04  Bruno Haible  <bruno@clisp.org>
41536         wcsnrtombs: Prepare for new module wwcsnrtombs.
41537         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
41538         * lib/wcsnrtombs.c: Include it.
41539         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
41541         wcsrtombs: Prepare for new module wwcsrtombs.
41542         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
41543         * lib/wcsrtombs.c: Include it.
41544         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
41546         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
41547         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
41548         * lib/mbsnrtowcs.c: Include it.
41549         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
41551         mbsrtowcs: Prepare for new module mbsrtowwcs.
41552         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
41553         * lib/mbsrtowcs.c: Include it.
41554         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
41556 2011-02-04  Bruno Haible  <bruno@clisp.org>
41558         vasnprintf: Reduce use of malloc for small format strings.
41559         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
41560         (arguments): Add room for the first 7 arguments.
41561         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
41562         (char_directives, u8_directives, u16_directives, u32_directives): Add
41563         room for the first 7 directives.
41564         * lib/printf-parse.c: Include <string.h>.
41565         (PRINTF_PARSE): Change memory handling code so that it uses the first
41566         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
41567         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
41568         Reported by Pádraig Brady <P@draigbrady.com>.
41570 2011-01-31  Eric Blake  <eblake@redhat.com>
41572         dup2: work around Haiku bug
41573         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
41574         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
41575         * doc/posix-functions/dup2.texi (dup2): Document the bug.
41576         * tests/test-dup2.c (main): Enhance test.
41578 2011-01-31  Simon Josefsson  <simon@josefsson.org>
41580         doc: off_t is not available in eglibc 2.11.2 stdio.h.
41581         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
41582         declared by eglibc 2.11.2.
41583         * lib/stdio.in.h: Likewise.
41585 2011-01-31  Eric Blake  <eblake@redhat.com>
41587         ignore-value: add missing test dependency
41588         * tests/test-ignore-value.c: Revert previous change; stdio.h
41589         provides off_t.
41590         * modules/ignore-value-tests (Depends-on): Add missing dependency.
41592 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
41594         mktime: clarify long_int width checking
41595         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
41596         the top level, to make it clearer that the assumption about
41597         long_int width is being checked.  See
41598         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
41600 2011-01-30  Simon Josefsson  <simon@josefsson.org>
41602         ignore-value: Fix self-test.
41603         * tests/test-ignore-value.c: Include sys/types.h for off_t.
41605 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
41607         TYPE_MAXIMUM: avoid theoretically undefined behavior
41608         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
41609         negative number, which the C Standard says has undefined behavior.
41610         In practice this is not a problem, but might as well do it by the book.
41611         Reported by Rich Felker and Eric Blake; see
41612         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
41613         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
41614         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
41615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41616         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
41617         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41618         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
41620         mktime: #undef mktime before #defining it
41621         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
41623         mktime: systematically normalize tm_isdst comparisons
41624         * lib/mktime.c (isdst_differ): New function.
41625         (__mktime_internal): Use it systematically for all isdst comparisons.
41626         This completes the fix for libc BZ #6723, and removes the need for
41627         normalizing tm_isdst.  See
41628         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
41629         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
41631         mktime: fix some integer overflow issues and sidestep the rest
41633         This was prompted by a bug report by Benjamin Lindner for MinGW
41634         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
41635         His bug is due to signed integer overflow (0 - INT_MIN), and I
41636         I scanned through mktime.c looking for other integer overflow
41637         problems, fixing all the bugs I found.
41639         Although the C Standard says the resulting code is still not safe
41640         in the presence of integer overflow, in practice it should be good
41641         enough for all real-world two's-complement implementations, except
41642         for debugging environments that deliberately trap on integer
41643         overflow (e.g., gcc -ftrapv).
41645         * lib/mktime.c (WRAPV): New macro.
41646         (SHR): Also check that long_int and time_t shift right in the
41647         usual way, before using the fast-but-unportable method.
41648         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
41649         used.  The code already assumed two's complement, so there's
41650         no need to test for alternatives.  All uses removed.
41651         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
41652         the C standard.  Problem reported by Rich Felker in
41653         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
41654         (twos_complement_arithmetic): Also check long_int and time_t.
41655         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
41656         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
41657         (__mktime_internal): Avoid integer overflow with unary subtraction
41658         in two instances where -1 - X is an adequate replacement for -X,
41659         since the calculations are approximate.
41661 2011-01-29  Eric Blake  <eblake@redhat.com>
41663         mktime: avoid infinite loop
41664         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
41665         type; behavior is still undefined but portable to all known targets.
41666         Reported by Rich Felker.
41668 2011-01-29  Simon Josefsson  <simon@josefsson.org>
41670         rename, unlink, same-inode: Relicense.
41671         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
41672         * modules/unlink (License): Likewise.
41673         * modules/same-inode (License): Likewise.
41675 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41677         mktime: avoid problems on NetBSD 5 / i386
41678         * lib/mktime.c (long_int): New type.  This works around a problem
41679         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
41680         but time_t is 64 bits, and where I expect the existing code is
41681         wrong in some cases.
41682         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
41683         (ydhms_diff): Bring back the compile-time check for wide-enough
41684         year and yday.
41686         mktime: fix misspelling in comment
41687         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
41688         This merges all recent glibc changes of importance.
41690 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41692         move-if-change: cope with concurrent mv of identical file.
41693         * build-aux/move-if-change (CMPPROG): Accept environment
41694         variable as an override for `cmp'.
41695         (usage): Document CMPPROG.
41696         Adjust comparison to drop stdout.  Cope with failure of mv if
41697         the target file exists and is identical to the source, for
41698         parallel builds.
41699         Report from H.J. Lu against binutils in PR binutils/12283.
41701 2011-01-28  Bruce Korb  <bkorb@gnu.org>
41703         * users.txt: Mention sharutils.
41705 2011-01-28  Simon Josefsson  <simon@josefsson.org>
41707         * users.txt: Mention OATH Toolkit.
41709 2011-01-27  Bruno Haible  <bruno@clisp.org>
41711         Prepare for supporting FreeBSD 10.
41712         * build-aux/config.libpath: Remove handling of freebsd1*.
41714 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
41716         Prepare for supporting FreeBSD 10.
41717         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
41718         match FreeBSD 10.0.
41720 2011-01-27  Bruno Haible  <bruno@clisp.org>
41722         vma-iter, get-rusage-as: Add OpenBSD support.
41723         * modules/vma-iter (configure.ac): Test for mquery.
41724         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
41725         * lib/vma-iter.c: Include <sys/mman.h>.
41726         (vma_iterate): Add an implementation based on mquery().
41727         * lib/resource-ext.h (get_rusage_as): Update comments.
41728         * lib/get-rusage-as.c: Likewise.
41729         * lib/get-rusage-data.c: Likewise.
41731 2011-01-26  Karl Berry  <karl@gnu.org>
41733         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
41734         variables to make it easier to override the makeinfo program used.
41736 2011-01-26  Eric Blake  <eblake@redhat.com>
41738         fcntl: work around Haiku F_DUPFD bugs
41739         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
41740         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
41741         cloexec bit on duplication.
41742         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
41744 2011-01-26  Bruno Haible  <bruno@clisp.org>
41746         Enable memory leak tests on AIX.
41747         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
41748         * tests/test-fprintf-posix3.c (main): Likewise.
41750 2011-01-26  Bruno Haible  <bruno@clisp.org>
41752         Tests for module 'get-rusage-data'.
41753         * modules/get-rusage-data-tests: New file.
41754         * tests/test-get-rusage-data.c: New file.
41756         New module 'get-rusage-data'.
41757         * lib/resource-ext.h (get_rusage_data): New declaration.
41758         * lib/get-rusage-data.c: New file.
41759         * modules/get-rusage-data: New file.
41761 2011-01-25  Bruno Haible  <bruno@clisp.org>
41763         get-rusage-as: Allow for easier testing.
41764         * lib/resource-ext.h (get_rusage_as): Add comment.
41765         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
41766         (main): New function for interactive testing.
41768 2011-01-25  Bruno Haible  <bruno@clisp.org>
41770         vma-iter: Treat Haiku like BeOS.
41771         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
41772         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
41774 2011-01-25  Eric Blake  <eblake@redhat.com>
41776         c-stack: fix regression on cygwin when libsigsegv is present
41777         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
41779 2011-01-24  Bruno Haible  <bruno@clisp.org>
41781         vma-iter: Avoid empty intervals.
41782         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
41783         on an empty interval.
41785 2011-01-24  Jim Meyering  <meyering@redhat.com>
41787         u64: remove unnecessary #include
41788         * lib/u64.h: Don't include <stddef.h>.  It was not used.
41790 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41792         Allow the user to avoid the HAVE_RAW_DECL_* macros.
41793         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
41795 2011-01-23  Bruno Haible  <bruno@clisp.org>
41797         New module 'vma-iter'.
41798         * lib/vma-iter.h: New file.
41799         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
41800         * modules/vma-iter: New file.
41801         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
41802         for get_rusage_as_via_iterator.
41803         (vma_iterate_callback): New function.
41804         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
41805         * modules/get-rusage-as (Depends-on): Add vma-iter.
41807 2011-01-23  Bruno Haible  <bruno@clisp.org>
41809         uninorm: Tweak includes.
41810         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
41811         Reported by Jim Meyering.
41813 2011-01-23  Bruno Haible  <bruno@clisp.org>
41815         get-rusage-as: Improve on NetBSD.
41816         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
41817         /proc, like on FreeBSD.
41819 2011-01-23  Jim Meyering  <meyering@redhat.com>
41821         xreadlink.h: remove unnecessary #include
41822         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
41824         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
41825         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
41827 2011-01-23  Bruno Haible  <bruno@clisp.org>
41829         get-rusage-as: Fix bug.
41830         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
41831         original limit when aborting the first loop.
41833 2011-01-23  Bruno Haible  <bruno@clisp.org>
41835         wctype: Ensure valid C syntax.
41836         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
41837         unconditionally, instead of gl_NEXT_HEADERS conditionally.
41839 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
41841         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
41842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
41843         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
41844         as they are needed only for configure's test case.
41845         This removes two unnecessary symbols from config.h.
41847         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
41848         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
41849         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
41850         AC_CHECK_HEADERS_ONCE on a header that we also invoke
41851         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
41852         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
41853         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
41854         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
41855         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41856         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41857         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
41858         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41859         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
41860         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
41861         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
41862         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41863         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
41864         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
41866 2011-01-21  Eric Blake  <eblake@redhat.com>
41868         maintainer-makefile: work with older git for submodule check
41869         * top/maint.mk (public-submodule-commit): Rewrite to avoid
41870         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
41871         Reported by Matthias Bolte.
41873         bootstrap: minor portability fixes
41874         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
41875         (usage): Omit leading capital and trailing . on help phrases, per
41876         GNU Coding Standards.
41877         (check_versions, top level): Prefix messages with script name.
41879 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
41881         bootstrap: support --no-git option
41882         * build-aux/bootstrap: Add --no-git option, to be used when
41883         --gnulib-srcdir points to the exact desired checkout.
41885 2011-01-21  Eric Blake  <eblake@redhat.com>
41887         strerror_r-posix: work with glibc 2.13
41888         * lib/strerror_r.c (strerror_r): Fix return type.
41890 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41891             Bruno Haible  <bruno@clisp.org>
41893         uN_strstr: New unit tests.
41894         * modules/unistr/u8-strstr-tests: New file.
41895         * modules/unistr/u16-strstr-tests: New file.
41896         * modules/unistr/u32-strstr-tests: New file.
41897         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
41898         * tests/unistr/test-u8-strstr.c: New file.
41899         * tests/unistr/test-u16-strstr.c: New file.
41900         * tests/unistr/test-u32-strstr.c: New file.
41902 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41903             Bruno Haible  <bruno@clisp.org>
41905         Make uN_strstr functions O(n) worst-case.
41906         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
41907         16-bit and 32-bit unit cases, use the unibyte algorithm from
41908         lib/mbsstr.c.
41909         * lib/unistr/u8-strstr.c: Include <string.h>.
41910         (UNIT_IS_UINT8_T): New macro.
41911         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
41912         (U_STRLEN, U_STRNLEN): New macros.
41913         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
41914         (U_STRLEN, U_STRNLEN): New macros.
41915         * modules/unistr/u8-strstr (Depends-on): Add strstr.
41916         (configure.ac): Update required libunistring version.
41917         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
41918         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
41919         malloca.
41920         (configure.ac): Update required libunistring version.
41921         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
41922         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
41923         malloca.
41924         (configure.ac): Update required libunistring version.
41926 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41927             Bruno Haible  <bruno@clisp.org>
41929         Prepare for faster uN_strstr functions.
41930         * lib/str-kmp.h: Support definable UNITs.
41931         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
41932         needle_len argument.
41933         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
41934         * lib/mbscasestr.c (mbscasestr): Likewise.
41936 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41938         malloca-tests: make faster by unsetting MALLOC_PERTURB_
41939         * tests/test-malloca.c (main): Unset the environment variable
41940         to greatly speed up the test.
41941         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
41942         * modules/malloca-tests: Depend on unsetenv.
41944 2011-01-21  Pádraig Brady  <P@draigBrady.com>
41946         ignore-value: remove stdint dependency
41947         * lib/ignore-value.h: Remove <stdint.h>
41948         * modules/ignore-value: Remove stdint dependency.
41950 2011-01-21  Jim Meyering  <meyering@redhat.com>
41952         maint.mk: adjust variable name to be consistent with other gl_ vars
41953         * top/maint.mk (gl_public_submodule_commit): Rename the variable
41954         to be lower case.
41956 2011-01-20  Jim Meyering  <meyering@redhat.com>
41958         maint.mk: make "check" depend on public-submodule-commit by default
41959         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
41961 2011-01-20  Bruno Haible  <bruno@clisp.org>
41963         mbfile, mbiter: Complete change from 2008-12-21.
41964         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
41965         * m4/mbiter.m4 (gl_MBITER): Likewise.
41967 2011-01-20  Jim Meyering  <meyering@redhat.com>
41969         init.sh: insert space between each function name and "()"
41970         * tests/init.sh: Make it a little easier to see that a function's
41971         name is "warn_", and not "warn" when looking at the first part of
41972         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
41974 2011-01-20  Jim Meyering  <meyering@redhat.com>
41976         mountlist: clean up code formatting
41977         * lib/mountlist.c (read_file_system_list): Split a long line,
41978         correct bracing style, use NULL in place of "(struct statfs *)0",
41979         don't parenthesize return value, add spaces around "=" and after
41980         ";-in-for-stmt".
41982 2011-01-14  Markus Duft  <mduft@gentoo.org>
41984         mountlist: add support for Interix
41985         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
41986         Apply statvfs to all entries of /dev/fs.
41987         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
41988         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
41990 2011-01-20  Jim Meyering  <meyering@redhat.com>
41992         maint.mk: improve the public-submodule-commit rule
41993         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
41994         to suppress printing of its commands... unless V=1.
41995         Add git submodule's --quiet option to suppress printing of e.g.,
41996         "Entering gnulib" output.
41997         "cd" into $(srcdir) before running git submodule.
41999 2011-01-20  Bruno Haible  <bruno@clisp.org>
42001         include_next: Fix bug introduced on 2011-01-18.
42002         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
42003         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
42004         ac_cv_header_... variable if the second argument is not 'check'.
42005         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
42006         gl_NEXT_HEADERS_INTERNAL.
42008 2011-01-20  Bruno Haible  <bruno@clisp.org>
42010         Allow the user to avoid the GNULIB_TEST_* macros.
42011         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
42012         Suggested by Paul Eggert.
42014 2011-01-14  Jim Meyering  <meyering@redhat.com>
42016         bootstrap: avoid failure when there is no .gitmodules file
42017         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
42018         has been assigned to, even when its value is the empty string.
42019         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
42020         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
42021         Reported by John W. Eaton <jwe@gnu.org>.
42023 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42025         assume <ctype.h>, ..., <time.h> exist
42026         For years gnulib has been assuming the existence of the headers
42027         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
42028         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
42029         them, since they don't appear to be needed.
42030         * README (Portability guidelines): Document this.
42031         * lib/flock.c: Assume <fcntl.h> exists.
42032         * lib/regex_internal.h: Assume <locale.h> exists.
42033         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
42034         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
42035         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
42036         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
42037         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
42038         * m4/regex.m4 (gl_REGEX): Likewise.
42039         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
42040         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
42041         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
42042         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
42043         * tests/test-argp.c: Likewise.
42044         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
42046         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
42047         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
42048         AA_APPLE_UNIVERSAL_BUILD.  See
42049         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
42050         * NEWS: Document this.
42052 2011-01-19  Eric Blake  <eblake@redhat.com>
42054         c-stack: assume stack overflow if SA_SIGINFO unsupported
42055         * lib/c-stack.c (SIGACTION_WORKS): Rename...
42056         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
42057         sigaction will work.
42058         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
42059         behavior match Linux.
42060         * tests/test-c-stack.c (main): Prefer NULL for pointers.
42062         stdbool-tests: accommodate Haiku
42063         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
42065         binary-io: fix O_TEXT on Haiku
42066         * modules/binary-io (Depends-on): Add fcntl-h.
42067         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
42068         than blindly undefining O_TEXT.
42069         Reported by Scott McCreary.
42071 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42073         include_next: do not check for standard headers like stddef.h
42075         I found this problem when modifying Emacs to use gnulib.
42076         I noticed that it added HAVE_STDDEF_H to config.h, even though
42077         gnulib always assumes <stddef.h> exists as per README and this
42078         symbol is unnecessary.
42079         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
42080         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
42081         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
42082         faster for headers like stddef.h that are known to exist.
42083         (gl_CHECK_NEXT_HEADERS): Use it.
42084         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
42085         rather than gl_CHECK_NEXT_HEADERS.
42086         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
42087         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
42089 2011-01-18  Eric Blake  <eblake@redhat.com>
42091         ansi-c++-opt: skip C++ dependency style if C++ is unused
42092         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
42093         tests when we know C++ compilation is not desired.
42094         Reported by Scott McCreary.
42096 2011-01-18  Bruno Haible  <bruno@clisp.org>
42098         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
42099         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
42100         (main): Perform test also when getrlimit and setrlimit don't exist or
42101         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
42102         limiting the address space size using setrlimit, compare the address
42103         space size before and after the test.
42104         * tests/test-dprintf-posix2.c: Likewise.
42105         * tests/test-fprintf-posix3.sh: Update skip messages.
42106         * tests/test-dprintf-posix2.sh: Likewise.
42107         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
42108         * modules/dprintf-posix-tests (Depends-on): Likewise.
42109         Reported by Bruce Korb <bkorb@gnu.org> and
42110         Gary V. Vaughan <gary@gnu.org>.
42112 2011-01-18  Bruno Haible  <bruno@clisp.org>
42114         get-rusage-as: Improvement for Cygwin.
42115         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
42116         areas that are merely reserved.
42118 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42120         strftime: remove dependencies on multibyte modules
42122         strftime depended on mbrlen, mbsinit, and wchar, but these modules
42123         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
42124         only if __osf__ is defined, and I suspect OSF doesn't need these
42125         other modules.  If my guess is wrong, we'll need to come up with a
42126         variant of strftime that doesn't need the multibyte modules.
42128         I discovered this problem when attempting modify Emacs to use the
42129         strftime module.  With the previous gnulib, this caused Emacs to
42130         need 31 new files, ranging from lib/config.charset to
42131         m4/wint_t.m4.  This was overkill and I expect would be offputting
42132         to the Emacs maintainers.  After this change, only 6 new files are
42133         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
42134         stdbool.m4, and tm_gmtoff.m4.
42136         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
42137         Suggested by Bruno Haible in
42138         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
42139         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
42140         and do not check for wchar.h.
42141         * modules/strftime (Files): Remove m4/mbstate_t.m4.
42142         (Depends-on): Remove mbrlen, mbsinit, wchar.
42144 2011-01-18  Bruno Haible  <bruno@clisp.org>
42146         Tests for module 'get-rusage-as'.
42147         * modules/get-rusage-as-tests: New file.
42148         * tests/test-get-rusage-as.c: New file.
42150         New module 'get-rusage-as'.
42151         * modules/get-rusage-as: New file.
42152         * lib/resource-ext.h: New file.
42153         * lib/get-rusage-as.c: New file.
42155 2011-01-17  Eric Blake  <eblake@redhat.com>
42157         sigaction: relax license from LGPLv3+ to LGPLv2+
42158         * modules/sigaction (License): Relax to LGPLv2+.
42160 2011-01-14  Bruno Haible  <bruno@clisp.org>
42162         filemode: Make function declarations usable in C++ mode.
42163         * lib/filemode.h: Enclose function declarations in extern "C" block.
42164         Reported by John W. Eaton <jwe@gnu.org>.
42166 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
42168         save-cwd: no longer include "xgetcwd.h"
42169         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
42170         This avoids a compilation failure in projects that use save-cwd
42171         without also using the xgetcwd module.
42173 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
42175         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
42176         This is so that a program like Emacs, which needs only dtoastr,
42177         does not have to bother with distributing and compiling ftoastr
42178         and ldtoastr.
42179         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
42180         * modules/dtoastr, modules/ldtoastr: New files.
42181         * modules/ftoastr: Now works just for 'float'.
42182         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
42183         (Makefile.am): Remove ftoastr.h (not needed and no effect),
42184         dtoastr.c, ldtoastr.c.
42186 2011-01-11  Jim Meyering  <meyering@redhat.com>
42188         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
42189         There is no need to work around the lack of the fchdir function,
42190         since gnulib can now provide a replacement when required.
42191         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
42192         * modules/save-cwd (Depends-on): Add fchdir.
42194 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
42196         openat, save-cwd: avoid xmalloc
42198         This removes a direct (but undocumented) dependency of openat on
42199         xalloc, along with an indirect dependency via save-cwd.  It also
42200         removes a dependency of save-cwd on xgetcwd, and thereby
42201         indirectly on xalloc.  This change causes the openat substitute
42202         to fall back on save_cwd when memory is tight, and for save_cwd to
42203         fail instead of dying when memory is tight, but that's good enough.
42204         Problem and initial idea for fix reported by Bastien Roucaries in
42205         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
42207         * lib/openat-proc.c: Include stdlib.h (for malloc), not
42208         xalloc.h (for xmalloc).
42209         (openat_proc_name): Use malloc, not xmalloc.
42210         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
42211         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
42213         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
42214         This avoids heap allocation for file names whose lengths are in
42215         the range 512..1023, with the upper bound increasing to at most
42216         4031 depending on the platform's PATH_MAX.  (We do not want
42217         pathmax.h here as it might supply a non-constant PATH_MAX.)
42218         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
42219         Perhaps they should be moved to malloca.h?
42220         (OPENAT_BUFFER_SIZE): Use them.
42222 2011-01-10  Bruno Haible  <bruno@clisp.org>
42224         doc: Update users.txt.
42225         * users.txt: Add recutils.
42227 2011-01-09  Karl Berry  <karl@gnu.org>
42229         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
42231         * doc/configmake.texi: New file.
42232         * doc/gnulib.texi: Include it.
42233         * modules/configmake: Move documentation from here.
42235 2011-01-09  Bruno Haible  <bruno@clisp.org>
42237         Update to Unicode 6.0.0.
42238         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
42239         (get_lbp): Update for Unicode 6.0.0.
42240         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
42241         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
42242         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
42243         U+11001, U+11038..U+11046. Remove U+06DE.
42244         (uc_width): Fix bounds of planes.
42245         * tests/uniwidth/test-uc_width2.sh: Same updates as in
42246         lib/uniwidth/width.c.
42247         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
42248         trailing whitespace removed.
42249         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
42250         without comments, but with the original copyright notice.
42251         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
42252         * lib/unicase/ignorable.h: Likewise.
42253         * lib/unicase/tocasefold.h: Likewise.
42254         * lib/unicase/tolower.h: Likewise.
42255         * lib/unicase/totitle.h: Likewise.
42256         * lib/unicase/toupper.h: Likewise.
42257         * lib/unictype/bidi_of.h: Likewise.
42258         * lib/unictype/blocks.h: Likewise.
42259         * lib/unictype/categ_C.h: Likewise.
42260         * lib/unictype/categ_Cn.h: Likewise.
42261         * lib/unictype/categ_L.h: Likewise.
42262         * lib/unictype/categ_Ll.h: Likewise.
42263         * lib/unictype/categ_Lm.h: Likewise.
42264         * lib/unictype/categ_Lo.h: Likewise.
42265         * lib/unictype/categ_Lu.h: Likewise.
42266         * lib/unictype/categ_M.h: Likewise.
42267         * lib/unictype/categ_Mc.h: Likewise.
42268         * lib/unictype/categ_Me.h: Likewise.
42269         * lib/unictype/categ_Mn.h: Likewise.
42270         * lib/unictype/categ_N.h: Likewise.
42271         * lib/unictype/categ_Nd.h: Likewise.
42272         * lib/unictype/categ_No.h: Likewise.
42273         * lib/unictype/categ_P.h: Likewise.
42274         * lib/unictype/categ_Po.h: Likewise.
42275         * lib/unictype/categ_S.h: Likewise.
42276         * lib/unictype/categ_Sc.h: Likewise.
42277         * lib/unictype/categ_Sk.h: Likewise.
42278         * lib/unictype/categ_Sm.h: Likewise.
42279         * lib/unictype/categ_So.h: Likewise.
42280         * lib/unictype/categ_of.h: Likewise.
42281         * lib/unictype/combining.h: Likewise.
42282         * lib/unictype/ctype_alnum.h: Likewise.
42283         * lib/unictype/ctype_alpha.h: Likewise.
42284         * lib/unictype/ctype_graph.h: Likewise.
42285         * lib/unictype/ctype_lower.h: Likewise.
42286         * lib/unictype/ctype_print.h: Likewise.
42287         * lib/unictype/ctype_punct.h: Likewise.
42288         * lib/unictype/ctype_upper.h: Likewise.
42289         * lib/unictype/decdigit.h: Likewise.
42290         * lib/unictype/digit.h: Likewise.
42291         * lib/unictype/numeric.h: Likewise.
42292         * lib/unictype/pr_alphabetic.h: Likewise.
42293         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42294         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42295         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42296         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42297         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42298         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42299         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42300         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42301         * lib/unictype/pr_case_ignorable.h: Likewise.
42302         * lib/unictype/pr_cased.h: Likewise.
42303         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
42304         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
42305         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
42306         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
42307         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
42308         * lib/unictype/pr_combining.h: Likewise.
42309         * lib/unictype/pr_composite.h: Likewise.
42310         * lib/unictype/pr_currency_symbol.h: Likewise.
42311         * lib/unictype/pr_decimal_digit.h: Likewise.
42312         * lib/unictype/pr_deprecated.h: Likewise.
42313         * lib/unictype/pr_format_control.h: Likewise.
42314         * lib/unictype/pr_grapheme_base.h: Likewise.
42315         * lib/unictype/pr_grapheme_extend.h: Likewise.
42316         * lib/unictype/pr_grapheme_link.h: Likewise.
42317         * lib/unictype/pr_id_continue.h: Likewise.
42318         * lib/unictype/pr_id_start.h: Likewise.
42319         * lib/unictype/pr_ideographic.h: Likewise.
42320         * lib/unictype/pr_lowercase.h: Likewise.
42321         * lib/unictype/pr_math.h: Likewise.
42322         * lib/unictype/pr_numeric.h: Likewise.
42323         * lib/unictype/pr_other_alphabetic.h: Likewise.
42324         * lib/unictype/pr_other_id_continue.h: Likewise.
42325         * lib/unictype/pr_other_math.h: Likewise.
42326         * lib/unictype/pr_punctuation.h: Likewise.
42327         * lib/unictype/pr_sentence_terminal.h: Likewise.
42328         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42329         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42330         * lib/unictype/pr_unified_ideograph.h: Likewise.
42331         * lib/unictype/pr_uppercase.h: Likewise.
42332         * lib/unictype/pr_xid_continue.h: Likewise.
42333         * lib/unictype/pr_xid_start.h: Likewise.
42334         * lib/unictype/scripts.h: Likewise.
42335         * lib/unictype/scripts_byname.gperf: Likewise.
42336         * lib/unictype/sy_java_ident.h: Likewise.
42337         * lib/unigbrk/gbrkprop.h: Likewise.
42338         * lib/unilbrk/lbrkprop1.h: Likewise.
42339         * lib/unilbrk/lbrkprop2.h: Likewise.
42340         * lib/uninorm/decomposition-table2.h: Likewise.
42341         * lib/uniwbrk/wbrkprop.h: Likewise.
42342         * tests/unicase/test-cased.c: Likewise.
42343         * tests/unicase/test-ignorable.c: Likewise.
42344         * tests/unicase/test-uc_tolower.c: Likewise.
42345         * tests/unicase/test-uc_totitle.c: Likewise.
42346         * tests/unicase/test-uc_toupper.c: Likewise.
42347         * tests/unictype/test-categ_C.c: Likewise.
42348         * tests/unictype/test-categ_Cn.c: Likewise.
42349         * tests/unictype/test-categ_L.c: Likewise.
42350         * tests/unictype/test-categ_Ll.c: Likewise.
42351         * tests/unictype/test-categ_Lm.c: Likewise.
42352         * tests/unictype/test-categ_Lo.c: Likewise.
42353         * tests/unictype/test-categ_Lu.c: Likewise.
42354         * tests/unictype/test-categ_M.c: Likewise.
42355         * tests/unictype/test-categ_Mc.c: Likewise.
42356         * tests/unictype/test-categ_Me.c: Likewise.
42357         * tests/unictype/test-categ_Mn.c: Likewise.
42358         * tests/unictype/test-categ_N.c: Likewise.
42359         * tests/unictype/test-categ_Nd.c: Likewise.
42360         * tests/unictype/test-categ_No.c: Likewise.
42361         * tests/unictype/test-categ_P.c: Likewise.
42362         * tests/unictype/test-categ_Po.c: Likewise.
42363         * tests/unictype/test-categ_S.c: Likewise.
42364         * tests/unictype/test-categ_Sc.c: Likewise.
42365         * tests/unictype/test-categ_Sk.c: Likewise.
42366         * tests/unictype/test-categ_Sm.c: Likewise.
42367         * tests/unictype/test-categ_So.c: Likewise.
42368         * tests/unictype/test-ctype_alnum.c: Likewise.
42369         * tests/unictype/test-ctype_alpha.c: Likewise.
42370         * tests/unictype/test-ctype_graph.c: Likewise.
42371         * tests/unictype/test-ctype_lower.c: Likewise.
42372         * tests/unictype/test-ctype_print.c: Likewise.
42373         * tests/unictype/test-ctype_punct.c: Likewise.
42374         * tests/unictype/test-ctype_upper.c: Likewise.
42375         * tests/unictype/test-decdigit.h: Likewise.
42376         * tests/unictype/test-digit.h: Likewise.
42377         * tests/unictype/test-numeric.h: Likewise.
42378         * tests/unictype/test-pr_alphabetic.c: Likewise.
42379         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42380         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42381         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42382         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42383         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42384         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42385         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42386         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42387         * tests/unictype/test-pr_case_ignorable.c: Likewise.
42388         * tests/unictype/test-pr_cased.c: Likewise.
42389         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
42390         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
42391         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
42392         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
42393         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
42394         * tests/unictype/test-pr_combining.c: Likewise.
42395         * tests/unictype/test-pr_composite.c: Likewise.
42396         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42397         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42398         * tests/unictype/test-pr_deprecated.c: Likewise.
42399         * tests/unictype/test-pr_format_control.c: Likewise.
42400         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42401         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42402         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42403         * tests/unictype/test-pr_id_continue.c: Likewise.
42404         * tests/unictype/test-pr_id_start.c: Likewise.
42405         * tests/unictype/test-pr_ideographic.c: Likewise.
42406         * tests/unictype/test-pr_lowercase.c: Likewise.
42407         * tests/unictype/test-pr_math.c: Likewise.
42408         * tests/unictype/test-pr_numeric.c: Likewise.
42409         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42410         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42411         * tests/unictype/test-pr_other_math.c: Likewise.
42412         * tests/unictype/test-pr_punctuation.c: Likewise.
42413         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42414         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42415         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42416         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42417         * tests/unictype/test-pr_uppercase.c: Likewise.
42418         * tests/unictype/test-pr_xid_continue.c: Likewise.
42419         * tests/unictype/test-pr_xid_start.c: Likewise.
42420         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
42421         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
42422         changes.
42423         * lib/unictype/categ_Cc.h: Likewise.
42424         * lib/unictype/categ_Cf.h: Likewise.
42425         * lib/unictype/categ_Co.h: Likewise.
42426         * lib/unictype/categ_Cs.h: Likewise.
42427         * lib/unictype/categ_Lt.h: Likewise.
42428         * lib/unictype/categ_Nl.h: Likewise.
42429         * lib/unictype/categ_Pc.h: Likewise.
42430         * lib/unictype/categ_Pd.h: Likewise.
42431         * lib/unictype/categ_Pe.h: Likewise.
42432         * lib/unictype/categ_Pf.h: Likewise.
42433         * lib/unictype/categ_Pi.h: Likewise.
42434         * lib/unictype/categ_Ps.h: Likewise.
42435         * lib/unictype/categ_Z.h: Likewise.
42436         * lib/unictype/categ_Zl.h: Likewise.
42437         * lib/unictype/categ_Zp.h: Likewise.
42438         * lib/unictype/categ_Zs.h: Likewise.
42439         * lib/unictype/ctype_blank.h: Likewise.
42440         * lib/unictype/ctype_cntrl.h: Likewise.
42441         * lib/unictype/ctype_digit.h: Likewise.
42442         * lib/unictype/ctype_space.h: Likewise.
42443         * lib/unictype/ctype_xdigit.h: Likewise.
42444         * lib/unictype/mirror.h: Likewise.
42445         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42446         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42447         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42448         * lib/unictype/pr_bidi_control.h: Likewise.
42449         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42450         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42451         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42452         * lib/unictype/pr_bidi_pdf.h: Likewise.
42453         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42454         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42455         * lib/unictype/pr_dash.h: Likewise.
42456         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42457         * lib/unictype/pr_diacritic.h: Likewise.
42458         * lib/unictype/pr_extender.h: Likewise.
42459         * lib/unictype/pr_hex_digit.h: Likewise.
42460         * lib/unictype/pr_hyphen.h: Likewise.
42461         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42462         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42463         * lib/unictype/pr_ignorable_control.h: Likewise.
42464         * lib/unictype/pr_iso_control.h: Likewise.
42465         * lib/unictype/pr_join_control.h: Likewise.
42466         * lib/unictype/pr_left_of_pair.h: Likewise.
42467         * lib/unictype/pr_line_separator.h: Likewise.
42468         * lib/unictype/pr_logical_order_exception.h: Likewise.
42469         * lib/unictype/pr_non_break.h: Likewise.
42470         * lib/unictype/pr_not_a_character.h: Likewise.
42471         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42472         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42473         * lib/unictype/pr_other_id_start.h: Likewise.
42474         * lib/unictype/pr_other_lowercase.h: Likewise.
42475         * lib/unictype/pr_other_uppercase.h: Likewise.
42476         * lib/unictype/pr_paired_punctuation.h: Likewise.
42477         * lib/unictype/pr_paragraph_separator.h: Likewise.
42478         * lib/unictype/pr_pattern_syntax.h: Likewise.
42479         * lib/unictype/pr_pattern_white_space.h: Likewise.
42480         * lib/unictype/pr_private_use.h: Likewise.
42481         * lib/unictype/pr_quotation_mark.h: Likewise.
42482         * lib/unictype/pr_radical.h: Likewise.
42483         * lib/unictype/pr_soft_dotted.h: Likewise.
42484         * lib/unictype/pr_space.h: Likewise.
42485         * lib/unictype/pr_titlecase.h: Likewise.
42486         * lib/unictype/pr_variation_selector.h: Likewise.
42487         * lib/unictype/pr_white_space.h: Likewise.
42488         * lib/unictype/pr_zero_width.h: Likewise.
42489         * lib/unictype/sy_c_ident.h: Likewise.
42490         * lib/unictype/sy_c_whitespace.h: Likewise.
42491         * lib/unictype/sy_java_whitespace.h: Likewise.
42492         * lib/uninorm/composition-table.gperf: Likewise.
42493         * lib/uninorm/decomposition-table1.h: Likewise.
42494         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
42495         LB8.
42496         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42497         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42498         * modules/unictype/*: Bump version number of expected libunistring
42499         version.
42501 2011-01-09  Bruno Haible  <bruno@clisp.org>
42503         Update to Unicode 5.2.0.
42504         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
42505         trailing whitespace removed.
42507 2011-01-09  Bruno Haible  <bruno@clisp.org>
42509         New Unicode character properties, from Unicode 5.2.0.
42510         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
42511         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
42512         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
42513         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
42514         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
42515         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
42516         uc_is_property_cased, uc_is_property_case_ignorable,
42517         uc_is_property_changes_when_lowercased,
42518         uc_is_property_changes_when_uppercased,
42519         uc_is_property_changes_when_titlecased,
42520         uc_is_property_changes_when_casefolded,
42521         uc_is_property_changes_when_casemapped): New declarations.
42522         * lib/unictype/pr_byname.gperf: Add the new properties.
42523         * modules/unictype/property-byname (Depends-on): Depend on the new
42524         properties modules.
42525         * modules/unictype/property-all (Depends-on): Likewise.
42526         * MODULES.html.sh (Unicode string functions): Add
42527         unictype/property-case-ignorable, unictype/property-cased,
42528         unictype/property-changes-when-casefolded,
42529         unictype/property-changes-when-casemapped,
42530         unictype/property-changes-when-lowercased,
42531         unictype/property-changes-when-titlecased,
42532         unictype/property-changes-when-uppercased.
42534         New module 'unictype/property-changes-when-casemapped'.
42535         * modules/unictype/property-changes-when-casemapped: New file.
42536         * lib/unictype/pr_changes_when_casemapped.c: New file.
42537         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
42538         generated by gen-uni-tables.
42539         * modules/unictype/property-changes-when-casemapped-tests: New file.
42540         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
42541         automatically generated by gen-uni-tables.
42543         New module 'unictype/property-changes-when-casefolded'.
42544         * modules/unictype/property-changes-when-casefolded: New file.
42545         * lib/unictype/pr_changes_when_casefolded.c: New file.
42546         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
42547         generated by gen-uni-tables.
42548         * modules/unictype/property-changes-when-casefolded-tests: New file.
42549         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
42550         automatically generated by gen-uni-tables.
42552         New module 'unictype/property-changes-when-titlecased'.
42553         * modules/unictype/property-changes-when-titlecased: New file.
42554         * lib/unictype/pr_changes_when_titlecased.c: New file.
42555         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
42556         generated by gen-uni-tables.
42557         * modules/unictype/property-changes-when-titlecased-tests: New file.
42558         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
42559         automatically generated by gen-uni-tables.
42561         New module 'unictype/property-changes-when-uppercased'.
42562         * modules/unictype/property-changes-when-uppercased: New file.
42563         * lib/unictype/pr_changes_when_uppercased.c: New file.
42564         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
42565         generated by gen-uni-tables.
42566         * modules/unictype/property-changes-when-uppercased-tests: New file.
42567         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
42568         automatically generated by gen-uni-tables.
42570         New module 'unictype/property-changes-when-lowercased'.
42571         * modules/unictype/property-changes-when-lowercased: New file.
42572         * lib/unictype/pr_changes_when_lowercased.c: New file.
42573         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
42574         generated by gen-uni-tables.
42575         * modules/unictype/property-changes-when-lowercased-tests: New file.
42576         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
42577         automatically generated by gen-uni-tables.
42579         New module 'unictype/property-case-ignorable'.
42580         * modules/unictype/property-case-ignorable: New file.
42581         * lib/unictype/pr_case_ignorable.c: New file.
42582         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
42583         by gen-uni-tables.
42584         * modules/unictype/property-case-ignorable-tests: New file.
42585         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
42586         generated by gen-uni-tables.
42588         New module 'unictype/property-cased'.
42589         * modules/unictype/property-cased: New file.
42590         * lib/unictype/pr_cased.c: New file.
42591         * lib/unictype/pr_cased.h: New file, automatically generated by
42592         gen-uni-tables.
42593         * modules/unictype/property-cased-tests: New file.
42594         * tests/unictype/test-pr_cased.c: New file, automatically generated by
42595         gen-uni-tables.
42597 2011-01-09  Bruno Haible  <bruno@clisp.org>
42599         Update to Unicode 5.2.0.
42600         * lib/gen-uni-tables.c (output_predicate, output_category,
42601         output_combclass, output_bidi_category, output_decimal_digit_test,
42602         output_decimal_digit, output_digit_test, output_digit,
42603         output_numeric_test, output_numeric, output_mirror, output_scripts,
42604         output_scripts_byname, output_blocks, output_ident_category): Fix
42605         comment header.
42606         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
42607         get_wbp.
42608         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
42609         items.
42610         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
42611         Changes_When_Lowercased, Changes_When_Uppercased,
42612         Changes_When_Titlecased, Changes_When_Casefolded,
42613         Changes_When_Casemapped.
42614         (is_property_alphabetic, is_property_default_ignorable_code_point):
42615         Update for Unicode 5.2.0.
42616         (is_property_cased, is_property_case_ignorable,
42617         is_property_changes_when_lowercased,
42618         is_property_changes_when_uppercased,
42619         is_property_changes_when_titlecased,
42620         is_property_changes_when_casefolded,
42621         is_property_changes_when_casemapped): New functions.
42622         (output_properties): Output also the properties cased, case_ignorable,
42623         changes_when_lowercased, changes_when_uppercased,
42624         changes_when_titlecased, changes_when_casefolded,
42625         changes_when_casemapped.
42626         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
42627         Unicode TR#11 revision 17 -> 19.
42628         (LBP_CP): New enumeration value.
42629         (LBP_*): Adjust values accordingly.
42630         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42631         TR#14 revision 22 -> 24.
42632         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
42633         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
42634         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42635         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
42636         is_WBP_MIDLETTER.
42637         (output_composition_tables): Allow for 24 bits instead of 16 bits in
42638         the code1 and code2 of each composition rule.
42639         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
42640         * lib/unicase/ignorable.h: Likewise.
42641         * lib/unicase/tocasefold.h: Likewise.
42642         * lib/unicase/tolower.h: Likewise.
42643         * lib/unicase/totitle.h: Likewise.
42644         * lib/unicase/toupper.h: Likewise.
42645         * lib/unictype/bidi_of.h: Likewise.
42646         * lib/unictype/blocks.h: Likewise.
42647         * lib/unictype/categ_C.h: Likewise.
42648         * lib/unictype/categ_Cf.h: Likewise.
42649         * lib/unictype/categ_Cn.h: Likewise.
42650         * lib/unictype/categ_L.h: Likewise.
42651         * lib/unictype/categ_Ll.h: Likewise.
42652         * lib/unictype/categ_Lm.h: Likewise.
42653         * lib/unictype/categ_Lo.h: Likewise.
42654         * lib/unictype/categ_Lu.h: Likewise.
42655         * lib/unictype/categ_M.h: Likewise.
42656         * lib/unictype/categ_Mc.h: Likewise.
42657         * lib/unictype/categ_Mn.h: Likewise.
42658         * lib/unictype/categ_N.h: Likewise.
42659         * lib/unictype/categ_Nd.h: Likewise.
42660         * lib/unictype/categ_Nl.h: Likewise.
42661         * lib/unictype/categ_No.h: Likewise.
42662         * lib/unictype/categ_P.h: Likewise.
42663         * lib/unictype/categ_Pd.h: Likewise.
42664         * lib/unictype/categ_Po.h: Likewise.
42665         * lib/unictype/categ_S.h: Likewise.
42666         * lib/unictype/categ_Sc.h: Likewise.
42667         * lib/unictype/categ_So.h: Likewise.
42668         * lib/unictype/categ_of.h: Likewise.
42669         * lib/unictype/combining.h: Likewise.
42670         * lib/unictype/ctype_alnum.h: Likewise.
42671         * lib/unictype/ctype_alpha.h: Likewise.
42672         * lib/unictype/ctype_graph.h: Likewise.
42673         * lib/unictype/ctype_lower.h: Likewise.
42674         * lib/unictype/ctype_print.h: Likewise.
42675         * lib/unictype/ctype_punct.h: Likewise.
42676         * lib/unictype/ctype_upper.h: Likewise.
42677         * lib/unictype/decdigit.h: Likewise.
42678         * lib/unictype/digit.h: Likewise.
42679         * lib/unictype/numeric.h: Likewise.
42680         * lib/unictype/pr_alphabetic.h: Likewise.
42681         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42682         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42683         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42684         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42685         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42686         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42687         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42688         * lib/unictype/pr_combining.h: Likewise.
42689         * lib/unictype/pr_composite.h: Likewise.
42690         * lib/unictype/pr_currency_symbol.h: Likewise.
42691         * lib/unictype/pr_dash.h: Likewise.
42692         * lib/unictype/pr_decimal_digit.h: Likewise.
42693         * lib/unictype/pr_deprecated.h: Likewise.
42694         * lib/unictype/pr_diacritic.h: Likewise.
42695         * lib/unictype/pr_extender.h: Likewise.
42696         * lib/unictype/pr_grapheme_base.h: Likewise.
42697         * lib/unictype/pr_grapheme_extend.h: Likewise.
42698         * lib/unictype/pr_grapheme_link.h: Likewise.
42699         * lib/unictype/pr_id_continue.h: Likewise.
42700         * lib/unictype/pr_id_start.h: Likewise.
42701         * lib/unictype/pr_ideographic.h: Likewise.
42702         * lib/unictype/pr_ignorable_control.h: Likewise.
42703         * lib/unictype/pr_logical_order_exception.h: Likewise.
42704         * lib/unictype/pr_lowercase.h: Likewise.
42705         * lib/unictype/pr_numeric.h: Likewise.
42706         * lib/unictype/pr_other_alphabetic.h: Likewise.
42707         * lib/unictype/pr_punctuation.h: Likewise.
42708         * lib/unictype/pr_sentence_terminal.h: Likewise.
42709         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42710         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42711         * lib/unictype/pr_unified_ideograph.h: Likewise.
42712         * lib/unictype/pr_uppercase.h: Likewise.
42713         * lib/unictype/pr_xid_continue.h: Likewise.
42714         * lib/unictype/pr_xid_start.h: Likewise.
42715         * lib/unictype/pr_zero_width.h: Likewise.
42716         * lib/unictype/scripts.h: Likewise.
42717         * lib/unictype/scripts_byname.gperf: Likewise.
42718         * lib/unictype/sy_java_ident.h: Likewise.
42719         * lib/unigbrk/gbrkprop.h: Likewise.
42720         * lib/unilbrk/lbrkprop1.h: Likewise.
42721         * lib/unilbrk/lbrkprop2.h: Likewise.
42722         * lib/unilbrk/lbrktables.h: Likewise.
42723         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
42724         LBP_CP. Implement rule LB30.
42725         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
42726         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
42727         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
42728         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
42729         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
42730         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
42731         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
42732         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
42733         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
42734         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
42735         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
42736         bits instead of 16 bits in the code1 and code2 of each composition
42737         rule.
42738         (uc_composition): Update for Unicode 5.2.0.
42739         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
42740         * lib/uninorm/decomposition-table2.h: Likewise.
42741         * lib/uniwbrk/wbrkprop.h: Likewise.
42742         * tests/unicase/test-cased.c: Likewise.
42743         * tests/unicase/test-ignorable.c: Likewise.
42744         * tests/unicase/test-uc_tolower.c: Likewise.
42745         * tests/unicase/test-uc_totitle.c: Likewise.
42746         * tests/unicase/test-uc_toupper.c: Likewise.
42747         * tests/unictype/test-categ_C.c: Likewise.
42748         * tests/unictype/test-categ_Cf.c: Likewise.
42749         * tests/unictype/test-categ_Cn.c: Likewise.
42750         * tests/unictype/test-categ_L.c: Likewise.
42751         * tests/unictype/test-categ_Ll.c: Likewise.
42752         * tests/unictype/test-categ_Lm.c: Likewise.
42753         * tests/unictype/test-categ_Lo.c: Likewise.
42754         * tests/unictype/test-categ_Lu.c: Likewise.
42755         * tests/unictype/test-categ_M.c: Likewise.
42756         * tests/unictype/test-categ_Mc.c: Likewise.
42757         * tests/unictype/test-categ_Mn.c: Likewise.
42758         * tests/unictype/test-categ_N.c: Likewise.
42759         * tests/unictype/test-categ_Nd.c: Likewise.
42760         * tests/unictype/test-categ_Nl.c: Likewise.
42761         * tests/unictype/test-categ_No.c: Likewise.
42762         * tests/unictype/test-categ_P.c: Likewise.
42763         * tests/unictype/test-categ_Pd.c: Likewise.
42764         * tests/unictype/test-categ_Po.c: Likewise.
42765         * tests/unictype/test-categ_S.c: Likewise.
42766         * tests/unictype/test-categ_Sc.c: Likewise.
42767         * tests/unictype/test-categ_So.c: Likewise.
42768         * tests/unictype/test-ctype_alnum.c: Likewise.
42769         * tests/unictype/test-ctype_alpha.c: Likewise.
42770         * tests/unictype/test-ctype_graph.c: Likewise.
42771         * tests/unictype/test-ctype_lower.c: Likewise.
42772         * tests/unictype/test-ctype_print.c: Likewise.
42773         * tests/unictype/test-ctype_punct.c: Likewise.
42774         * tests/unictype/test-ctype_upper.c: Likewise.
42775         * tests/unictype/test-decdigit.h: Likewise.
42776         * tests/unictype/test-digit.h: Likewise.
42777         * tests/unictype/test-numeric.h: Likewise.
42778         * tests/unictype/test-pr_alphabetic.c: Likewise.
42779         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42780         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42781         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42782         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42783         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42784         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42785         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42786         * tests/unictype/test-pr_combining.c: Likewise.
42787         * tests/unictype/test-pr_composite.c: Likewise.
42788         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42789         * tests/unictype/test-pr_dash.c: Likewise.
42790         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42791         * tests/unictype/test-pr_deprecated.c: Likewise.
42792         * tests/unictype/test-pr_diacritic.c: Likewise.
42793         * tests/unictype/test-pr_extender.c: Likewise.
42794         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42795         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42796         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42797         * tests/unictype/test-pr_id_continue.c: Likewise.
42798         * tests/unictype/test-pr_id_start.c: Likewise.
42799         * tests/unictype/test-pr_ideographic.c: Likewise.
42800         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42801         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42802         * tests/unictype/test-pr_lowercase.c: Likewise.
42803         * tests/unictype/test-pr_numeric.c: Likewise.
42804         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42805         * tests/unictype/test-pr_punctuation.c: Likewise.
42806         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42807         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42808         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42809         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42810         * tests/unictype/test-pr_uppercase.c: Likewise.
42811         * tests/unictype/test-pr_xid_continue.c: Likewise.
42812         * tests/unictype/test-pr_xid_start.c: Likewise.
42813         * tests/unictype/test-pr_zero_width.c: Likewise.
42814         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
42815         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
42816         changed behaviour: line breaking is now disallowed between a letter
42817         or '=' and '('.
42818         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42819         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42820         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42821         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
42822         * tests/uniwidth/test-uc_width2.sh: Same updates as in
42823         lib/uniwidth/width.c.
42824         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
42825         without comments, but with the original copyright notice.
42826         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
42827         changes.
42828         * lib/unictype/categ_Cc.h: Likewise.
42829         * lib/unictype/categ_Co.h: Likewise.
42830         * lib/unictype/categ_Cs.h: Likewise.
42831         * lib/unictype/categ_Lt.h: Likewise.
42832         * lib/unictype/categ_Me.h: Likewise.
42833         * lib/unictype/categ_Pc.h: Likewise.
42834         * lib/unictype/categ_Pe.h: Likewise.
42835         * lib/unictype/categ_Pf.h: Likewise.
42836         * lib/unictype/categ_Pi.h: Likewise.
42837         * lib/unictype/categ_Ps.h: Likewise.
42838         * lib/unictype/categ_Sk.h: Likewise.
42839         * lib/unictype/categ_Sm.h: Likewise.
42840         * lib/unictype/categ_Z.h: Likewise.
42841         * lib/unictype/categ_Zl.h: Likewise.
42842         * lib/unictype/categ_Zp.h: Likewise.
42843         * lib/unictype/categ_Zs.h: Likewise.
42844         * lib/unictype/ctype_blank.h: Likewise.
42845         * lib/unictype/ctype_cntrl.h: Likewise.
42846         * lib/unictype/ctype_digit.h: Likewise.
42847         * lib/unictype/ctype_space.h: Likewise.
42848         * lib/unictype/ctype_xdigit.h: Likewise.
42849         * lib/unictype/mirror.h: Likewise.
42850         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42851         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42852         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42853         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42854         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42855         * lib/unictype/pr_bidi_control.h: Likewise.
42856         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42857         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42858         * lib/unictype/pr_bidi_pdf.h: Likewise.
42859         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42860         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42861         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42862         * lib/unictype/pr_format_control.h: Likewise.
42863         * lib/unictype/pr_hex_digit.h: Likewise.
42864         * lib/unictype/pr_hyphen.h: Likewise.
42865         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42866         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42867         * lib/unictype/pr_iso_control.h: Likewise.
42868         * lib/unictype/pr_join_control.h: Likewise.
42869         * lib/unictype/pr_left_of_pair.h: Likewise.
42870         * lib/unictype/pr_line_separator.h: Likewise.
42871         * lib/unictype/pr_math.h: Likewise.
42872         * lib/unictype/pr_non_break.h: Likewise.
42873         * lib/unictype/pr_not_a_character.h: Likewise.
42874         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42875         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42876         * lib/unictype/pr_other_id_continue.h: Likewise.
42877         * lib/unictype/pr_other_id_start.h: Likewise.
42878         * lib/unictype/pr_other_lowercase.h: Likewise.
42879         * lib/unictype/pr_other_math.h: Likewise.
42880         * lib/unictype/pr_other_uppercase.h: Likewise.
42881         * lib/unictype/pr_paired_punctuation.h: Likewise.
42882         * lib/unictype/pr_paragraph_separator.h: Likewise.
42883         * lib/unictype/pr_pattern_syntax.h: Likewise.
42884         * lib/unictype/pr_pattern_white_space.h: Likewise.
42885         * lib/unictype/pr_private_use.h: Likewise.
42886         * lib/unictype/pr_quotation_mark.h: Likewise.
42887         * lib/unictype/pr_radical.h: Likewise.
42888         * lib/unictype/pr_soft_dotted.h: Likewise.
42889         * lib/unictype/pr_space.h: Likewise.
42890         * lib/unictype/pr_titlecase.h: Likewise.
42891         * lib/unictype/pr_variation_selector.h: Likewise.
42892         * lib/unictype/pr_white_space.h: Likewise.
42893         * lib/unictype/sy_c_ident.h: Likewise.
42894         * lib/unictype/sy_c_whitespace.h: Likewise.
42895         * lib/unictype/sy_java_whitespace.h: Likewise.
42896         * modules/uni*/*: Bump version number of expected libunistring version.
42897         Reported by Simon Josefsson.
42899 2011-01-09  Karl Heuer  <kwzh@gnu.org>
42901         useless-if-before-free: fix typo in --help and make the internal,
42902         automatic version date update process work once again.
42903         --help output contained a NUL character instead of the
42904         backslash-zero that was intended.  Also, the "must lie within
42905         the first 8 lines" line is on line 9, and hence not getting
42906         automatically updated.
42907         * build-aux/useless-if-before-free: Fix the former by adding a
42908         backslash, and the latter by condensing the three lines of what-it-does
42909         to a single line, leaving one line of slack for the future.
42911 2011-01-09  Bruno Haible  <bruno@clisp.org>
42913         uniwidth/width: Fix width of U+1D173..U+1D17A.
42914         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
42915         symbolic_width, output_width_property_test): New functions.
42916         (main): Invoke output_nonspacing_property, output_width_property_test.
42917         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
42918         U+1D173..U+1D17A.
42919         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
42920         1.
42921         * modules/uniwidth/*: Bump version number of expected libunistring
42922         version.
42923         * modules/unilbrk/*: Likewise.
42925 2011-01-08  Bruno Haible  <bruno@clisp.org>
42927         uninorm tests: Preserve copyright of Unicode data file.
42928         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
42929         Mention modifications.
42931 2011-01-08  Bruno Haible  <bruno@clisp.org>
42933         gen-uni-tables: Prepare for Unicode 5.2.0.
42934         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
42935         (debug_output_lbp, output_lbp): Update.
42937 2011-01-08  Bruno Haible  <bruno@clisp.org>
42939         unilbrk: Clarify gen-uni-tables.c code.
42940         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
42941         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
42942         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
42944 2011-01-07  Bruno Haible  <bruno@clisp.org>
42946         strtod: Restore errno when successfully parsing Infinity or NaN.
42947         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
42948         restore the original errno.
42950 2011-01-07  Bruno Haible  <bruno@clisp.org>
42952         remove test: Avoid failure on HP-UX 11.
42953         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
42955 2011-01-07  Bruno Haible  <bruno@clisp.org>
42957         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
42958         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
42959         error code.
42961 2011-01-07  Pádraig Brady  <P@draigBrady.com>
42963         ignore-value: fixup comments, and add Eric Blake
42964         as an author since he rewrote the macros.
42965         * lib/ignore-value.h (ignore_value):  State that
42966         we now support aggregates.  Also specify exactly
42967         when the GCC warn_unused_result feature was added.
42969 2011-01-06  Eric Blake  <eblake@redhat.com>
42971         ignore-value: support aggregate types
42972         * lib/ignore-value.h (ignore_value): Provide separate gcc
42973         definition.
42974         * modules/ignore-value-tests: New test module.
42975         * tests/test-ignore-value.c: New test.
42977         maint.mk: improve sc_prohibit_strcmp regex
42978         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
42979         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
42980         definition of STRNEQ.
42982         signal: work around Haiku issue with SIGBUS
42983         * lib/siglist.h: Add comment.
42984         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
42985         strsignal's favoring of SIGSEGV.
42986         * tests/test-signal.c (main): Avoid test failure.
42987         * doc/posix-headers/signal.texi (signal.h): Document the issue.
42988         Reported by Scott McCreary.
42990         maint.mk: add pre-release check to ensure submodule commits are public
42991         * top/maint.mk (public-submodule-commit): New rule.
42992         (submodule-checks): New variable.
42993         (alpha beta stable): Depend on the variable.
42995 2011-01-05  Pádraig Brady  <P@draigBrady.com>
42996         and Jim Meyering  <meyering@redhat.com>
42998         ignore-value: make ignore_value more generic; deprecate ignore_ptr
42999         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
43000         (ATTRIBUTE_DEPRECATED): Define.
43001         (_ignore_case): New function.
43002         (ignore_value): New macro, to replace the old function.
43003         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
43004         * modules/ignore-value (Depends-on): Add stdint.
43006 2011-01-04  Eric Blake  <eblake@redhat.com>
43008         doc: regenerate INSTALL
43009         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
43010         @firstparagraphindent support, now that autoconf dropped it.
43011         (INSTALL_PRELUDE): Reinstate old macro.
43012         * doc/install.texi: Resync from autoconf.
43013         * doc/INSTALL: Reflect recent autoconf update.
43014         * doc/INSTALL.ISO: Likewise.
43015         * doc/INSTALL.UTF-8: Likewise.
43016         Reported by Karl Berry.
43018 2011-01-04  Bruce Korb  <address@hidden>
43020         git-version-gen: avoid a sub-shell
43021         * build-aux/git-version-gen: Redirect stderr in `...` via
43022         "exec 2>...", rather than via an added sub-shell.
43024 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
43026         git-version-gen: use (...) rather than sh -c '...'
43027         * build-aux/git-version-gen: Rather than hard-coding a shell's name
43028         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
43030 2011-01-03  Jim Meyering  <meyering@redhat.com>
43032         git-version-gen: convert leading TABs to spaces
43033         * build-aux/git-version-gen: Expand leading TABs.
43035         git-version-gen: handle failed "git rev-list"
43036         * build-aux/git-version-gen: Rather than leaking a "fatal" error
43037         from git and proceeding as if it had succeeded but printed no SHA1
43038         checksums, suppress the diagnostic and handle the failure.
43039         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
43041         git-version-gen: include command name in one more diagnostic
43042         * build-aux/git-version-gen: When the required .tarball-version file
43043         was missing or unreadable, you might see the diagnostic from "cat",
43044         but no trace of the name of the invoking script.  Now, you still see
43045         the diagnostic from cat, but also get one from "git-version-gen: ".
43046         Inspired by a patch from Bruce Korb.
43048         update-copyright: adjust test to match changed code
43049         * tests/test-update-copyright.sh: Change test's expected output
43050         to match new actual output.
43052 2011-01-02  Bruno Haible  <bruno@clisp.org>
43054         getlogin_r: Avoid test failure on HP-UX 11.
43055         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
43056         ERANGE when the second argument is zero.
43057         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
43058         portability problem.
43060 2011-01-02  Bruce Korb  <bkorb@gnu.org>
43062         * build-aux/update-copyright: doc Simon's changes
43064 2011-01-02  Simon Josefsson  <simon@josefsson.org>
43066         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
43067         environment variable.
43069 2011-01-02  Bruno Haible  <bruno@clisp.org>
43071         unigbrk: Avoid gcc warnings.
43072         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
43073         unused variable.
43074         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
43075         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
43076         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
43077         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
43078         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
43079         Change type of first argument to 'const char *'.
43080         (main): Remove unused variable.
43081         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
43082         type of first argument to 'const char *'.
43083         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
43084         Likewise.
43085         (main): Change type of variable 's'.
43086         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
43087         to 'int'.
43089 2011-01-02  Bruno Haible  <bruno@clisp.org>
43091         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
43092         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
43093         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
43094         bug.
43095         * lib/pwrite.c: Undo 2010-12-31 patch.
43096         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
43098 2011-01-02  Bruno Haible  <bruno@clisp.org>
43100         pread: Fix test whether it works.
43101         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
43103 2011-01-02  Bruno Haible  <bruno@clisp.org>
43105         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
43106         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
43107         ends in "6". Don't require a specific month name. Try also the locale
43108         names found on HP-UX 11 and Solaris 7.
43110 2011-01-02  Bruno Haible  <bruno@clisp.org>
43112         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
43113         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
43114         C linkage.
43115         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
43117 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43119         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
43120         for consistency, since the "cluster" term is not used elsewhere.
43121         * lib/unigbrk.in.h: Update name.
43122         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
43123         * lib/unigbrk/u16-grapheme-next.c: Update name.
43124         * lib/unigbrk/u16-grapheme-prev.c: Update name.
43125         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
43126         * lib/unigbrk/u32-grapheme-next.c: Update name.
43127         * lib/unigbrk/u32-grapheme-prev.c: Update name.
43128         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
43129         * lib/unigbrk/u8-grapheme-next.c: Update name.
43130         * lib/unigbrk/u8-grapheme-prev.c: Update name.
43131         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
43132         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
43133         Suggested by Bruno Haible.
43135 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43137         Remove module 'u8-grapheme-len' as too redundant with
43138         'u8-grapheme-next'.
43139         * modules/unigbrk/u8-grapheme-len: Delete file.
43140         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
43141         * lib/unigbrk.in.h: Remove prototype for deleted function.
43142         * lib/unigbrk/u8-grapheme-len.c: Delete file.
43143         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
43145         Remove module 'u16-grapheme-len' as too redundant with
43146         'u16-grapheme-next'.
43147         * modules/unigbrk/u16-grapheme-len: Delete file.
43148         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
43149         * lib/unigbrk.in.h: Remove prototype for deleted function.
43150         * lib/unigbrk/u16-grapheme-len.c: Delete file.
43151         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
43153         Remove module 'u32-grapheme-len' as too redundant with
43154         'u32-grapheme-next'.
43155         * modules/unigbrk/u32-grapheme-len: Delete file.
43156         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
43157         * lib/unigbrk.in.h: Remove prototype for deleted function.
43158         * lib/unigbrk/u32-grapheme-len.c: Delete file.
43159         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
43161         Suggested by Bruno Haible.
43163 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43165         * unigbrk.in.h: Fix typo: "ben" => "been".
43166         Reported by Bruno Haible.
43168 2011-01-01  Jim Meyering  <meyering@redhat.com>
43170         maint: update almost all copyright ranges to include 2011
43171         Run the new "make update-copyright" rule.
43173 2011-01-01  Jim Meyering  <meyering@redhat.com>
43175         maint: update-copyright: exempt doc/INSTALL*
43176         * Makefile (update-copyright): Also exclude doc/INSTALL*,
43177         since they are generated.  Suggested by Bruno Haible.
43179 2011-01-01  Jim Meyering  <meyering@redhat.com>
43181         maint: refine the update-copyright rule
43182         * Makefile (update-copyright): Also exclude any file that includes
43183         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
43184         code that merely generates the comment.
43186 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
43188         New module 'u8-grapheme-len'.
43189         * modules/unigbrk/u8-grapheme-len: New file.
43190         * modules/unigbrk/u8-grapheme-len-tests: New file.
43191         * lib/unigbrk.in.h: Add prototype for new function.
43192         * lib/unigbrk/u8-grapheme-len.c: New file.
43193         * tests/unigbrk/test-u8-grapheme-len.c: New file.
43195         New module 'u16-grapheme-len'.
43196         * modules/unigbrk/u16-grapheme-len: New file.
43197         * modules/unigbrk/u16-grapheme-len-tests: New file.
43198         * lib/unigbrk.in.h: Add prototype for new function.
43199         * lib/unigbrk/u16-grapheme-len.c: New file.
43200         * tests/unigbrk/test-u16-grapheme-len.c: New file.
43202         New module 'u32-grapheme-len'.
43203         * modules/unigbrk/u32-grapheme-len: New file.
43204         * modules/unigbrk/u32-grapheme-len-tests: New file.
43205         * lib/unigbrk.in.h: Add prototype for new function.
43206         * lib/unigbrk/u32-grapheme-len.c: New file.
43207         * tests/unigbrk/test-u32-grapheme-len.c: New file.
43209         New module 'u8-grapheme-next'.
43210         * modules/unigbrk/u8-grapheme-next: New file.
43211         * modules/unigbrk/u8-grapheme-next-tests: New file.
43212         * lib/unigbrk.in.h: Add prototype for new function.
43213         * lib/unigbrk/u8-grapheme-next.c: New file.
43214         * tests/unigbrk/test-u8-grapheme-next.c: New file.
43216         New module 'u16-grapheme-next'.
43217         * modules/unigbrk/u16-grapheme-next: New file.
43218         * modules/unigbrk/u16-grapheme-next-tests: New file.
43219         * lib/unigbrk.in.h: Add prototype for new function.
43220         * lib/unigbrk/u16-grapheme-next.c: New file.
43221         * tests/unigbrk/test-u16-grapheme-next.c: New file.
43223         New module 'u32-grapheme-next'.
43224         * modules/unigbrk/u32-grapheme-next: New file.
43225         * modules/unigbrk/u32-grapheme-next-tests: New file.
43226         * lib/unigbrk.in.h: Add prototype for new function.
43227         * lib/unigbrk/u32-grapheme-next.c: New file.
43228         * tests/unigbrk/test-u32-grapheme-next.c: New file.
43230         New module 'u8-grapheme-prev'.
43231         * modules/unigbrk/u8-grapheme-prev: New file.
43232         * modules/unigbrk/u8-grapheme-prev-tests: New file.
43233         * lib/unigbrk.in.h: Add prototype for new function.
43234         * lib/unigbrk/u8-grapheme-prev.c: New file.
43235         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
43237         New module 'u16-grapheme-prev'.
43238         * modules/unigbrk/u16-grapheme-prev: New file.
43239         * modules/unigbrk/u16-grapheme-prev-tests: New file.
43240         * lib/unigbrk.in.h: Add prototype for new function.
43241         * lib/unigbrk/u16-grapheme-prev.c: New file.
43242         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
43244         New module 'u32-grapheme-prev'.
43245         * modules/unigbrk/u32-grapheme-prev: New file.
43246         * modules/unigbrk/u32-grapheme-prev-tests: New file.
43247         * lib/unigbrk.in.h: Add prototype for new function.
43248         * lib/unigbrk/u32-grapheme-prev.c: New file.
43249         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
43251         New module 'u8-grapheme-breaks'.
43252         * modules/unigbrk/u8-grapheme-breaks: New file.
43253         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
43254         * lib/unigbrk.in.h: Add prototype for new function.
43255         * lib/unigbrk/u8-grapheme-breaks.c: New file.
43256         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
43258         New module 'u16-grapheme-breaks'.
43259         * modules/unigbrk/u16-grapheme-breaks: New file.
43260         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
43261         * lib/unigbrk.in.h: Add prototype for new function.
43262         * lib/unigbrk/u16-grapheme-breaks.c: New file.
43263         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
43265         New module 'u32-grapheme-breaks'.
43266         * modules/unigbrk/u32-grapheme-breaks: New file.
43267         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
43268         * lib/unigbrk.in.h: Add prototype for new function.
43269         * lib/unigbrk/u32-grapheme-breaks.c: New file.
43270         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
43272         New module 'ulc-grapheme-breaks'.
43273         * modules/unigbrk/ulc-grapheme-breaks: New file.
43274         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
43275         * m4/locale-ar.m4: New file.
43276         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
43277         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
43278         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
43280 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
43282         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
43283         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
43284         modified how this file was generated before I initially submitted
43285         the module, but failed to regenerate it.  This meant that several
43286         of the level2 entries were wrong.
43287         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
43288         Remove the division-by-2 that is folded into the table now that
43289         gbrkprop.h has been regenerated properly.  Now -1 entries are
43290         handled correctly.
43292         New module 'unigbrk/uc-gbrk-prop-tests'.
43293         * modules/unigbrk/uc-gbrk-prop-tests: New file.
43294         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
43295         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
43296         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
43298 2011-01-01  Bruno Haible  <bruno@clisp.org>
43300         Avoid use of hexadecimal escapes.
43301         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
43302         instead of hexadecimal escapes.
43304 2011-01-01  Jim Meyering  <meyering@redhat.com>
43306         maint: new rule to update copyright year ranges
43307         * Makefile (update-copyright): New rule.
43309         maint: indent with TABs in Makefile
43310         * Makefile: Expand leading sequences of spaces to TABs
43312         version-etc: update the copyright year it reports
43313         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
43315 2010-12-31  Bruno Haible  <bruno@clisp.org>
43317         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
43318         * lib/isfinite.c (zerof, zerod, zerol): New variables.
43319         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
43320         zero.
43322 2010-12-31  Bruno Haible  <bruno@clisp.org>
43324         pwrite: Work around HP-UX 11.11 bug.
43325         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
43326         works and set REPLACE_PWRITE if not.
43327         * lib/pwrite.c (pwrite): Add an implementation that uses the system
43328         function.
43329         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
43331 2010-12-31  Bruno Haible  <bruno@clisp.org>
43333         pread: Work around HP-UX 11 bugs.
43334         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
43335         and set REPLACE_PREAD if not.
43336         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
43338 2010-12-31  Eric Blake  <eblake@redhat.com>
43340         nl_langinfo: fix YESEXPR on Irix 6.5
43341         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
43342         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
43343         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
43344         it.
43346 2010-12-31  Bruno Haible  <bruno@clisp.org>
43348         iconv: Document HP-UX 11 bug.
43349         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
43351 2010-12-31  Bruno Haible  <bruno@clisp.org>
43353         ldexpl: Fix link error on HP-UX 11.
43354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
43355         LDEXPL_LIBM, using $ISNANL_LIBM.
43357 2010-12-31  Eric Blake  <eblake@redhat.com>
43359         ftello: avoid compilation failure with SunStudio c89
43360         * lib/ftello.c (ftello): Use lseek, not llseek.
43362         tests: avoid failing coreutils tests on cygwin
43363         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
43364         (create_exe_shims_): Return 0 when skipping.
43366 2010-12-31  Bruno Haible  <bruno@clisp.org>
43368         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
43369         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
43371 2010-12-31  Bruno Haible  <bruno@clisp.org>
43373         waitpid: Fix link error in C++ mode.
43374         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
43376 2010-12-31  Bruno Haible  <bruno@clisp.org>
43378         isnan: Use GCC built-ins when possible.
43379         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
43380         __builtin_isnan.
43381         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
43382         (isnan): Define using GCC built-ins for GCC >= 4.0.
43384 2010-12-31  Bruno Haible  <bruno@clisp.org>
43386         isnand: Fix mistake.
43387         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
43388         __builtin_isnand.
43390 2010-12-31  Bruno Haible  <bruno@clisp.org>
43392         open: Avoid C++ error on HP-UX 11.
43393         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
43395 2010-12-31  Bruno Haible  <bruno@clisp.org>
43397         time_r: Add missing declarations on HP-UX 11.
43398         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
43399         instead of HAVE_LOCALTIME_R.
43400         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
43401         HAVE_LOCALTIME_R always.
43402         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
43403         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
43404         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
43405         HAVE_LOCALTIME_R.
43406         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
43407         * doc/posix-functions/localtime_r.texi: Likewise.
43409 2010-12-29  Eric Blake  <eblake@redhat.com>
43411         mountlist: tweak previous commit
43412         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
43413         Reported by Paul Eggert.
43415         mountlist: fix local drive detection on cygwin
43416         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
43417         that works for cygwin.
43419 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43421         ftoastr, snprintf: ftoastr + snprintf module
43422         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
43423         since the snprintf module now should be good enough here.
43424         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
43425         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
43426         and gl_MODULE_INDICATOR([snprintf]), but the former enables
43427         GNULIB_SNPRINTF only for the test directory, and the latter
43428         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
43429         seems to suffice by itself.
43431 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43433         alloca: one step towards thread-safety
43434         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
43435         need for a static variable.  All callers changed.  This does not
43436         make the alloca replacement thread-safe, but it's one step.
43438         tests: minor indenting change
43439         * tests/init.sh: Sync from coreutils housekeeping patch
43440         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
43441         to keep lines within 80 columns.
43443 2010-12-28  Jim Meyering  <meyering@redhat.com>
43445         regex: don't infloop on persistent failing calloc
43446         * lib/regexec.c (build_trtable): Return failure indication upon
43447         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
43448         In glibc, this was fixed for version 2.13:
43449         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
43451 2010-12-28  Bruno Haible  <bruno@clisp.org>
43452             Paul Eggert <eggert@cs.ucla.edu>
43454         linkat: Make implementation robust against system behaviour variations.
43455         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
43456         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
43457         way, and to -2 if it needs a generic runtime test.
43458         * lib/linkat.c (solaris_optimized_link_immediate,
43459         solaris_optimized_link_follow): New functions.
43460         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
43461         (check_same_link): Use it.
43463 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
43465         New module 'unigbrk/base'.
43466         * modules/unigbrk/base: New file.
43467         * lib/unigbrk.in.h: New file.
43469         New module 'unigbrk/uc-gbrk-prop'.
43470         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
43471         * modules/unigbrk/uc-gbrk-prop: New file.
43472         * lib/unigbrk/gbrkprop.h: New file.
43473         * lib/unigbrk/uc-gbrk-prop.c: New file.
43475         New module 'unigbrk/uc-is-grapheme-break'.
43476         * modules/unigbrk/uc-is-grapheme-break: New file.
43477         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
43478         * lib/unigbrk/uc-is-grapheme-break.c: New file.
43479         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
43480         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
43481         * tests/unigbrk/GraphemeBreakTest.txt: New file.
43483         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
43485 2010-12-27  Bruno Haible  <bruno@clisp.org>
43487         linkat test: Avoid failure on Solaris 11 2010-11.
43488         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
43490 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43492         utimens: work around glibc rounding bug on more platforms
43493         * lib/utimens.c (fdutimens): Work around rounding bug even if
43494         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
43495         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
43497 2010-12-27  Bruno Haible  <bruno@clisp.org>
43499         select tests: Improve comments.
43500         * tests/test-select.c (do_select): Add comments.
43502 2010-12-27  Bruno Haible  <bruno@clisp.org>
43504         select tests: Safer way of handling timeout.
43505         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
43506         at every invocation.
43508 2010-12-27  Bruno Haible  <bruno@clisp.org>
43510         select tests: Use 'bool' where appropriate.
43511         * tests/test-select.c (connect_to_socket): Change argument type to
43512         'bool'.
43514 2010-12-27  Bruno Haible  <bruno@clisp.org>
43516         select tests: Use existing modules.
43517         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
43518         (configure.ac): Don't test for unistd.h.
43519         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
43520         declared in <unistd.h>.
43522 2010-12-27  Bruno Haible  <bruno@clisp.org>
43524         mbrtowc: Work around a Solaris 7 bug.
43525         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
43526         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
43527         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
43528         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
43529         MBRTOWC_NULL_ARG1_BUG.
43530         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
43531         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
43532         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
43533         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
43535 2010-12-27  Jim Meyering  <meyering@redhat.com>
43537         read-file.c: tweak syntax
43538         * lib/read-file.c (fread_file): Remove space after "*" in function
43539         definitions.
43541 2010-12-27  Bruno Haible  <bruno@clisp.org>
43543         times test: Avoid gcc warnings on OSF/1.
43544         * tests/test-times.c (main): Cast printf arguments from clock_t to
43545         'long int'.
43547 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43549         utimens: work around glibc rounding bug on older Linux kernels
43550         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
43551         on Linux with a glibc whose utimes might not work, then work
43552         around a longstanding glibc bug involving rounding rather than
43553         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
43554         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
43556 2010-12-26  Bruno Haible  <bruno@clisp.org>
43558         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
43559         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
43560         _GL_CXXALIAS_SYS.
43561         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43563 2010-12-26  Bruno Haible  <bruno@clisp.org>
43565         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
43566         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
43567         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
43568         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
43569         looking for the declaration.
43570         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43571         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
43572         problem.
43573         * doc/posix-functions/inet_pton.texi: Likewise.
43575 2010-12-26  Bruno Haible  <bruno@clisp.org>
43577         arpa_inet: Use the common idioms with C++ support.
43578         * lib/arpa_inet.in.h: Include c++defs.h.
43579         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
43580         support.
43581         * modules/arpa_inet (Depends-on): Add c++defs.
43582         (Makefile.am): Substitute the contents of c++defs.h.
43583         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
43584         * modules/arpa_inet-c++-tests: New file.
43585         * tests/test-arpa_inet-c++.cc: New file.
43587 2010-12-25  Bruno Haible  <bruno@clisp.org>
43589         Fix more C++ link errors on Solaris 8.
43590         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
43591         $(LIB_EACCESS).
43592         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
43593         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
43594         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
43595         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
43596         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
43598 2010-12-25  Bruno Haible  <bruno@clisp.org>
43600         printf-posix: Fix link error when a non-GCC compiler is used.
43601         * lib/stdio.in.h (printf): When not using GCC, override printf
43602         correctly.
43603         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43605 2010-12-25  Bruno Haible  <bruno@clisp.org>
43607         strerror_r-posix: Update doc.
43608         * doc/posix-functions/strerror_r.texi: Update doc about the return
43609         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
43611 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43613         utimens: simplify the logic of the previous change
43614         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
43615         This should not affect whether the test succeeds or fails.
43617         utimens: configure better on hosts with NFS clock skew
43618         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
43619         uses the clock of the local host.  It might use the clock of the
43620         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
43621         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
43623 2010-12-25  Bruno Haible  <bruno@clisp.org>
43625         ptsname test: Avoid failure on Solaris.
43626         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
43627         open a pseudo-terminal; don't use BSD-style ptys.
43628         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
43630 2010-12-25  Bruno Haible  <bruno@clisp.org>
43632         ptsname: Avoid ERANGE failure on some systems.
43633         * lib/ptsname.c (buffer): Increase size.
43635 2010-12-25  Bruno Haible  <bruno@clisp.org>
43637         rename, renameat: Avoid test failures at NFS mounted locations.
43638         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
43639         so that subsequent mkdir calls succeed.
43641 2010-12-25  Bruno Haible  <bruno@clisp.org>
43643         iswblank: Fix C++ link error on Solaris 8.
43644         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
43645         _GL_FUNCDECL_SYS.
43647 2010-12-25  Bruno Haible  <bruno@clisp.org>
43649         unistd: Fix C++ link error on Solaris 8.
43650         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
43652 2010-12-25  Bruno Haible  <bruno@clisp.org>
43654         readlink doc: Mention an old glibc bug.
43655         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
43657 2010-12-25  Bruno Haible  <bruno@clisp.org>
43659         fcntl-h: Fix for use of C++ on glibc systems.
43660         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
43661         also on glibc systems in C++ mode.
43662         Reported by Gary V. Vaughan <gary@gnu.org>.
43664 2010-12-25  Bruno Haible  <bruno@clisp.org>
43666         roundl-ieee: Make it work on OSF/1 5.1 with cc.
43667         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
43669 2010-12-25  Bruno Haible  <bruno@clisp.org>
43671         truncl-ieee: Make it work on OSF/1 5.1 with cc.
43672         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
43673         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
43674         test whether truncl works according to ISO C 99 with IEC 60559.
43675         * m4/truncl-ieee.m4: New file.
43676         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
43677         m4/signbit.m4.
43678         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
43680 2010-12-25  Bruno Haible  <bruno@clisp.org>
43682         ceill-ieee: Make it work on OSF/1 5.1 with cc.
43683         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
43684         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
43685         test whether ceill works according to ISO C 99 with IEC 60559.
43686         * m4/ceill-ieee.m4: New file.
43687         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
43688         m4/signbit.m4.
43689         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
43691 2010-12-25  Bruno Haible  <bruno@clisp.org>
43693         Ensure all prerequisites of <wchar.h> are included.
43694         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
43695         before <wchar.h>.
43696         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
43697         gl_MBRLEN_NUL_RETVAL): Likewise.
43698         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43699         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
43700         AC_FUNC_MBRTOWC): Likewise.
43701         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43702         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43703         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
43704         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43705         Likewise.
43706         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43707         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
43708         (gl_WCHAR_H): Improve comments.
43709         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
43711 2010-12-25  Bruno Haible  <bruno@clisp.org>
43713         strtok_r: Fix C syntax error in autoconf macro.
43714         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
43715         characters in test program.
43717 2010-12-24  Bruno Haible  <bruno@clisp.org>
43719         ceil, trunc, round: Fix gcc warnings.
43720         * lib/ceil.c (MIN): Undefine before redefining.
43721         * lib/trunc.c (MIN): Likewise.
43722         * lib/round.c (MIN): Likewise.
43723         Include <math.h> first.
43725 2010-12-24  Bruno Haible  <bruno@clisp.org>
43727         select tests: Avoid failures on OSF/1 5.1.
43728         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
43729         failure of closing the last socket; it may fail with ECONNRESET.
43731 2010-12-24  Eric Blake  <eblake@redhat.com>
43733         stdint: avoid HP-UX 10.20 preprocessor bug
43734         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
43735         than #if.
43736         * tests/test-floor2.c (main): Likewise.
43737         Reported by Peter O'Gorman.
43739         pipe: make obsoletion transition easier
43740         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
43741         * modules/pipe (Files): Include revived file.
43742         (Include): Drop reference, to mirror getdate's behavior.
43744 2010-12-24  Bruno Haible  <bruno@clisp.org>
43746         sys_socket: Hide mismatch of declarations on NonStop Kernel.
43747         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
43748         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
43749         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43751 2010-12-24  Bruno Haible  <bruno@clisp.org>
43753         gethostname: Ensure declaration on NonStop Kernel.
43754         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
43755         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43757 2010-12-24  Bruno Haible  <bruno@clisp.org>
43759         sys_select: Ensure all necessary types on NonStop Kernel.
43760         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
43761         include <sys/time.h>.
43762         * doc/posix-headers/sys_select.texi: Mention that it's missing on
43763         NonStop Kernel.
43764         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43766 2010-12-24  Bruno Haible  <bruno@clisp.org>
43768         sys_select: Remove unneeded include.
43769         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
43770         have <sys/select.h>.
43772 2010-12-24  Bruno Haible  <bruno@clisp.org>
43774         gethostname: Provide a fallback for HOST_NAME_MAX.
43775         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
43776         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
43777         instead.
43778         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43780 2010-12-24  Bruno Haible  <bruno@clisp.org>
43782         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
43783         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
43784         (SA_RESTART): Likewise.
43785         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43787 2010-12-24  Bruno Haible  <bruno@clisp.org>
43789         signal: Define NSIG.
43790         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
43791         * tests/test-signal.c (nsig): New variable.
43792         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43794 2010-12-24  Bruno Haible  <bruno@clisp.org>
43796         rename, renameat: Avoid test failures on OSF/1 5.1.
43797         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
43798         alternative error codes.
43799         * tests/test-renameat.c (main): Likewise.
43801 2010-12-24  Bruno Haible  <bruno@clisp.org>
43803         *printf: Detect large precisions bug on Solaris 10/SPARC.
43804         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
43805         by Paul Eggert.
43806         * tests/test-snprintf-posix.h (test_function): Add this test code here
43807         too.
43808         * tests/test-sprintf-posix.h (test_function): Likewise.
43809         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43810         * tests/test-vasprintf-posix.c (test_function): Likewise.
43811         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
43812         around by gnulib.
43813         * doc/posix-functions/printf.texi: Likewise.
43814         * doc/posix-functions/snprintf.texi: Likewise.
43815         * doc/posix-functions/sprintf.texi: Likewise.
43816         * doc/posix-functions/vfprintf.texi: Likewise.
43817         * doc/posix-functions/vprintf.texi: Likewise.
43818         * doc/posix-functions/vsnprintf.texi: Likewise.
43819         * doc/posix-functions/vsprintf.texi: Likewise.
43820         * doc/posix-functions/dprintf.texi: Undo last commit.
43821         * doc/posix-functions/vdprintf.texi: Likewise.
43823 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43825         tests: port test-fdutimensat.c to Solaris 8
43826         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
43827         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
43828         On Solaris 8, it fails with errno == ENOSYS, because there is no
43829         futimens (so it can't use the fd), and there is no lutimens (so it
43830         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
43832         vsnprintf: make more consistent with snprintf; doc fixes
43834         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
43835         the byte count return problem was promoted from the snprintf-posix
43836         to the snprintf module.
43837         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43838         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
43839         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
43840         * tests/test-snprintf.c (main): Check the byte count returned.
43841         * tests/test-vsnprintf.c (main): Likewise.
43843 2010-12-23  Eric Blake  <eblake@redhat.com>
43845         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
43846         * modules/sigpipe (License): Relax license.
43848 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43850         doc: document Solaris printf bug with large float precisions
43851         * doc/posix-functions/dprintf.texi (dprintf):
43852         * doc/posix-functions/fprintf.texi (fprintf):
43853         * doc/posix-functions/printf.texi (printf):
43854         * doc/posix-functions/snprintf.texi (snprintf):
43855         * doc/posix-functions/sprintf.texi (sprintf):
43856         * doc/posix-functions/vdprintf.texi (vdprintf):
43857         * doc/posix-functions/vfprintf.texi (vfprintf):
43858         * doc/posix-functions/vprintf.texi (vprintf):
43859         * doc/posix-functions/vsnprintf.texi (vsnprintf):
43860         * doc/posix-functions/vsprintf.texi (vsprintf):
43861         Mention that these functions mishandle large floating point
43862         precisions on Solaris 10.  The same bug is also present in Solaris
43863         8, and I assume earlier.  This causes "cd gnulib-tests; make
43864         check" to fail on Solaris 8 (and I assume, later) when building
43865         the latest coreutils, in test-vasprintf-posix's call to
43866         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
43867         the wide flavors (e.g., wprintf) so this patch just updates the
43868         documentation for the narrow ones.
43870         test-posixtm.c: add two tests
43871         * tests/test-posixtm.c: Add two tests, to highlight the
43872         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
43873         around this bug; this is merely to document it.
43875 2010-12-22  Bruno Haible  <bruno@clisp.org>
43877         getlogin_r: Work around portability problem on OSF/1.
43878         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
43879         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
43880         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
43881         test for a truncated result.
43882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
43883         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
43884         * modules/getlogin_r (Depends-on): Add memchr.
43885         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
43887 2010-12-22  Bruno Haible  <bruno@clisp.org>
43889         ptsname: Avoid test failure on OSF/1 5.1.
43890         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
43891         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
43892         (same_slave): New function.
43893         (main): Use it to compare ptsname's result with the expected file name.
43895 2010-12-22  Bruno Haible  <bruno@clisp.org>
43897         Port extended stdio modules to HP NonStop Kernel.
43898         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
43899         macros.
43900         * lib/fbufmode.c: Update comments.
43901         * lib/fflush.c: Likewise.
43902         * lib/fpurge.c: Likewise.
43903         * lib/freadable.c: Likewise.
43904         * lib/freadahead.c: Likewise.
43905         * lib/freading.c: Likewise.
43906         * lib/freadptr.c: Likewise.
43907         * lib/freadseek.c: Likewise.
43908         * lib/fseeko.c: Likewise.
43909         * lib/fseterr.c: Likewise.
43910         * lib/fwritable.c: Likewise.
43911         * lib/fwriting.c: Likewise.
43912         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43914 2010-12-22  Bruno Haible  <bruno@clisp.org>
43916         ttyname_r: Work around bug on OSF/1 5.1.
43917         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
43918         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
43919         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
43920         present.
43921         * lib/ttyname_r.c (ttyname_r): Update comments.
43923 2010-12-22  Bruno Haible  <bruno@clisp.org>
43925         round: Implement result sign according to IEEE 754.
43926         * lib/round.c (MIN, MINUS_ZERO): New macros.
43927         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
43928         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
43929         * tests/test-round-ieee.c (main): Likewise.
43930         * tests/test-roundl-ieee.c (main): Likewise.
43932         trunc: Implement result sign according to IEEE 754.
43933         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
43934         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
43935         * tests/test-trunc2.c: Include minus-zero.h.
43936         (MINUS_ZERO): New macro.
43937         (trunc_reference): Keep in sync with lib/trunc.c.
43938         * tests/test-truncf2.c: Include minus-zero.h.
43939         (MINUS_ZERO): New macro.
43940         (truncf_reference): Keep in sync with lib/trunc.c.
43941         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
43942         * tests/test-trunc-ieee.c (main): Likewise.
43943         * tests/test-truncl-ieee.c (main): Likewise.
43945         ceil: Implement result sign according to IEEE 754.
43946         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
43947         (FUNC): Return -0.0 for -1 < x < 0.
43948         * tests/test-ceil2.c: Include minus-zero.h.
43949         (MINUS_ZERO): New macro.
43950         (ceil_reference): Keep in sync with lib/ceil.c.
43951         * tests/test-ceilf2.c: Include minus-zero.h.
43952         (MINUS_ZERO): New macro.
43953         (ceilf_reference): Keep in sync with lib/ceil.c.
43954         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
43955         * tests/test-ceil-ieee.c (main): Likewise.
43956         * tests/test-ceill-ieee.c (main): Likewise.
43958         floor: Implement result sign according to IEEE 754.
43959         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
43960         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
43961         * tests/test-floorf2.c (floorf_reference): Likewise.
43962         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
43963         * tests/test-floor-ieee.c (main): Likewise.
43964         * tests/test-floorl-ieee.c (main): Likewise.
43966 2010-12-22  Bruno Haible  <bruno@clisp.org>
43968         getaddrinfo: Update doc.
43969         * doc/posix-functions/gai_strerror.texi: Return type is also different
43970         on AIX and HP-UX.
43972 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43974         getaddrinfo, inet_ntop: Update doc for Solaris.
43975         * doc/posix-functions/gai_strerror.texi: Return type is also an
43976         issue on Solaris 9 and earlier.
43977         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
43978         on Solaris 10 and earlier.
43980 2010-12-21  Bruno Haible  <bruno@clisp.org>
43982         New module 'roundl-ieee'.
43983         * modules/roundl-ieee: New file.
43984         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
43985         test whether roundl works according to ISO C 99 with IEC 60559.
43986         * m4/roundl-ieee.m4: New file.
43987         * modules/roundl-ieee-tests: New file.
43988         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
43989         * tests/test-roundl.c (main): Remove signbit tests.
43990         * modules/roundl-tests (Depends-on): Remove signbit.
43991         * doc/posix-functions/roundl.texi: Mention the new module.
43993 2010-12-21  Bruno Haible  <bruno@clisp.org>
43995         New module 'truncl-ieee'.
43996         * modules/truncl-ieee: New file.
43997         * modules/truncl-ieee-tests: New file.
43998         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
43999         * tests/test-truncl.c (main): Remove signbit tests.
44000         * modules/truncl-tests (Depends-on): Remove signbit.
44001         * doc/posix-functions/truncl.texi: Mention the new module.
44003 2010-12-21  Bruno Haible  <bruno@clisp.org>
44005         New module 'ceill-ieee'.
44006         * modules/ceill-ieee: New file.
44007         * modules/ceill-ieee-tests: New file.
44008         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
44009         * tests/test-ceill.c (main): Remove signbit tests.
44010         * modules/ceill-tests (Depends-on): Remove signbit.
44011         * doc/posix-functions/ceill.texi: Mention the new module.
44013 2010-12-21  Bruno Haible  <bruno@clisp.org>
44015         New module 'floorl-ieee'.
44016         * modules/floorl-ieee: New file.
44017         * modules/floorl-ieee-tests: New file.
44018         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
44019         * tests/test-floorl.c (main): Remove signbit tests.
44020         * modules/floorl-tests (Depends-on): Remove signbit.
44021         * doc/posix-functions/floorl.texi: Mention the new module.
44023 2010-12-21  Bruno Haible  <bruno@clisp.org>
44025         New module 'round-ieee'.
44026         * modules/round-ieee: New file.
44027         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
44028         whether round works according to ISO C 99 with IEC 60559.
44029         * m4/round-ieee.m4: New file.
44030         * modules/round-ieee-tests: New file.
44031         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
44032         * tests/test-round1.c (main): Remove signbit tests.
44033         * modules/round-tests (Depends-on): Remove 'signbit'.
44034         * doc/posix-functions/round.texi: Mention the new module.
44036 2010-12-21  Bruno Haible  <bruno@clisp.org>
44038         New module 'trunc-ieee'.
44039         * modules/trunc-ieee: New file.
44040         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
44041         whether trunc works according to ISO C 99 with IEC 60559.
44042         * m4/trunc-ieee.m4: New file.
44043         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
44044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
44045         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
44046         * modules/trunc-ieee-tests: New file.
44047         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
44048         * tests/test-trunc1.c (main): Remove signbit tests.
44049         * modules/trunc-tests (Depends-on): Remove 'signbit'.
44050         * doc/posix-functions/trunc.texi: Mention the new module.
44052 2010-12-21  Bruno Haible  <bruno@clisp.org>
44054         New module 'ceil-ieee'.
44055         * modules/ceil-ieee: New file.
44056         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
44057         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
44058         ISO C 99 with IEC 60559.
44059         * m4/ceil-ieee.m4: New file.
44060         * modules/ceil (Files): Add lib/ceil.c.
44061         (Depends-on): Add 'float'.
44062         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44063         * lib/math.in.h (ceil): New declaration.
44064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
44065         REPLACE_CEIL.
44066         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
44067         * modules/ceil-ieee-tests: New file.
44068         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
44069         * tests/test-math-c++.cc: Check the signature of 'ceil'.
44070         * doc/posix-functions/ceil.texi: Mention the new module.
44072 2010-12-21  Bruno Haible  <bruno@clisp.org>
44074         New module 'floor-ieee'.
44075         * modules/floor-ieee: New file.
44076         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
44077         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
44078         ISO C 99 with IEC 60559.
44079         * m4/floor-ieee.m4: New file.
44080         * modules/floor (Files): Add lib/floor.c.
44081         (Depends-on): Add 'float'.
44082         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44083         * lib/math.in.h (floor): New declaration.
44084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
44085         REPLACE_FLOOR.
44086         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
44087         * modules/floor-ieee-tests: New file.
44088         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
44089         * tests/test-math-c++.cc: Check the signature of 'floor'.
44090         * doc/posix-functions/floor.texi: Mention the new module.
44092 2010-12-21  Bruno Haible  <bruno@clisp.org>
44094         New module 'roundf-ieee'.
44095         * modules/roundf-ieee: New file.
44096         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
44097         test whether roundf works according to ISO C 99 with IEC 60559.
44098         * m4/roundf-ieee.m4: New file.
44099         * modules/roundf-ieee-tests: New file.
44100         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
44101         * tests/test-roundf1.c (main): Remove signbit tests.
44102         * modules/roundf-tests (Depends-on): Remove 'signbit'.
44103         * doc/posix-functions/roundf.texi: Mention the new module.
44105 2010-12-21  Bruno Haible  <bruno@clisp.org>
44107         New module 'truncf-ieee'.
44108         * modules/truncf-ieee: New file.
44109         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
44110         test whether truncf works according to ISO C 99 with IEC 60559.
44111         * m4/truncf-ieee.m4: New file.
44112         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
44113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
44114         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
44115         * modules/truncf-ieee-tests: New file.
44116         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
44117         * tests/test-truncf1.c (main): Remove signbit tests.
44118         * modules/truncf-tests (Depends-on): Remove 'signbit'.
44119         * doc/posix-functions/truncf.texi: Mention the new module.
44121 2010-12-21  Bruno Haible  <bruno@clisp.org>
44123         New module 'ceilf-ieee'.
44124         * modules/ceilf-ieee: New file.
44125         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
44126         test whether ceilf works according to ISO C 99 with IEC 60559.
44127         * m4/ceilf-ieee.m4: New file.
44128         * modules/ceilf-ieee-tests: New file.
44129         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
44130         * tests/test-ceilf1.c (main): Remove signbit tests.
44131         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
44132         * doc/posix-functions/ceilf.texi: Mention the new module.
44134 2010-12-21  Bruno Haible  <bruno@clisp.org>
44136         New module 'floorf-ieee'.
44137         * modules/floorf-ieee: New file.
44138         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
44139         test whether floorf works according to ISO C 99 with IEC 60559.
44140         * m4/floorf-ieee.m4: New file.
44141         * modules/floorf-ieee-tests: New file.
44142         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
44143         * tests/test-floorf1.c (main): Remove signbit tests.
44144         * modules/floorf-tests (Depends-on): Remove 'signbit'.
44145         * doc/posix-functions/floorf.texi: Mention the new module.
44147 2010-12-21  Bruno Haible  <bruno@clisp.org>
44149         Support for minus zero in autoconf macros.
44150         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
44151         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
44152         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
44153         * tests/minus-zero.h: Update comments.
44155 2010-12-21  Bruno Haible  <bruno@clisp.org>
44157         Tests for module 'ceil'.
44158         * modules/ceil-tests: New file.
44159         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
44160         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
44162 2010-12-21  Bruno Haible  <bruno@clisp.org>
44164         Tests for module 'floor'.
44165         * modules/floor-tests: New file.
44166         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
44167         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
44169 2010-12-21  Bruno Haible  <bruno@clisp.org>
44171         math: Fix indentation.
44172         * lib/math.in.h (floorf): Fix indentation.
44174 2010-12-21  Bruno Haible  <bruno@clisp.org>
44176         Fix cross-compilation guesses on Solaris.
44177         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
44178         not match "solaris2.10".
44179         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44180         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
44181         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
44183 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
44185         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
44186         This fixes a problem observed with the latest coreutils snapshot
44187         that caused a test to fail on Solaris 8.  src/csplit.c's call
44188         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
44189         earlier, instead of returning the number of bytes that would have
44190         been generated; this causes csplit to incorrectly report memory
44191         exhaustion.
44192         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
44193         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
44194         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
44195         comments to match.
44196         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
44197         Fix typo in matching older versions of Solaris: "solaris2.10"
44198         is matched by the shell pattern "solaris2.[0-9]*".  This matters
44199         only for guessing while cross-compiling.
44200         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
44202 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
44204         ftoastr: fix comment again
44205         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
44206         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
44207         Also, simplify example a bit by using flags = 0.
44209 2010-12-20  Bruno Haible  <bruno@clisp.org>
44211         round*, trunc*: Update documentation regarding glibc.
44212         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
44213         * doc/posix-functions/round.texi: Likewise.
44214         * doc/posix-functions/roundl.texi: Likewise.
44215         * doc/posix-functions/truncf.texi: Likewise.
44216         * doc/posix-functions/trunc.texi: Likewise.
44217         * doc/posix-functions/truncl.texi: Likewise.
44219 2010-12-20  Bruno Haible  <bruno@clisp.org>
44221         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
44222         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
44223         * doc/posix-functions/round.texi: Likewise.
44224         * doc/posix-functions/roundl.texi: Likewise.
44226 2010-12-20  Bruno Haible  <bruno@clisp.org>
44228         ttyname_r: Add missing declaration on HP-UX 11.
44229         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
44230         HAVE_TTYNAME_R.
44231         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
44232         declared. Set HAVE_TTYNAME_R always.
44233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44234         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
44235         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
44236         HAVE_TTYNAME_R.
44237         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
44239 2010-12-20  Bruno Haible  <bruno@clisp.org>
44241         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
44242         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
44243         * doc/posix-functions/getlogin_r.texi: Likewise.
44244         * tests/test-getlogin.c: Include <errno.h>.
44245         (main): Avoid test failure on HP-UX 11.11.
44246         * tests/test-getlogin_r.c (main): Likewise.
44248 2010-12-20  Bruno Haible  <bruno@clisp.org>
44250         getlogin_r: Add missing declaration on HP-UX 11.
44251         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
44252         declared also when it exists as a function.
44253         * doc/posix-functions/getlogin_r.texi: Document this workaround.
44255 2010-12-20  Bruno Haible  <bruno@clisp.org>
44257         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
44258         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
44259         through wcrtomb.
44261 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
44263         ftoastr: fix comment
44264         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
44265         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
44267 2010-12-19  Bruno Haible  <bruno@clisp.org>
44269         isnan: Ensure it is a macro.
44270         * lib/math.in.h (isnan): Define as a macro if not already a macro.
44271         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
44272         Solaris.
44274 2010-12-19  Bruno Haible  <bruno@clisp.org>
44276         ldexpl test: Fix link error on OSF/1 5.1.
44277         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
44279 2010-12-19  Bruno Haible  <bruno@clisp.org>
44281         wctype: Make it work in C++ mode on OSF/1 5.1.
44282         * lib/wctype.in.h (iswblank): Declare but not define here.
44283         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
44284         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
44285         * modules/wctype (Files): Add lib/iswblank.c.
44287 2010-12-19  Bruno Haible  <bruno@clisp.org>
44289         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
44290         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
44291         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
44293 2010-12-19  Bruno Haible  <bruno@clisp.org>
44295         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
44296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
44297         _POSIX_PII_SOCKET.
44298         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
44299         * doc/posix-functions/recvfrom.texi: Likewise.
44300         * doc/posix-functions/send.texi: Likewise.
44301         * doc/posix-functions/sendto.texi: Likewise.
44303 2010-12-19  Bruno Haible  <bruno@clisp.org>
44305         tcgetsid: Add missing declaration on OSF/1 5.1.
44306         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
44307         HAVE_TCGETSID.
44308         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
44309         Don't set HAVE_TCGETSID.
44310         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
44311         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
44312         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
44313         HAVE_TCGETSID.
44314         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
44316 2010-12-19  Bruno Haible  <bruno@clisp.org>
44318         stdio: Fix problem with popen() declaration on OSF/1 5.1.
44319         * lib/stdio.in.h: During the include_next statement, let recursive
44320         includes of this file include only the system header file.
44322 2010-12-19  Bruno Haible  <bruno@clisp.org>
44324         iconv_open: Fix regression from 2010-12-04.
44325         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
44326         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
44328 2010-12-19  Bruno Haible  <bruno@clisp.org>
44330         stdbool test: Avoid a gcc warning.
44331         * tests/test-stdbool.c (main): Fail if e1 is false.
44332         Reported by Jim Meyering.
44334 2010-12-19  Jim Meyering  <meyering@redhat.com>
44336         setenv: restore to working order
44337         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
44338         mistakenly removed.
44339         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
44340         HAVE_SETENV.
44341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
44342         HAVE_SETENV.
44344 2010-12-19  Bruno Haible  <bruno@clisp.org>
44346         Document some different function declarations on OSF/1 5.1.
44347         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
44348         * doc/posix-functions/inet_ntop.texi: Likewise.
44349         * doc/posix-functions/gethostname.texi: Likewise.
44350         * lib/unistd.in.h (gethostname): Update comment.
44352 2010-12-19  Bruno Haible  <bruno@clisp.org>
44354         doc: Mention vasprintf-posix module.
44355         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
44356         the 'vasprintf-posix' module.
44357         * doc/glibc-functions/vasprintf.texi: Likewise.
44359 2010-12-19  Bruno Haible  <bruno@clisp.org>
44361         unsetenv: Add missing declaration on OSF/1 5.1.
44362         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
44363         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
44364         Don't set HAVE_UNSETENV. In the test program, set _BSD.
44365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
44366         not HAVE_UNSETENV.
44367         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
44368         HAVE_UNSETENV.
44369         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
44371 2010-12-19  Bruno Haible  <bruno@clisp.org>
44373         setenv: Add missing declaration on OSF/1 5.1.
44374         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
44375         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
44376         declared. Don't set HAVE_SETENV.
44377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
44378         not HAVE_SETENV.
44379         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
44380         HAVE_SETENV.
44381         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
44383 2010-12-19  Bruno Haible  <bruno@clisp.org>
44385         nl_langinfo tests: Avoid gcc warning.
44386         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
44388 2010-12-19  Bruno Haible  <bruno@clisp.org>
44390         mknod: Avoid error in C++ mode on OSF/1 with GCC.
44391         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
44392         _GL_CXXALIAS_SYS.
44394 2010-12-19  Bruno Haible  <bruno@clisp.org>
44396         stdbool: Relax test.
44397         * tests/test-stdbool.c (e): Don't require that casts from a variable's
44398         address to 'bool' work in static initializer, for compilers other than
44399         GCC.
44401 2010-12-19  Bruno Haible  <bruno@clisp.org>
44403         ftello: Add missing declaration on OSF/1 5.1.
44404         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
44405         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
44406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
44407         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
44408         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
44410 2010-12-19  Bruno Haible  <bruno@clisp.org>
44412         fseeko: Add missing declaration on OSF/1 5.1.
44413         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
44414         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
44415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
44416         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
44417         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
44419 2010-12-19  Bruno Haible  <bruno@clisp.org>
44421         fchdir: Add missing declaration on OSF/1 5.1.
44422         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
44423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
44424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
44425         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
44426         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
44428 2010-12-19  Bruno Haible  <bruno@clisp.org>
44430         relocatable-prog-wrapper: Separate from relocatable-prog.
44431         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
44432         uninstall-relocwrapper rule here.
44433         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
44434         Reported by Ian Beckwith <ianb@erislabs.net>.
44436 2010-12-19  Bruno Haible  <bruno@clisp.org>
44438         unistr/u8-mbsnlen: Add missing dependency.
44439         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
44440         Reported by Ian Beckwith <ianb@erislabs.net>.
44442 2010-12-19  Bruno Haible  <bruno@clisp.org>
44444         iconv: Make it possible again to use this module without 'iconv-h'.
44445         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
44446         if it is not defined.
44447         Reported by Ian Beckwith <ianb@erislabs.net>.
44449 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44451         acl: port to Solaris 8 when copying from tmpfs to ufs
44452         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
44453         error number.  Problem observed on Solaris 8 with latest
44454         coreutils, with "mv A B", where A is on a tmpfs file system and B
44455         is on a ufs file system.  This caused coreutils' mv/part-symlink
44456         test to fail.
44458         tests: set fail=0 at start
44459         * tests/init.sh (setup_): Move fail=0 initialization here ...
44460         (mktempd_): ... from here, so that tests can rely on fail being
44461         set to 0 initially.  This fixes a problem in coreutils; see:
44462         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
44464 2010-12-18  Bruno Haible  <bruno@clisp.org>
44466         memmem-simple: Stylistic changes.
44467         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
44468         Fix preprocessor directive indentation.
44470 2010-12-15  Pádraig Brady  <P@draigBrady.com>
44472         memmem, memmem-simple: reorganize and expand empty needle check
44473         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
44474         functional checks to memmem-simple so that one has a fully functional
44475         memmem by using just this module.
44476         Restrict the performance only check to the memmem module.
44477         Also expand the empty needle check to ensure the correct
44478         pointer is returned, not just a non NULL pointer.
44479         * doc/glibc-functions/memmem.texi: Rearrange the portability
44480         documentation to correlate with the rearranged checks.
44481         Clarify exactly how the memmem and memmem-simple modules
44482         relate to each other.
44484 2010-12-15  Pádraig Brady  <P@draigBrady.com>
44485             Bruno Haible  <bruno@clisp.org>
44487         Improve cross-compilation guesses for uClibc.
44488         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
44489         that uClibc does not have the glibc bug.
44490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
44491         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
44493 2010-12-14  Eric Blake  <eblake@redhat.com>
44495         configmake: provide fallbacks for oldest supported autotools
44496         * m4/configmake.m4: New file.
44497         * modules/configmake (Files): Ship it.
44498         (configure.ac): Use it to guarantee fallbacks.
44500 2010-12-13  Pádraig Brady  <P@draigBrady.com>
44502         read-file: Improve handling of large files
44503         * lib/read-file.c (fread_file): Minimize realloc()s
44504         for regular files, and better manage sizes around SIZE_MAX.
44506 2010-12-13  Eric Blake  <eblake@redhat.com>
44508         cloexec, fcntl: relax license
44509         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
44510         consent from all contributors.
44511         * modules/fcntl (License): Likewise.
44513 2010-12-10  Bruno Haible  <bruno@clisp.org>
44515         Tests for module 'pipe-posix'.
44516         * modules/pipe-posix-tests: New file.
44517         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
44519 2010-12-10  Bruno Haible  <bruno@clisp.org>
44521         pipe-posix: Make it work in C++ mode.
44522         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
44523         (pipe): Use common idiom, not a macro definition.
44524         * lib/pipe.c: New file.
44525         * m4/pipe.m4: New file.
44526         * modules/pipe-posix (Description): Enhance.
44527         (Files): Add lib/pipe.c, m4/pipe.m4.
44528         (configure.ac): Invoke gl_FUNC_PIPE.
44529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
44530         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
44531         * tests/test-unistd-c++.cc: Check the signature of pipe.
44533 2010-12-10  Bruno Haible  <bruno@clisp.org>
44535         Rename module 'pipe' to 'spawn-pipe'.
44536         * modules/spawn-pipe: New file, renamed from modules/pipe.
44537         (Files, configure.ac, Makefile.am): Update.
44538         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
44539         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
44540         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
44541         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
44542         "spawn-pipe.h" instead of "pipe.h".
44543         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
44544         to gl_SPAWN_PIPE.
44545         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
44546         (Files, Makefile.am): Update.
44547         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
44548         Update.
44549         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
44550         Include "spawn-pipe.h" instead of "pipe.h".
44551         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
44552         * lib/javacomp.c: Likewise.
44553         * lib/javaversion.c: Likewise.
44554         * lib/pipe-filter-gi.c: Likewise.
44555         * lib/pipe-filter-ii.c: Likewise.
44556         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
44557         * modules/javacomp (Depends-on): Likewise.
44558         * modules/javaversion (Depends-on): Likewise.
44559         * modules/pipe-filter-gi (Depends-on): Likewise.
44560         * modules/pipe-filter-ii (Depends-on): Likewise.
44561         * MODULES.html.sh (Executing programs): Update.
44562         * NEWS: Mention the change.
44564 2010-12-10  Eric Blake  <eblake@redhat.com>
44566         pipe-posix: new module
44567         * modules/pipe-posix: New file.
44568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
44569         (gl_UNISTD_H): Check for declaration.
44570         * modules/unistd (Makefile.am): Substitute it.
44571         * lib/unistd.in.h (pipe): Provide it for mingw.
44572         * doc/posix-functions/pipe.texi (pipe): Update documentation.
44573         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
44575 2010-12-07  Bruno Haible  <bruno@clisp.org>
44577         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
44578         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
44579         u8_strcmp_gnu.
44580         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
44582 2010-12-06  Bruno Haible  <bruno@clisp.org>
44584         Update internal documentation.
44585         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
44587 2010-12-04  Bruno Haible  <bruno@clisp.org>
44589         Put more information about failed tests into the test return codes.
44590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
44591         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
44592         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44593         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44594         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
44595         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44596         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44597         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44598         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
44599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44600         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
44601         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44602         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44603         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44604         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
44605         returns a bit mask.
44606         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
44607         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
44608         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
44609         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
44610         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
44611         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
44612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44614         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
44615         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
44616         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44617         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
44618         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44619         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
44620         * m4/link.m4 (gl_FUNC_LINK): Likewise.
44621         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44622         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
44623         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
44624         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44625         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
44626         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44627         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44628         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
44629         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44630         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44631         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44632         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
44633         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
44634         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
44635         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
44636         gl_PRINTF_PRECISION): Likewise.
44637         * m4/regex.m4 (gl_REGEX): Likewise.
44638         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44639         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
44640         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
44641         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44642         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44644         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
44645         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
44646         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44647         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44648         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44649         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44650         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
44651         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44652         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44653         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44654         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
44655         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
44656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44657         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
44658         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
44659         enumerated value.
44660         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
44662 2010-12-04  Bruno Haible  <bruno@clisp.org>
44664         Update for Solaris 11 2010-11.
44665         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
44666         Express, released in November 2010.
44668 2010-12-04  Bruno Haible  <bruno@clisp.org>
44670         nproc: Relax license.
44671         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
44672         and Paul Eggert.
44673         Requested by Ludovic Courtès <ludo@gnu.org>.
44675 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
44677         utimecmp: fine-grained src to nearby coarse-grained dest
44679         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
44680         and the source is on a file system with higher-resolution time
44681         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
44682         not work, and the time stamps are close together, the algorithm to
44683         determine the exact resolution from the read-back mtime was buggy:
44684         it had a "!=" where it should have had an "==".  This bug has been
44685         in the code ever since it was introduced to gnulib.
44686         Problem reported by Dan Jacobson in
44687         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
44689 2010-11-30  Bruno Haible  <bruno@clisp.org>
44691         strerror_r-posix: Fix autoconf test.
44692         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
44694 2010-11-28  Bruno Haible  <bruno@clisp.org>
44695             Paul Eggert  <eggert@cs.ucla.edu>
44697         Tests for module 'getdomainname'.
44698         * modules/getdomainname-tests: New file.
44699         * tests/test-getdomainname.c: New file, based on
44700         tests/test-gethostname.c.
44702 2010-11-28  Bruno Haible  <bruno@clisp.org>
44703             Paul Eggert  <eggert@cs.ucla.edu>
44705         getdomainname: Use the system function when possible.
44706         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
44707         (getdomainname): Replace if needed. Provide the declaration if it is
44708         missing. Don't use _GL_CXXALIAS_SYS_CAST.
44709         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
44710         (getdomainname): When the system has getdomainname, call the system
44711         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
44712         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44713         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
44714         found in libnsl. Look for the declaration also in <netdb.h>. Replace
44715         the function if its second argument is of type 'int' or if it is found
44716         in libnsl.
44717         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
44718         <sys/systeminfo.h> and sysinfo().
44719         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
44720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44721         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
44722         HAVE_GETDOMAINNAME.
44723         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
44724         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
44725         * doc/glibc-functions/getdomainname.texi: Document the problems with
44726         the getdomainname declaration.
44728 2010-11-28  Bruno Haible  <bruno@clisp.org>
44730         sys_socket: Ensure ss_family field on AIX.
44731         * lib/sys_socket.in.h (ss_family): New macro definition.
44732         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
44733         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
44734         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44735         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
44736         * modules/sys_socket (Makefile.am): Substitute
44737         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
44738         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
44740 2010-11-27  Bruno Haible  <bruno@clisp.org>
44742         readline: Improve configure output.
44743         * m4/readline.m4 (gl_FUNC_READLINE): Make the
44744         "checking for readline..." result understandable.
44746 2010-11-27  Bruno Haible  <bruno@clisp.org>
44748         *printf-posix: Detect a bug on Solaris 10/x86.
44749         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
44750         for floating-point output.
44751         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
44752         directive.
44753         * tests/test-snprintf-posix.h (test_function): Likewise.
44754         * tests/test-sprintf-posix.h (test_function): Likewise.
44755         * tests/test-vasprintf-posix.c (test_function): Likewise.
44756         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
44757         * doc/posix-functions/printf.texi: Likewise.
44758         * doc/posix-functions/snprintf.texi: Likewise.
44759         * doc/posix-functions/sprintf.texi: Likewise.
44760         * doc/posix-functions/vfprintf.texi: Likewise.
44761         * doc/posix-functions/vprintf.texi: Likewise.
44762         * doc/posix-functions/vsnprintf.texi: Likewise.
44763         * doc/posix-functions/vsprintf.texi: Likewise.
44764         * doc/glibc-functions/obstack_printf.texi: Likewise.
44765         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44767 2010-11-27  Bruno Haible  <bruno@clisp.org>
44769         Fix link error when module libunistring-optional is in use.
44770         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
44771         * modules/striconveha-tests (Makefile.am): Likewise.
44773 2010-11-27  Bruno Haible  <bruno@clisp.org>
44775         regex: Mention link dependencies.
44776         * modules/regex (Link): New section.
44777         * modules/rpmatch (Link): Likewise.
44778         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
44780 2010-11-27  Bruno Haible  <bruno@clisp.org>
44782         ftoastr: Fix compilation error on Solaris.
44783         * lib/ftoastr.c: Include <config.h>.
44785 2010-11-27  Bruno Haible  <bruno@clisp.org>
44787         getloadavg: Update documentation.
44788         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
44790 2010-11-27  Bruno Haible  <bruno@clisp.org>
44792         sys_socket: Fix test whether the functions are declared.
44793         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
44794         not <sys/select.h>.
44796 2010-11-27  Bruno Haible  <bruno@clisp.org>
44798         getpass: Make sure to get system declaration on some platforms.
44799         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
44800         gl_USE_SYSTEM_EXTENSIONS.
44801         * modules/getpass (Depends-on): Add extensions.
44803 2010-11-26  Bruno Haible  <bruno@clisp.org>
44805         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
44806         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
44807         'iconv' module is present.
44808         (ICONV_CONST): New macro.
44809         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
44810         ICONV_CONST.
44811         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
44812         set ICONV_CONST.
44813         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
44814         here.
44815         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
44816         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
44817         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
44818         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
44819         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
44820         present.
44822 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
44824         ftoastr: comment fix
44825         * lib/ftoastr.c: "little" -> "little or no" in comment
44827 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
44829         stdint: port to GCC 4.3 + OSX + Octave
44830         On this platform, stdint.h is buggy and defines int64_t to long
44831         long int.  The replacement defined it to long int, causing
44832         problems with C++ style name mangling.  Instead, trust the system
44833         definition if INT64_MAX is defined, and likewise for the unsigned
44834         variant.   Problem reported by Jarno Rajahalme in
44835         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
44836         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
44837         and don't mess with int64_t and INT64_MAX in this case.
44838         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
44840 2010-11-24  Bruno Haible  <bruno@clisp.org>
44842         doc: Corrections regarding MacOS X 10.4 and 10.5.
44843         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
44844         MacOS X.
44845         Reported by Simon Josefsson.
44847 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
44849         Uninstall ".bin" files installed by relocwrapper.
44850         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
44851         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
44852         unless it is already there.
44854 2010-11-21  Bruno Haible  <bruno@clisp.org>
44856         Update for NetBSD 5.0.
44857         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
44858         NetBSD; the test fails on NetBSD 5.0.
44859         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
44860         about NetBSD.
44862 2010-11-21  Bruno Haible  <bruno@clisp.org>
44864         Update for HP-UX 11.23 and HP-UX 11.31.
44865         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
44866         HP-UX.
44868 2010-11-21  Bruno Haible  <bruno@clisp.org>
44870         Update for MacOS X 10.5.
44871         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
44872         MacOS X; the test fails on MacOS X 10.5.8.
44873         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
44874         about MacOS X.
44876 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
44878         bootstrap: add bootstrap_sync option.
44879         See discussion at
44880         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
44881         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
44882         * build-aux/bootstrap: Accept --bootstrap-sync to update
44883         bootstrap if it is not identical to the local gnulib's
44884         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
44885         enable this by default.  Accept --no-bootstrap-sync to disable
44886         it.
44888 2010-11-20  Bruno Haible  <bruno@clisp.org>
44890         Ensure that <features.h> is included before __GLIBC__ is tested.
44891         * lib/printf-parse.h: Include <features.h>.
44892         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
44893         Reported by Mike Frysinger <vapier@gentoo.org>.
44895         Ensure that <features.h> is included before __GLIBC__ is tested.
44896         * lib/wchar.in.h: Include <features.h>.
44897         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
44898         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
44899         Reported by Mike Frysinger <vapier@gentoo.org>.
44901         Ensure that <features.h> is included before __GLIBC__ is tested.
44902         * lib/arpa_inet.in.h: Include <features.h>.
44903         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
44904         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
44905         Reported by Mike Frysinger <vapier@gentoo.org>.
44907         Ensure that <features.h> is included before __GLIBC__ is tested.
44908         * build-aux/link-warning.h: Include <features.h>.
44909         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
44910         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
44911         Reported by Mike Frysinger <vapier@gentoo.org>.
44913         Ensure that <features.h> is included before __GLIBC__ is tested.
44914         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
44915         Reported by Mike Frysinger <vapier@gentoo.org>.
44917 2010-11-20  Bruno Haible  <bruno@clisp.org>
44919         memmem: Fix autoconf test.
44920         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
44922 2010-11-20  Bruno Haible  <bruno@clisp.org>
44924         Port to uClibc.
44925         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
44926         * lib/fcntl.in.h: Likewise.
44927         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
44928         * lib/mbrtowc.c (mbrtowc): Likewise.
44929         * lib/relocatable.c (find_shared_library_fullname): Likewise.
44930         * lib/strerror_r.c: Likewise.
44931         * lib/unistr/u8-strnlen.c: Likewise.
44932         * lib/vasnprintf.c (decimal_point_char): Likewise.
44933         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
44934         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
44935         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44936         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44937         * tests/test-sigaction.c (handler, main): Likewise.
44938         * lib/freading.h: Treat uClibc like a non-glibc platform.
44939         * lib/freading.c: Likewise.
44940         * lib/gettext.h: Likewise.
44941         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
44942         Likewise.
44943         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
44944         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
44945         * lib/propername.c (proper_name_utf8): Likewise.
44946         * lib/spawn.in.h: Likewise.
44947         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
44948         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
44949         mem_cd_iconveh_internal): Likewise.
44950         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
44951         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
44952         strstr, strcasestr): Likewise.
44953         * lib/unicodeio.c (unicode_to_mb): Likewise.
44954         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
44955         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
44956         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
44957         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
44958         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
44959         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
44960         * lib/unistr/u8-stpncpy.c: Likewise.
44961         * lib/vasnprintf.c (VASNPRINTF): Likewise.
44962         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
44963         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44964         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44965         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44966         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
44967         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
44968         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
44969         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
44970         Likewise.
44971         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44972         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44973         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
44974         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44975         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44976         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44977         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44978         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44979         * tests/test-getopt.h (OPTIND_MIN): Likewise.
44980         * tests/test-striconveha.c (main): Likewise.
44981         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44982         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
44983         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
44984         * doc/posix-functions/getline.texi: Likewise.
44985         Reported by Mike Frysinger <vapier@gentoo.org>.
44987 2010-11-20  Bruno Haible  <bruno@clisp.org>
44989         nproc: Fix condition.
44990         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
44991         HAVE_PTHREAD_AFFINITY_NP.
44993 2010-11-20  Bruno Haible  <bruno@clisp.org>
44995         Fix a comment.
44996         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
44998 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
45000         ftoastr: don't assume snprintf
45001         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
45002         Implement a subset of snprintf here, by using sprintf safely.
45003         * modules/ftoastr (Depends-on): Remove snprintf.
45005 2010-11-19  Jim Meyering  <meyering@redhat.com>
45007         test-rename.h: fix compilation failure
45008         * tests/test-rename.h (test_rename): Add omitted "}".
45010 2010-11-17  Jim Meyering  <meyering@redhat.com>
45012         maint.mk: add a URL discussing the no-@acronym policy
45013         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
45015 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
45017         ftoastr: depend on snprintf, improve comments
45018         * lib/ftoastr.c: Also mention Loitsch's draft.
45019         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
45020         needed in the current implementation, but it might simplify
45021         speeding up the code later.
45022         * modules/ftoastr: Depend on snprintf; this improves portability.
45023         Suggested by Bruno Haible in the same email.
45025         ftoastr: port to hosts lacking strtof and strtold
45026         Problem reported by Bruno Haible in
45027         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
45028         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
45029         environment and strtold (and presumably strtof) are not available.
45030         * modules/ftoastr (Files): Add m4/c-strtod.m4.
45031         (configure.ac): Require gl_C99_STRTOLD.
45033 2010-11-18  Bruno Haible  <bruno@clisp.org>
45035         c-strtold: Avoid link error on AIX 7.
45036         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
45037         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
45038         (gl_C_STRTOLD): Test whether strtold_l exists.
45039         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45041 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45043         intprops: new macro INT_BITS_STRLEN_BOUND
45044         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
45045         ftoastr.h.  This exposes an internal of intprops.h that was formerly
45046         not exposed.  Also, it uses a slightly tighter bound than before;
45047         though this makes no practical difference, we might as well be as
45048         tight as we easily can.
45050         ftoastr: new module, for lossless conversion of floats to short strings
45051         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
45052         * modules/ftoastr: New files.
45054 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45056         bootstrap: port to Solaris sed
45057         * build-aux/bootstrap (get_version): Port to Solaris sed.
45058         See Ralf Wildenhues's note in
45059         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
45061 2010-11-14  Jim Meyering  <meyering@redhat.com>
45063         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
45064         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
45065         and move definition closer to sole use.
45067 2010-11-13  Jim Meyering  <meyering@redhat.com>
45069         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
45070         Now we require at least autoconf-2.59, which means the work-around
45071         is no longer needed.
45072         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
45073         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45074         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45075         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
45076         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
45078 2010-11-13  Bruno Haible  <bruno@clisp.org>
45080         rename, renameat: Avoid test failures at NFS mounted locations.
45081         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
45082         functions.
45083         (test_rename): Use assert_nonexistent.
45084         * tests/test-rename.c: Include <dirent.h>.
45085         * tests/test-renameat.c: Likewise.
45086         Reported by Gary V. Vaughan <gary@gnu.org>.
45088         rename, renameat: Document Linux bug with NFS
45089         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
45090         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
45091         * doc/posix-functions/renameat.texi: Likewise.
45092         Suggested by Eric Blake.
45094 2010-11-13  Bruno Haible  <bruno@clisp.org>
45096         rename test: Add comments.
45097         * tests/test-rename.h (test_rename): Add structure and comments.
45099 2010-11-13  Eric Blake  <eblake@redhat.com>
45101         maintainer-makefile: cover a few more files
45102         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
45103         scripts generated within C files, for libvirt.
45105 2010-11-13  Bruno Haible  <bruno@clisp.org>
45107         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
45108         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
45109         character, return the number of bytes that belong together, not always
45110         1.
45111         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
45112         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
45113         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
45114         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
45115         number of bytes of an invalid character.
45116         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
45117         (main): Invoke it.
45118         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
45119         results.
45120         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
45121         malformed byte sequences.
45122         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
45123         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
45124         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
45125         Reported by Ben Pfaff and Paolo Bonzini.
45127 2010-11-13  Bruno Haible  <bruno@clisp.org>
45129         openat: Work around glibc bug with fchownat() and empty file names.
45130         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
45131         (gl_FUNC_FCHOWNAT): Invoke it.
45132         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
45133         * doc/posix-functions/fchownat.texi: Document the glibc bug.
45134         Reported by Gary V. Vaughan <gary@gnu.org>.
45136 2010-11-13  Bruno Haible  <bruno@clisp.org>
45138         openat: Ensure autoconf macro ordering.
45139         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
45140         gl_USE_SYSTEM_EXTENSIONS.
45141         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
45143 2010-11-13  Bruno Haible  <bruno@clisp.org>
45145         Update comments.
45146         * lib/unistr/u8-check.c: Update file name in comments.
45147         * lib/unistr/u8-mblen.c: Likewise.
45148         * lib/unistr/u8-prev.c: Likewise.
45149         * lib/unistr/u8-strmblen.c: Likewise.
45150         * lib/unistr/u8-strmbtouc.c: Likewise.
45152 2010-11-13  Jim Meyering  <meyering@redhat.com>
45154         tests: avoid test failure on Solaris 10 due to lack of PATH export
45155         * tests/test-update-copyright.sh: Don't forget to export PATH.
45157         init.sh: ensure that IFS is defined, just in case...
45158         * tests/init.sh (setup_): Ensure that IFS is defined,
45159         so that saving and restoring it works as expected.  This
45160         appears to be useful at least for an old version of dash
45161         from a long time ago (RH 6).  See here for details:
45162         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
45164         maint.mk: tighten "test a == b" check
45165         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
45166         test to files that contain something like #!/bin/sh.
45167         Without this, coreutils would get two false positives in
45168         the comments of C source files.
45170 2010-11-12  Eric Blake  <eblake@redhat.com>
45172         bootstrap: fix typo in previous attempt
45173         * build-aux/bootstrap (buildreq): Correct the grouping.
45174         Reported by Paul Eggert.
45176         maintainer-makefile: prohibit test x == x
45177         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
45178         Based on a report by Matthias Bolte.
45180         bootstrap: allow FreeBSD gzip
45181         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
45182         which has no '.' and goes to stderr.
45183         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
45184         Reported by Matthias Bolte.
45186         maintainer-makefile: check for i18n setup
45187         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
45188         will likely work.
45190 2010-11-12  Bruno Haible  <bruno@clisp.org>
45192         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
45193         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
45194         * lib/nanosleep.c (nanosleep): Likewise.
45196 2010-11-11  Bruno Haible  <bruno@clisp.org>
45198         fcntl-h: Fix for use of C++ on glibc systems.
45199         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
45200         also on glibc systems in C++ mode.
45201         Reported by Gary V. Vaughan <gary@gnu.org>.
45203 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45205         mknod: avoid false failure with dash
45206         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
45208 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
45210         unlink: Fix "is it should" typo in diagnostic.
45211         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
45212         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
45214 2010-11-11  Bruno Haible  <bruno@clisp.org>
45216         Tests for module 'strerror_r-posix'.
45217         * modules/strerror_r-posix-tests: New file.
45218         * tests/test-strerror_r.c: New file.
45219         * tests/test-string-c++.cc: Check the signature of strerror_r.
45221         New module 'strerror_r-posix'.
45222         * lib/string.in.h (strerror_r): New declaration.
45223         * lib/strerror_r.c: New file.
45224         * m4/strerror_r.m4: New file.
45225         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
45226         of strerror_r.
45227         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
45228         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
45229         * modules/strerror_r-posix: New file.
45230         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
45231         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
45232         * doc/posix-functions/strerror_r.texi: Mention the new module and the
45233         portability problems.
45235 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
45237         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
45238         line is also considered for output. Quoted function name in shell
45239         command, so temporary files for functions like MyClass::operator()
45240         are removed correctly without errors.
45242 2010-11-09  Bruno Haible  <bruno@clisp.org>
45244         * doc/posix-functions/strerror.texi: List more failing platforms.
45246         * doc/posix-functions/strerror.texi: Add a comment.
45248 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45250         fdopendir: fix bug on MacOS X when low on file descriptors
45252         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
45253         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
45254         All callers changed.
45255         (fdopendir): Invoke save_cwd at the top level, not after using
45256         multiple dup() calls to use up file descriptors.  Then retry
45257         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
45258         less than the maximum number of open file descriptors, because
45259         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
45260         on Mac OS X 10.6.4 for tar 1.24
45261         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
45262         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
45263         and for tar 1.25
45264         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
45266 2010-11-07  Bruno Haible  <bruno@clisp.org>
45268         vasnprintf: Support I flag on glibc systems.
45269         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
45270         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
45271         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
45272         snprintf function.
45273         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
45274         glibc systems.
45275         * tests/test-vasnprintf-posix3.c: New file.
45276         * modules/vasnprintf-posix-tests (Files): Add it.
45277         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
45279 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45281         [html] Fix copy/paste bug: Use unique name for compiler warnings.
45282         * MODULES.html.sh: For compiler warnings, use name
45283         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
45285 2010-11-05  Eric Blake  <eblake@redhat.com>
45287         ceil, floor: avoid spurious failure with icc
45288         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
45289         [denormals-as-zero] when optimizing without -mieee-fp option.
45290         * tests/test-floorf2.c (floorf_reference): Likewise.
45291         * tests/test-ceilf1.c (dummy): New function.
45292         (main): Use it to outsmart icc's optimization.
45293         * tests/test-floorf1.c (dummy, main): Likewise.
45295         tests: require working signbit
45296         * modules/ceilf-tests (Depends-on): Add signbit.
45297         * modules/ceill-tests (Depends-on): Likewise.
45298         * modules/floorf-tests (Depends-on): Likewise.
45299         * modules/floorl-tests (Depends-on): Likewise.
45300         * modules/round-tests (Depends-on): Likewise.
45301         * modules/roundf-tests (Depends-on): Likewise.
45302         * modules/roundl-tests (Depends-on): Likewise.
45303         * modules/trunc-tests (Depends-on): Likewise.
45304         * modules/truncf-tests (Depends-on): Likewise.
45305         * modules/truncl-tests (Depends-on): Likewise.
45307         strtod: work around icc bug
45308         * lib/strtod.c (minus_zero): Define to working value.
45309         (strtod): Use it to avoid icc bug.
45311         copysign: enhance tests
45312         * modules/copysign-tests (Files): Add minus-zero.h.
45313         * tests/test-copysign.c (main): Also test zeros.
45315 2010-11-04  Eric Blake  <eblake@redhat.com>
45317         ceil, floor, round, trunc: enhance tests of -0
45318         * tests/test-ceilf1.c (main): Ensure correct sign of result.
45319         * tests/test-ceill.c (main): Likewise.
45320         * tests/test-floorf1.c (main): Likewise.
45321         * tests/test-floorl.c (main): Likewise.
45322         * tests/test-round1.c (main): Likewise.
45323         * tests/test-roundf1.c (main): Likewise.
45324         * tests/test-roundl.c (main): Likewise.
45325         * tests/test-trunc1.c (main): Likewise.
45326         * tests/test-truncf1.c (main): Likewise.
45327         * tests/test-truncl.c (main): Likewise.
45329 2010-11-04  Eric Blake  <eblake@redhat.com>
45331         frexp, tests: work around ICC bug with -zero
45332         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
45333         works with more compilers.
45334         * tests/minus-zero.h: New file.
45335         * modules/ceilf-tests (Files): Include it.
45336         * modules/ceill-tests (Files): Likewise.
45337         * modules/floorf-tests (Files): Likewise.
45338         * modules/floorl-tests (Files): Likewise.
45339         * modules/frexp-nolibm-tests (Files): Likewise.
45340         * modules/frexp-tests (Files): Likewise.
45341         * modules/frexpl-nolibm-tests (Files): Likewise.
45342         * modules/frexpl-tests (Files): Likewise.
45343         * modules/isnan-tests (Files): Likewise.
45344         * modules/isnand-nolibm-tests (Files): Likewise.
45345         * modules/isnand-tests (Files): Likewise.
45346         * modules/isnanf-nolibm-tests (Files): Likewise.
45347         * modules/isnanf-tests (Files): Likewise.
45348         * modules/isnanl-nolibm-tests (Files): Likewise.
45349         * modules/isnanl-tests (Files): Likewise.
45350         * modules/round-tests (Files): Likewise.
45351         * modules/roundf-tests (Files): Likewise.
45352         * modules/roundl-tests (Files): Likewise.
45353         * modules/ldexpl-tests (Files): Likewise.
45354         * modules/signbit-tests (Files): Likewise.
45355         * modules/snprintf-posix-tests (Files): Likewise.
45356         * modules/sprintf-posix-tests (Files): Likewise.
45357         * modules/strtod-tests (Files): Likewise.
45358         * modules/trunc-tests (Files): Likewise.
45359         * modules/truncf-tests (Files): Likewise.
45360         * modules/truncl-tests (Files): Likewise.
45361         * modules/vsnprintf-posix-tests (Files): Likewise.
45362         * modules/vsprintf-posix-tests (Files): Likewise.
45363         * modules/vasnprintf-posix-tests (Files): Likewise.
45364         * modules/vasprintf-posix-tests (Files): Likewise.
45365         * tests/test-ceilf1.c (main): Use it.
45366         * tests/test-ceill.c (main): Likewise.
45367         * tests/test-floorf1.c (main): Likewise.
45368         * tests/test-floorl.c (main): Likewise.
45369         * tests/test-frexp.c (main): Likewise.
45370         * tests/test-frexpl.c (main): Likewise.
45371         * tests/test-isnan.c (main): Likewise.
45372         * tests/test-isnand.h (main): Likewise.
45373         * tests/test-isnanf.h (main): Likewise.
45374         * tests/test-isnanl.h (main): Likewise.
45375         * tests/test-ldexpl.c (main): Likewise.
45376         * tests/test-round.c (main): Likewise.
45377         * tests/test-roundf.c (main): Likewise.
45378         * tests/test-roundl.c (main): Likewise.
45379         * tests/test-signbit.c (test_signbitf, test_signbitd)
45380         (test_signbitl): Likewise.
45381         * tests/test-snprintf-posix.h (test_function): Likewise.
45382         * tests/test-sprintf-posix.h (test_function): Likewise.
45383         * tests/test-strtod.c (main): Likewise.
45384         * tests/test-trunc1.c (main): Likewise.
45385         * tests/test-truncf1.c (main): Likewise.
45386         * tests/test-truncl.c (main): Likewise.
45388         isnanl: work around icc bug
45389         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
45391 2010-11-03  Eric Blake  <eblake@redhat.com>
45393         tests: fix compiler warnings
45394         * tests/test-getopt.h (test_getopt): Fix condition.
45395         * tests/test-getopt_long.h (test_getopt_long): Likewise.
45396         * tests/test-pipe2.c (main): Likewise.
45397         * tests/test-quotearg-simple.c (main): Avoid icc warning.
45399         utimens: fix broken m4 test
45400         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
45402 2010-10-28  Bruno Haible  <bruno@clisp.org>
45404         posix_spawn*, getdtablesize: Relax license.
45405         * modules/posix_spawn (License): Change to LGPLv2+.
45406         * modules/posix_spawnp (License): Likewise.
45407         * modules/posix_spawn-internal (License): Likewise.
45408         * modules/posix_spawnattr_init (License): Likewise.
45409         * modules/posix_spawnattr_getflags (License): Likewise.
45410         * modules/posix_spawnattr_setflags (License): Likewise.
45411         * modules/posix_spawnattr_getpgroup (License): Likewise.
45412         * modules/posix_spawnattr_setpgroup (License): Likewise.
45413         * modules/posix_spawnattr_getschedparam (License): Likewise.
45414         * modules/posix_spawnattr_setschedparam (License): Likewise.
45415         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
45416         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
45417         * modules/posix_spawnattr_getsigdefault (License): Likewise.
45418         * modules/posix_spawnattr_setsigdefault (License): Likewise.
45419         * modules/posix_spawnattr_getsigmask (License): Likewise.
45420         * modules/posix_spawnattr_setsigmask (License): Likewise.
45421         * modules/posix_spawnattr_destroy (License): Likewise.
45422         * modules/posix_spawn_file_actions_init (License): Likewise.
45423         * modules/posix_spawn_file_actions_addclose (License): Likewise.
45424         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
45425         * modules/posix_spawn_file_actions_addopen (License): Likewise.
45426         * modules/posix_spawn_file_actions_destroy (License): Likewise.
45427         * modules/getdtablesize (License): Likewise.
45428         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
45430 2010-10-26  Bruno Haible  <bruno@clisp.org>
45432         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
45433         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
45434         Cygwin and mingw.
45435         Suggested by Eric Blake.
45437 2010-10-26  Bruno Haible  <bruno@clisp.org>
45439         stdio: Work around compilation error due to renameat() on Solaris 10.
45440         * lib/stdio.in.h: Include <unistd.h> on Solaris.
45441         * lib/renameat.c: Don't include <unistd.h> here.
45442         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
45443         Reported by Paul Eggert and Eric Blake.
45445 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45447         renameat: port to Solaris 10, which declares renameat in unistd.h
45449         * lib/renameat.c: Include unistd.h before stdio.h, because
45450         Solaris 10 declares renameat in unistd.h.  Problem encountered
45451         when building GNU tar 1.24 on Solaris 10.
45453 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45455         fdopendir: fix C89 compilation
45456         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
45457         compilers.
45459 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
45461         inttostr: simplify by removing unnecessary redundancy
45462         * lib/anytostr.c: Don't include verify.h.
45463         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
45464         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
45465         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
45466         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
45467         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
45468         Likewise.
45469         * modules/inttostr (Depends-on): Remove 'verify'.
45471 2010-10-23  Bruno Haible  <bruno@clisp.org>
45473         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
45474         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
45475         Reported by Eric Blake.
45477 2010-10-23  Bruno Haible  <bruno@clisp.org>
45479         Tests: Fix LOCALE_JA on MirBSD 10.
45480         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
45481         to an UTF-8 locale.
45482         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
45483         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45484         Reported by Eric Blake.
45486 2010-10-21  Bruno Haible  <bruno@clisp.org>
45488         nl_langinfo test: Avoid test failure on NetBSD 5.
45489         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
45490         Reported by Eric Blake.
45492 2010-10-21  Eric Blake  <eblake@redhat.com>
45494         c-stack: work around libsigsegv 2.8 bug
45495         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
45496         overflow on at least PowerPC64.
45498 2010-10-17  Bruno Haible  <bruno@clisp.org>
45500         userspec: Drop redundant file.
45501         * modules/userspec (Files): Remove lib/inttostr.h.
45503 2010-10-17  Bruno Haible  <bruno@clisp.org>
45505         nl_langinfo tests: Silence some warnings.
45506         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
45507         Reported by Jim Meyering.
45509 2010-10-17  Bruno Haible  <bruno@clisp.org>
45511         Make use of GCC's attribute __alloc_size__.
45512         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
45513         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
45514         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
45515         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
45516         __alloc_size__.
45517         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45518         Suggested by Jim Meyering.
45520 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
45522         bootstrap: anchor .gitignore entries.
45523         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
45524         with...
45525         (insert_vc_ignore): ... this new function, which prepends `/' to
45526         all .gitignore entries before passing them to
45527         insert_sorted_if_absent.
45529 2010-10-16  Bruno Haible  <bruno@clisp.org>
45531         nextafter: Fix configure check.
45532         * modules/nextafter (configure.ac): Correct expected prototype.
45534 2010-10-16  Bruno Haible  <bruno@clisp.org>
45536         termios: Update documentation.
45537         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
45539 2010-10-16  Bruno Haible  <bruno@clisp.org>
45541         tests: Make them compile with TinyCC.
45542         * tests/test-strstr.c (main): Remove parentheses around array
45543         initializer.
45545 2010-10-15  Eric Blake  <eblake@redhat.com>
45547         ignore-value: make header idempotent
45548         * lib/ignore-value.h: Add double-inclusion guards.
45549         Reported by Stefan Berger.
45551 2010-10-15  Jim Meyering  <meyering@redhat.com>
45553         GNUmakefile: handle "stable" target, not "major"
45554         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
45555         lists in maint.mk and announce-gen.  Without this, "make stable"
45556         would fail to ensure that $(VERSION) is up to date.
45558 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
45560         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
45561         & co.
45563 2010-10-14  Bruno Haible  <bruno@clisp.org>
45565         vasnprintf: Don't set errno to 0.
45566         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
45567         block that sets it to 0.
45568         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
45570 2010-10-14  Bruno Haible  <bruno@clisp.org>
45572         socketlib: Fix.
45573         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
45574         gl_PREREQ_SYS_H_WINSOCK2.
45575         Reported by Ian Beckwith <ianb@erislabs.net>.
45577 2010-10-13  Jim Meyering  <meyering@redhat.com>
45579         test-select-stdin.c: avoid warn_unused_result warnings
45580         * tests/test-select-stdin.c: Include "macros.h".
45581         ASSERT that read and fflush succeed.
45583 2010-10-13  Jim Meyering  <meyering@redhat.com>
45585         git-version-gen: do require git-VC'd files in cwd
45586         * build-aux/git-version-gen: Reject a git version string
45587         if there are no commits associated with the current directory.
45588         This avoids an unlikely false-positive (unrelated dir whose parent
45589         repository also contains a tag matching v*), as pointed out
45590         by Giuseppe Scrivano in
45591         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
45593 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45595         argv-iter: omit nonconforming declaration
45596         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
45597         enum arg_iter_err declaration, which doesn't conform to C99.
45598         Solaris 10 cc warns about this.
45600 2010-10-13  Eric Blake  <eblake@redhat.com>
45602         termios: fix compilation on mingw
45603         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
45604         (gl_TERMIOS_H): Adjust it on mingw.
45605         * modules/termios (Makefile.am): Substitute new key.
45606         * lib/termios.in.h (includes): Make include_next conditional.
45607         * doc/posix-headers/termios.texi (termios.h): Update
45608         documentation.
45609         Reported by Daniel P. Berrange.
45611 2010-10-13  Jim Meyering  <meyering@redhat.com>
45613         git-version-gen: don't require that .git/ be in the current dir
45614         * build-aux/git-version-gen: Adjust this script so that it works
45615         when run from any working directory beneath the top-level .git/-
45616         containing directory.  Inspired by a patch from Giuseppe Scrivano,
45617         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
45619         test-select: avoid warn_unused_result warnings
45620         * tests/test-select.c: Include "macros.h".
45621         ASSERT that each call to read, write, and pipe succeeds.
45622         While not technically required, also check each "close".
45623         * modules/select-tests (Files): Add tests/macros.h.
45625         test-symlinkat: remove declaration of unused local
45626         * tests/test-symlinkat.c (main): Remove unused local, "buf".
45628         test-inttostr: avoid shadowing warnings
45629         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
45630         and use malloc rather than the stack for the same reason as
45631         mentioned in the comment justifying the other allocation.
45633 2010-10-11  Bruno Haible  <bruno@clisp.org>
45635         stdlib: Allow multiple gnulib generated replacements to coexist.
45636         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
45637         Reported by Sam Steingold <sds@gnu.org>.
45639 2010-10-11  Jim Meyering  <meyering@redhat.com>
45641         fix a documentation typo
45642         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
45644 2010-10-11  Eric Blake  <eblake@redhat.com>
45646         futimens: work around Solaris 11 bug
45647         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
45648         * tests/test-futimens.h (test_futimens): Enhance, rather than
45649         weaken test.
45650         * doc/posix-functions/futimens.texi (futimens): Document the bug.
45652 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45654         Indentation.
45655         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
45656         higher-level operators more to the left.
45658 2010-10-11  Jim Meyering  <meyering@redhat.com>
45660         test-futimens: avoid unwarranted test failure on Solaris 5.11
45661         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
45662         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
45663         because it tries to dereference the NULL name argument.
45665 2010-10-11  Bruno Haible  <bruno@clisp.org>
45667         Indentation.
45668         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
45669         indentation.
45671 2010-10-11  Jim Meyering  <meyering@redhat.com>
45673         spawn.in.h: make indentation consistent with parentheses
45674         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
45675         Make indentation consistent with parentheses.
45677 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
45679         Fix mismatched parens in previous commit
45680         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
45681         parens.
45683 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45685         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
45687         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
45688         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
45689         * lib/malloca.c: Include "verify.h".
45690         (verify1): Remove, replacing with a verify call.
45691         * lib/relocwrapper.c (verify1): Likewise.
45692         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
45693         Likewise.
45694         * modules/malloca (Depends-on): Add 'verify'.
45695         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
45696         * modules/vasnprintf (Depends-on): Add 'verify'.
45697         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45698         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45699         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45700         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45701         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45702         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45703         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45705         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
45707         Formerly the style was sometimes 2*X - 1, because the C standard
45708         was wrongly thought to disallow ?: in integral constant expressions.
45709         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
45710         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
45711         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
45712         * lib/stdint.in.h (_verify_intmax_size): Likewise.
45713         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
45714         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
45715         verify that time_t cannot be floating.
45717 2010-10-08  Eric Blake  <eblake@redhat.com>
45719         time: enforce recent POSIX ruling that time_t is integral
45720         * lib/time.in.h (__time_t_must_be_integral): Detect any
45721         problematic systems, allowing the rest of gnulib to assume POSIX.
45723 2010-10-08  Jim Meyering  <meyering@redhat.com>
45725         fdopendir: fix a bug on systems lacking openat and /proc support
45726         OpenBSD 4.7 is one such system.  The most noticeable effect was
45727         failure of any application making nontrivial use of fts: rm, du,
45728         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
45729           ./rm: traversal failed: `a': Bad file descriptor
45730         Debugging that, you see that even though FD 6 was closed just
45731         prior to the opendir call in fd_clone_opendir, its resulting
45732         dir->dd_fd was 8, rather than the expected value of 6:
45734         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
45735         93                close (fd);
45736         (gdb) n
45737         94                dir = fd_clone_opendir (dupfd);
45738         (gdb) n
45739         95                saved_errno = errno;
45740         (gdb) p dir->dd_fd
45741         $11 = 8
45743         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
45744         The problem is that on OpenBSD, fd_clone_opendir has to resort
45745         to using the old-style save/restore CWD mechanism, due to its
45746         lack of openat/proc support, and *that* would steal the FD (6)
45747         that opendir was supposed to use.
45749         The fix is to squirrel away the desired FD so that save_cwd uses a
45750         different one, and then free the dest FD right before calling opendir.
45751         That guarantees opendir will use the required file descriptor.
45753         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
45755 2010-10-08  Bruno Haible  <bruno@clisp.org>
45757         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
45758         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
45760 2010-10-08  Bruno Haible  <bruno@clisp.org>
45762         nanosleep: Make replacement POSIX compliant.
45763         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
45764         is out of range.
45765         Reported by Jim Meyering.
45767 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45769         bootstrap: add hook for altering gnulib.mk, for Bison
45770         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
45771         the Bison bootstrapping process can rewrite file names and variables
45772         in this file before later parts of 'bootstrap' use the file.
45773         Bison wants to include lib/gnulib.mk from the top-level makefile,
45774         so it needs the file names in this file to be relative to the top
45775         level, not relative to lib; plus it needs variable names to be
45776         rewritten.
45777         (slurp): Use the new function.
45779         bootstrap: reformat for readability
45780         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
45782 2010-10-08  Eric Blake  <eblake@redhat.com>
45784         docs: update cygwin progress
45785         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
45786         1.7.7.
45787         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
45788         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
45789         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
45790         * doc/posix-functions/carg.texi (carg): Likewise.
45791         * doc/posix-functions/cargf.texi (cargf): Likewise.
45792         * doc/posix-functions/casin.texi (casin): Likewise.
45793         * doc/posix-functions/casinf.texi (casinf): Likewise.
45794         * doc/posix-functions/casinh.texi (casinh): Likewise.
45795         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
45796         * doc/posix-functions/catan.texi (catan): Likewise.
45797         * doc/posix-functions/catanf.texi (catanf): Likewise.
45798         * doc/posix-functions/catanh.texi (catanh): Likewise.
45799         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
45800         * doc/posix-functions/ccos.texi (ccos): Likewise.
45801         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
45802         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
45803         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
45804         * doc/posix-functions/cexp.texi (cexp): Likewise.
45805         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
45806         * doc/posix-functions/cimag.texi (cimag): Likewise.
45807         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
45808         * doc/posix-functions/clog.texi (clog): Likewise.
45809         * doc/posix-functions/clogf.texi (clogf): Likewise.
45810         * doc/posix-functions/conj.texi (conj): Likewise.
45811         * doc/posix-functions/conjf.texi (conjf): Likewise.
45812         * doc/posix-functions/cpow.texi (cpow): Likewise.
45813         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
45814         * doc/posix-functions/cproj.texi (cproj): Likewise.
45815         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
45816         * doc/posix-functions/creal.texi (creal): Likewise.
45817         * doc/posix-functions/crealf.texi (crealf): Likewise.
45818         * doc/posix-functions/csin.texi (csin): Likewise.
45819         * doc/posix-functions/csinf.texi (csinf): Likewise.
45820         * doc/posix-functions/csinh.texi (csinh): Likewise.
45821         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
45822         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
45823         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
45824         * doc/posix-functions/ctan.texi (ctan): Likewise.
45825         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
45826         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
45827         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
45828         * doc/posix-headers/complex.texi (complex.h): Likewise.
45830 2010-10-07  Jim Meyering  <meyering@redhat.com>
45832         parse-datetime: avoid compilation failure on OpenBSD 4.7
45833         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
45834         This works around a compilation failure on OpenBSD 4.7:
45835         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
45837 2010-10-07  Eric Blake  <eblake@redhat.com>
45839         docs: update cygwin progress
45840         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
45841         1.7.6.
45842         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
45843         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
45844         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
45845         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
45846         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
45847         Likewise.
45848         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
45849         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
45850         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
45851         Likewise.
45852         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
45853         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
45854         Likewise.
45855         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
45856         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
45857         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
45858         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
45859         Likewise.
45860         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
45861         Likewise.
45862         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
45864         docs: update parse-datetime history
45865         * doc/parse-datetime.texi (Authors of parse_datetime): Better
45866         documentation of this function's history and alternatives.
45868         cygwin: use more robust version check
45869         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
45870         exclude an eventual cygwin 1.9.1.
45871         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
45872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
45873         (gl_FUNC_STRCASESTR): Likewise.
45874         Reported by Bruno Haible.
45876 2010-10-06  Bruno Haible  <bruno@clisp.org>
45878         string, sys_select: Avoid #including large headers unless necessary.
45879         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
45880         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
45881         OSF/1, BeOS, Haiku.
45882         Reported by Jim Meyering.
45884 2010-10-05  Eric Blake  <eblake@redhat.com>
45886         memmem, strstr, strcasestr: fix bug with long periodic needle
45887         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
45888         periodic needle having false positive.
45889         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
45890         and cygwin 1.7.7.
45891         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
45892         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
45893         (gl_FUNC_STRCASESTR): Likewise.
45894         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
45895         * tests/test-memmem.c (main): Expose the bug.
45896         * tests/test-strcasestr.c (main): Likewise.
45897         * tests/test-strstr.c (main): Likewise.
45898         * tests/test-c-strcasestr.c (main): Likewise.
45899         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
45900         * doc/posix-functions/strstr.texi (strstr): Likewise.
45901         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45902         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
45904 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45906         parse-datetime: do some more renaming
45907         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
45908         parse_datetime, not get_date.  Mention the renaming.
45909         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
45910         in comments.
45911         * m4/bison.m4: Likewise.
45913 2010-10-05  Eric Blake  <eblake@redhat.com>
45915         parse-datetime: better name than get_date
45916         * NEWS: Reword the deprecation notice.
45917         * modules/get_date: Rename to modules/parse-datetime.
45918         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
45919         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
45920         * lib/get_date.y: Rename to lib/parse-datetime.y.
45921         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
45922         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
45923         * doc/getdate.texi: Provide fallback wrapper.
45924         * lib/getdate.h: Move guts, and wrap...
45925         * lib/parse-datetime.h: ...new file.
45926         * lib/parse-datetime.y (get_date): Rename...
45927         (parse_datetime): ...to this.
45928         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
45929         (gl_PARSE_DATETIME): ...to this.
45930         * doc/posix-functions/getdate.texi (get_date): Provide fallback
45931         documentation.
45932         * modules/getdate (Files): Provide fallback docs and header.
45933         (Notice, Depends-on): Update references.
45934         * tests/test-parse-datetime.c: Likewise.
45935         * DEPENDENCIES: Likewise.
45936         * MODULES.html.sh (Date and time <time.h>): Likewise.
45937         * doc/parse-datetime.texi (Date input formats)
45938         (Authors of parse_datetime): Likewise.
45939         * modules/parse-datetime (Files, configure.ac, Makefile.am)
45940         (Include): Likewise.
45941         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
45942         * gnulib-tool: Likewise.
45943         * m4/bison.m4 (gl_BISON): Likewise.
45944         Suggested by Bruno Haible.
45946 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45948         more ports to Solaris tr, which needs [] around ranges
45949         * gnulib-tool: Solaris tr needs [] around ranges.
45950         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
45951         * tests/test-pipe-filter-gi1.c (main): Likewise.
45952         * tests/test-pipe-filter-ii1.c (main): Likewise.
45954 2010-10-05  Eric Blake  <eblake@redhat.com>
45956         bootstrap: fix Solaris regression
45957         * build-aux/bootstrap (check_versions): Solaris tr still needs []
45958         around ranges.
45959         Reported by Pádraig Brady.
45961         bootstrap: work with pkg-config
45962         * build-aux/bootstrap (check_versions): Also transliterate - in
45963         prerequisite name.
45964         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
45965         prerequisites that were already found, to avoid confusion.
45966         Reported by Justin Clift.
45968         faccessat: remove unused wrappers
45969         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
45970         presence of these wrappers dragged in -lgen on Solaris.
45971         Reported by Clemens Brogi; fix suggested by Paul Eggert.
45973 2010-10-05  Jim Meyering  <meyering@redhat.com>
45975         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
45976         * Makefile (sc_pragma_columns): New syntax-check rule.
45978 2010-10-04  Bruno Haible  <bruno@clisp.org>
45980         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
45981         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
45982         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
45983         Reported by Bruce Korb and Eric Blake.
45985 2010-10-04  Bruno Haible  <bruno@clisp.org>
45987         threadlib: Make option --with-libpth-prefix work.
45988         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
45989         use $LIBPTH, not just -lpth.
45991 2010-10-04  Bruno Haible  <bruno@clisp.org>
45993         Avoid line length limitation from HP NonStop system header files.
45994         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
45995         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
45996         * lib/ctype.in.h: Likewise.
45997         * lib/dirent.in.h: Likewise.
45998         * lib/errno.in.h: Likewise.
45999         * lib/fcntl.in.h: Likewise.
46000         * lib/float.in.h: Likewise.
46001         * lib/getopt.in.h: Likewise.
46002         * lib/iconv.in.h: Likewise.
46003         * lib/inttypes.in.h: Likewise.
46004         * lib/langinfo.in.h: Likewise.
46005         * lib/locale.in.h: Likewise.
46006         * lib/math.in.h: Likewise.
46007         * lib/netdb.in.h: Likewise.
46008         * lib/netinet_in.in.h: Likewise.
46009         * lib/poll.in.h: Likewise.
46010         * lib/pthread.in.h: Likewise.
46011         * lib/pty.in.h: Likewise.
46012         * lib/sched.in.h: Likewise.
46013         * lib/se-selinux.in.h: Likewise.
46014         * lib/search.in.h: Likewise.
46015         * lib/signal.in.h: Likewise.
46016         * lib/spawn.in.h: Likewise.
46017         * lib/stdarg.in.h: Likewise.
46018         * lib/stddef.in.h: Likewise.
46019         * lib/stdint.in.h: Likewise.
46020         * lib/stdio.in.h: Likewise.
46021         * lib/stdlib.in.h: Likewise.
46022         * lib/string.in.h: Likewise.
46023         * lib/strings.in.h: Likewise.
46024         * lib/sys_file.in.h: Likewise.
46025         * lib/sys_ioctl.in.h: Likewise.
46026         * lib/sys_select.in.h: Likewise.
46027         * lib/sys_socket.in.h: Likewise.
46028         * lib/sys_stat.in.h: Likewise.
46029         * lib/sys_time.in.h: Likewise.
46030         * lib/sys_times.in.h: Likewise.
46031         * lib/sys_utsname.in.h: Likewise.
46032         * lib/sys_wait.in.h: Likewise.
46033         * lib/sysexits.in.h: Likewise.
46034         * lib/termios.in.h: Likewise.
46035         * lib/time.in.h: Likewise.
46036         * lib/unistd.in.h: Likewise.
46037         * lib/wchar.in.h: Likewise.
46038         * lib/wctype.in.h: Likewise.
46039         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
46040         * modules/ctype (Makefile.am): Likewise.
46041         * modules/dirent (Makefile.am): Likewise.
46042         * modules/errno (Makefile.am): Likewise.
46043         * modules/fcntl-h (Makefile.am): Likewise.
46044         * modules/float (Makefile.am): Likewise.
46045         * modules/getopt-posix (Makefile.am): Likewise.
46046         * modules/iconv-h (Makefile.am): Likewise.
46047         * modules/inttypes (Makefile.am): Likewise.
46048         * modules/langinfo (Makefile.am): Likewise.
46049         * modules/locale (Makefile.am): Likewise.
46050         * modules/math (Makefile.am): Likewise.
46051         * modules/netdb (Makefile.am): Likewise.
46052         * modules/netinet_in (Makefile.am): Likewise.
46053         * modules/poll-h (Makefile.am): Likewise.
46054         * modules/pthread (Makefile.am): Likewise.
46055         * modules/pty (Makefile.am): Likewise.
46056         * modules/sched (Makefile.am): Likewise.
46057         * modules/search (Makefile.am): Likewise.
46058         * modules/selinux-h (Makefile.am): Likewise.
46059         * modules/signal (Makefile.am): Likewise.
46060         * modules/spawn (Makefile.am): Likewise.
46061         * modules/stdarg (Makefile.am): Likewise.
46062         * modules/stddef (Makefile.am): Likewise.
46063         * modules/stdint (Makefile.am): Likewise.
46064         * modules/stdio (Makefile.am): Likewise.
46065         * modules/stdlib (Makefile.am): Likewise.
46066         * modules/string (Makefile.am): Likewise.
46067         * modules/strings (Makefile.am): Likewise.
46068         * modules/sys_file (Makefile.am): Likewise.
46069         * modules/sys_ioctl (Makefile.am): Likewise.
46070         * modules/sys_select (Makefile.am): Likewise.
46071         * modules/sys_socket (Makefile.am): Likewise.
46072         * modules/sys_stat (Makefile.am): Likewise.
46073         * modules/sys_time (Makefile.am): Likewise.
46074         * modules/sys_times (Makefile.am): Likewise.
46075         * modules/sys_utsname (Makefile.am): Likewise.
46076         * modules/sys_wait (Makefile.am): Likewise.
46077         * modules/sysexits (Makefile.am): Likewise.
46078         * modules/termios (Makefile.am): Likewise.
46079         * modules/time (Makefile.am): Likewise.
46080         * modules/unistd (Makefile.am): Likewise.
46081         * modules/wchar (Makefile.am): Likewise.
46082         * modules/wctype (Makefile.am): Likewise.
46084 2010-10-04  Bruno Haible  <bruno@clisp.org>
46086         read-file tests: Avoid a test failure on NonStop Kernel.
46087         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
46088         a regular file.
46089         Reported by Joachim Schmitz <schmitz@hp.com>.
46091 2010-10-03  Bruno Haible  <bruno@clisp.org>
46093         gnulib-tool: Fixes for --create-testdir with --libtool.
46094         * gnulib-tool (func_get_automake_snippet): Don't augment
46095         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
46096         an executable.
46097         (func_create_testdir): Handle module 'alloca' like func_import.
46098         Reported by Bruce Korb <bruce.korb@gmail.com>.
46100 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
46102         Avoid some lines longer than 80 characters.
46103         * lib/stdint.in.h: Break long comment lines.
46104         * lib/math.in.h: Likewise.
46105         (_GL_NUM_UINT_WORDS): New macro, for readability.
46106         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
46107         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
46108         * lib/stdlib.in.h: Likewise.
46109         * lib/spawn.in.h: Likewise.
46110         * lib/sys_socket.in.h: Update an URL.
46111         * lib/sys_stat.in.h: Break long line.
46113 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
46115         Improve pmccabe2html.
46116         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
46117         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
46118         when the sources change. Remove the line in the HTML about "Used
46119         ranges" (which implied that there might be other unused ranges),
46120         rename "Resume" to "Summary" (easier to understand for more users).
46121         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
46122         styles, and some unnecessary blank lines.
46124 2010-10-03  Bruno Haible  <bruno@clisp.org>
46125             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
46127         acl: Add support for ACLs on NonStop Kernel.
46128         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
46129         Check whether the function aclsort() exists.
46130         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
46131         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
46132         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46133         (acl_nontrivial [HAVE_ACLSORT]: New function.
46134         (file_has_acl): Implement for NonStop Kernel.
46135         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46136         (qset_acl): Implement for NonStop Kernel.
46137         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
46138         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46139         (main): Implement for NonStop Kernel.
46140         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
46141         Kernel. Handle this flavor.
46142         * tests/test-set-mode-acl.sh: Likewise.
46143         * tests/test-copy-acl.sh: Likewise.
46144         * tests/test-copy-file.sh: Likewise.
46146 2010-10-03  Bruno Haible  <bruno@clisp.org>
46148         Info about ACLs on NonStop Kernel.
46149         * doc/acl-resources.txt: Add info about NonStop Kernel.
46150         References by Joachim Schmitz <schmitz@hp.com>.
46152 2010-10-02  Bruno Haible  <bruno@clisp.org>
46154         Define missing EDQUOT on NonStop Kernel.
46155         * lib/errno.in.h (EDQUOT): Assign a value if missing.
46156         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
46157         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
46158         missing.
46159         * doc/posix-headers/errno.texi: Mention the NSK bug.
46160         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
46161         Reported by Joachim Schmitz <schmitz@hp.com>.
46163 2010-10-02  Bruno Haible  <bruno@clisp.org>
46165         Update doc for POSIX:2008.
46166         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
46167         Update URL of POSIX specification.
46169 2010-10-02  Bruno Haible  <bruno@clisp.org>
46171         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
46172         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
46173         from gnulib, not from Automake.
46175 2010-10-02  Bruno Haible  <bruno@clisp.org>
46177         New module 'system-posix'.
46178         * modules/system-posix: New file.
46179         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
46180         module is present.
46181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46182         GNULIB_SYSTEM_POSIX.
46183         * modules/stdlib (Depends-on): Remove sys_wait.
46184         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
46185         * doc/posix-functions/system.texi: Mention the new module.
46186         * doc/posix-headers/stdlib.texi: Likewise.
46187         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
46188         define test_sys_wait_macros to a no-op.
46189         Reported by Sam Steingold <sds@gnu.org>.
46191 2010-09-30  Bruno Haible  <bruno@clisp.org>
46193         More renaming from 'getdate' to 'get_date'.
46194         * doc/get_date.texi: Renamed from doc/getdate.texi.
46195         * modules/get_date (Files): Update.
46196         * MODULES.html.sh (Date and time <time.h>): Update.
46197         * DEPENDENCIES: Update.
46198         * gnulib-tool: Update comment.
46199         * m4/bison.m4 (gl_BISON): Likewise.
46200         * m4/get_date.m4 (gl_GET_DATE): Likewise.
46202 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
46204         bootstrap: support ACLOCAL_FLAGS during aclocal
46205         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
46206         can add additional -I dir for third-party .m4 files.
46208 2010-09-30  Eric Blake  <eblake@redhat.com>
46210         bootstrap: use glibtoolize on MacOS
46211         * build-aux/bootstrap (check_versions): Convert libtool into
46212         libtoolize.
46213         (tool search): Move libtool check earlier, and look for
46214         glibtoolize for MacOS.
46215         (gnulib_tool_options): Auto-add --libtool when appropriate.
46216         Reported by Justin Clift.
46218         poll: fix typo that broke test on MacOS
46219         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
46220         Reported by Justin Clift.
46222         getdate: rename to get_date
46223         Note: getdate.h is not renamed, to minimize client impact.
46224         * modules/getdate: Mark obsolete.  Move old contents...
46225         * modules/get_date: ...to new module name.
46226         * modules/getdate-tests: Move...
46227         * modules/get_date-tests: ...here.
46228         * m4/getdate.m4: Move...
46229         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
46230         * lib/getdate.y: Move...
46231         * lib/get_date.y: ...here.
46232         * tests/test-getdate.c: Move...
46233         * tests/test-get_date.c: ...here.
46234         * doc/posix-functions/getdate.texi (getdate): Update name.
46235         * NEWS: Mention the change.
46237 2010-09-29  Bruno Haible  <bruno@clisp.org>
46239         Separate the module 'waitpid' from the module 'sys_wait'.
46240         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
46241         present.
46242         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
46243         gl_MODULE_INDICATOR_FOR_TESTS.
46244         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
46245         * modules/sys_wait (Depends-on): Remove waitpid.
46246         (Makefile.am): Substitute GNULIB_WAITPID.
46247         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
46248         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
46249         signature only if the 'waitpid' module is present.
46250         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
46251         * NEWS: Mention the change.
46252         * modules/grantpt (Depends-on): Add waitpid.
46253         * modules/wait-process (Depends-on): Likewise.
46255 2010-09-29  Bruno Haible  <bruno@clisp.org>
46257         More tests for module 'sys_wait'.
46258         * modules/sys_wait-c++-tests: New file.
46259         * tests/test-sys_wait-c++.cc: New file.
46260         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
46261         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46263 2010-09-29  Bruno Haible  <bruno@clisp.org>
46265         New module 'waitpid'.
46266         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
46267         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
46268         Don't include <process.h>.
46269         (waitpid): Declare only, using modern idiom.
46270         * m4/waitpid.m4: New file.
46271         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
46272         * modules/waitpid: New file.
46273         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
46274         (Makefile.am): Update.
46275         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46277 2010-09-28  Bruno Haible  <bruno@clisp.org>
46279         poll: Assume ANSI C.
46280         * lib/poll.c (poll): Use an ANSI C declaration.
46282 2010-09-28  Bruno Haible  <bruno@clisp.org>
46284         poll-h: Create poll.h on all platforms.
46285         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
46286         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
46287         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
46288         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
46289         (gl_REPLACE_POLL_H): Don't set POLL_H.
46290         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
46291         * modules/poll-h (Depends-on): Add include_next.
46292         (Makefile.am): Create poll.h unconditionally. Substitute also
46293         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
46295 2010-09-28  Bruno Haible  <bruno@clisp.org>
46297         Tests for module 'poll-h'.
46298         * modules/poll-h-c++-tests: New file.
46299         * tests/test-poll-h-c++.cc: New file.
46301         Tests for module 'poll-h'.
46302         * modules/poll-h-tests: New file.
46303         * tests/test-poll-h.c: New file.
46305 2010-09-28  Bruno Haible  <bruno@clisp.org>
46307         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
46308         * modules/poll-h (Depends-on): Add 'extensions'.
46310 2010-09-28  Bruno Haible  <bruno@clisp.org>
46312         New module 'poll-h'.
46313         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
46314         (poll): Use modern idiom.
46315         * modules/poll-h: New file.
46316         * modules/poll (Files): Remove lib/poll.in.h.
46317         (Depends-on): Add poll-h.
46318         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
46319         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
46320         * m4/poll_h.m4: New file.
46321         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
46322         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
46323         and invoke gl_REPLACE_POLL_H.
46324         * lib/poll.c: Use common idiom.
46325         * tests/test-poll.c: Likewise.
46326         * doc/posix-headers/poll.texi: Mention the poll-h module.
46327         Suggested by Eric Blake.
46329 2010-09-26  Bruno Haible  <bruno@clisp.org>
46331         sys_wait: Implement WSTOPSIG.
46332         * lib/sys_wait.in.h (WSTOPSIG): New macro.
46333         Reported by Simon Josefsson.
46335 2010-09-26  Simon Josefsson  <simon@josefsson.org>
46337         stdlib, sys_wait: Avoid compilation error on mingw.
46338         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
46340 2010-09-26  Bruno Haible  <bruno@clisp.org>
46342         stdlib tests: Avoid code duplication.
46343         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
46344         * modules/sys_wait-tests (Files): Likewise.
46345         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
46346         * tests/test-stdlib.c: Include test-sys_wait.h.
46347         (main): Invoke test_sys_wait_macros.
46348         * tests/test-sys_wait.c: Include test-sys_wait.h.
46349         (main): Invoke test_sys_wait_macros.
46351 2010-09-25  Simon Josefsson  <simon@josefsson.org>
46353         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
46354         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
46355         sure Windows sockets are working before calling getaddrinfo.
46356         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
46357         * doc/gnulib.texi (Windows sockets): Fix typo.
46359 2010-09-25  Bruno Haible  <bruno@clisp.org>
46361         Tests for module 'regex-quote'.
46362         * modules/regex-quote-tests: New file.
46363         * tests/test-regex-quote.c: New file.
46365         New module 'regex-quote'.
46366         * lib/regex-quote.h: New file.
46367         * lib/regex-quote.c: New file.
46368         * modules/regex-quote: New file.
46369         Suggested by Reuben Thomas <rrt@sc3d.org>.
46371 2010-09-24  Bruno Haible  <bruno@clisp.org>
46373         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
46374         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
46376 2010-09-23  Bruno Haible  <bruno@clisp.org>
46378         setenv: Relax license.
46379         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
46380         Blake.
46381         Requested by Eric Blake.
46383 2010-09-22  Bruno Haible  <bruno@clisp.org>
46385         termios: Relax license.
46386         * modules/termios (License): Change to LGPLv2+.
46387         Requested by Eric Blake.
46389 2010-09-22  Bruno Haible  <bruno@clisp.org>
46391         threadlib: Allow the package to change the default to 'no'.
46392         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
46393         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
46394         Reported by Paul Eggert.
46396 2010-09-22  Pádraig Brady  <P@draigbrady.com>
46397             Bruno Haible  <bruno@clisp.org>
46399         Fix endless loop in mbmemcasecoll.
46400         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
46401         byte.
46402         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
46404 2010-09-22  Bruno Haible  <bruno@clisp.org>
46406         Tests for module 'memcoll'.
46407         * modules/memcoll-tests: New file.
46408         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
46410         memcoll, xmemcoll: Clarify size vs. length.
46411         * modules/memcoll.c (memcoll0): Clarify specification.
46412         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
46413         passed to collate_error.
46415 2010-09-22  Bruno Haible  <bruno@clisp.org>
46417         Tests for module 'memcasecmp'.
46418         * modules/memcasecmp-tests: New file.
46419         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
46421 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46423         * lib/pthread.in.h: Add split double-inclusion guard, and include
46424         system <pthread.h> if there is one.  Use @@-style as in other
46425         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
46426         pthread.h doesn't.
46427         (pthread_mutexattr_destroy, pthread_mutexattr_init):
46428         (pthread_mutexattr_settype, pthread_mutex_trylock):
46429         New static inline functions, if there's no system <pthread.h>.
46430         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
46431         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
46432         Approximate with mutexes if the system lacks spinlocks, as in
46433         MacOS.
46434         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
46435         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
46436         @@-style.  Check for spinlocks separately.
46437         (gl_PTHREAD_DEFAULTS): New macro.
46438         * modules/pthread: Redo to use a more typical style for in.h files.
46440 2010-09-21  Eric Blake  <eblake@redhat.com>
46442         net_if: enhance tests
46443         * tests/test-net_if.c (main): Move signature checks earlier.
46444         Print failures to stderr.
46445         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
46446         Document the bug that we do not yet fix.
46448 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46450         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
46451         about gnulib, not GSS.
46453 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46455         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
46456         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
46457         for Emacs.
46458         * build-aux/pmccabe2html: Make Makefile.am example code more
46459         cut-and-paste friendly.
46461 2010-09-21  Simon Josefsson  <simon@josefsson.org>
46463         * tests/test-net_if.c: New file.
46464         * modules/net_if-tests: New file.
46466 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46468         pthread: add pthread_spin_destroy
46469         * lib/pthread.in.h (pthread_spin_destroy): New function.
46471 2010-09-19  Bruno Haible  <bruno@clisp.org>
46473         gnulib-tool: Fix --help output.
46474         * gnulib-tool (func_usage): Fix help message.
46475         Reported by Reuben Thomas <rrt@sc3d.org>.
46477 2010-09-18  Jim Meyering  <meyering@redhat.com>
46479         maint.mk: avoid unexpanded \n in two diagnostics
46480         * top/maint.mk (sc_prohibit_always_true_header_tests):
46481         Don't use a literal \n in a halt=... assignment.  It would not be
46482         expanded, and the two \n bytes would appear in the diagnostic output
46483         rather than the desired newline.  Use halt=$$(printf ... instead.
46484         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
46486 2010-09-18  Bruno Haible  <bruno@clisp.org>
46488         netinet_in: Doc tweak.
46489         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
46490         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46492 2010-09-18  Jim Meyering  <meyering@redhat.com>
46494         init.sh: correct an outdated comment
46495         * tests/init.sh (create_exe_shims_):  s/function/alias/
46497         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
46498         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
46499         a file named "*.exe" is removed between the glob expansion and the
46500         processing of that oddly named file.
46502 2010-09-17  Eric Blake  <eblake@redhat.com>
46504         mirbsd: add some more support
46505         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
46506         in BSD family.
46507         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
46508         devices as OpenBSD.
46509         * m4/host-os.m4 (mirbsd): Add MirBSD.
46511         tests: fix unportable assumption on sys/wait.h
46512         * tests/test-sys_wait.c (main): Relax test.
46513         * tests/test-stdlib.c (main): Likewise.
46515         init.sh: accommodate directory with no .exes
46516         * tests/init.sh: Accomodate directory containing only scripts.
46518         tests: avoid compiler warning
46519         * tests/test-stdlib.c (main): Use the variable.
46521         fdutimens, fdutimensat: update signature, again
46522         * lib/utimens.h (gl_futimens): Delete, and move signature...
46523         (fdutimens): ...here.
46524         (fdutimensat): Rearrange signature.
46525         (lutimensat): Rename variable for clarity.
46526         * lib/fdutimensat.c (fdutimensat): Update signature.
46527         * lib/utimens.c (fdutimens): Likewise.
46528         (gl_futimens): Delete.
46529         (utimens, lutimens): Update callers.
46530         * lib/futimens.c (futimens): Likewise.
46531         * tests/test-fdutimensat.c: Likewise.
46532         * tests/test-utimens.c: Likewise.
46533         * tests/test-futimens.h: Update comment.
46534         * NEWS: Mention this.
46535         Suggested by Paul Eggert.
46537 2010-09-17  Bruno Haible  <bruno@clisp.org>
46539         Take over the maintenance of some older macros from Autoconf.
46540         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
46541         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
46542         GNU Autoconf.
46543         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
46544         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
46546 2010-09-17  Eric Blake  <eblake@redhat.com>
46548         fdutimensat: drop atflag validation
46549         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
46550         with valid fd, to close a race scenario where futimens is
46551         unsupported and FILE was replaced by a symlink.
46552         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
46553         accordingly.
46554         Suggested by Paul Eggert.
46556 2010-09-16  Bruno Haible  <bruno@clisp.org>
46558         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
46559         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
46561 2010-09-16  Bruno Haible  <bruno@clisp.org>
46563         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
46564         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
46565         login_tty exists.
46566         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46568 2010-09-16  Bruno Haible  <bruno@clisp.org>
46570         login_tty: Make the replacement code work on BSD systems.
46571         * lib/login_tty.c: Include <sys/ioctl.h>.
46572         (login_tty): Use ioctl TIOCSCTTY when available.
46573         * modules/login_tty (Depends-on): Add sys_ioctl.
46574         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46576 2010-09-16  Bruno Haible  <bruno@clisp.org>
46578         login_tty: Stricter unit test.
46579         * modules/login_tty-tests (Depends-on): Add tcgetsid.
46580         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
46581         and tcgetsid() after login_tty.
46582         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46584 2010-09-16  Bruno Haible  <bruno@clisp.org>
46586         New module 'tcgetsid'.
46587         * lib/tcgetsid.c: New file.
46588         * m4/tcgetsid.m4: New file.
46589         * modules/tcgetsid: New file.
46590         * modules/termios (Depends-on): Add c++defs, warn-on-use.
46591         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
46592         GNULIB_TCGETSID, HAVE_TCGETSID.
46593         * lib/termios.in.h: Include <sys/types.h>.
46594         (tcgetsid): New declaration.
46595         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
46596         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
46597         * doc/posix-functions/tcgetsid.texi: Mention the new module.
46598         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
46600 2010-09-16  Bruno Haible  <bruno@clisp.org>
46602         Tests for module 'termios'.
46603         * modules/termios-c++-tests: New file.
46604         * modules/termios-tests: New file.
46605         * tests/test-termios-c++.cc: New file.
46606         * tests/test-termios.c: New file.
46608         New module 'termios'.
46609         * modules/termios: New file.
46610         * lib/termios.in.h: New file.
46611         * m4/termios_h.m4: New file.
46612         * doc/posix-headers/termios.texi: Mention the new module.
46614 2010-09-16  Eric Blake  <eblake@redhat.com>
46616         fdutimensat: add an atflag parameter
46617         * lib/fdutimensat.c (fdutimensat): Add new parameter.
46618         * lib/utimens.h (fdutimensat): Update prototype.
46619         * tests/test-fdutimensat.c: Adjust test to match.
46620         * NEWS: Document the change.
46621         Suggested by Paul Eggert.
46623 2010-09-16  Bruno Haible  <bruno@clisp.org>
46625         Fix typos in comments.
46626         * lib/striconveh.h: Fix typo in comment.
46627         * lib/login_tty.c (login_tty): Likewise.
46629 2010-09-15  Bruno Haible  <bruno@clisp.org>
46631         stdlib: clarify MirBSD WEXITSTATUS bug
46632         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
46633         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46635 2010-09-15  Eric Blake  <eblake@redhat.com>
46637         stdlib: work around MirBSD WEXITSTATUS bug
46638         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
46639         * modules/stdlib (Depends-on): Add sys_wait.
46640         * tests/test-sys_wait.c (main): Enhance test.
46641         * tests/test-stdlib.c (main): Likewise.
46642         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
46644         docs: mention MacOS issue with WEXITSTATUS(constant)
46645         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
46646         issue.
46647         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46649         strnlen: add tests
46650         * modules/strnlen-tests: New file.
46651         * tests/test-strnlen.c: Likewise.
46653 2010-09-14  Bruno Haible  <bruno@clisp.org>
46655         unistr/base: Avoid link errors when module 'libunistring' is also used.
46656         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
46657         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
46658         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
46659         Declare also when HAVE_LIBUNISTRING is set.
46660         Reported by Pádraig Brady <P@draigbrady.com>.
46662 2010-09-14  Eric Blake  <eblake@redhat.com>
46664         test-rawmemchr: make more robust
46665         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
46666         (Depends-on, configure.ac): Add needed prerequisites to use it.
46667         * modules/memchr-tests (Files, Depends-on, configure.ac):
46668         Likewise, to avoid implicit reliance on memchr module prereqs.
46669         * tests/test-memchr.c (main): Ensure proper masking.
46670         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
46671         reads.
46673         memchr: detect glibc Alpha bug
46674         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
46675         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
46676         Alpha.
46677         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
46678         * tests/test-memchr.c (main): Enhance test.
46679         Reported by Nelson H. F. Beebe.
46681 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46683         fts, getcwd, glob: audit for dirfd returning -1
46684         * lib/fts.c (opendir): Remove #define; no longer used.
46685         (opendirat): New arg PDIR_FD.  All callers changed.
46686         (fts_build, _opendir2): Use new opendirat to avoid the need for
46687         dirfd, or for checking whether dirfd returns a negative value.
46688         Don't use opendir; always use openat followed by fdopendir.
46689         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
46690         it.
46691         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
46692         returns -1 here.
46693         * modules/fts (Depends-on): Remove dirfd.
46694         * modules/getcwd (Depends-on): Likewise.
46696 2010-09-13  Eric Blake  <eblake@redhat.com>
46698         float: fix broken MirBSD header
46699         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
46700         * doc/posix-headers/float.texi (float.h): Document it.
46702 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46704         fts: use O_NOFOLLOW to avoid race condition when opening a directory
46705         * lib/fts.c (opendirat): New arg extra_flags.
46706         (__opendir2): Use it to avoid following symlinks when opening
46707         a directory, if symlinks are not supposed to be followed.  See
46708         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
46710         fdopendir: preserve argument fd before returning
46711         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
46712         (fdopendir_with_dup, fd_clone_opendir): New static functions.
46713         (fdopendir): Use them, arranging for FD to be open to the same
46714         directory that it was when it started.  (It might be temporarily
46715         closed while fdopendir is running, so this not thread- or
46716         signal-safe.)  Be careful to do the right thing even when file
46717         descriptors are scarce and dup fails with errno == EMFILE.  See
46718         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
46720 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
46722         regex: Pass the system regex if its only problem is 32-bit regoff_t.
46723         * NEWS: Document change.
46724         * m4/regex.m4: Disable test for regoff_t size.
46726 2010-09-13  Jim Meyering  <meyering@redhat.com>
46728         fts: don't operate on an invalid file descriptor after failed dup
46729         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
46730         negative file descriptor.
46732 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
46734         savedir: add streamsavedir, deprecate fdsavedir
46735         * NEWS: Mention deprecation of fdsavedir.
46736         * lib/savedir.c (streamsavedir): New extern function, whose name
46737         ends in "savedir" to be consistent with the others.  This differs
46738         from savedirstream in that it doesn't close its argument.  The
46739         next version of GNU tar will use this instead of fdsavedir, to
46740         avoid some race conditions and conserve file descriptors.
46741         (savedirstream): Reimplement as a wrapper around streamsavedir.
46742         (fdsavedir): Add a comment deprecating this function.  As far as
46743         I know, only GNU tar used it, and GNU tar doesn't need it any more.
46744         * lib/savedir.h (streamsavedir): New decl.
46745         (fdsavedir): Add a comment deprecating this.
46747 2010-09-10  Bruno Haible  <bruno@clisp.org>
46749         langinfo: Fix last commit.
46750         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
46751         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
46752         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46754 2010-09-10  Bruno Haible  <bruno@clisp.org>
46756         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
46757         * lib/progreloc.c (O_EXEC): Define fallback.
46759 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
46761         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
46762         * NEWS: Document recent changes to fcntl-h.
46763         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
46764         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
46765         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
46766         Similarly for O_SEARCH; this last was already true, but not documented.
46767         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
46768         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
46769         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
46770         Likewise.
46771         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
46772         is zero, not whether it is defined.
46773         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
46774         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
46775         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
46777 2010-09-10  Bruno Haible  <bruno@clisp.org>
46779         langinfo, nl_langinfo: Fix for IRIX 5.3.
46780         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
46781         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
46782         HAVE_LANGINFO_YESEXPR.
46783         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
46784         HAVE_LANGINFO_YESEXPR.
46785         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
46786         HAVE_LANGINFO_T_FMT_AMPM is 0.
46787         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
46788         HAVE_LANGINFO_YESEXPR is 0.
46789         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
46790         NOEXPR.
46791         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
46792         * doc/posix-functions/nl_langinfo.texi: Likewise.
46793         Reported by Eric Blake.
46795 2010-09-10  Bruno Haible  <bruno@clisp.org>
46797         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
46798         * doc/glibc-functions/login_tty.texi: Mention the include file problem
46799         on FreeBSD 8.0 and OpenBSD 4.6.
46800         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
46801         * m4/pty_h.m4 (gl_PTY_H): Likewise.
46802         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
46803         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
46804         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
46805         ac_includes_default.
46806         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46808 2010-09-09  Eric Blake  <eblake@redhat.com>
46810         strsignal: work around NetBSD bug
46811         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
46812         * lib/string.in.h (includes): Likewise.
46813         * doc/posix-functions/strsignal.texi (strsignal): Document the
46814         bug.
46815         Reported by Nelson H. F. Beebe.
46817         gnulib-tool: work with NetBSD /bin/sh
46818         * gnulib-tool (func_cache_var, func_cache_lookup_module)
46819         (func_get_description, func_get_comment, func_get_status)
46820         (func_get_notice, func_get_applicability, func_get_filelist)
46821         (func_get_dependencies, func_get_autoconf_early_snippet)
46822         (func_get_autoconf_snippet, func_get_automake_snippet)
46823         (func_get_include_directive, func_get_link_directive)
46824         (func_get_license, func_get_maintainer, func_import): Avoid
46825         shell syntax errors from parsing syntax extensions.
46827 2010-09-09  Bruno Haible  <bruno@clisp.org>
46829         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
46830         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
46831         a reliable way to determine whether the 'alias' command works.
46833 2010-09-08  Jim Meyering  <meyering@redhat.com>
46835         init.sh: penalize a set-x-impaired shell; don't disqualify it
46836         * tests/init.sh: Too many shells corrupt application stderr when
46837         you set -x, so we can't afford to disqualify them, since at least
46838         on Irix-6.5, that would disqualify all bourne shells.
46839         Instead, use a two-pass approach.
46840         On the first pass, try to find a shell that meets the stricter
46841         condition that set -x does not corrupt stderr.
46842         If no shell meets the stricter condition, retest each candidate
46843         shell, but without that extra condition.  Finally, when
46844         VERBOSE=yes is requested and set -x might cause trouble, simply
46845         issue a warning and refrain from enabling debug output.
46847 2010-09-08  Eric Blake  <eblake@redhat.com>
46849         unsetenv: fix OpenBSD bug
46850         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
46851         * doc/posix-functions/unsetenv.texi (unsetenv): Update
46852         documentation.
46853         Reported by Jim Meyering.
46855         strtod: work around IRIX 6.5 bug
46856         * lib/strtod.c (strtod): Reparse number on shorter string if
46857         exponent parse was invalid.
46858         * tests/test-strtod.c (main): Add check for "0x1p 2".
46859         Reported by Tom G. Christensen.
46861         getopt: optimize previous patch
46862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
46863         empty variable.  Speed up awk script.
46864         Reported by Paolo Bonzini.
46866 2010-09-08  Jim Meyering  <meyering@redhat.com>
46868         test.sh: disqualify shells for which set -x corrupts stderr
46869         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
46870         and OpenBSD 4.7.  They make it so with "set -x", environment settings
46871         appear in stderr output.  For example, this command:
46872             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
46873         prints "P=1" on those two systems:
46875 2010-09-08  Bruno Haible  <bruno@clisp.org>
46877         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
46878         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
46879         commands, because some shells ignore redirections when there is an
46880         error in the command lookup.
46881         Reported by Eric Blake.
46883 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
46885         * lib/regex.h: Fix a mention of `regex_compile' (should be
46886         `re_compile_pattern').
46887         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
46888         (re_set_registers): Correct name of parameter in comment.
46890         * doc/regex.texi: Add documentation for missing syntax flags.
46891         Remove commented-out documentation of defunct syntax option
46892         RE_NO_EMPTY_ALTS.
46893         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
46894         Add documentation of re_set_registers.
46895         Document trick to re-use a pattern buffer by setting fastmap manually.
46896         Update documentation of struct re_pattern_buffer per public members.
46897         Uncomment documentation of equivalence class operators and
46898         collating symbol operators, since they are now implemented,
46899         Explain leftmost-longest matching in relation to alternatives.
46900         Tidy documentation of substring matching.
46901         Remove POSIX documentation, which is done better in
46902         glibc, and refer the reader there. Keep BSD API documentation, as
46903         that is not readily available elsewhere.
46905 2010-09-07  Eric Blake  <eblake@redhat.com>
46907         getopt: handle POSIXLY_CORRECT set but not exported
46908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
46909         export state of POSIXLY_CORRECT, due to bash set -o posix.
46910         Reported by Dustin J. Mitchell.
46912 2010-09-05  Bruno Haible  <bruno@clisp.org>
46914         gnulib-tool: Highlight the changed options.
46915         * gnulib-tool (func_usage): Display the --import, --add-import,
46916         --remove-import explanations in bold font.
46918 2010-09-06  Karl Berry  <karl@gnu.org>
46920         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
46922 2010-09-05  Bruno Haible  <bruno@clisp.org>
46924         uniwidth/width: Update comment.
46925         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
46926         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
46928 2010-09-05  Bruno Haible  <bruno@clisp.org>
46930         isinf, isnan: Relax license.
46931         * modules/isinf (License): Change from GPL to LGPL, with consent from
46932         Ben Pfaff.
46933         * modules/isnan (License): Likewise.
46934         Requested by Ludovic Courtès.
46936 2010-09-04  Bruno Haible  <bruno@clisp.org>
46938         gnulib-tool: Help migration from --import to --add-import or --update.
46939         * gnulib-tool: Emit a verbose error message when --import is used
46940         without any module name.
46942 2010-09-04  Bruno Haible  <bruno@clisp.org>
46944         Update doc about gnulib-tool.
46945         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
46946         'gnulib-tool --update' in more detail.
46947         Reported by Eric Blake.
46949 2010-09-04  Bruno Haible  <bruno@clisp.org>
46951         gnulib-tool: Change --import. New options --add/remove-import.
46952         * gnulib-tool: New options --add-import, --remove-import.
46953         (func_usage): Document them.
46954         (have_associative): Define always.
46955         (func_import): In import mode, don't merge the specified settings with
46956         the cached settings. Implement remove-import mode.
46957         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
46958         Explain when to use them versus --import.
46959         (Simple update): Use --add-import instead of --import.
46960         * NEWS: Mention the change.
46962 2010-09-04  Bruno Haible  <bruno@clisp.org>
46964         * doc/gnulib-tool.texi (Initial import): Update paragraph about
46965         separate gnulib.mk.
46967 2010-09-04  Bruno Haible  <bruno@clisp.org>
46969         gnulib-tool: Don't talk about CVS any more.
46970         * gnulib-tool (func_usage, func_import): Write "version control"
46971         instead of CVS.
46973 2010-09-04  Jim Meyering  <meyering@redhat.com>
46975         maint.mk: avoid obscure sc_copyright_check failure in coreutils
46976         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
46977         false positives (whose names may be ill-chosen) when searching
46978         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
46979         would cause a false-positive.
46981         avoid coreutils "make distcheck" failure
46982         Coreutils tests with an absolute build directory name that contains
46983         a space.  Not quoting this directory name caused a failure.
46984         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
46985         * tests/test-vc-list-files-cvs.sh: Likewise.
46987 2010-09-04  Bruno Haible  <bruno@clisp.org>
46989         gnulib-tool: Avoid error when run in a package without Makefile.am.
46990         * gnulib-tool: When collecting the m4dirs in a package that does not
46991         have a Makefile.am, eliminate those directories that contain no
46992         gnulib-cache.m4. Fix expression that counts these directories.
46994 2010-09-04  Bruno Haible  <bruno@clisp.org>
46996         update-copyright test: Improve output when perl is missing or too old.
46997         * tests/test-update-copyright.sh: Move test of Perl version down after
46998         the test whether Perl exists. Provide an explanation relating Perl's
46999         error message to Automake's SKIP: message.
47001 2010-09-04  Bruno Haible  <bruno@clisp.org>
47003         Don't augment PATH in TESTS_ENVIRONMENT.
47004         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
47005         set abs_aux_dir instead of augmenting PATH.
47006         * modules/vc-list-files-tests (Makefile.am): Likewise.
47007         * tests/test-update-copyright.sh: Augment PATH here.
47008         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
47009         path_prepend_.
47010         * tests/test-vc-list-files-git.sh: Likewise.
47012 2010-09-04  Jim Meyering  <meyering@redhat.com>
47014         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
47015         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
47017 2010-09-04  Bruno Haible  <bruno@clisp.org>
47019         strdup: Fix compilation error in C++ mode.
47020         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
47021         the macro.
47023 2010-09-04  Bruno Haible  <bruno@clisp.org>
47025         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
47026         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
47027         macro into a function.
47028         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47030 2010-09-04  Bruno Haible  <bruno@clisp.org>
47032         Set PATH_SEPARATOR the same way autoconf does.
47033         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
47034         the value of PATH_SEPARATOR the same way autoconf-generated configure
47035         scripts do.
47036         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
47037         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47039 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47041         Set PATH_SEPARATOR the same way autoconf does.
47042         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
47043         the same way autoconf-generated configure scripts do.
47044         * posix-modules: Likewise.
47046 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
47048         hash: fix safe_hasher const typo
47049         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
47050         const; otherwise, there is a type error later.
47052 2010-09-02  Jim Meyering  <meyering@redhat.com>
47054         test-update-copyright.sh: require perl 5.8.0
47055         * tests/test-update-copyright.sh: Require 5.8.0,
47056         which Tom G. Christensen has confirmed is adequate,
47057         while 5.6.1 is not.
47059 2010-09-02  Eric Blake  <eblake@redhat.com>
47061         tests: init.sh improvements for re-exec'ing with zsh
47062         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
47063         -vx through shell re-exec.
47064         Reported by Tom G. Christensen.
47066         wctype: fix typo in previous commit
47067         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
47068         Reported by Ludovic Courtès.
47070 2010-09-02  Jim Meyering  <meyering@redhat.com>
47072         test-update-copyright.sh: skip test if Perl is too old
47073         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
47074         Reported by Tom G. Christensen.
47076 2010-09-02  Bruno Haible  <bruno@clisp.org>
47078         wctype: Avoid compilation error on IRIX 6.5.30.
47079         * lib/wctype.in.h (iswblank): Declare with a replacement if
47080         REPLACE_ISWBLANK is set.
47081         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
47082         declared. Set REPLACE_ISWBLANK.
47083         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
47084         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
47085         * doc/posix-headers/wctype.texi: Likewise.
47086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47088 2010-09-01  Bruno Haible  <bruno@clisp.org>
47090         New module 'socketlib'.
47091         * modules/socketlib: New file.
47092         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
47093         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
47094         * modules/sockets (Depends-on): Add socketlib.
47095         Suggested by Sam Steingold <sds@gnu.org>.
47097 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47099         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
47101         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
47102         when one needs search access to a directory but not read access.
47103         On systems where it is available, it works in some cases where
47104         O_RDONLY does not, namely on directories that are searchable but
47105         not readable, and which need only to be searchable.  If O_SEARCH
47106         is not available, fall back to the traditional method of using
47107         O_RDONLY.
47109         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
47110         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
47111         when opening a directory that needs only to be searchable.
47112         * lib/chdir-safer.c (chdir_no_follow): Likewise.
47113         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
47114         * lib/openat-proc.c (openat_proc_name): Likewise.
47115         * lib/openat.c (openat_needs_fchdir): Likewise.
47116         * lib/save-cwd.c (save_cwd): Likewise.
47117         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
47119 2010-08-28  Bruno Haible  <bruno@clisp.org>
47121         New module 'host-cpu-c-abi'.
47122         * modules/host-cpu-c-abi: New file.
47123         * m4/host-cpu-c-abi.m4: New file, based on part of
47124         clisp/src/m4/general.m4.
47125         Requested by Sam Steingold <sds@gnu.org>.
47127 2010-08-31  Eric Blake  <eblake@redhat.com>
47128         and Jim Meyering  <meyering@redhat.com>
47130         hash: factor, and guard against misbehaving hasher function
47131         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
47132         of table->hasher's return value.  Also protect against a hash value
47133         so large that adding it to table->bucket results in a NULL pointer.
47134         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
47135         Use it in place of open-coded check-and-abort.
47137 2010-08-30  Bruno Haible  <bruno@clisp.org>
47139         hash: silence spurious clang warning
47140         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
47141         Reported by Eric Blake.
47143 2010-08-30  Eric Blake  <eblake@redhat.com>
47145         strstr, memmem, strcasestr: avoid leaked shell message
47146         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
47147         FreeBSD.
47148         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47149         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47151         tests: silence clang warning
47152         * tests/test-malloca.c (do_allocation): Avoid dead store.
47154 2010-08-29  Bruno Haible  <bruno@clisp.org>
47156         gettext: Fix recent mistake.
47157         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
47159 2010-08-29  Bruno Haible  <bruno@clisp.org>
47161         selinux-h: Offer a --without-selinux option.
47162         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
47163         --without-selinux was specified, skip all tests and define
47164         HAVE_SELINUX_SELINUX_H to 0.
47165         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
47166         set LIB_SELINUX to empty.
47167         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
47168         gl_LIBSELINUX. If --without-selinux was specified, replace
47169         selinux/context.h.
47170         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
47172 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47173             Bruno Haible  <bruno@clisp.org>
47175         Make the module 'realloc-gnu' work again on AIX and OSF/1.
47176         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
47177         of HAVE_REALLOC.
47178         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
47179         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
47180         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
47181         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
47183 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47184             Bruno Haible  <bruno@clisp.org>
47186         Make the module 'calloc-gnu' work again on AIX and OSF/1.
47187         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
47188         HAVE_CALLOC.
47189         * lib/xmalloc.c: Update accordingly.
47190         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
47191         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
47192         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
47194 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47195             Bruno Haible  <bruno@clisp.org>
47197         Make the module 'malloc-gnu' work again on AIX and OSF/1.
47198         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
47199         HAVE_MALLOC.
47200         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
47201         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
47202         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
47204 2010-08-29  Bruno Haible  <bruno@clisp.org>
47206         Update modules list.
47207         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47208         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
47209         (String handling <string.h>): Add astrxfrm.
47210         (File system functions): Add readlinkat.
47212 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47214         Tests for module 'realloc-gnu'.
47215         * modules/realloc-gnu-tests: New file.
47216         * tests/test-realloc-gnu.c: New file.
47218         Tests for module 'calloc-gnu'.
47219         * modules/calloc-gnu-tests: New file.
47220         * tests/test-calloc-gnu.c: New file.
47222         Tests for module 'malloc-gnu'.
47223         * modules/malloc-gnu-tests: New file.
47224         * tests/test-malloc-gnu.c: New file.
47226 2010-08-28  Bruno Haible  <bruno@clisp.org>
47228         Rename module 'realloc' -> 'realloc-gnu'.
47229         * modules/realloc-gnu: New file, copied from modules/realloc.
47230         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
47231         obsolete.
47232         * modules/mgetgroups (Depends-on): Update.
47233         * doc/posix-functions/realloc.texi: Update.
47234         * NEWS: Mention the change.
47236         Rename module 'calloc' -> 'calloc-gnu'.
47237         * modules/calloc-gnu: New file, copied from modules/calloc.
47238         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
47239         obsolete.
47240         * doc/posix-functions/calloc.texi: Update.
47241         * NEWS: Mention the change.
47243         Rename module 'malloc' -> 'malloc-gnu'.
47244         * modules/malloc-gnu: New file, copied from modules/malloc.
47245         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
47246         obsolete.
47247         * modules/argp (Depends-on): Update.
47248         * modules/regex (Depends-on): Update.
47249         * doc/posix-functions/malloc.texi: Update.
47250         * NEWS: Mention the change.
47252 2010-08-28  Eric Blake  <eblake@redhat.com>
47254         pread, pwrite: add missing dependency
47255         * modules/pread (Depends-on): Add extensions.
47256         * modules/pwrite (Depends-on): Likewise.
47258 2010-08-28  Bruno Haible  <bruno@clisp.org>
47260         unistr/u*-strchr: Fix tests dependencies.
47261         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
47262         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
47263         Reported by Ian Beckwith <ianb@erislabs.net>.
47265 2010-08-28  Bruno Haible  <bruno@clisp.org>
47267         read-file: Don't occupy too much unused memory.
47268         * lib/read-file.c (fread_file): Shrink the buffer at the end.
47270 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
47271             Eric Blake  <eblake@redhat.com>
47272             Bruno Haible  <bruno@clisp.org>
47274         read-file: Avoid memory reallocations with regular files.
47275         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
47276         (fread_file): With regular files, use the remaining length as the
47277         initial buffer size.  Check against overflow.
47278         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
47279         sys_stat.
47281 2010-08-28  Bruno Haible  <bruno@clisp.org>
47283         ftello: Relax license.
47284         * modules/ftello (License): Relax to LGPLv2+.
47285         Reported by Eric Blake.
47287 2010-08-28  Bruno Haible  <bruno@clisp.org>
47289         Avoid relocwrapper link errors due to gnulib replacement functions.
47290         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
47291         function.
47292         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47294 2010-08-28  Bruno Haible  <bruno@clisp.org>
47296         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
47297         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
47298         defined.
47299         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
47300         Suggested by Eric Blake.
47302 2010-08-28  Bruno Haible  <bruno@clisp.org>
47304         sys_socket, netdb: Ensure socklen_t gets defined.
47305         * modules/sys_socket (Depends-on): Add socklen.
47306         * modules/netdb (Depends-on): Likewise.
47307         * modules/getaddrinfo (Depends-on): Remove socklen.
47308         * modules/getsockopt (Depends-on): Likewise.
47309         * modules/setsockopt (Depends-on): Likewise.
47310         * tests/test-sys_socket.c: Check that socklen_t is defined.
47311         * tests/test-netdb.c: Likewise.
47312         * m4/socklen.m4: Update comments.
47313         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47315 2010-08-27  Eric Blake  <eblake@redhat.com>
47317         login_tty: add missing dependency
47318         * modules/login_tty (Depends-on): Add pty.
47320 2010-08-26  Eric Blake  <eblake@redhat.com>
47322         lib-symbol-versions: fix m4 quoting
47323         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
47324         format for AC_LINK_IFELSE.
47326         glob: fix compile test
47327         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
47329         btowc: fix missing file
47330         * modules/btowc (Files): Also ship locale-fr.m4.
47332         lseek: fix link test
47333         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
47334         AC_LINK_IFELSE.
47336         include_next: silence autoconf 2.68 warning
47337         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
47338         AC_COMPILE_IFELSE as special.
47339         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
47340         autoconf < 2.68.
47342         acl: fix compilation test
47343         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
47344         AC_COMPILE_IFELSE.
47346 2010-08-26  Bruno Haible  <bruno@clisp.org>
47348         Modernize AC_TRY_RUN invocations.
47349         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
47350         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47351         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
47352         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
47353         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
47354         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
47355         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
47356         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47357         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47358         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47359         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
47360         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47361         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
47362         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
47364         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
47365         gl_MBRLEN_NUL_RETVAL): Likewise.
47366         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47367         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47368         Likewise.
47369         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47370         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
47371         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
47372         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
47373         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
47374         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
47375         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
47376         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
47377         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
47378         Likewise.
47379         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47380         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
47381         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47382         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47383         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47384         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
47385         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
47386         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
47387         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47390 2010-08-26  Bruno Haible  <bruno@clisp.org>
47392         Modernize AC_TRY_LINK invocations.
47393         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
47394         AC_TRY_LINK.
47395         * m4/argp.m4 (gl_ARGP): Likewise.
47396         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
47397         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47398         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47399         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47400         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47401         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
47402         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
47403         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
47404         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47405         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47406         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47407         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
47408         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
47409         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47410         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47411         * m4/hostent.m4 (gl_HOSTENT): Likewise.
47412         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47413         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
47414         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47415         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
47416         Likewise.
47417         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
47418         Likewise.
47419         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
47420         Likewise.
47421         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47422         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
47423         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
47424         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
47425         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
47426         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
47427         * m4/servent.m4 (gl_SERVENT): Likewise.
47428         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
47429         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
47430         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
47431         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
47432         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47433         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47434         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47435         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47436         * modules/tsearch-tests (configure.ac): Likewise.
47438 2010-08-26  Bruno Haible  <bruno@clisp.org>
47440         Modernize AC_TRY_COMPILE invocations.
47441         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
47442         AC_TRY_COMPILE.
47443         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
47444         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
47445         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47446         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47447         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47448         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47449         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47450         * m4/lock.m4 (gl_LOCK): Likewise.
47451         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
47452         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47453         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
47454         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
47455         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47456         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
47457         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47458         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
47459         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47460         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47461         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47462         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47463         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
47464         extraneous semicolon.
47466 2010-08-26  Jim Meyering  <meyering@redhat.com>
47468         stat-time: relax license LGPL
47469         * modules/stat-time (License): Change from GPL to LGPL,
47470         with consent from all contributors, for use in libguile.
47471         Requested by Ludovic Courtès.
47473 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
47475         poll: return immediately on POLLHUP.
47476         * lib/poll.c (poll): Always set timeout before wait_timeout is
47477         computed.
47479 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47481         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
47482         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
47483         rmdir ("dir/.//"), unlinkat.
47485 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47487         stdbool: avoid spurious failure with modern xlc
47488         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
47490 2010-08-24  Bruno Haible  <bruno@clisp.org>
47492         getloadavg: simplify code
47493         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
47494         gl_have_func. Update comments.
47496 2010-08-24  Eric Blake  <eblake@redhat.com>
47498         getloadavg: don't define SVR4 on cygwin
47499         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
47500         only define SVR4 when -lkvm is required.
47501         Reported by Yaakov Selkowitz.
47503 2010-08-24  Bruno Haible  <bruno@clisp.org>
47505         priv-set: fix comment
47506         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
47508 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47510         priv-set: fix comments
47511         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
47512         to match code, as suggested by David Bartley in:
47513         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
47515 2010-08-23  Eric Blake  <eblake@redhat.com>
47517         stdbool: avoid rejecting clang
47518         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
47519         * tests/test-stdbool.c: Enable more tests if using the system
47520         <stdbool.h> instead of the gnulib replacement.
47521         (main): Move xlc bug test to a runtime test for all compilers.
47522         Reported by Anders Kaseorg.
47524         argz: fix shell quoting issue
47525         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
47526         Reported by Charles Wilson.
47528 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
47529             Erik Faye-Lund <kusmabite@gmail.com>
47531         poll, select: handle ERROR_BROKEN_PIPE.
47532         * lib/poll.c (win32_compute_revents): Return POLLHUP when
47533         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
47534         * lib/select.c (win32_compute_revents): Do not mark a pipe
47535         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
47537 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
47539         fts: allow compilation with C++
47540         * lib/fts_.h: Specify extern "C" linkage with C++.
47542 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47544         Fix gnulib-tool sed script de-commentation for AIX sed.
47545         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
47546         sed.
47548 2010-08-17  Eric Blake  <eblake@redhat.com>
47550         test-stddef: test for (some) offsetof bugs
47551         * tests/test-stddef.c: Enhance test to ensure correct type of
47552         offsetof.
47553         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
47554         that we are not fixing at this time.
47556 2010-08-15  Bruno Haible  <bruno@clisp.org>
47558         stpncpy: Allow stpncpy to be defined as a macro.
47559         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
47560         if it's already correctly declared.
47561         * lib/string.in.h (stpncpy): Undefine before redefining.
47562         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
47564 2010-08-14  Bruno Haible  <bruno@clisp.org>
47566         Rename module 'memxfrm' to 'amemxfrm'.
47567         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
47568         (amemxfrm): Renamed from memxfrm.
47569         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
47570         (amemxfrm): Renamed from memxfrm.
47571         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
47572         * NEWS: Mention the change.
47573         * MODULES.html.sh (String handling <string.h>): Update.
47574         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
47575         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
47576         * lib/unicase/u16-casexfrm.c: Likewise.
47577         * lib/unicase/u32-casexfrm.c: Likewise.
47578         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
47579         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
47580         * lib/uninorm/u16-normxfrm.c: Likewise.
47581         * lib/uninorm/u32-normxfrm.c: Likewise.
47582         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
47583         memxfrm.
47584         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
47585         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
47586         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
47587         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
47588         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
47589         Suggested by Paul Eggert.
47591 2010-08-14  Bruno Haible  <bruno@clisp.org>
47593         Tests for module 'astrxfrm'.
47594         * modules/astrxfrm-tests: New file.
47595         * tests/test-astrxfrm.c: New file.
47597         New module 'astrxfrm'.
47598         * lib/astrxfrm.h: New file.
47599         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
47600         * modules/astrxfrm: New file.
47602 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
47604         regex: Tweak doc.
47605         * doc/regex.texi (Overview): Don't mention regex.c.
47606         (GNU Regular Expression Compiling): Likewise.
47607         (Match-end-of-line Operator): Mention 'not_eol'.
47609 2010-08-14  Brian Gough  <bjg@gnu.org>
47610             Bruno Haible  <bruno@clisp.org>
47612         git-merge-changelog: add doc relating to use with bzr and hg.
47613         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
47615 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
47617         pthread: fix pthread.h creation for srcdir != builddir
47618         * modules/pthread (Makefile.am): Fix the rule to work also in a
47619         non-srcdir build.
47621 2010-08-13  Karl Berry  <karl@gnu.org>
47623         * doc/regex.texi (Predefined Syntaxes): @smallexample.
47624         * doc/posix-*/*: force line break before @url of POSIX
47625         specifications.
47626         Suggested by Werner Lemberg.
47628 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47630         strtod: fix const diagnostic
47631         * lib/strtod.c (strtod): Don't assign const char * to char *,
47632         as this elicits a warning from GCC when warnings are enabled.
47634 2010-08-10  Pádraig Brady  <P@draigbrady.com>
47635         and Eric Blake  <eblake@redhat.com>
47637         copy-acl: ignore ENOTSUP on HP-UX
47638         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
47639         so that it is available for HP-UX.
47640         * lib/copy-acl.c (qcopy_acl): Use it.
47641         Reported by Patrick M. Callahan.
47643 2010-08-10  Eric Blake  <eblake@redhat.com>
47645         open, chown: relax license
47646         * modules/open (License): Change to LGPLv2+, with consent by all
47647         authors, for use in augeas.
47648         * modules/chown (License): Likewise.
47649         * modules/lchown (Likewise): Likewise.
47650         Requested by Adam Stokes.
47652 2010-08-09  Karl Berry  <karl@gnu.org>
47654         * build-aux/ar-lib: new file, import from Automake.
47655         * config/srclist.txt: autocheck for updates.
47657 2010-08-09  Eric Blake  <eblake@redhat.com>
47659         readlinkat: adjust client modules
47660         * modules/areadlinkat (Depends-on): Use readlinkat, not
47661         symlinkat.
47662         * modules/areadlinkat-with-size (Depends-on): Likewise.
47664         mknod: be more vocal about danger of running tests as root
47665         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
47666         root, since that is just asking for problems.
47667         Suggested by Bruno Haible, based on a report by Rainer Tammer.
47669         readlinkat: split into its own module
47670         * modules/symlinkat: Split readlinkat...
47671         * modules/readlinkat: ...into separate module.
47672         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
47673         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
47674         * lib/symlinkat.c (readlinkat): Move...
47675         * lib/readlinkat.c: ...into new file.
47676         * modules/symlinkat-tests: Split readlinkat test...
47677         * modules/readlinkat-tests: ...into separate module.
47678         * tests/test-symlinkat.c: Split...
47679         * tests/test-readlinkat.c: ...into new file.
47680         * NEWS: Document the split.
47681         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
47682         * lib/unistd.in.h (readlinkat): Likewise.
47683         Suggested by Bruno Haible.
47685 2010-08-08  Bruno Haible  <bruno@clisp.org>
47687         memxfrm: Speed up.
47688         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
47689         that usually only one call to strxfrm is necessary for each string
47690         part.
47691         Reported by Paul Eggert <eggert@cs.ucla.edu>.
47693 2010-08-07  Karl Berry  <karl@gnu.org>
47695         * doc/posix-headers/limits.texi,
47696         * doc/posix-functions/malloc.texi,
47697         * doc/posix-functions/strsignal.texi: missing @item.
47698         * doc/ld-version-script.texi: spurious leading i.
47699         * doc/regex.texi (Interval Operators): no commas inside @var.
47701 2010-08-01  Bruno Haible  <bruno@clisp.org>
47703         Integrate the regex documentation.
47704         * doc/gnulib.texi: Define 'cn' index.
47705         (Regular expressions): New a chapter that includes regex.texi and
47706         regexprops-generic.texi.
47707         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
47708         syntax.
47710         Whitespace cleanup.
47711         * doc/regex.texi: Remove trailing spaces.
47713         Add regex documentation.
47714         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
47715         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
47716         Written by Kathy A. Hargreaves and Karl Berry.
47718 2010-08-01  Bruno Haible  <bruno@clisp.org>
47720         link: Update documentation.
47721         * doc/posix-functions/link.texi: Update regarding Solaris.
47723 2010-07-31  Bruno Haible  <bruno@clisp.org>
47725         Update modules list.
47726         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
47727         (String handling <string.h>): Add memcmp2, memxfrm.
47728         (Container data structures): Add xlist, xsublist, xoset.
47729         (Core language properties): Add alignof, unused-parameter.
47730         (Process control, Numeric conversion functions <stdlib.h>): Renamed
47731         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
47732         (Unibyte characters <ctype.h>): New section.
47733         (String handling <string.h>): New section.
47734         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
47735         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
47736         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
47737         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
47738         tan, tanh, tanl, y0, y1, yn.
47739         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
47740         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
47741         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
47742         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
47743         unlockpt, vdprintf, vdprintf-posix.
47744         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
47745         (File system functions): Add concat-filename, sys_file, sys_ioctl,
47746         xconcat-filename.
47747         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
47748         getdtablesize, pipe2, pipe2-safer.
47749         (Security): New section.
47750         (Networking functions): Add accept4.
47751         (Signal handling): Add sigpipe.
47752         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
47753         mbmemcasecoll.
47754         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
47755         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
47756         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
47757         pipe-filter-ii.
47758         (Misc): Add argp-version-etc, login_tty, parse-duration.
47760 2010-07-31  Bruno Haible  <bruno@clisp.org>
47762         Improve doc in MODULES.html.
47763         * modules/linkat (Description): Add the word "function".
47764         * modules/mkfifo (Description): Likewise.
47765         * modules/mknod (Description): Likewise.
47766         * modules/remove (Description): Likewise.
47767         * modules/renameat (Description): Likewise.
47768         * modules/stat (Description): Likewise.
47769         * modules/symlink (Description): Likewise.
47770         * modules/unlink (Description): Likewise.
47772 2010-07-31  Bruno Haible  <bruno@clisp.org>
47774         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
47775         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
47776         option --enable/disable-c++ instead of --enable/disable-cxx.
47777         * NEWS: Mention the change.
47779 2010-07-31  Bruno Haible  <bruno@clisp.org>
47781         readlink, areadlink: Relax test a bit.
47782         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
47783         alternative to ENOTDIR.
47784         * tests/test-areadlink.h (test_areadlink): Likewise.
47785         Reported by Rainer Tammer.
47787 2010-07-31  Bruno Haible  <bruno@clisp.org>
47789         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
47790         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
47791         character, perform the search using U_STRCHR.
47792         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
47793         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
47794         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
47795         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
47796         Suggested by Paolo Bonzini.
47798 2010-07-31  Bruno Haible  <bruno@clisp.org>
47800         unistr/u*-strstr: Fix dependencies.
47801         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
47802         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
47803         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
47805 2010-07-31  Bruno Haible  <bruno@clisp.org>
47807         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
47808         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
47809         the beginning of the loop.
47810         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
47811         cases in 'switch' statement.
47813         unistr/u8-strchr: Fix several bugs.
47814         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
47815         the string. When not found, return NULL, not a pointer near the end.
47817         More tests for unistr/u8-strchr.
47818         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
47819         that the function does not read past the first occurrence of the byte
47820         being searched.
47821         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
47822         * tests/unistr/test-u16-strchr.c (main): New function.
47823         * tests/unistr/test-u32-strchr.c (main): New function.
47825 2010-07-31  Bruno Haible  <bruno@clisp.org>
47827         posix-modules: Ignore backup files of documentation files.
47828         * posix-modules: grep only through files named *.texi.
47830 2010-07-31  Bruno Haible  <bruno@clisp.org>
47832         symlinkat: Fix documentation.
47833         * doc/posix-functions/readlinkat.texi: Fix module name.
47835 2010-07-31  Bruno Haible  <bruno@clisp.org>
47837         fchownat: Replace also when chown has the trailing slash bug.
47838         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
47839         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
47840         introduced on 2010-04-10.
47841         Reported by Rainer Tammer.
47843 2010-07-31  Bruno Haible  <bruno@clisp.org>
47845         linkat: Work around AIX 7.1 bug.
47846         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
47847         whether linkat handles trailing slash correctly. If not, replace linkat
47848         and define LINKAT_TRAILING_SLASH_BUG.
47849         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
47850         check whether (fd1,file1) points to a directory if file1 or file2 ends
47851         in a slash. Code taken from lib/link.c.
47852         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
47853         Reported by Rainer Tammer.
47855 2010-07-31  Bruno Haible  <bruno@clisp.org>
47857         Correctly determine whether pow is available in libc on AIX 7 with xlc.
47858         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
47859         This disables an xlc optimization that was causing wrong test results.
47860         Reported by Rainer Tammer.
47862 2010-07-31  Bruno Haible  <bruno@clisp.org>
47864         iconv: Work around AIX 6.1..7.1 bug.
47865         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
47866         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
47867         cross-compiling, guess no on all versions of AIX.
47868         Reported by Rainer Tammer.
47870 2010-07-31  Bruno Haible  <bruno@clisp.org>
47872         readlink: Relax test a bit.
47873         * tests/test-readlink.h (test_readlink): Allow different errno value
47874         when readlink is called with a file name that ends in / and refers to
47875         a file.
47876         Suggested by Eric Blake.
47877         Reported by Rainer Tammer.
47879 2010-07-31  Bruno Haible  <bruno@clisp.org>
47881         copysign: Does not require -lm on glibc systems.
47882         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
47883         gl_COMMON_DOUBLE_MATHFUNC.
47884         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
47886 2010-07-31  Bruno Haible  <bruno@clisp.org>
47888         duplocale: Work around AIX 7.1 bug.
47889         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
47890         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
47891         * lib/duplocale.c (rpl_duplocale): Update comment.
47892         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
47893         Reported by Rainer Tammer.
47895 2010-07-30  Bruno Haible  <bruno@clisp.org>
47897         dirfd: Avoid link error on AIX 7.1.
47898         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
47899         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
47900         exist, set REPLACE_DIRFD.
47901         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
47902         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
47903         * doc/posix-functions/dirfd.texi: Update.
47904         Reported by Rainer Tammer.
47906 2010-07-30  Eric Blake  <eblake@redhat.com>
47908         strtod: next round of AIX fixes
47909         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
47910         exponent.
47911         * tests/test-strtod.c (main): Enhance tests.
47912         * doc/posix-functions/strtod.texi (strtod): Document next bug.
47913         Reported by Rainer Tammer.
47915         futimens: fix configure check
47916         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
47917         Reported by Bruno Haible.
47919 2010-07-30  Bruno Haible  <bruno@clisp.org>
47921         getline: Update regarding AIX.
47922         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
47923         Reported by Rainer Tammer.
47925 2010-07-30  Bruno Haible  <bruno@clisp.org>
47927         wcwidth: Drop replacement on AIX 7.
47928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
47929         AIX 7.
47930         Reported by Rainer Tammer.
47932 2010-07-30  Bruno Haible  <bruno@clisp.org>
47934         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
47935         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
47936         a 'char *'.
47937         Reported by Rainer Tammer.
47939 2010-07-30  Bruno Haible  <bruno@clisp.org>
47941         unlink: Update regarding AIX.
47942         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
47943         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
47944         Reported by Rainer Tammer.
47946 2010-07-30  Bruno Haible  <bruno@clisp.org>
47948         symlink: Update regarding AIX.
47949         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
47950         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
47951         Reported by Rainer Tammer.
47953 2010-07-30  Bruno Haible  <bruno@clisp.org>
47955         strndup: Update regarding AIX.
47956         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
47957         AIX 7.
47958         Reported by Rainer Tammer.
47960 2010-07-30  Bruno Haible  <bruno@clisp.org>
47962         stat: Update regarding AIX.
47963         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
47964         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
47965         Reported by Rainer Tammer.
47967 2010-07-30  Bruno Haible  <bruno@clisp.org>
47969         truncl: Fix autoconf test.
47970         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
47971         whether truncl works.
47972         Reported by Rainer Tammer.
47974 2010-07-30  Bruno Haible  <bruno@clisp.org>
47976         round: Update regarding AIX.
47977         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
47978         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
47979         Reported by Rainer Tammer.
47981 2010-07-30  Bruno Haible  <bruno@clisp.org>
47983         rename: Update regarding AIX.
47984         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
47985         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
47986         Reported by Rainer Tammer.
47988 2010-07-30  Bruno Haible  <bruno@clisp.org>
47990         printf.m4: Update regarding AIX.
47991         * m4/printf.m4: Update comments regarding AIX.
47992         Reported by Rainer Tammer.
47994 2010-07-30  Bruno Haible  <bruno@clisp.org>
47996         iconv: Update regarding AIX.
47997         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
47998         AIX 7.
47999         Reported by Rainer Tammer.
48001 2010-07-30  Bruno Haible  <bruno@clisp.org>
48003         getopt: Update regarding AIX.
48004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
48005         no on AIX.
48006         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
48007         Reported by Rainer Tammer.
48009 2010-07-30  Bruno Haible  <bruno@clisp.org>
48011         ldexpl; Update regarding AIX.
48012         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
48013         on AIX 7.
48014         Reported by Rainer Tammer.
48016 2010-07-30  Bruno Haible  <bruno@clisp.org>
48018         frexpl: Update regarding AIX.
48019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
48020         on AIX 7.
48021         Reported by Rainer Tammer.
48023 2010-07-30  Bruno Haible  <bruno@clisp.org>
48025         open, fopen: Update regarding AIX.
48026         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
48027         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
48028         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
48029         * doc/posix-functions/fopen.texi: Likewise.
48030         Reported by Rainer Tammer.
48032 2010-07-30  Bruno Haible  <bruno@clisp.org>
48034         chown: Update doc regarding AIX.
48035         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
48036         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
48037         Reported by Rainer Tammer.
48039 2010-07-30  Eric Blake  <eblake@redhat.com>
48041         strtod: fix bug in replacement function on AIX
48042         * lib/strtod.c (strtod): Special case broken "0x" parse in
48043         underlying strtod.
48044         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
48045         * doc/posix-functions/strtod.texi (strtod): Likewise.
48046         Reported by Rainer Tammer.
48048 2010-07-30  Bruno Haible  <bruno@clisp.org>
48050         mbrlen: Fix cross-compilation guess for AIX.
48051         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
48052         guess. Leftover from 2008-12-22.
48054 2010-07-30  Bruno Haible  <bruno@clisp.org>
48056         mbrtowc: Fix cross-compilation guess for AIX.
48057         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
48058         guess. Leftover from 2008-12-21.
48060 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
48062         init.sh: work around trap limitation of some shells
48063         * tests/init.sh (setup_): Move exit trap outside of shell function.
48065 2010-07-29  Eric Blake  <eblake@redhat.com>
48067         strtod: aid debugging
48068         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
48069         understanding why strtod is rejected.
48071 2010-07-28  Bruno Haible  <bruno@clisp.org>
48073         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
48074         * lib/unistr/u8-chr.c: Include <string.h>.
48075         * tests/unistr/test-u8-chr.c: Likewise.
48076         * tests/unistr/test-u16-chr.c: Likewise.
48077         * tests/unistr/test-u32-chr.c: Likewise.
48078         * tests/unistr/test-u8-strchr.c: Likewise.
48079         * tests/unistr/test-u16-strchr.c: Likewise.
48080         * tests/unistr/test-u32-strchr.c: Likewise.
48081         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
48082         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
48083         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
48084         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
48086 2010-07-28  Bruno Haible  <bruno@clisp.org>
48088         Use spaces for indentation, not tabs.
48089         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
48091 2010-07-27  Bruno Haible  <bruno@clisp.org>
48093         mbspcasecmp: Fix function specification.
48094         * lib/string.in.h (mbspcasecmp): Fix specification comment.
48095         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
48096         Reported by Eric Blake <eblake@redhat.com>.
48098 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
48100         timespec: use cast and not conditional, as truncation isn't possible
48101         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
48102         instead of a conditional.  Comment about the situation in more detail.
48103         This undoes most of the 2009-10-29 patch.
48105 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
48107         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
48108         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
48109         * lib/unistr/u8-strchr.c: Likewise.
48110         * modules/unistr/u8-chr: Depend on memchr.
48112         unistr/u*-strchr: add tests
48113         * modules/unistr/u8-strchr-tests: New file.
48114         * modules/unistr/u16-strchr-tests: New file.
48115         * modules/unistr/u32-strchr-tests: New file.
48116         * tests/unistr/test-strchr.h: New file.
48117         * tests/unistr/test-u8-strchr.c: New file.
48118         * tests/unistr/test-u16-strchr.c: New file.
48119         * tests/unistr/test-u32-strchr.c: New file.
48121         unistr/u*-chr: test multibyte sequences more
48122         * tests/unistr/test-chr.h: Do complete testing of the characters in the
48123         test vector.
48124         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
48125         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
48126         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
48128         unistr/u*-chr: test multibyte sequences
48129         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
48131         unistr/u*-chr: prepare for multibyte tests
48132         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
48133         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
48134         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
48135         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
48136         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
48137         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
48139 2010-07-18  Bruno Haible  <bruno@clisp.org>
48141         unistr/u8-strchr: Optimize non-ASCII argument case.
48142         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
48143         because the first byte often matches anyway.
48144         Reported by Pádraig Brady <P@draigbrady.com>.
48146 2010-07-15  Karl Berry  <karl@gnu.org>
48148         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
48150 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
48152         getcwd: on Solaris, work better if ancestors are inaccessible
48153         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
48154         buffer and size, try again with a large buffer.  This works better
48155         on Solaris, since its getcwd succeeds even if the path to the root
48156         is inaccessible, and this is helpful in common cases such as .zfs
48157         hidden directories.  Problem reported by J Chapman Flack in
48158         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
48159         Use system getcwd if it's declared, not merely if it's partly
48160         working; use the partly-working test only to avoid needless effort
48161         if the system getcwd fails.
48162         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
48163         comment that was already obsolete and is now even more obsolete.
48164         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
48165         now might call strdup.
48167 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
48169         pthread: Add enough so that coreutils/src/sort.c compiles.
48170         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
48171         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
48172         gnulib. Include <sched.h> and <time.h>, as per POSIX.
48173         Include <sys/types.h>, in case it defines pthread_t.
48174         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
48175         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
48176         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
48177         (pthread_rwlockattr_t, pthread_spinlock_t):
48178         New typedefs, if HAVE_PTHREAD_T is not defined.
48179         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
48180         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
48181         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
48182         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
48183         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
48184         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
48185         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
48186         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
48187         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
48188         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
48189         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
48190         New macros.
48191         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
48192         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
48193         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
48194         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
48195         (pthread_spin_unlock): New dummy functions.
48196         (pthread_create): Return EAGAIN; don't set errno.
48197         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
48198         require AC_C_INLINE.
48199         * modules/pthread (Depends-on): Add sched, time.
48200         (pthread.h): Use AM_V_GEN.
48202 2010-07-13  Bruno Haible  <bruno@clisp.org>
48204         striconveh: Don't malloc memory if the result buffer is sufficient.
48205         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
48206         buffer if its size is sufficient.
48207         Reported by Ludovic Courtès <ludo@gnu.org>.
48209 2010-07-13  Bruno Haible  <bruno@clisp.org>
48211         strtod: Add safety check.
48212         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
48214 2010-07-12  Bruno Haible  <bruno@clisp.org>
48216         Unify tests that set gl_cv_func_ldexpl_no_libm.
48217         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
48218         gl_FUNC_LDEXPL.
48219         (gl_FUNC_LDEXPL): Invoke it.
48220         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48222 2010-07-12  Bruno Haible  <bruno@clisp.org>
48224         Unify tests that set gl_cv_func_ldexp_no_libm.
48225         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
48226         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
48227         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
48228         (configure.ac): Simply invoke gl_FUNC_LDEXP.
48229         * modules/strtod (Files): Add m4/ldexp.m4.
48231 2010-07-12  Bruno Haible  <bruno@clisp.org>
48233         Unify tests that set gl_cv_func_frexpl_no_libm.
48234         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
48235         gl_FUNC_FREXPL_NO_LIBM.
48236         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
48237         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48239 2010-07-12  Bruno Haible  <bruno@clisp.org>
48241         Unify tests that set gl_cv_func_frexp_no_libm.
48242         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
48243         gl_FUNC_FREXP_NO_LIBM.
48244         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
48245         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
48247 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
48249         memcoll: clarify sizes versus lengths, document better, and tweak perf
48250         * lib/memcoll.c (strcoll_loop, memcoll0):
48251         Improve quality of descriptive comments.  Name variables
48252         consistently as to whether they are lengths (which do not include
48253         terminating null) versus sizes (which do).
48254         * lib/xmemcoll.c (xmemcoll0): Likewise.
48255         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
48256         returned when s1size == 0; this is easier to compile and saves
48257         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
48259 2010-07-12  Bruno Haible  <bruno@clisp.org>
48261         Tests for module '_Exit'.
48262         * modules/_Exit-tests: New file.
48263         * tests/test-_Exit.sh: New file.
48264         * tests/test-_Exit.c: New file.
48266         New module '_Exit'.
48267         * lib/stdlib.in.h (__attribute__): New macro.
48268         (_Exit): New declaration.
48269         * lib/_Exit.c: New file.
48270         * m4/_Exit.m4: New file.
48271         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
48272         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
48273         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
48274         * modules/_Exit: New file.
48275         * tests/test-stdlib-c++.cc (_Exit): Check signature.
48276         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
48278 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
48280         strtod: make it more-accurate typically, and don't require libm
48281         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
48282         Include limits.h.  Don't include string.h.
48283         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
48284         (locale_isspace): New function, so that no casts are needed to
48285         check whether *s is a space.
48286         (ldexp): Provide an unused dummy if not available.
48287         (scale_radix_exp, parse_number, underlying_strtod): New functions.
48288         (strtod): Use them.  This implementation prefers to use the
48289         underlying strtod if available, falling back on our own code
48290         only to fix known bugs.  This is more likely to produce an
48291         accurate result.  Also, it avoids the use of libm functions.
48292         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
48293         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
48294         was absent, but it caused a test failure with coreutils.
48295         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
48296         with libm.
48297         * modules/strtod (Makefile.am, Link): libm is no longer needed.
48298         * modules/strtod-tests (Makefile.am): Likewise.
48300 2010-07-11  Pádraig Brady  <P@draigBrady.com>
48301             Bruno Haible  <bruno@clisp.org>
48303         unistr/u8-strchr: Optimize ASCII argument case.
48304         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
48306 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48308         (x)memcoll: minor tweaks
48309         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
48310         is after the type that it qualifies.
48311         (memcoll0): Likewise.
48312         * lib/memcoll.h (memcoll0): Likewise.
48313         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
48314         * lib/xmemcoll.h (xmemcoll0): Likewise.
48315         * lib/memcoll.c (memcoll0): Correct the comment.  This function
48316         differs from memcoll in that the NUL byte is part of the argument.
48317         Omit the abort-checks, as performance is a real issue here.  Plus,
48318         the checks were wrong anyway (an off-by-one error).  Omit local
48319         variable 'diff', as it's a bit clearer that way.
48320         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
48321         no longer needed.
48323 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
48325         (x)memcoll: speedup when input is known to be NUL delimited
48326         * lib/memcoll.c: Include stdlib.
48327         (memcoll0): New function.
48328         (strcoll_loop): New function, refactored for use in both memcoll
48329         and memcoll0.
48330         * lib/memcoll.h (memcoll0): Add prototype.
48331         * lib/xmemcoll.c (xmemcoll0): New function.
48332         (collate_error): New function, refactored for use in both xmemcoll
48333         and xmemcoll0.
48334         * lib/xmemcoll.h (xmemcoll0): Add prototype.
48335         * m4/memcoll.m4: add inline invocation.
48337 2010-07-06  Pádraig Brady  <P@draigBrady.com>
48339         * build-aux/bootstrap: Remove any local translations
48340         from the translation project synchronization directory,
48341         so that local only translations are not distributed.
48343 2010-07-04  Bruno Haible  <bruno@clisp.org>
48345         fsusage: Clarify which code applies to which platforms.
48346         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
48347         platform.
48348         * lib/fsusage.c (get_fs_usage): Likewise.
48350 2010-07-04  Bruno Haible  <bruno@clisp.org>
48352         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
48353         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
48354         Reported by Martin Lambers <marlam@marlam.de>.
48356 2010-07-04  Jim Meyering  <meyering@redhat.com>
48358         hash: once again explicitly disallow insertion of NULL
48359         * lib/hash.c (hash_insert0): Reinstate just-removed test:
48360         inserting a NULL pointer cannot work with these functions.
48361         Add a comment with details.
48362         This reverts part of the 2010-07-01 commit, 5bef1a35
48363         "hash: extend module to deal with non-pointer keys".
48365 2010-07-01  Bruno Haible  <bruno@clisp.org>
48367         stdbool: Update doc.
48368         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
48369         Info from Christian Weisgerber <naddy@mips.inka.de>.
48371 2010-07-01  Jim Meyering  <meyering@redhat.com>
48373         hash: extend module to deal with non-pointer keys
48374         * lib/hash.c (hash_insert0): New interface, much like hash_insert
48375         but that allows insertion of non-pointer entries.
48376         Do not disallow an ENTRY value of NULL.
48377         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
48378         * lib/hash.h (hash_insert0): Declare.
48380 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
48382         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
48383         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
48384         not present (i.e. with autoconf 2.59 and when using gettextize, not
48385         gnulib), require AC_GNU_SOURCE instead.
48387 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
48389         idpriv-drop: Fix tests.
48390         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
48391         not to the test-idpriv-droptemp program.
48393 2010-06-29  Bruno Haible  <bruno@clisp.org>
48395         string: Fix syntax error with g++ 2.96.
48396         * lib/string.in.h (__pure__): Remove definition.
48397         (_GL_ATTRIBUTE_PURE): New macro.
48398         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
48399         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
48400         Reported by Christian Weisgerber <naddy@mips.inka.de>.
48402 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
48404         unitypes: Fix bug introduced on 2010-05-18.
48405         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
48407 2010-06-22  Eric Blake  <eblake@redhat.com>
48409         memmem: slight optimization
48410         * lib/str-two-way.h (critical_factorization): Update comments.
48411         Reduce work during factorization phase.
48412         Reported by Carlos Bueno <carlos@bueno.org>.
48414 2010-06-21  Bruno Haible  <bruno@clisp.org>
48416         Fix HAVE_CALLOC_POSIX misnomer.
48417         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
48418         !HAVE_CALLOC_POSIX.
48419         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
48420         HAVE_CALLOC_POSIX.
48421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
48422         instead of HAVE_CALLOC_POSIX.
48423         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
48424         HAVE_CALLOC_POSIX.
48426         Use modern idiom for calloc() replacement.
48427         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
48428         AC_FUNC_CALLOC.
48429         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
48430         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
48431         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48432         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
48433         (gl_REPLACE_CALLOC): New macro.
48435 2010-06-21  Bruno Haible  <bruno@clisp.org>
48437         Fix HAVE_REALLOC_POSIX misnomer.
48438         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
48439         !HAVE_REALLOC_POSIX.
48440         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
48441         HAVE_REALLOC_POSIX.
48442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
48443         instead of HAVE_REALLOC_POSIX.
48444         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
48445         HAVE_REALLOC_POSIX.
48447         Use modern idiom for realloc() replacement.
48448         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
48449         AC_FUNC_REALLOC.
48450         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
48451         Autoconf's AC_FUNC_REALLOC.
48452         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48453         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
48454         (gl_REPLACE_REALLOC): New macro.
48455         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48457 2010-06-21  Bruno Haible  <bruno@clisp.org>
48459         Fix HAVE_MALLOC_POSIX misnomer.
48460         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
48461         !HAVE_MALLOC_POSIX.
48462         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
48463         HAVE_MALLOC_POSIX.
48464         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
48465         instead of HAVE_MALLOC_POSIX.
48466         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
48467         HAVE_MALLOC_POSIX.
48469         Use modern idiom for malloc() replacement.
48470         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
48471         AC_FUNC_MALLOC.
48472         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
48473         Autoconf's AC_FUNC_MALLOC.
48474         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48475         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
48476         (gl_REPLACE_MALLOC): New macro.
48477         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48479 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
48481         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
48482         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
48483         This macro takes 3 arguments, not 4.
48485 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
48487         ipv6: fix detection under mingw
48488         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
48489         in6_addr.
48491 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
48493         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
48494         that strtod() works when cross-compiling to a glibc version known
48495         to work.
48497 2010-06-15  Bruno Haible  <bruno@clisp.org>
48499         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
48501 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
48503         select: Correct timeout.
48504         * lib/select.c (rpl_select): Compute wait_timeout correctly.
48506 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48508         git-version-gen: init shell var to avoid env var influence
48509         * build-aux/git-version-gen (v): Init shell var to empty.
48511 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
48513         priv-set: Don't assume that priv.h exists merely because getppriv does.
48514         See Jan Andersen's bug report about AIX 5L in
48515         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
48516         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
48517         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
48518         * lib/priv-set.h: Likewise.
48519         * tests/test-priv-set.c: Likewise.
48521 2010-06-13  Bruno Haible  <bruno@clisp.org>
48523         relocatable: Make it easier to test whether to install wrappers.
48524         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
48525         RELOCATABLE_VIA_WRAPPER.
48527 2010-06-13  Bruno Haible  <bruno@clisp.org>
48529         gnulib-tool: Display specified modules and dependencies differently.
48530         * gnulib-tool (func_show_module_list): New function.
48531         (func_import, func_create_testdir): Invoke it.
48532         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48534 2010-06-13  Bruno Haible  <bruno@clisp.org>
48536         gnulib-tool: Align code of func_import and func_create_testdir.
48537         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
48538         specified_modules.
48540 2010-06-12  Jim Meyering  <meyering@redhat.com>
48542         test-inttostr: avoid spurious failure on Solaris 9
48543         * tests/test-inttostr.c (main): Skip the test when snprintf fails
48544         to accept "%ju".  Reported by Bruno Haible.
48546 2010-06-11  Jim Meyering  <meyering@redhat.com>
48548         test-sys_socket: mark variables as used more readably
48549         * tests/test-sys_socket.c (main): Mark otherwise unused variables
48550         as "used" explicitly via (void) statement casts.  This is more
48551         readable than using them in an artificial return expression.
48552         Suggestion from Bruno Haible.
48554 2010-06-11  Bruno Haible  <bruno@clisp.org>
48556         Avoid some more warnings from "gcc -Wwrite-strings".
48557         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
48558         to 'const char *'.
48559         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
48560         * tests/test-c-strcasestr.c (main): Likewise.
48561         * tests/test-mbscasestr1.c (main): Likewise.
48562         * tests/test-mbscasestr2.c (main): Likewise.
48563         * tests/test-memmem.c (main): Likewise.
48564         * tests/test-strstr.c (main): Likewise.
48565         * tests/test-strcasestr.c (main): Likewise.
48567 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48569         init.sh: change framework_failure_ to fail with status 99, not 1
48570         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
48571         automake's parallel-tests rule that this is an unexpected failure,
48572         even if the test is listed in XFAIL_TESTS.
48574 2010-06-11  Jim Meyering  <meyering@redhat.com>
48576         test-inttostr: avoid warnings about 4-6KB literal strings
48577         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
48578         Include "macros.h", for its definition of ASSERT.
48579         (CK): s/assert/ASSERT/
48580         * modules/inttostr-tests (Files): Add macros.h.
48582         init.sh: don't use $ME_ or skip_ before they are defined
48583         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
48584         their first uses.  Also hoist their companions: warn_, fail_,
48585         framework_failure_, $stderr_fileno.  Prompted by a patch from
48586         Stefano Lattarini.
48588         test-sys_socket: avoid set-but-not-used warnings from gcc
48589         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
48590         avoid warning about set-but-not-used variables.
48592         test-xvasprintf: avoid 'const' discard warnings
48593         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
48594         "const" when assigning from literal strings.
48595         (test_xasprintf): Add "void" in function argument list to placate
48596         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
48598         tests: avoid compilation warnings in argmatch and exclude tests...
48599         in packages that define ARGMATCH_DIE_DECL, like coreutils.
48600         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
48601         Since it always exits, declare with the "noreturn" attribute.
48602         * tests/test-argmatch.c: Likewise.
48604         tests: avoid 'const' discard warnings in mbsstr tests
48605         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
48606         * tests/test-mbsstr2.c (main): Likewise.
48608         test-verify: avoid warning from gcc's -Wmissing-declarations
48609         * tests/test-verify.c (function): Declare to be static.
48611         test-inttostr.c: include <string.h> for use of strcmp
48612         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
48614         test-linkat: avoid failed assertion on "other" architectures
48615         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
48616         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
48617         sparc: https://bugs.launchpad.net/bugs/591968
48619 2010-06-11  Jim Meyering  <meyering@redhat.com>
48621         printf.m4: avoid autoconf's "Expanded Before Required" warning
48622         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
48623         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
48624         autoconf warning.
48626 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
48628         Replacement header templates are now named with ".in", not "_".
48629         * doc/gnulib-intro.texi: Correct.
48631 2010-06-10  Jim Meyering  <meyering@redhat.com>
48633         inttostr-tests: depend on snprintf, not snprintf-posix
48634         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
48635         snprintf-posix, to avoid this aclocal failure:
48636           missing file gnulib-tests/vasnprintf.c
48637           configure.ac:45: error: expected source file, required through \
48638           AC_LIBSOURCES, not found
48640 2010-06-10  Jim Meyering  <meyering@redhat.com>
48642         inttostr: add a new function, inttostr, and tests
48643         The namesake function was not available.  The existence of the
48644         template file, inttostr.c makes its addition nontrivial.
48645         * lib/anytostr.c: Rename from inttostr.c.
48646         (anytostr): Rename from inttostr.
48647         * lib/inttostr.c: New file.
48648         * modules/inttostr (Files): Add anytostr.c.
48649         (Makefile.am): Set lib_SOURCES instead of ...
48650         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
48651         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
48652         * lib/offtostr.c: Likewise.
48653         * lib/uinttostr.c: Likewise.
48654         * lib/umaxtostr.c: Likewise.
48655         * modules/inttostr-tests: New file.
48656         * tests/test-inttostr.c: New file.  Test these functions.
48658 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
48659             Bruno Haible  <bruno@clisp.org>
48661         Add "Extending Gnulib" chapter to manual.
48662         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
48663         chapter.
48664         (Extending Gnulib): New chapter.
48665         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
48666         chapter.
48668 2010-06-09  Bruno Haible  <bruno@clisp.org>
48670         Avoid relocwrapper link errors due to gnulib replacement functions.
48671         * lib/areadlink.c: Use the system's malloc, realloc functions.
48672         (areadlink): Set errno to ENOMEM explicitly.
48673         * modules/areadlink (Depends-on): Remove malloc-posix.
48674         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48676 2010-06-09  Bruno Haible  <bruno@clisp.org>
48678         Avoid relocwrapper link errors due to gnulib replacement functions.
48679         * lib/canonicalize-lgpl.c: Use the system's malloc function.
48680         * lib/malloca.c: Likewise.
48681         * lib/relocatable.c: Likewise.
48682         * lib/progreloc.c: Use the system's malloc, sprintf functions.
48683         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
48684         * lib/setenv.c: Use the system's malloc, realloc functions.
48685         * lib/strerror.c: Use the system's sprintf function.
48686         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48688 2010-06-04  Bruno Haible  <bruno@clisp.org>
48690         Prefer documented low-level autoconf macro names.
48691         * m4/lib-link.m4: Use m4_translit instead of translit.
48692         * m4/environ.m4: Likewise.
48693         * m4/mathfunc.m4: Likewise.
48694         * m4/onceonly.m4: Likewise.
48695         * m4/stdint.m4: Likewise.
48696         Suggested by Eric Blake.
48698 2010-06-04  Martin Lambers  <marlam@marlam.de>
48699             Bruno Haible  <bruno@clisp.org>
48701         havelib: Allow library names with '+' characters.
48702         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48703         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
48705 2010-06-09  Bruno Haible  <bruno@clisp.org>
48707         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
48708         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
48709         realloc failed.
48711 2010-06-08  Peter Simons  <simons@cryp.to>
48713         maint.mk: make the news-check rule more configurable
48714         * top/maint.mk (news-check-lines-spec): New variable.
48715         (news-check): Use "sed -n 1,10p" in place of "head".
48717 2010-06-07  Jim Meyering  <meyering@redhat.com>
48719         do-release-commit-and-tag: fix typo in --help
48720         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
48722         regex: avoid new dead-code warning with gcc-4.6.0
48723         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
48724         if-block containing a while-loop.  It's been unused for at least
48725         5 years.
48727 2010-06-05  Bruno Haible  <bruno@clisp.org>
48729         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
48730         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
48732 2010-06-04  Bruno Haible  <bruno@clisp.org>
48734         Update to GNU gettext 0.18.1.
48735         * modules/gettext (configure.ac): Require gettext infrastructure from
48736         version 0.18.1.
48738 2010-06-03  Bruno Haible  <bruno@clisp.org>
48740         Don't use AC_LIBOBJ with file names in subdirectories.
48741         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
48742         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
48743         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
48744         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
48745         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
48746         gl_LIBUNISTRING_LIBSOURCE.
48747         (Makefile.am): Augment lib_SOURCES here, conditionally.
48748         * NEWS: Drop requirement for Automake option 'subdir-objects'.
48750 2010-06-03  Bruno Haible  <bruno@clisp.org>
48752         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
48753         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
48754         expansion does not end with a newline.
48755         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
48756         unnecessary newline.
48758 2010-06-03  Bruno Haible  <bruno@clisp.org>
48760         Reduce dependencies.
48761         * tests/test-quotearg.h: New file, extracted from
48762         tests/test-quotearg.c.
48763         * tests/test-quotearg-simple.c: New file, extracted from
48764         tests/test-quotearg.c.
48765         * tests/test-quotearg.c: Don't include <ctype.h>.
48766         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
48767         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
48768         use_quote_double_quotes, use_quotearg_colon): Moved to
48769         tests/test-quotearg.h.
48770         (results_g, flag_results, custom_quotes, custom_results): Moved
48771         to tests/test-quotearg-simple.c.
48772         (main): Moved the part that does not depend on gettext to
48773         tests/test-quotearg-simple.c. Return 77 if the test cannot be
48774         performed.
48775         * modules/quotearg-simple: New file.
48776         * modules/quotearg-simple-tests: New file.
48777         * modules/quotearg (Depends-on): Add quotearg-simple.
48778         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
48779         (Files): Add tests/test-quotearg.h.
48780         Reported by Paolo Bonzini.
48782 2010-06-03  Bruno Haible  <bruno@clisp.org>
48784         Reduce dependencies.
48785         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
48787 2010-06-03  Bruno Haible  <bruno@clisp.org>
48789         time: Undefine more broken macros.
48790         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
48791         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
48792         Reported by Eric Blake.
48794 2010-06-03  Bruno Haible  <bruno@clisp.org>
48796         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
48797         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
48798         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
48799         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
48800         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
48801         Reported by Ludovic Courtès <ludo@gnu.org>.
48803 2010-06-02  Eric Blake  <eblake@redhat.com>
48805         time: work with mingw + pthreads-win32 library
48806         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
48807         if timespec is defined only in pthread.h.
48808         * modules/time (Makefile.am): Substitute it.
48809         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
48810         <pthread.h>, when needed.
48811         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
48812         from the library.
48814 2010-05-31  Bruno Haible  <bruno@clisp.org>
48816         Avoid expanding two macros in the wrong order.
48817         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
48818         gl_LIBUNISTRING if it is defined.
48819         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
48820         autoconf >= 2.64.
48821         Reported by Ludovic Courtès <ludo@gnu.org>.
48823 2010-05-27  Jim Meyering  <meyering@redhat.com>
48825         maint.mk: also prohibit "#undef" of always-defined symbols
48826         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
48827         Allow more than one space before the symbol name.
48828         (sc_prohibit_always-defined_macros): Use grep's -E, now that
48829         the regexp uses alternation.
48831 2010-05-26  Eric Blake  <eblake@redhat.com>
48833         maint.mk: avoid echo -e
48834         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
48835         Convert all uses of echo -* to printf.
48836         Reported by Matthias Bolte.
48838 2010-05-25  Bruno Haible  <bruno@clisp.org>
48840         Update to GNU gettext 0.18, part 2.
48841         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
48842         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
48844 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48846         Add missing include in test-pwrite.c.
48847         * tests/test-pwrite.c: Include string.h, for strcmp.
48849 2010-05-24  Bruno Haible  <bruno@clisp.org>
48851         * NEWS: Mention requirement for Automake option 'subdir-objects'.
48853 2010-05-24  Bruno Haible  <bruno@clisp.org>
48855         Don't use conversion with transliteration in u{8,16,32}_strcoll.
48856         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
48857         iconveh_error argument.
48858         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
48859         U_STRCONV_TO_LOCALE.
48860         * lib/unistr/u16-strcoll.c: Likewise.
48861         * lib/unistr/u32-strcoll.c: Likewise.
48862         * modules/unistr/u8-strcoll (Depends-on): Add
48863         uniconv/u8-strconv-to-enc, localcharset. Remove
48864         uniconv/u8-strconv-to-locale.
48865         (configure.ac): Bump version number.
48866         * modules/unistr/u16-strcoll (Depends-on): Add
48867         uniconv/u16-strconv-to-enc, localcharset. Remove
48868         uniconv/u16-strconv-to-locale.
48869         (configure.ac): Bump version number.
48870         * modules/unistr/u32-strcoll (Depends-on): Add
48871         uniconv/u32-strconv-to-enc, localcharset. Remove
48872         uniconv/u32-strconv-to-locale.
48873         (configure.ac): Bump version number.
48875 2010-05-24  Bruno Haible  <bruno@clisp.org>
48877         Avoid a test failure on NetBSD 5.0.
48878         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
48879         an iconv() bug.
48881 2010-05-24  Bruno Haible  <bruno@clisp.org>
48883         Adjust #include directive style.
48884         * modules/regex (Includes): Recommend to write <regex.h>.
48886 2010-05-24  Bruno Haible  <bruno@clisp.org>
48888         regex: Don't require alloca.
48889         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
48890         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
48891         only inside if (0).
48893 2010-05-23  Jim Meyering  <meyering@redhat.com>
48895         test-renameat.c: include <sys/stat.h>
48896         * tests/test-renameat.c: Include <sys/stat.h>; required for
48897         definition of S_IS* macros.
48899 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
48901         Update maintainer documentation for 'relocatable-prog' module.
48902         * doc/relocatable-maint.texi: Update.
48903         Comments by Bruno Haible.
48905 2010-05-23  Bruno Haible  <bruno@clisp.org>
48907         git-merge-changelog: Enable --split-merged-entry by default.
48908         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
48909         (usage): Don't mention this option any more.
48910         Reported by Ralf Wildenhues.
48912 2010-05-23  Jim Meyering  <meyering@redhat.com>
48914         test-pwrite: do not leave behind a test file named "out"
48915         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
48916         The trivial-looking use of init.sh is really necessary.
48917         It ensures that the temporary file, "out", is created in
48918         a temporary directory, and removed upon termination.
48919         * tests/test-pwrite.sh: Re-add file.
48920         * modules/pwrite-tests: Reference it.
48922 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48924         Fix output redirection buglet in init.sh.
48925         * tests/init.sh: Fix redirection of stderr.
48927 2010-05-20  Simon Josefsson  <simon@josefsson.org>
48929         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
48931 2010-05-17  Simon Josefsson  <simon@josefsson.org>
48933         * modules/valgrind-tests: New file.
48934         * m4/valgrind-tests.m4: New file.
48935         * doc/valgrind-tests.texi: New file.
48936         * doc/gnulib.texi (Running self-tests under valgrind): New
48937         section.
48939 2010-05-19  Bruno Haible  <bruno@clisp.org>
48941         Clean up dead code in recent commit.
48942         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
48943         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
48944         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
48945         Suggested by Paolo Bonzini.
48947 2010-05-19  Bruno Haible  <bruno@clisp.org>
48949         Avoid valgrind error reports from libunistring.
48950         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
48951         * modules/libunistring (Files): Add it.
48952         * modules/libunistring-optional (Files): Likewise.
48954 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
48955             Bruno Haible  <bruno@clisp.org>
48957         New module 'libunistring-optional'.
48958         * modules/libunistring-optional: New file.
48959         * m4/libunistring-base.m4: New file.
48960         * m4/libunistring-optional.m4: New file.
48961         * lib/unicase.in.h: Renamed from lib/unicase.h.
48962         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
48963         * lib/unictype.in.h: Renamed from lib/unictype.h.
48964         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
48965         * lib/uniname.in.h: Renamed from lib/uniname.h.
48966         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
48967         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
48968         * lib/unistr.in.h: Renamed from lib/unistr.h.
48969         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
48970         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
48971         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
48972         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
48973         gl_LIBUNISTRING. If the library was found, determine the installed
48974         version and set LIBUNISTRING_VERSION.
48975         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
48976         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
48977         handle a configuration option --with-included-libunistring.
48978         * modules/libunistring (Files): Add m4/absolute-header.m4.
48979         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
48980         Add m4/libunistring-base.m4.
48981         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48982         (Makefile.am): Build unicase.h from unicase.in.h.
48983         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
48984         Add m4/libunistring-base.m4.
48985         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48986         (Makefile.am): Build uniconv.h from uniconv.in.h.
48987         * modules/unictype/base (Files): Use unictype.in.h instead of
48988         unictype.h. Add m4/libunistring-base.m4.
48989         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48990         (Makefile.am): Build unictype.h from unictype.in.h.
48991         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
48992         Add m4/libunistring-base.m4.
48993         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48994         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
48995         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
48996         Add m4/libunistring-base.m4.
48997         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48998         (Makefile.am): Build uniname.h from uniname.in.h.
48999         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
49000         Add m4/libunistring-base.m4.
49001         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49002         (Makefile.am): Build uninorm.h from uninorm.in.h.
49003         * modules/unistdio/base (Files): Use unistdio.in.h instead of
49004         unistdio.h. Add m4/libunistring-base.m4.
49005         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49006         (Makefile.am): Build unistdio.h from unistdio.in.h.
49007         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
49008         Add m4/libunistring-base.m4.
49009         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49010         (Makefile.am): Build unistr.h from unistr.in.h.
49011         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
49012         Add m4/libunistring-base.m4.
49013         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49014         (Makefile.am): Build unitypes.h from unitypes.in.h.
49015         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
49016         Add m4/libunistring-base.m4.
49017         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49018         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
49019         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
49020         uniwidth.h. Add m4/libunistring-base.m4.
49021         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49022         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
49023         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
49024         instead of augmenting lib_SOURCES.
49025         * modules/unicase/empty-suffix-context: Likewise.
49026         * modules/unicase/locale-language: Likewise.
49027         * modules/unicase/tolower: Likewise.
49028         * modules/unicase/totitle: Likewise.
49029         * modules/unicase/toupper: Likewise.
49030         * modules/unicase/u8-casecmp: Likewise.
49031         * modules/unicase/u8-casecoll: Likewise.
49032         * modules/unicase/u8-casefold: Likewise.
49033         * modules/unicase/u8-casexfrm: Likewise.
49034         * modules/unicase/u8-ct-casefold: Likewise.
49035         * modules/unicase/u8-ct-tolower: Likewise.
49036         * modules/unicase/u8-ct-totitle: Likewise.
49037         * modules/unicase/u8-ct-toupper: Likewise.
49038         * modules/unicase/u8-is-cased: Likewise.
49039         * modules/unicase/u8-is-casefolded: Likewise.
49040         * modules/unicase/u8-is-lowercase: Likewise.
49041         * modules/unicase/u8-is-titlecase: Likewise.
49042         * modules/unicase/u8-is-uppercase: Likewise.
49043         * modules/unicase/u8-prefix-context: Likewise.
49044         * modules/unicase/u8-suffix-context: Likewise.
49045         * modules/unicase/u8-tolower: Likewise.
49046         * modules/unicase/u8-totitle: Likewise.
49047         * modules/unicase/u8-toupper: Likewise.
49048         * modules/unicase/u16-casecmp: Likewise.
49049         * modules/unicase/u16-casecoll: Likewise.
49050         * modules/unicase/u16-casefold: Likewise.
49051         * modules/unicase/u16-casexfrm: Likewise.
49052         * modules/unicase/u16-ct-casefold: Likewise.
49053         * modules/unicase/u16-ct-tolower: Likewise.
49054         * modules/unicase/u16-ct-totitle: Likewise.
49055         * modules/unicase/u16-ct-toupper: Likewise.
49056         * modules/unicase/u16-is-cased: Likewise.
49057         * modules/unicase/u16-is-casefolded: Likewise.
49058         * modules/unicase/u16-is-lowercase: Likewise.
49059         * modules/unicase/u16-is-titlecase: Likewise.
49060         * modules/unicase/u16-is-uppercase: Likewise.
49061         * modules/unicase/u16-prefix-context: Likewise.
49062         * modules/unicase/u16-suffix-context: Likewise.
49063         * modules/unicase/u16-tolower: Likewise.
49064         * modules/unicase/u16-totitle: Likewise.
49065         * modules/unicase/u16-toupper: Likewise.
49066         * modules/unicase/u32-casecmp: Likewise.
49067         * modules/unicase/u32-casecoll: Likewise.
49068         * modules/unicase/u32-casefold: Likewise.
49069         * modules/unicase/u32-casexfrm: Likewise.
49070         * modules/unicase/u32-ct-casefold: Likewise.
49071         * modules/unicase/u32-ct-tolower: Likewise.
49072         * modules/unicase/u32-ct-totitle: Likewise.
49073         * modules/unicase/u32-ct-toupper: Likewise.
49074         * modules/unicase/u32-is-cased: Likewise.
49075         * modules/unicase/u32-is-casefolded: Likewise.
49076         * modules/unicase/u32-is-lowercase: Likewise.
49077         * modules/unicase/u32-is-titlecase: Likewise.
49078         * modules/unicase/u32-is-uppercase: Likewise.
49079         * modules/unicase/u32-prefix-context: Likewise.
49080         * modules/unicase/u32-suffix-context: Likewise.
49081         * modules/unicase/u32-tolower: Likewise.
49082         * modules/unicase/u32-totitle: Likewise.
49083         * modules/unicase/u32-toupper: Likewise.
49084         * modules/unicase/ulc-casecmp: Likewise.
49085         * modules/unicase/ulc-casecoll: Likewise.
49086         * modules/unicase/ulc-casexfrm: Likewise.
49087         * modules/uniconv/u8-conv-from-enc: Likewise.
49088         * modules/uniconv/u8-conv-to-enc: Likewise.
49089         * modules/uniconv/u8-strconv-from-enc: Likewise.
49090         * modules/uniconv/u8-strconv-from-locale: Likewise.
49091         * modules/uniconv/u8-strconv-to-enc: Likewise.
49092         * modules/uniconv/u8-strconv-to-locale: Likewise.
49093         * modules/uniconv/u16-conv-from-enc: Likewise.
49094         * modules/uniconv/u16-conv-to-enc: Likewise.
49095         * modules/uniconv/u16-strconv-from-enc: Likewise.
49096         * modules/uniconv/u16-strconv-from-locale: Likewise.
49097         * modules/uniconv/u16-strconv-to-enc: Likewise.
49098         * modules/uniconv/u16-strconv-to-locale: Likewise.
49099         * modules/uniconv/u32-conv-from-enc: Likewise.
49100         * modules/uniconv/u32-conv-to-enc: Likewise.
49101         * modules/uniconv/u32-strconv-from-enc: Likewise.
49102         * modules/uniconv/u32-strconv-from-locale: Likewise.
49103         * modules/uniconv/u32-strconv-to-enc: Likewise.
49104         * modules/uniconv/u32-strconv-to-locale: Likewise.
49105         * modules/unictype/bidicategory-byname: Likewise.
49106         * modules/unictype/bidicategory-name: Likewise.
49107         * modules/unictype/bidicategory-of: Likewise.
49108         * modules/unictype/bidicategory-test: Likewise.
49109         * modules/unictype/block-list: Likewise.
49110         * modules/unictype/block-test: Likewise.
49111         * modules/unictype/category-C: Likewise.
49112         * modules/unictype/category-Cc: Likewise.
49113         * modules/unictype/category-Cf: Likewise.
49114         * modules/unictype/category-Cn: Likewise.
49115         * modules/unictype/category-Co: Likewise.
49116         * modules/unictype/category-Cs: Likewise.
49117         * modules/unictype/category-L: Likewise.
49118         * modules/unictype/category-Ll: Likewise.
49119         * modules/unictype/category-Lm: Likewise.
49120         * modules/unictype/category-Lo: Likewise.
49121         * modules/unictype/category-Lt: Likewise.
49122         * modules/unictype/category-Lu: Likewise.
49123         * modules/unictype/category-M: Likewise.
49124         * modules/unictype/category-Mc: Likewise.
49125         * modules/unictype/category-Me: Likewise.
49126         * modules/unictype/category-Mn: Likewise.
49127         * modules/unictype/category-N: Likewise.
49128         * modules/unictype/category-Nd: Likewise.
49129         * modules/unictype/category-Nl: Likewise.
49130         * modules/unictype/category-No: Likewise.
49131         * modules/unictype/category-P: Likewise.
49132         * modules/unictype/category-Pc: Likewise.
49133         * modules/unictype/category-Pd: Likewise.
49134         * modules/unictype/category-Pe: Likewise.
49135         * modules/unictype/category-Pf: Likewise.
49136         * modules/unictype/category-Pi: Likewise.
49137         * modules/unictype/category-Po: Likewise.
49138         * modules/unictype/category-Ps: Likewise.
49139         * modules/unictype/category-S: Likewise.
49140         * modules/unictype/category-Sc: Likewise.
49141         * modules/unictype/category-Sk: Likewise.
49142         * modules/unictype/category-Sm: Likewise.
49143         * modules/unictype/category-So: Likewise.
49144         * modules/unictype/category-Z: Likewise.
49145         * modules/unictype/category-Zl: Likewise.
49146         * modules/unictype/category-Zp: Likewise.
49147         * modules/unictype/category-Zs: Likewise.
49148         * modules/unictype/category-and: Likewise.
49149         * modules/unictype/category-and-not: Likewise.
49150         * modules/unictype/category-byname: Likewise.
49151         * modules/unictype/category-name: Likewise.
49152         * modules/unictype/category-none: Likewise.
49153         * modules/unictype/category-of: Likewise.
49154         * modules/unictype/category-or: Likewise.
49155         * modules/unictype/category-test: Likewise.
49156         * modules/unictype/combining-class: Likewise.
49157         * modules/unictype/ctype-alnum: Likewise.
49158         * modules/unictype/ctype-alpha: Likewise.
49159         * modules/unictype/ctype-blank: Likewise.
49160         * modules/unictype/ctype-cntrl: Likewise.
49161         * modules/unictype/ctype-digit: Likewise.
49162         * modules/unictype/ctype-graph: Likewise.
49163         * modules/unictype/ctype-lower: Likewise.
49164         * modules/unictype/ctype-print: Likewise.
49165         * modules/unictype/ctype-punct: Likewise.
49166         * modules/unictype/ctype-space: Likewise.
49167         * modules/unictype/ctype-upper: Likewise.
49168         * modules/unictype/ctype-xdigit: Likewise.
49169         * modules/unictype/decimal-digit: Likewise.
49170         * modules/unictype/digit: Likewise.
49171         * modules/unictype/mirror: Likewise.
49172         * modules/unictype/numeric: Likewise.
49173         * modules/unictype/property-alphabetic: Likewise.
49174         * modules/unictype/property-ascii-hex-digit: Likewise.
49175         * modules/unictype/property-bidi-arabic-digit: Likewise.
49176         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
49177         * modules/unictype/property-bidi-block-separator: Likewise.
49178         * modules/unictype/property-bidi-boundary-neutral: Likewise.
49179         * modules/unictype/property-bidi-common-separator: Likewise.
49180         * modules/unictype/property-bidi-control: Likewise.
49181         * modules/unictype/property-bidi-embedding-or-override: Likewise.
49182         * modules/unictype/property-bidi-eur-num-separator: Likewise.
49183         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
49184         * modules/unictype/property-bidi-european-digit: Likewise.
49185         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
49186         * modules/unictype/property-bidi-left-to-right: Likewise.
49187         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
49188         * modules/unictype/property-bidi-other-neutral: Likewise.
49189         * modules/unictype/property-bidi-pdf: Likewise.
49190         * modules/unictype/property-bidi-segment-separator: Likewise.
49191         * modules/unictype/property-bidi-whitespace: Likewise.
49192         * modules/unictype/property-byname: Likewise.
49193         * modules/unictype/property-combining: Likewise.
49194         * modules/unictype/property-composite: Likewise.
49195         * modules/unictype/property-currency-symbol: Likewise.
49196         * modules/unictype/property-dash: Likewise.
49197         * modules/unictype/property-decimal-digit: Likewise.
49198         * modules/unictype/property-default-ignorable-code-point: Likewise.
49199         * modules/unictype/property-deprecated: Likewise.
49200         * modules/unictype/property-diacritic: Likewise.
49201         * modules/unictype/property-extender: Likewise.
49202         * modules/unictype/property-format-control: Likewise.
49203         * modules/unictype/property-grapheme-base: Likewise.
49204         * modules/unictype/property-grapheme-extend: Likewise.
49205         * modules/unictype/property-grapheme-link: Likewise.
49206         * modules/unictype/property-hex-digit: Likewise.
49207         * modules/unictype/property-hyphen: Likewise.
49208         * modules/unictype/property-id-continue: Likewise.
49209         * modules/unictype/property-id-start: Likewise.
49210         * modules/unictype/property-ideographic: Likewise.
49211         * modules/unictype/property-ids-binary-operator: Likewise.
49212         * modules/unictype/property-ids-trinary-operator: Likewise.
49213         * modules/unictype/property-ignorable-control: Likewise.
49214         * modules/unictype/property-iso-control: Likewise.
49215         * modules/unictype/property-join-control: Likewise.
49216         * modules/unictype/property-left-of-pair: Likewise.
49217         * modules/unictype/property-line-separator: Likewise.
49218         * modules/unictype/property-logical-order-exception: Likewise.
49219         * modules/unictype/property-lowercase: Likewise.
49220         * modules/unictype/property-math: Likewise.
49221         * modules/unictype/property-non-break: Likewise.
49222         * modules/unictype/property-not-a-character: Likewise.
49223         * modules/unictype/property-numeric: Likewise.
49224         * modules/unictype/property-other-alphabetic: Likewise.
49225         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
49226         * modules/unictype/property-other-grapheme-extend: Likewise.
49227         * modules/unictype/property-other-id-continue: Likewise.
49228         * modules/unictype/property-other-id-start: Likewise.
49229         * modules/unictype/property-other-lowercase: Likewise.
49230         * modules/unictype/property-other-math: Likewise.
49231         * modules/unictype/property-other-uppercase: Likewise.
49232         * modules/unictype/property-paired-punctuation: Likewise.
49233         * modules/unictype/property-paragraph-separator: Likewise.
49234         * modules/unictype/property-pattern-syntax: Likewise.
49235         * modules/unictype/property-pattern-white-space: Likewise.
49236         * modules/unictype/property-private-use: Likewise.
49237         * modules/unictype/property-punctuation: Likewise.
49238         * modules/unictype/property-quotation-mark: Likewise.
49239         * modules/unictype/property-radical: Likewise.
49240         * modules/unictype/property-sentence-terminal: Likewise.
49241         * modules/unictype/property-soft-dotted: Likewise.
49242         * modules/unictype/property-space: Likewise.
49243         * modules/unictype/property-terminal-punctuation: Likewise.
49244         * modules/unictype/property-test: Likewise.
49245         * modules/unictype/property-titlecase: Likewise.
49246         * modules/unictype/property-unassigned-code-value: Likewise.
49247         * modules/unictype/property-unified-ideograph: Likewise.
49248         * modules/unictype/property-uppercase: Likewise.
49249         * modules/unictype/property-variation-selector: Likewise.
49250         * modules/unictype/property-white-space: Likewise.
49251         * modules/unictype/property-xid-continue: Likewise.
49252         * modules/unictype/property-xid-start: Likewise.
49253         * modules/unictype/property-zero-width: Likewise.
49254         * modules/unictype/scripts: Likewise.
49255         * modules/unictype/syntax-c-ident: Likewise.
49256         * modules/unictype/syntax-c-whitespace: Likewise.
49257         * modules/unictype/syntax-java-ident: Likewise.
49258         * modules/unictype/syntax-java-whitespace: Likewise.
49259         * modules/unilbrk/u8-possible-linebreaks: Likewise.
49260         * modules/unilbrk/u8-width-linebreaks: Likewise.
49261         * modules/unilbrk/u16-possible-linebreaks: Likewise.
49262         * modules/unilbrk/u16-width-linebreaks: Likewise.
49263         * modules/unilbrk/u32-possible-linebreaks: Likewise.
49264         * modules/unilbrk/u32-width-linebreaks: Likewise.
49265         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
49266         * modules/unilbrk/ulc-width-linebreaks: Likewise.
49267         * modules/uniname/uniname: Likewise.
49268         * modules/uninorm/canonical-decomposition: Likewise.
49269         * modules/uninorm/composition: Likewise.
49270         * modules/uninorm/decomposing-form: Likewise.
49271         * modules/uninorm/decomposition: Likewise.
49272         * modules/uninorm/filter: Likewise.
49273         * modules/uninorm/nfc: Likewise.
49274         * modules/uninorm/nfd: Likewise.
49275         * modules/uninorm/nfkc: Likewise.
49276         * modules/uninorm/nfkd: Likewise.
49277         * modules/uninorm/u8-normalize: Likewise.
49278         * modules/uninorm/u8-normcmp: Likewise.
49279         * modules/uninorm/u8-normcoll: Likewise.
49280         * modules/uninorm/u8-normxfrm: Likewise.
49281         * modules/uninorm/u16-normalize: Likewise.
49282         * modules/uninorm/u16-normcmp: Likewise.
49283         * modules/uninorm/u16-normcoll: Likewise.
49284         * modules/uninorm/u16-normxfrm: Likewise.
49285         * modules/uninorm/u32-normalize: Likewise.
49286         * modules/uninorm/u32-normcmp: Likewise.
49287         * modules/uninorm/u32-normcoll: Likewise.
49288         * modules/uninorm/u32-normxfrm: Likewise.
49289         * modules/unistdio/u8-asnprintf: Likewise.
49290         * modules/unistdio/u8-asprintf: Likewise.
49291         * modules/unistdio/u8-snprintf: Likewise.
49292         * modules/unistdio/u8-sprintf: Likewise.
49293         * modules/unistdio/u8-u8-asnprintf: Likewise.
49294         * modules/unistdio/u8-u8-asprintf: Likewise.
49295         * modules/unistdio/u8-u8-snprintf: Likewise.
49296         * modules/unistdio/u8-u8-sprintf: Likewise.
49297         * modules/unistdio/u8-u8-vasnprintf: Likewise.
49298         * modules/unistdio/u8-u8-vasprintf: Likewise.
49299         * modules/unistdio/u8-u8-vsnprintf: Likewise.
49300         * modules/unistdio/u8-u8-vsprintf: Likewise.
49301         * modules/unistdio/u8-vasnprintf: Likewise.
49302         * modules/unistdio/u8-vasprintf: Likewise.
49303         * modules/unistdio/u8-vsnprintf: Likewise.
49304         * modules/unistdio/u8-vsprintf: Likewise.
49305         * modules/unistdio/u16-asnprintf: Likewise.
49306         * modules/unistdio/u16-asprintf: Likewise.
49307         * modules/unistdio/u16-snprintf: Likewise.
49308         * modules/unistdio/u16-sprintf: Likewise.
49309         * modules/unistdio/u16-u16-asnprintf: Likewise.
49310         * modules/unistdio/u16-u16-asprintf: Likewise.
49311         * modules/unistdio/u16-u16-snprintf: Likewise.
49312         * modules/unistdio/u16-u16-sprintf: Likewise.
49313         * modules/unistdio/u16-u16-vasnprintf: Likewise.
49314         * modules/unistdio/u16-u16-vasprintf: Likewise.
49315         * modules/unistdio/u16-u16-vsnprintf: Likewise.
49316         * modules/unistdio/u16-u16-vsprintf: Likewise.
49317         * modules/unistdio/u16-vasnprintf: Likewise.
49318         * modules/unistdio/u16-vasprintf: Likewise.
49319         * modules/unistdio/u16-vsnprintf: Likewise.
49320         * modules/unistdio/u16-vsprintf: Likewise.
49321         * modules/unistdio/u32-asnprintf: Likewise.
49322         * modules/unistdio/u32-asprintf: Likewise.
49323         * modules/unistdio/u32-snprintf: Likewise.
49324         * modules/unistdio/u32-sprintf: Likewise.
49325         * modules/unistdio/u32-u32-asnprintf: Likewise.
49326         * modules/unistdio/u32-u32-asprintf: Likewise.
49327         * modules/unistdio/u32-u32-snprintf: Likewise.
49328         * modules/unistdio/u32-u32-sprintf: Likewise.
49329         * modules/unistdio/u32-u32-vasnprintf: Likewise.
49330         * modules/unistdio/u32-u32-vasprintf: Likewise.
49331         * modules/unistdio/u32-u32-vsnprintf: Likewise.
49332         * modules/unistdio/u32-u32-vsprintf: Likewise.
49333         * modules/unistdio/u32-vasnprintf: Likewise.
49334         * modules/unistdio/u32-vasprintf: Likewise.
49335         * modules/unistdio/u32-vsnprintf: Likewise.
49336         * modules/unistdio/u32-vsprintf: Likewise.
49337         * modules/unistdio/ulc-asnprintf: Likewise.
49338         * modules/unistdio/ulc-asprintf: Likewise.
49339         * modules/unistdio/ulc-fprintf: Likewise.
49340         * modules/unistdio/ulc-snprintf: Likewise.
49341         * modules/unistdio/ulc-sprintf: Likewise.
49342         * modules/unistdio/ulc-vasnprintf: Likewise.
49343         * modules/unistdio/ulc-vasprintf: Likewise.
49344         * modules/unistdio/ulc-vfprintf: Likewise.
49345         * modules/unistdio/ulc-vsnprintf: Likewise.
49346         * modules/unistdio/ulc-vsprintf: Likewise.
49347         * modules/unistr/u8-check: Likewise.
49348         * modules/unistr/u8-chr: Likewise.
49349         * modules/unistr/u8-cmp: Likewise.
49350         * modules/unistr/u8-cmp2: Likewise.
49351         * modules/unistr/u8-cpy: Likewise.
49352         * modules/unistr/u8-cpy-alloc: Likewise.
49353         * modules/unistr/u8-endswith: Likewise.
49354         * modules/unistr/u8-mblen: Likewise.
49355         * modules/unistr/u8-mbsnlen: Likewise.
49356         * modules/unistr/u8-mbtouc: Likewise.
49357         * modules/unistr/u8-mbtouc-unsafe: Likewise.
49358         * modules/unistr/u8-mbtoucr: Likewise.
49359         * modules/unistr/u8-move: Likewise.
49360         * modules/unistr/u8-next: Likewise.
49361         * modules/unistr/u8-prev: Likewise.
49362         * modules/unistr/u8-set: Likewise.
49363         * modules/unistr/u8-startswith: Likewise.
49364         * modules/unistr/u8-stpcpy: Likewise.
49365         * modules/unistr/u8-stpncpy: Likewise.
49366         * modules/unistr/u8-strcat: Likewise.
49367         * modules/unistr/u8-strchr: Likewise.
49368         * modules/unistr/u8-strcmp: Likewise.
49369         * modules/unistr/u8-strcoll: Likewise.
49370         * modules/unistr/u8-strcpy: Likewise.
49371         * modules/unistr/u8-strcspn: Likewise.
49372         * modules/unistr/u8-strdup: Likewise.
49373         * modules/unistr/u8-strlen: Likewise.
49374         * modules/unistr/u8-strmblen: Likewise.
49375         * modules/unistr/u8-strmbtouc: Likewise.
49376         * modules/unistr/u8-strncat: Likewise.
49377         * modules/unistr/u8-strncmp: Likewise.
49378         * modules/unistr/u8-strncpy: Likewise.
49379         * modules/unistr/u8-strnlen: Likewise.
49380         * modules/unistr/u8-strpbrk: Likewise.
49381         * modules/unistr/u8-strrchr: Likewise.
49382         * modules/unistr/u8-strspn: Likewise.
49383         * modules/unistr/u8-strstr: Likewise.
49384         * modules/unistr/u8-strtok: Likewise.
49385         * modules/unistr/u8-to-u16: Likewise.
49386         * modules/unistr/u8-to-u32: Likewise.
49387         * modules/unistr/u8-uctomb: Likewise.
49388         * modules/unistr/u16-check: Likewise.
49389         * modules/unistr/u16-chr: Likewise.
49390         * modules/unistr/u16-cmp: Likewise.
49391         * modules/unistr/u16-cmp2: Likewise.
49392         * modules/unistr/u16-cpy: Likewise.
49393         * modules/unistr/u16-cpy-alloc: Likewise.
49394         * modules/unistr/u16-endswith: Likewise.
49395         * modules/unistr/u16-mblen: Likewise.
49396         * modules/unistr/u16-mbsnlen: Likewise.
49397         * modules/unistr/u16-mbtouc: Likewise.
49398         * modules/unistr/u16-mbtouc-unsafe: Likewise.
49399         * modules/unistr/u16-mbtoucr: Likewise.
49400         * modules/unistr/u16-move: Likewise.
49401         * modules/unistr/u16-next: Likewise.
49402         * modules/unistr/u16-prev: Likewise.
49403         * modules/unistr/u16-set: Likewise.
49404         * modules/unistr/u16-startswith: Likewise.
49405         * modules/unistr/u16-stpcpy: Likewise.
49406         * modules/unistr/u16-stpncpy: Likewise.
49407         * modules/unistr/u16-strcat: Likewise.
49408         * modules/unistr/u16-strchr: Likewise.
49409         * modules/unistr/u16-strcmp: Likewise.
49410         * modules/unistr/u16-strcoll: Likewise.
49411         * modules/unistr/u16-strcpy: Likewise.
49412         * modules/unistr/u16-strcspn: Likewise.
49413         * modules/unistr/u16-strdup: Likewise.
49414         * modules/unistr/u16-strlen: Likewise.
49415         * modules/unistr/u16-strmblen: Likewise.
49416         * modules/unistr/u16-strmbtouc: Likewise.
49417         * modules/unistr/u16-strncat: Likewise.
49418         * modules/unistr/u16-strncmp: Likewise.
49419         * modules/unistr/u16-strncpy: Likewise.
49420         * modules/unistr/u16-strnlen: Likewise.
49421         * modules/unistr/u16-strpbrk: Likewise.
49422         * modules/unistr/u16-strrchr: Likewise.
49423         * modules/unistr/u16-strspn: Likewise.
49424         * modules/unistr/u16-strstr: Likewise.
49425         * modules/unistr/u16-strtok: Likewise.
49426         * modules/unistr/u16-to-u32: Likewise.
49427         * modules/unistr/u16-to-u8: Likewise.
49428         * modules/unistr/u16-uctomb: Likewise.
49429         * modules/unistr/u32-check: Likewise.
49430         * modules/unistr/u32-chr: Likewise.
49431         * modules/unistr/u32-cmp: Likewise.
49432         * modules/unistr/u32-cmp2: Likewise.
49433         * modules/unistr/u32-cpy: Likewise.
49434         * modules/unistr/u32-cpy-alloc: Likewise.
49435         * modules/unistr/u32-endswith: Likewise.
49436         * modules/unistr/u32-mblen: Likewise.
49437         * modules/unistr/u32-mbsnlen: Likewise.
49438         * modules/unistr/u32-mbtouc: Likewise.
49439         * modules/unistr/u32-mbtouc-unsafe: Likewise.
49440         * modules/unistr/u32-mbtoucr: Likewise.
49441         * modules/unistr/u32-move: Likewise.
49442         * modules/unistr/u32-next: Likewise.
49443         * modules/unistr/u32-prev: Likewise.
49444         * modules/unistr/u32-set: Likewise.
49445         * modules/unistr/u32-startswith: Likewise.
49446         * modules/unistr/u32-stpcpy: Likewise.
49447         * modules/unistr/u32-stpncpy: Likewise.
49448         * modules/unistr/u32-strcat: Likewise.
49449         * modules/unistr/u32-strchr: Likewise.
49450         * modules/unistr/u32-strcmp: Likewise.
49451         * modules/unistr/u32-strcoll: Likewise.
49452         * modules/unistr/u32-strcpy: Likewise.
49453         * modules/unistr/u32-strcspn: Likewise.
49454         * modules/unistr/u32-strdup: Likewise.
49455         * modules/unistr/u32-strlen: Likewise.
49456         * modules/unistr/u32-strmblen: Likewise.
49457         * modules/unistr/u32-strmbtouc: Likewise.
49458         * modules/unistr/u32-strncat: Likewise.
49459         * modules/unistr/u32-strncmp: Likewise.
49460         * modules/unistr/u32-strncpy: Likewise.
49461         * modules/unistr/u32-strnlen: Likewise.
49462         * modules/unistr/u32-strpbrk: Likewise.
49463         * modules/unistr/u32-strrchr: Likewise.
49464         * modules/unistr/u32-strspn: Likewise.
49465         * modules/unistr/u32-strstr: Likewise.
49466         * modules/unistr/u32-strtok: Likewise.
49467         * modules/unistr/u32-to-u16: Likewise.
49468         * modules/unistr/u32-to-u8: Likewise.
49469         * modules/unistr/u32-uctomb: Likewise.
49470         * modules/uniwbrk/u8-wordbreaks: Likewise.
49471         * modules/uniwbrk/u16-wordbreaks: Likewise.
49472         * modules/uniwbrk/u32-wordbreaks: Likewise.
49473         * modules/uniwbrk/ulc-wordbreaks: Likewise.
49474         * modules/uniwbrk/wordbreak-property: Likewise.
49475         * modules/uniwidth/u8-strwidth: Likewise.
49476         * modules/uniwidth/u8-width: Likewise.
49477         * modules/uniwidth/u16-strwidth: Likewise.
49478         * modules/uniwidth/u16-width: Likewise.
49479         * modules/uniwidth/u32-strwidth: Likewise.
49480         * modules/uniwidth/u32-width: Likewise.
49481         * modules/uniwidth/width: Likewise.
49482         * modules/unicase/cased-tests (Makefile.am): Link all test programs
49483         with $(LIBUNISTRING).
49484         * modules/unicase/ignorable-tests: Likewise.
49485         * modules/unicase/locale-language-tests: Likewise.
49486         * modules/unicase/tolower-tests: Likewise.
49487         * modules/unicase/totitle-tests: Likewise.
49488         * modules/unicase/toupper-tests: Likewise.
49489         * modules/unicase/u8-casecmp-tests: Likewise.
49490         * modules/unicase/u8-casecoll-tests: Likewise.
49491         * modules/unicase/u8-casefold-tests: Likewise.
49492         * modules/unicase/u8-is-cased-tests: Likewise.
49493         * modules/unicase/u8-is-casefolded-tests: Likewise.
49494         * modules/unicase/u8-is-lowercase-tests: Likewise.
49495         * modules/unicase/u8-is-titlecase-tests: Likewise.
49496         * modules/unicase/u8-is-uppercase-tests: Likewise.
49497         * modules/unicase/u8-tolower-tests: Likewise.
49498         * modules/unicase/u8-totitle-tests: Likewise.
49499         * modules/unicase/u8-toupper-tests: Likewise.
49500         * modules/unicase/u16-casecmp-tests: Likewise.
49501         * modules/unicase/u16-casecoll-tests: Likewise.
49502         * modules/unicase/u16-casefold-tests: Likewise.
49503         * modules/unicase/u16-is-cased-tests: Likewise.
49504         * modules/unicase/u16-is-casefolded-tests: Likewise.
49505         * modules/unicase/u16-is-lowercase-tests: Likewise.
49506         * modules/unicase/u16-is-titlecase-tests: Likewise.
49507         * modules/unicase/u16-is-uppercase-tests: Likewise.
49508         * modules/unicase/u16-tolower-tests: Likewise.
49509         * modules/unicase/u16-totitle-tests: Likewise.
49510         * modules/unicase/u16-toupper-tests: Likewise.
49511         * modules/unicase/u32-casecmp-tests: Likewise.
49512         * modules/unicase/u32-casecoll-tests: Likewise.
49513         * modules/unicase/u32-casefold-tests: Likewise.
49514         * modules/unicase/u32-is-cased-tests: Likewise.
49515         * modules/unicase/u32-is-casefolded-tests: Likewise.
49516         * modules/unicase/u32-is-lowercase-tests: Likewise.
49517         * modules/unicase/u32-is-titlecase-tests: Likewise.
49518         * modules/unicase/u32-is-uppercase-tests: Likewise.
49519         * modules/unicase/u32-tolower-tests: Likewise.
49520         * modules/unicase/u32-totitle-tests: Likewise.
49521         * modules/unicase/u32-toupper-tests: Likewise.
49522         * modules/unicase/ulc-casecmp-tests: Likewise.
49523         * modules/unicase/ulc-casecoll-tests: Likewise.
49524         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
49525         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
49526         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
49527         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
49528         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
49529         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
49530         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
49531         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
49532         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
49533         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
49534         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
49535         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
49536         * modules/unictype/bidicategory-byname-tests: Likewise.
49537         * modules/unictype/bidicategory-name-tests: Likewise.
49538         * modules/unictype/bidicategory-of-tests: Likewise.
49539         * modules/unictype/bidicategory-test-tests: Likewise.
49540         * modules/unictype/block-list-tests: Likewise.
49541         * modules/unictype/block-of-tests: Likewise.
49542         * modules/unictype/block-test-tests: Likewise.
49543         * modules/unictype/category-C-tests: Likewise.
49544         * modules/unictype/category-Cc-tests: Likewise.
49545         * modules/unictype/category-Cf-tests: Likewise.
49546         * modules/unictype/category-Cn-tests: Likewise.
49547         * modules/unictype/category-Co-tests: Likewise.
49548         * modules/unictype/category-Cs-tests: Likewise.
49549         * modules/unictype/category-L-tests: Likewise.
49550         * modules/unictype/category-Ll-tests: Likewise.
49551         * modules/unictype/category-Lm-tests: Likewise.
49552         * modules/unictype/category-Lo-tests: Likewise.
49553         * modules/unictype/category-Lt-tests: Likewise.
49554         * modules/unictype/category-Lu-tests: Likewise.
49555         * modules/unictype/category-M-tests: Likewise.
49556         * modules/unictype/category-Mc-tests: Likewise.
49557         * modules/unictype/category-Me-tests: Likewise.
49558         * modules/unictype/category-Mn-tests: Likewise.
49559         * modules/unictype/category-N-tests: Likewise.
49560         * modules/unictype/category-Nd-tests: Likewise.
49561         * modules/unictype/category-Nl-tests: Likewise.
49562         * modules/unictype/category-No-tests: Likewise.
49563         * modules/unictype/category-P-tests: Likewise.
49564         * modules/unictype/category-Pc-tests: Likewise.
49565         * modules/unictype/category-Pd-tests: Likewise.
49566         * modules/unictype/category-Pe-tests: Likewise.
49567         * modules/unictype/category-Pf-tests: Likewise.
49568         * modules/unictype/category-Pi-tests: Likewise.
49569         * modules/unictype/category-Po-tests: Likewise.
49570         * modules/unictype/category-Ps-tests: Likewise.
49571         * modules/unictype/category-S-tests: Likewise.
49572         * modules/unictype/category-Sc-tests: Likewise.
49573         * modules/unictype/category-Sk-tests: Likewise.
49574         * modules/unictype/category-Sm-tests: Likewise.
49575         * modules/unictype/category-So-tests: Likewise.
49576         * modules/unictype/category-Z-tests: Likewise.
49577         * modules/unictype/category-Zl-tests: Likewise.
49578         * modules/unictype/category-Zp-tests: Likewise.
49579         * modules/unictype/category-Zs-tests: Likewise.
49580         * modules/unictype/category-and-not-tests: Likewise.
49581         * modules/unictype/category-and-tests: Likewise.
49582         * modules/unictype/category-byname-tests: Likewise.
49583         * modules/unictype/category-name-tests: Likewise.
49584         * modules/unictype/category-none-tests: Likewise.
49585         * modules/unictype/category-of-tests: Likewise.
49586         * modules/unictype/category-or-tests: Likewise.
49587         * modules/unictype/category-test-withtable-tests: Likewise.
49588         * modules/unictype/combining-class-tests: Likewise.
49589         * modules/unictype/ctype-alnum-tests: Likewise.
49590         * modules/unictype/ctype-alpha-tests: Likewise.
49591         * modules/unictype/ctype-blank-tests: Likewise.
49592         * modules/unictype/ctype-cntrl-tests: Likewise.
49593         * modules/unictype/ctype-digit-tests: Likewise.
49594         * modules/unictype/ctype-graph-tests: Likewise.
49595         * modules/unictype/ctype-lower-tests: Likewise.
49596         * modules/unictype/ctype-print-tests: Likewise.
49597         * modules/unictype/ctype-punct-tests: Likewise.
49598         * modules/unictype/ctype-space-tests: Likewise.
49599         * modules/unictype/ctype-upper-tests: Likewise.
49600         * modules/unictype/ctype-xdigit-tests: Likewise.
49601         * modules/unictype/decimal-digit-tests: Likewise.
49602         * modules/unictype/digit-tests: Likewise.
49603         * modules/unictype/mirror-tests: Likewise.
49604         * modules/unictype/numeric-tests: Likewise.
49605         * modules/unictype/property-alphabetic-tests: Likewise.
49606         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
49607         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
49608         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
49609         * modules/unictype/property-bidi-block-separator-tests: Likewise.
49610         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
49611         * modules/unictype/property-bidi-common-separator-tests: Likewise.
49612         * modules/unictype/property-bidi-control-tests: Likewise.
49613         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
49614         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
49615         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
49616         * modules/unictype/property-bidi-european-digit-tests: Likewise.
49617         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
49618         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
49619         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
49620         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
49621         * modules/unictype/property-bidi-pdf-tests: Likewise.
49622         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
49623         * modules/unictype/property-bidi-whitespace-tests: Likewise.
49624         * modules/unictype/property-byname-tests: Likewise.
49625         * modules/unictype/property-combining-tests: Likewise.
49626         * modules/unictype/property-composite-tests: Likewise.
49627         * modules/unictype/property-currency-symbol-tests: Likewise.
49628         * modules/unictype/property-dash-tests: Likewise.
49629         * modules/unictype/property-decimal-digit-tests: Likewise.
49630         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
49631         * modules/unictype/property-deprecated-tests: Likewise.
49632         * modules/unictype/property-diacritic-tests: Likewise.
49633         * modules/unictype/property-extender-tests: Likewise.
49634         * modules/unictype/property-format-control-tests: Likewise.
49635         * modules/unictype/property-grapheme-base-tests: Likewise.
49636         * modules/unictype/property-grapheme-extend-tests: Likewise.
49637         * modules/unictype/property-grapheme-link-tests: Likewise.
49638         * modules/unictype/property-hex-digit-tests: Likewise.
49639         * modules/unictype/property-hyphen-tests: Likewise.
49640         * modules/unictype/property-id-continue-tests: Likewise.
49641         * modules/unictype/property-id-start-tests: Likewise.
49642         * modules/unictype/property-ideographic-tests: Likewise.
49643         * modules/unictype/property-ids-binary-operator-tests: Likewise.
49644         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
49645         * modules/unictype/property-ignorable-control-tests: Likewise.
49646         * modules/unictype/property-iso-control-tests: Likewise.
49647         * modules/unictype/property-join-control-tests: Likewise.
49648         * modules/unictype/property-left-of-pair-tests: Likewise.
49649         * modules/unictype/property-line-separator-tests: Likewise.
49650         * modules/unictype/property-logical-order-exception-tests: Likewise.
49651         * modules/unictype/property-lowercase-tests: Likewise.
49652         * modules/unictype/property-math-tests: Likewise.
49653         * modules/unictype/property-non-break-tests: Likewise.
49654         * modules/unictype/property-not-a-character-tests: Likewise.
49655         * modules/unictype/property-numeric-tests: Likewise.
49656         * modules/unictype/property-other-alphabetic-tests: Likewise.
49657         * modules/unictype/property-other-default-ignorable-code-point-tests:
49658         Likewise.
49659         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
49660         * modules/unictype/property-other-id-continue-tests: Likewise.
49661         * modules/unictype/property-other-id-start-tests: Likewise.
49662         * modules/unictype/property-other-lowercase-tests: Likewise.
49663         * modules/unictype/property-other-math-tests: Likewise.
49664         * modules/unictype/property-other-uppercase-tests: Likewise.
49665         * modules/unictype/property-paired-punctuation-tests: Likewise.
49666         * modules/unictype/property-paragraph-separator-tests: Likewise.
49667         * modules/unictype/property-pattern-syntax-tests: Likewise.
49668         * modules/unictype/property-pattern-white-space-tests: Likewise.
49669         * modules/unictype/property-private-use-tests: Likewise.
49670         * modules/unictype/property-punctuation-tests: Likewise.
49671         * modules/unictype/property-quotation-mark-tests: Likewise.
49672         * modules/unictype/property-radical-tests: Likewise.
49673         * modules/unictype/property-sentence-terminal-tests: Likewise.
49674         * modules/unictype/property-soft-dotted-tests: Likewise.
49675         * modules/unictype/property-space-tests: Likewise.
49676         * modules/unictype/property-terminal-punctuation-tests: Likewise.
49677         * modules/unictype/property-test-tests: Likewise.
49678         * modules/unictype/property-titlecase-tests: Likewise.
49679         * modules/unictype/property-unassigned-code-value-tests: Likewise.
49680         * modules/unictype/property-unified-ideograph-tests: Likewise.
49681         * modules/unictype/property-uppercase-tests: Likewise.
49682         * modules/unictype/property-variation-selector-tests: Likewise.
49683         * modules/unictype/property-white-space-tests: Likewise.
49684         * modules/unictype/property-xid-continue-tests: Likewise.
49685         * modules/unictype/property-xid-start-tests: Likewise.
49686         * modules/unictype/property-zero-width-tests: Likewise.
49687         * modules/unictype/scripts-tests: Likewise.
49688         * modules/unictype/syntax-c-ident-tests: Likewise.
49689         * modules/unictype/syntax-c-whitespace-tests: Likewise.
49690         * modules/unictype/syntax-java-ident-tests: Likewise.
49691         * modules/unictype/syntax-java-whitespace-tests: Likewise.
49692         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
49693         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
49694         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
49695         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
49696         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
49697         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
49698         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
49699         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
49700         * modules/uniname/uniname-tests: Likewise.
49701         * modules/uninorm/canonical-decomposition-tests: Likewise.
49702         * modules/uninorm/compat-decomposition-tests: Likewise.
49703         * modules/uninorm/composition-tests: Likewise.
49704         * modules/uninorm/decomposing-form-tests: Likewise.
49705         * modules/uninorm/decomposition-tests: Likewise.
49706         * modules/uninorm/filter-tests: Likewise.
49707         * modules/uninorm/nfc-tests: Likewise.
49708         * modules/uninorm/nfd-tests: Likewise.
49709         * modules/uninorm/nfkc-tests: Likewise.
49710         * modules/uninorm/nfkd-tests: Likewise.
49711         * modules/uninorm/u8-normcmp-tests: Likewise.
49712         * modules/uninorm/u8-normcoll-tests: Likewise.
49713         * modules/uninorm/u16-normcmp-tests: Likewise.
49714         * modules/uninorm/u16-normcoll-tests: Likewise.
49715         * modules/uninorm/u32-normcmp-tests: Likewise.
49716         * modules/uninorm/u32-normcoll-tests: Likewise.
49717         * modules/unistdio/u8-asnprintf-tests: Likewise.
49718         * modules/unistdio/u8-vasnprintf-tests: Likewise.
49719         * modules/unistdio/u8-vasprintf-tests: Likewise.
49720         * modules/unistdio/u8-vsnprintf-tests: Likewise.
49721         * modules/unistdio/u8-vsprintf-tests: Likewise.
49722         * modules/unistdio/u16-asnprintf-tests: Likewise.
49723         * modules/unistdio/u16-vasnprintf-tests: Likewise.
49724         * modules/unistdio/u16-vasprintf-tests: Likewise.
49725         * modules/unistdio/u16-vsnprintf-tests: Likewise.
49726         * modules/unistdio/u16-vsprintf-tests: Likewise.
49727         * modules/unistdio/u32-asnprintf-tests: Likewise.
49728         * modules/unistdio/u32-vasnprintf-tests: Likewise.
49729         * modules/unistdio/u32-vasprintf-tests: Likewise.
49730         * modules/unistdio/u32-vsnprintf-tests: Likewise.
49731         * modules/unistdio/u32-vsprintf-tests: Likewise.
49732         * modules/unistdio/ulc-asnprintf-tests: Likewise.
49733         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
49734         * modules/unistdio/ulc-vasprintf-tests: Likewise.
49735         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
49736         * modules/unistdio/ulc-vsprintf-tests: Likewise.
49737         * modules/unistr/u8-check-tests: Likewise.
49738         * modules/unistr/u8-chr-tests: Likewise.
49739         * modules/unistr/u8-cmp-tests: Likewise.
49740         * modules/unistr/u8-cmp2-tests: Likewise.
49741         * modules/unistr/u8-cpy-alloc-tests: Likewise.
49742         * modules/unistr/u8-cpy-tests: Likewise.
49743         * modules/unistr/u8-mblen-tests: Likewise.
49744         * modules/unistr/u8-mbsnlen-tests: Likewise.
49745         * modules/unistr/u8-mbtouc-tests: Likewise.
49746         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
49747         * modules/unistr/u8-mbtoucr-tests: Likewise.
49748         * modules/unistr/u8-move-tests: Likewise.
49749         * modules/unistr/u8-next-tests: Likewise.
49750         * modules/unistr/u8-prev-tests: Likewise.
49751         * modules/unistr/u8-set-tests: Likewise.
49752         * modules/unistr/u8-stpcpy-tests: Likewise.
49753         * modules/unistr/u8-stpncpy-tests: Likewise.
49754         * modules/unistr/u8-strcat-tests: Likewise.
49755         * modules/unistr/u8-strcmp-tests: Likewise.
49756         * modules/unistr/u8-strcoll-tests: Likewise.
49757         * modules/unistr/u8-strcpy-tests: Likewise.
49758         * modules/unistr/u8-strdup-tests: Likewise.
49759         * modules/unistr/u8-strlen-tests: Likewise.
49760         * modules/unistr/u8-strmblen-tests: Likewise.
49761         * modules/unistr/u8-strmbtouc-tests: Likewise.
49762         * modules/unistr/u8-strncat-tests: Likewise.
49763         * modules/unistr/u8-strncmp-tests: Likewise.
49764         * modules/unistr/u8-strncpy-tests: Likewise.
49765         * modules/unistr/u8-strnlen-tests: Likewise.
49766         * modules/unistr/u8-to-u16-tests: Likewise.
49767         * modules/unistr/u8-to-u32-tests: Likewise.
49768         * modules/unistr/u8-uctomb-tests: Likewise.
49769         * modules/unistr/u16-check-tests: Likewise.
49770         * modules/unistr/u16-chr-tests: Likewise.
49771         * modules/unistr/u16-cmp-tests: Likewise.
49772         * modules/unistr/u16-cmp2-tests: Likewise.
49773         * modules/unistr/u16-cpy-alloc-tests: Likewise.
49774         * modules/unistr/u16-cpy-tests: Likewise.
49775         * modules/unistr/u16-mblen-tests: Likewise.
49776         * modules/unistr/u16-mbsnlen-tests: Likewise.
49777         * modules/unistr/u16-mbtouc-tests: Likewise.
49778         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
49779         * modules/unistr/u16-mbtoucr-tests: Likewise.
49780         * modules/unistr/u16-move-tests: Likewise.
49781         * modules/unistr/u16-next-tests: Likewise.
49782         * modules/unistr/u16-prev-tests: Likewise.
49783         * modules/unistr/u16-set-tests: Likewise.
49784         * modules/unistr/u16-stpcpy-tests: Likewise.
49785         * modules/unistr/u16-stpncpy-tests: Likewise.
49786         * modules/unistr/u16-strcat-tests: Likewise.
49787         * modules/unistr/u16-strcmp-tests: Likewise.
49788         * modules/unistr/u16-strcoll-tests: Likewise.
49789         * modules/unistr/u16-strcpy-tests: Likewise.
49790         * modules/unistr/u16-strdup-tests: Likewise.
49791         * modules/unistr/u16-strlen-tests: Likewise.
49792         * modules/unistr/u16-strmblen-tests: Likewise.
49793         * modules/unistr/u16-strmbtouc-tests: Likewise.
49794         * modules/unistr/u16-strncat-tests: Likewise.
49795         * modules/unistr/u16-strncmp-tests: Likewise.
49796         * modules/unistr/u16-strncpy-tests: Likewise.
49797         * modules/unistr/u16-strnlen-tests: Likewise.
49798         * modules/unistr/u16-to-u32-tests: Likewise.
49799         * modules/unistr/u16-to-u8-tests: Likewise.
49800         * modules/unistr/u16-uctomb-tests: Likewise.
49801         * modules/unistr/u32-check-tests: Likewise.
49802         * modules/unistr/u32-chr-tests: Likewise.
49803         * modules/unistr/u32-cmp-tests: Likewise.
49804         * modules/unistr/u32-cmp2-tests: Likewise.
49805         * modules/unistr/u32-cpy-alloc-tests: Likewise.
49806         * modules/unistr/u32-cpy-tests: Likewise.
49807         * modules/unistr/u32-mblen-tests: Likewise.
49808         * modules/unistr/u32-mbsnlen-tests: Likewise.
49809         * modules/unistr/u32-mbtouc-tests: Likewise.
49810         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
49811         * modules/unistr/u32-mbtoucr-tests: Likewise.
49812         * modules/unistr/u32-move-tests: Likewise.
49813         * modules/unistr/u32-next-tests: Likewise.
49814         * modules/unistr/u32-prev-tests: Likewise.
49815         * modules/unistr/u32-set-tests: Likewise.
49816         * modules/unistr/u32-stpcpy-tests: Likewise.
49817         * modules/unistr/u32-stpncpy-tests: Likewise.
49818         * modules/unistr/u32-strcat-tests: Likewise.
49819         * modules/unistr/u32-strcmp-tests: Likewise.
49820         * modules/unistr/u32-strcoll-tests: Likewise.
49821         * modules/unistr/u32-strcpy-tests: Likewise.
49822         * modules/unistr/u32-strdup-tests: Likewise.
49823         * modules/unistr/u32-strlen-tests: Likewise.
49824         * modules/unistr/u32-strmblen-tests: Likewise.
49825         * modules/unistr/u32-strmbtouc-tests: Likewise.
49826         * modules/unistr/u32-strncat-tests: Likewise.
49827         * modules/unistr/u32-strncmp-tests: Likewise.
49828         * modules/unistr/u32-strncpy-tests: Likewise.
49829         * modules/unistr/u32-strnlen-tests: Likewise.
49830         * modules/unistr/u32-to-u16-tests: Likewise.
49831         * modules/unistr/u32-to-u8-tests: Likewise.
49832         * modules/unistr/u32-uctomb-tests: Likewise.
49833         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
49834         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
49835         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
49836         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
49837         * modules/uniwidth/u8-strwidth-tests: Likewise.
49838         * modules/uniwidth/u8-width-tests: Likewise.
49839         * modules/uniwidth/u16-strwidth-tests: Likewise.
49840         * modules/uniwidth/u16-width-tests: Likewise.
49841         * modules/uniwidth/u32-strwidth-tests: Likewise.
49842         * modules/uniwidth/u32-width-tests: Likewise.
49843         * modules/uniwidth/width-tests: Likewise.
49845 2010-05-18  Richard Jones  <rjones@redhat.com>
49847         doc: users.txt: list hivex
49848         * users.txt: Add hivex.
49850 2010-05-18  Richard Jones  <rjones@redhat.com>
49852         doc: users.txt: list febootstrap
49853         * users.txt: Add febootstrap.
49855 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
49857         bootstrap: fix an error when gnulib is not used as a git submodule
49858         * build-aux/bootstrap (gnulib_path): If its length is zero then
49859         assign "gnulib" to it.
49860         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
49862 2010-05-16  Bruno Haible  <bruno@clisp.org>
49864         Avoid autoconf warnings about AM_ICONV.
49865         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
49866         2.64.
49868 2010-05-16  Bruno Haible  <bruno@clisp.org>
49870         absolute-header: Make the macro usable in more situations.
49871         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
49872         from gl_ABSOLUTE_HEADER.
49873         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
49875 2010-05-16  James Youngman  <jay@gnu.org>
49877         doc: update users.txt
49878         * users.txt: Add CSSC.
49880 2010-05-16  Jim Meyering  <meyering@redhat.com>
49882         init.sh: fix an error in the previous change; add more comments
49883         * tests/init.sh: Compare exit code in loop against 9, not 2.
49884         Patch by Bruno Haible.
49885         Make the two tests more similar by adding an empty "then" clause.
49886         Add comments.
49888         init.sh: avoid unnecessary shell re-exec
49889         * tests/init.sh: Improve the re-exec-required check to first test the
49890         current shell.  If it passes the test, do not search for a shell that
49891         does pass, and do not re-exec.  This test is particularly contorted to
49892         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
49893         of $(...) evokes a syntax error and causes immediate shell exit with
49894         status 2.  Bruno Haible reported that the re-exec made it impossible
49895         to single-step through any init.sh-using script.
49897 2010-05-16  Bruno Haible  <bruno@clisp.org>
49899         Fix collision between gnulib's and libintl's printf replacements.
49900         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
49901         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
49902         (printf): When using GNU C, map the __printf__ function to rpl_printf
49903         via __asm__. When not using GNU C, define rpl_printf instead of
49904         __printf__.
49905         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
49906         commit.
49907         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
49908         commit.
49909         * m4/asm-underscore.m4: New file.
49910         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
49911         * modules/stdio (Files): Add m4/asm-underscore.m4.
49912         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
49913         Reported by Ben Pfaff.
49915 2010-05-16  Bruno Haible  <bruno@clisp.org>
49917         verify: Avoid skipping the test on openSUSE 11.0.
49918         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
49920 2010-05-13  Bruno Haible  <bruno@clisp.org>
49922         Avoid useless warnings from G++.
49923         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
49924         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
49925         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49927 2010-05-11  Jim Meyering  <meyering@redhat.com>
49929         maint.mk: tweak preceding change
49930         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
49931         regexps tighter by anchoring at EOL, and make the new group "shy"
49932         for slightly decreased overhead.
49934 2010-05-11  Eric Blake  <eblake@redhat.com>
49936         maint.mk: gnulib doesn't guarantee NSIG
49937         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
49939 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
49941         test-pwrite.c: Remove unused variable declaration.
49942         * tests/test-pwrite.c (main): Remove read_buf declaration.
49944         Remove useless test-pwrite.sh file.
49945         * tests/test-pwrite.sh: Delete file.
49946         * modules/pwrite-tests: Remove references.
49947         Reported by Bruno Haible.
49949 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
49951         init.sh: fix a typo
49952         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
49954 2010-05-10  Jim Meyering  <meyering@redhat.com>
49956         maint.mk: avoid using a temporary file in the always-defined-macros check
49957         * top/maint.mk (.re-defmac): Remove rule.
49958         (gl_trap_): Remove definition.
49959         (sc_prohibit_always-defined_macros): Rewrite not to create and
49960         depend on a temporary file.  Instead, depend on GNU grep's ability
49961         to read a list of regular expressions from stdin when given "-f -".
49963 2010-05-09  Bruno Haible  <bruno@clisp.org>
49965         Update to GNU gettext 0.18, part 1.
49966         * m4/gettext.m4: Update to GNU gettext 0.18.
49967         * m4/intl.m4: Likewise.
49968         * m4/po.m4: Likewise.
49969         * modules/gettext (Files): Add m4/fcntl-o.m4.
49970         (configure.ac): Require gettext infrastructure from version 0.18.
49972 2010-05-09  Jim Meyering  <meyering@redhat.com>
49974         init.sh: enable MALLOC_PERTURB_
49975         * tests/init.sh: Enable glibc's malloc-perturbing option.
49977         maint.mk: improve sc_cross_check_PATH_usage_in_tests
49978         With my recent change in init.sh from the two-line form:
49979             -#   : ${srcdir=.}
49980             -#   . "$srcdir/init.sh"; path_prepend_ .
49981             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
49982         I noticed that using the one-line form would cause this test
49983         to fail with a false-positive, or to stop working altogether,
49984         depending on whether help-version changed or all the tests did.
49985         * top/maint.mk (_hv_regex): Remove this definition.
49986         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
49987         (_hv_regex_strong): Use a stronger regex to check for conformance.
49988         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
49989         Give a separate diagnostic for lack of conforming use.
49991         maint.mk: prohibit definition of symbols defined by gnulib
49992         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
49993         definition of symbols defined by gnulib.
49995 2010-05-09  Bruno Haible  <bruno@clisp.org>
49997         acl: Avoid test failure on Cygwin-hosted mingw.
49998         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
50000 2010-05-09  Bruno Haible  <bruno@clisp.org>
50002         error: Use system's fcntl function.
50003         * lib/error.c (fcntl): Undefine.
50005 2010-05-09  Jim Meyering  <meyering@redhat.com>
50007         verify: adjust formatting to be more consistent
50008         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
50009         argument-list '('s, and after one comma.
50011 2010-05-09  Bruno Haible  <bruno@clisp.org>
50013         error: More reliable output on mingw.
50014         * lib/error.c: Include <windows.h>.
50015         (is_open): New function.
50016         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
50017         defined.
50019 2010-05-09  Bruno Haible  <bruno@clisp.org>
50021         vasnprintf: Fix syntax errors in libintl build on mingw.
50022         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
50023         pad_ourselves and prec_ourselves after use.
50025 2010-05-08  Bruno Haible  <bruno@clisp.org>
50027         * lib/config.charset: Update comments for Cygwin 1.7.
50028         * lib/localcharset.c: Likewise.
50030 2010-05-07  Jim Meyering  <meyering@redhat.com>
50032         init.sh: improve comments
50033         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
50034         . "${srcdir=.}/init.sh"; path_prepend_ .
50035         Add a note about path_prepend_ and the alternative of using
50036         TESTS_ENVIRONMENT.
50038 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
50040         exclude: Unescape hashed patterns in wildcard mode.
50041         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
50042         to the hash list.
50043         * tests/test-exclude8.sh: New test case.
50044         * modules/exclude-tests: Add new test.
50046 2010-05-05  Eric Blake  <eblake@redhat.com>
50048         verify: automate tests
50049         * modules/verify-tests: New module.
50050         * tests/test-verify.sh: New file.
50051         * tests/test-verify.c: Guard each negative test with a unique id.
50052         Also avoid warning about unused left hand of comma expressions.
50054 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50056         Further improvements to verify.h, suggested by Eric Blake.
50057         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
50058         the GL_* versions, to avoid collision with OpenGL.
50059         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
50060         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
50061         than testing merely whether it's defined.
50063         Modify verify.h to pacify gcc -Wredundant_decls.
50064         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
50065         These use the prefix "GL_" since they're likely to be useful elsewhere.
50066         We may need to break them out into a different .h file.
50067         (__COUNTER__): Define to 0 if the compiler doesn't support it.
50068         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
50069         of verify_function__.
50071 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
50073         Tests for module pwrite.
50074         * modules/pwrite-tests: New file.
50075         * tests/test-pwrite.sh: New file.
50076         * tests/test-pwrite.c: New file.
50078         New module pwrite.
50079         * lib/unistd.in.h (pwrite): New declaration.
50080         * lib/pwrite.c: New file, from glibc with modifications.
50081         * m4/pwrite.m4: New file.
50082         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
50083         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
50084         REPLACE_PWRITE.
50085         * modules/pwrite: New file.
50086         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
50087         REPLACE_PWRITE.
50088         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
50089         * doc/posix-functions/pwrite.texi: Mention the new module.
50091 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
50093         pread: Update documentation.
50094         * doc/posix-functions/pread.texi: Mention the 'pread' module.
50096 2010-05-04  Eric Blake  <eblake@redhat.com>
50098         docs: update cygwin progress
50099         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
50100         this bug.
50101         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
50102         Added in cygwin 1.7.2.
50103         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
50104         Likewise.
50105         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
50106         Likewise.
50107         * doc/glibc-functions/dup3.texi (dup3): Likewise.
50108         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50109         * doc/glibc-functions/accept4.texi (accept4): Likewise.
50110         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
50111         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
50112         Mention nproc module.
50113         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
50114         bug in cygwin 1.7.5 addition.
50115         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
50116         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
50117         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
50118         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
50119         1.7.5.
50120         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
50121         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
50122         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
50123         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
50124         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
50125         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
50126         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
50127         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
50128         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
50129         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
50130         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
50131         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
50132         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
50133         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
50134         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
50135         Likewise.
50136         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
50137         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
50138         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
50139         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
50140         Likewise.
50141         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
50142         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
50143         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
50144         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
50145         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
50146         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
50147         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
50148         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
50149         Likewise.
50150         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
50151         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
50152         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
50153         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
50154         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
50155         Likewise.
50156         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
50157         Likewise.
50158         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
50159         Likewise.
50160         * doc/glibc-functions/xdrrec_endofrecord.texi
50161         (xdrrec_endofrecord): Likewise.
50162         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
50163         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
50164         Likewise.
50165         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
50166         Likewise.
50168 2010-05-04  Jim Meyering  <meyering@redhat.com>
50170         gendocs.sh: make its "-s FILE" option more useful
50171         * build-aux/gendocs.sh: When honoring the -s FILE option, update
50172         $PACKAGE to reflect the probably-different basename of "FILE".
50174 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
50176         bootstrap: don't ignore download_po_files failure
50177         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
50178         failure.
50180 2010-05-03  Jim Meyering  <meyering@redhat.com>
50182         maint.mk: allow to pass options to gendocs.sh
50183         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
50184         (gendocs_options_): New overridable variable.
50186         gnu-web-doc-update: don't ignore configure or build failure
50187         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
50189         announce-gen: backslash-escape '@'s in --help output
50190         * build-aux/announce-gen: Fix syntax errors.
50192         maint.mk, announce-gen: allow project-specific announcement mail headers
50193         * top/maint.mk (translation_project_): Define default.
50194         (announcement_Cc_, announcement_mail_headers_): Likewise.
50195         (announcement): Invoke announce-gen with new --mail-headers option.
50196         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
50198         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
50199         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
50200         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
50201         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
50202         line in the "err2" output file when running "make check" in verbose
50203         mode (i.e., with set -x enabled).
50205 2010-05-03  Bruno Haible  <bruno@clisp.org>
50207         wctob: Fix for weird platforms.
50208         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
50209         argument value.
50211 2010-05-03  Jim Meyering  <meyering@redhat.com>
50213         maint.mk: prohibit unwarranted use of <strings.h>
50214         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
50215         strings.h in a file that does not also use strcasecmp, strncasecmp,
50216         ffs or ffsll.
50218         maint.mk: remove obsolete comments
50219         * top/maint.mk: Remove stale, commented-out rules.
50221 2010-05-02  Bruno Haible  <bruno@clisp.org>
50223         wcwidth: Declare also when it's aliased.
50224         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
50225         macro.
50227 2010-05-02  Bruno Haible  <bruno@clisp.org>
50229         Fix regression from 2010-04-25.
50230         * gnulib-tool (func_modules_transitive_closure): Check the status of
50231         all modules, not only of the tests that are of the form foo-tests where
50232         foo is a module.
50234 2010-05-02  Bruno Haible  <bruno@clisp.org>
50236         wctob: Work around nasty Cygwin 1.7.2 bug.
50237         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
50238         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
50240 2010-05-01  Bruno Haible  <bruno@clisp.org>
50242         fpurge: Sharper test.
50243         * tests/test-fpurge.c (main): Add one more ftell check.
50244         * modules/fpurge-tests (Depends-on): Add ftell.
50245         Suggested by Eric Blake.
50247 2010-05-01  Bruno Haible  <bruno@clisp.org>
50249         ftello: Another test.
50250         * tests/test-ftello3.c: New file.
50251         * modules/ftello-tests (Files): Add it.
50252         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
50253         MOSTLYCLEANFILES.
50255         ftell: Another test.
50256         * tests/test-ftell3.c: New file.
50257         * modules/ftell-tests (Files): Add it.
50258         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
50259         MOSTLYCLEANFILES.
50261 2010-05-01  Bruno Haible  <bruno@clisp.org>
50263         ftell, ftello: Work around Solaris bug.
50264         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
50265         * lib/ftello.c: Include stdio-impl.h.
50266         (ftello): On Solaris, when _IOWRT is set, compute the result without
50267         looking at _IOREAD.
50268         * modules/ftello (Files): Add lib/stdio-impl.h.
50269         * doc/posix-functions/ftell.texi: Mention Solaris bug.
50270         * doc/posix-functions/ftello.texi: Likewise.
50271         Reported by Eric Blake.
50273 2010-05-01  Bruno Haible  <bruno@clisp.org>
50275         freading: Adapt to special meaning of _IOREAD flag on Solaris.
50276         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
50277         the _IOWRT flag is also set.
50279 2010-05-01  Bruno Haible  <bruno@clisp.org>
50281         Fix doc about a HP-UX stdio bug.
50282         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
50283         * doc/posix-functions/ftello.texi: Likewise.
50285 2010-05-01  Bruno Haible  <bruno@clisp.org>
50287         lseek test: Fix failure on Solaris.
50288         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
50289         output.
50291 2010-04-30  Jim Meyering  <meyering@redhat.com>
50293         bootstrap: don't ignore failure to generate po*/Makevars
50294         * build-aux/bootstrap (with_gettext): Don't ignore failure
50295         to create po/Makevars or runtime-po/Makevars.
50297 2010-04-29  Eric Blake  <eblake@redhat.com>
50299         headers: relax license to LGPLv2+
50300         * modules/fcntl-h (License): Relax license.
50301         * modules/getopt-posix (License): Likewise.
50302         * modules/locale (License): Likewise.
50303         * modules/math (License): Likewise.
50304         * modules/pty (License): Likewise.
50305         * modules/sched (License): Likewise.
50306         * modules/search (License): Likewise.
50307         * modules/spawn (License): Likewise.
50308         * modules/stdarg (License): Likewise.
50309         * modules/sysexits (License): Likewise.
50311 2010-04-29  Jim Meyering  <meyering@redhat.com>
50313         inttypes: relax license to LGPLv2+
50314         * modules/inttypes (License): Relax license.
50316 2010-04-29  Simon Josefsson  <simon@josefsson.org>
50318         * top/maint.mk (indent): Run twice to produce idempotent results.
50320 2010-04-28  Bruno Haible  <bruno@clisp.org>
50322         getdate: Generate getdate.c in the source directory.
50323         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
50324         MOSTLYCLEANFILES.
50325         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
50327 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
50329         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
50330         is not declared as a const *; avoid warnings in that case.
50332 2010-04-28  Eric Blake  <eblake@redhat.com>
50334         canonicalize-lgpl: avoid compiler warning
50335         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
50336         declaration' / 'extraneous semicolon' warning with some compilers.
50337         Reported by Andreas Gruenbacher.
50339 2010-04-28  Jim Meyering  <meyering@redhat.com>
50341         init.sh: ensure a more reliable exit status when exiting via trap
50342         * tests/init.sh (setup_): Don't rely on $? in signal handler.
50343         Inspired by patches from Dmitry V. Levin.
50344         Also trap on signal 3 (SIGQUIT).
50346 2010-04-27  Bruno Haible  <bruno@clisp.org>
50348         Update doc about utimes().
50349         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
50350         'utimens' module.
50351         Reported by Andreas Gruenbacher <agruen@suse.de>.
50353 2010-04-27  Eric Blake  <eblake@redhat.com>
50355         full-read, full-write: relax license
50356         * modules/full-read (License): Drop to LGPLv2+.
50357         * modules/full-write (License): Likewise.
50358         * modules/safe-read (License): Likewise.
50359         * modules/safe-write (License): Likewise.
50361         pthread: mention library for linking
50362         * modules/pthread (Link): Mention $(LIB_PTHREAD).
50364 2010-04-27  Jim Meyering  <meyering@redhat.com>
50366         maint.mk: fix a bug introduced in last change
50367         * top/maint.mk (gl_assured_headers_): Now that all names are on
50368         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
50369         is not anchored to end of word, it should be adequate.
50371         maint.mk: avoid side-effect in latest syntax-check
50372         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
50373         to run commands via $(shell...), and hence to incur cost only when
50374         the new rule is actually run.
50376         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
50377         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
50378         and use that to create a regexp used to detect all #if HAVE_..._H uses.
50379         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
50380         (gl_assured_headers_, az_, AZ_): Define.
50381         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
50383 2010-04-26  Jim Meyering  <jim@meyering.net>
50384             Bruno Haible  <bruno@clisp.org>
50386         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
50387         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
50388         Prompted by an exchange with Gilles Espinasse.
50390 2010-04-26  Jim Meyering  <meyering@redhat.com>
50392         git-version-gen: aesthetic tweak
50393         * build-aux/git-version-gen: Use "$nl" rather than a literal,
50394         so that the command remains on a single line.
50396 2010-04-26  Eric Blake  <eblake@redhat.com>
50398         git-version-gen: allow use on EBCDIC hosts
50399         * build-aux/git-version-gen (dirty): Use literal rather than tying
50400         ourselves to ascii.
50401         Reported by Steve Goetze.
50403 2010-04-25  Bruno Haible  <bruno@clisp.org>
50405         netdb: Add support for GNULIB_POSIXCHECK.
50406         * lib/netdb.in.h: Include warn-on-use.h.
50407         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
50408         functions are used when GNULIB_POSIXCHECK is defined and the
50409         getaddrinfo module is not in use.
50410         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
50411         freeaddrinfo, gai_strerror, getnameinfo are declared.
50412         * modules/netdb (Depends-on): Add warn-on-use.
50413         (Makefile.am): Include warn-on-use.h in netdb.h.
50415 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
50417         build: avoid "make check" failure without .git/ directory
50418         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
50419         there is no .git/ directory.
50421 2010-04-25  Bruno Haible  <bruno@clisp.org>
50423         ptsname: Fix misuse of ttyname_r.
50424         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
50425         of errno.
50427 2010-04-25  Bruno Haible  <bruno@clisp.org>
50429         ttyname_r: Make it work on Solaris 10.
50430         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
50431         if the system function has the POSIX declaration. Test whether the
50432         function fails if the buffer is less than 128 bytes large.
50433         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
50434         system's ttyname_r function. Provide a reasonably large buffer.
50435         * modules/ttyname_r (Depends-on): Add extensions.
50436         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
50438 2010-04-25  Bruno Haible  <bruno@clisp.org>
50440         Use the 'extensions' module for some more functions on Solaris.
50441         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
50442         module.
50443         * doc/posix-functions/ctime_r.texi: Likewise.
50444         * doc/posix-functions/getgrgid_r.texi: Likewise.
50445         * doc/posix-functions/getgrnam_r.texi: Likewise.
50446         * doc/posix-functions/getpwnam_r.texi: Likewise.
50447         * doc/posix-functions/getpwuid_r.texi: Likewise.
50448         * doc/posix-functions/readdir_r.texi: Likewise.
50449         * doc/posix-functions/sigwait.texi: Likewise.
50450         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
50451         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
50453 2010-04-25  Bruno Haible  <bruno@clisp.org>
50455         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
50456         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
50457         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
50458         * lib/ttyname_r.c: Include <limits.h>.
50459         (ttyname_r): Define using the system's ttyname_r function, if it exists
50460         and not on Solaris.
50461         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
50462         set.
50463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
50464         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
50465         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
50466         Reported by Simon Josefsson.
50468 2010-04-25  Bruno Haible  <bruno@clisp.org>
50470         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
50471         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
50472         * doc/posix-functions/ctime_r.texi: Likewise.
50473         * doc/posix-functions/getgrgid_r.texi: Likewise.
50474         * doc/posix-functions/getgrnam_r.texi: Likewise.
50475         * doc/posix-functions/getlogin_r.texi: Likewise.
50476         * doc/posix-functions/getpwnam_r.texi: Likewise.
50477         * doc/posix-functions/getpwuid_r.texi: Likewise.
50478         * doc/posix-functions/readdir_r.texi: Likewise.
50479         * doc/posix-functions/sigwait.texi: Likewise.
50480         * doc/posix-functions/ttyname_r.texi: Likewise.
50481         Reported by Simon Josefsson.
50483 2010-04-25  Bruno Haible  <bruno@clisp.org>
50485         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
50486         * gnulib-tool (func_usage): Document that --with-*-tests options apply
50487         also to --create-testdir.
50488         (func_acceptable): Don't consider the status of *-tests modules here.
50489         (func_modules_transitive_closure): Consider it here, before including a
50490         test module.
50491         (func_import, func_create_testdir): Set inc_all_direct_tests,
50492         inc_all_indirect_tests.
50493         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
50494         --create-testdir and --create-megatestdir.
50496 2010-04-25  Bruno Haible  <bruno@clisp.org>
50498         gnulib-tool: Add --without-*-tests options.
50499         * gnulib-tool (func_usage): Document the --without-*-tests options.
50500         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
50501         excl_unportable_tests): New variables.
50502         Fail if they are specified with --import or --update.
50503         (func_acceptable): Respect the excl_*_tests variables.
50504         (func_import): Set the excl_*_tests variables to empty.
50506 2010-04-25  Simon Josefsson  <simon@josefsson.org>
50507             Bruno Haible  <bruno@clisp.org>
50509         Work around a MacOS X 10.4 bug with openpty.
50510         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
50511         * tests/test-openpty.c (main): Close the master side explicitly.
50513 2010-04-25  Bruno Haible  <bruno@clisp.org>
50515         strnlen: Fix a C++ test error on MacOS X and Solaris.
50516         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
50517         the function is not declared.
50518         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
50519         Simon Josefsson.
50521 2010-04-24  Bruno Haible  <bruno@clisp.org>
50523         Avoid a gcc warning.
50524         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
50525         of correct type for %08lx directive.
50526         Reported by Eric Blake.
50528 2010-04-24  Bruno Haible  <bruno@clisp.org>
50530         vasnprintf: Correct errno value in case of out-of-memory.
50531         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
50532         or sprintf. Use the errno value from SNPRINTF or sprintf.
50533         Reported by Ian Beckwith <ianb@erislabs.net>.
50535 2010-04-24  Bruno Haible  <bruno@clisp.org>
50537         ansi-c++-opt: Find correct compiler when cross-compiling.
50538         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
50539         AC_CHECK_PROGS.
50540         Reported by Simon Josefsson.
50542 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
50544         vc-list-files: Add support for subversion
50545         * build-aux/vc-list-files: Use "svn list" to generate the list of
50546         files controlled by subversion.
50548 2010-04-23  Jim Meyering  <meyering@redhat.com>
50550         vc-list-files tests: convert to use init.sh
50551         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
50552         path_prepend_.
50553         Use Exit, not exit.
50554         Use skip_ rather than open coding it.
50555         Remove trap set-up and compare definitions.
50556         * tests/test-vc-list-files-git.sh: Likewise.
50557         * modules/vc-list-files-tests (Files): Add tests/init.sh.
50559 2010-04-22  Simon Josefsson  <simon@josefsson.org>
50561         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
50562         backup files.
50564 2010-04-21  Simon Josefsson  <simon@josefsson.org>
50566         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
50568 2010-04-20  Eric Blake  <eblake@redhat.com>
50570         tests: be robust to ignored SIGPIPE
50571         * tests/test-select-in.sh: Consume all output.
50572         * tests/test-lseek.sh: Check correct exit status, while avoiding
50573         EPIPE.
50575 2010-04-20  Simon Josefsson  <simon@josefsson.org>
50576             Bruno Haible  <bruno@clisp.org>
50578         visibility: Don't use -fvisibility if it leads to a warning.
50579         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
50580         yes, don't pretend that visibility works if it leads to a warning.
50581         Reported by Mike Gran <spk121@yahoo.com>.
50583 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
50585         * build-aux/bootstrap: Use "git -h" for testing for supported options
50586         instead of "git --help".  The short-form option only shows a summary,
50587         and doesn't layout the full man page.  Grep for the full option name
50588         in the summary, too.
50590 2010-04-19  Bruno Haible  <bruno@clisp.org>
50592         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
50593         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
50594         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
50595         mention of RELOCATABLE_STRIP.
50596         Reported by Sylvain Beucler <beuc@beuc.net>.
50598 2010-04-19  Bruno Haible  <bruno@clisp.org>
50600         * lib/diffseq.h: Fix typo in comment.
50601         Reported by Eric Blake.
50603 2010-04-19  Bruno Haible  <bruno@clisp.org>
50605         ioctl: Move autoconf macro to a .m4 file.
50606         * m4/ioctl.m4: New file, extracted from modules/ioctl.
50607         * modules/ioctl (Files): Add it.
50608         (configure.ac): Simply invoke gl_FUNC_IOCTL.
50609         Reported by Ian Beckwith <ianb@erislabs.net>.
50611 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
50612             Bruno Haible  <bruno@clisp.org>
50614         diffseq: Accommodate use-case with abstract arrays.
50615         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
50616         is not defined.
50617         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
50618         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
50620 2010-04-18  Bruno Haible  <bruno@clisp.org>
50622         * doc/posix-headers/stdbool.texi: More precise wording.
50624 2010-04-17  Jim Meyering  <meyering@redhat.com>
50626         maint.mk: use gnu-style indentation in an embedded perl script
50627         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
50628         Rename variable: s/two/last_two_bytes/
50630 2010-04-16  Eric Blake  <eblake@redhat.com>
50632         test-stdbool: skip test that fails with Solaris CC
50633         * tests/test-stdbool.c (f): Skip test that causes compilation
50634         error under buggy C++ compiler.
50635         * lib/stdbool.in.h: Document the limitation.
50636         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
50638         setenv: allow compilation with C++
50639         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
50640         register keyword.
50642         stdint: allow test to pass with C++
50643         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
50645         getopt: allow compilation with C++
50646         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
50647         struct.
50648         * lib/getopt.c (_getopt_internal_r): Use correct type.
50649         Reported by Dagobert Michelson, via Joel E. Denny.
50651 2010-04-16  Bruno Haible  <bruno@clisp.org>
50653         Override netdb.h always.
50654         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
50655         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
50656         Reported by Ludovic Courtès <ludo@gnu.org>.
50658 2010-04-15  Bruno Haible  <bruno@clisp.org>
50660         openpty: Fix mistake from 2010-03-21.
50661         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
50662         Reported by Simon Josefsson.
50664 2010-04-15  Eric Blake  <eblake@redhat.com>
50666         test-forkpty: fix expected signature
50667         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
50668         Reported by Simon Josefsson.
50670 2010-04-15  Jim Meyering  <meyering@redhat.com>
50672         maint.mk: texinfo_suffix_re_: correct the default regexp
50673         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
50675         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
50676         make it configurable via texinfo_suffix_re_.
50678 2010-04-14  Eric Blake  <eblake@redhat.com>
50680         strtok_r: relax license to LGPLv2+
50681         * modules/strtok_r (License): Relax license.
50682         Reported by Matthias Bolte.
50684 2010-04-14  Simon Josefsson  <simon@josefsson.org>
50686         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
50687         version 1.4.4 by default instead of requiring the libgcrypt
50688         version used during build.  This makes it possible to use the
50689         application with older but still binary compatible libgcrypt
50690         versions.
50692 2010-04-13  Eric Blake  <eblake@redhat.com>
50694         getopt-gnu: match recent glibc fixes and posix ruling
50695         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
50696         '+' handling, when requesting extensions.
50697         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
50698         'W;' handling.
50699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
50700         * doc/posix-functions/getopt.texi (getopt): Document this.
50701         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50702         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50703         Likewise.
50705         getopt: merge bug fixes from glibc
50706         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
50707         diagnostics.  Honor '+:' correctly.  Reject ';'.
50709         getopt-posix: detect MacOS bug
50710         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
50711         optind when missing a required argument.
50712         * doc/posix-functions/getopt.texi (getopt): Document the bug.
50713         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50714         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50715         Likewise.
50717         getopt-posix: avoid spurious failure on Solaris
50718         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
50719         an indicator that setting optind=1 is sufficient for reset.
50721         getopt-posix: avoid spurious failure on FreeBSD
50722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
50723         in POSIX mode, since the m4 test uses it.
50725         gnulib-tool: silence warning on BSD sh
50726         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
50728 2010-04-13  Jim Meyering  <meyering@redhat.com>
50730         doc: users.txt: GNU patch now uses gnulib
50731         * users.txt: Add patch.
50733 2010-04-12  Jim Meyering  <meyering@redhat.com>
50735         maint.mk: generate more concise timing data for syntax-check rules
50736         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
50737         " done" from each line that reports a syntax-check test duration.
50739 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
50741         git-version-gen: use "git update-index..." rather than "git status"
50742         * build-aux/git-version-gen: Use git update-index --refresh, not
50743         "git status".  With some versions of git, "git status" would fail
50744         to update the index and result in an unwarranted "-dirty" suffix.
50746 2010-04-11  Jim Meyering  <meyering@redhat.com>
50748         openat: correct formatting (no semantic change)
50749         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
50750         Suggested by Bruno Haible.
50752 2010-04-11  Bruno Haible  <bruno@clisp.org>
50754         Stricter declaration checking in testdirs.
50755         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50756         If for_tests is true, augment AM_CPPFLAGS to define
50757         GNULIB_STRICT_CHECKING.
50758         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
50759         GNULIB_STRICT_CHECKING is defined, verify that the function is
50760         declared.
50762 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
50763             Bruno Haible  <bruno@clisp.org>
50765         libunistring: Improve configure output.
50766         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
50767         Don't say "consider installing GNU libunistring" when checking again
50768         with libiconv.
50770 2010-04-11  Bruno Haible  <bruno@clisp.org>
50772         libunistring: Correct value of $LTLIBUNISTRING.
50773         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
50774         correct the value of $LTLIBUNISTRING.
50776 2010-04-11  Bruno Haible  <bruno@clisp.org>
50778         havelib: Add static libraries to LIBS in the right order.
50779         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
50780         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
50782 2010-04-11  Bruno Haible  <bruno@clisp.org>
50784         libunistring: Detect libunistring also when it depends on libiconv.
50785         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
50786         the second AC_LIB_HAVE_LINKFLAGS invocation.
50788 2010-04-11  James Youngman  <jay@gnu.org>
50790         close-stream: declare local scalars to be "const"
50791         * lib/close-stream.c (close_stream): Make boolean variables const
50792         to document the fact that we set but do not change them.
50794 2010-04-11  Bruno Haible  <bruno@clisp.org>
50796         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
50798 2010-04-11  Jim Meyering  <meyering@redhat.com>
50800         maint.mk: don't include dist-check.mk
50801         * top/maint.mk: Remove bogus include directive.
50803         maint.mk: improve empty-line-at-EOF check
50804         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
50805         solution, rather than tail+Perl-based one.  The latter would read
50806         a few kilobytes from the end of each file, and did not handle empty
50807         files properly.
50809         maint.mk: print the elapsed time for each syntax-check rule
50810         * top/maint.mk (sc_m_rules_): Save start time in a file.
50811         (sc_z_rules_): New rules: remove temp file and print elapsed time.
50812         (local-check): Interpose the .z rules
50814 2010-04-11  Jim Meyering  <meyering@redhat.com>
50816         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
50817         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
50818         empty file with one that ends in an empty line.
50820 2010-04-10  Bruno Haible  <bruno@clisp.org>
50822         mkdir: Make it work on mingw64.
50823         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
50824         * lib/mkdir.c: Update comment.
50825         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
50827 2010-04-10  Bruno Haible  <bruno@clisp.org>
50829         Don't override improved macro from newer autoconf.
50830         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
50831         autoconf >= 2.62.
50832         Reported by Joel E. Denny <jdenny@clemson.edu>.
50834 2010-04-10  Jim Meyering  <meyering@redhat.com>
50836         maint.mk: new syntax-check rule: prohibit empty lines at end of file
50837         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
50839         maint.mk: correct a diagnostic
50840         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
50841         in diagnostic; now use $prohibit.
50843 2010-04-10  Bruno Haible  <address@hidden>
50845         fchownat: Fix a C++ test error on Solaris 8.
50846         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
50847         the function does not exist.
50849 2010-04-10  Bruno Haible  <bruno@clisp.org>
50851         vasnprintf: Add more tests.
50852         * tests/test-vasnprintf-posix.c: Include <errno.h>.
50853         (test_function): Test converting an invalid wide string.
50855         vasnprintf: Correct handling of unconvertible wide string arguments.
50856         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
50857         VASNPRINTF.
50858         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
50859         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
50860         smaller than the expected maximum need for the directive. Set errno to
50861         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
50862         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
50863         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
50864         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
50865         * modules/vasnprintf (Files): Add m4/printf.m4.
50866         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50868 2010-04-10  Bruno Haible  <bruno@clisp.org>
50870         vasnprintf: Fix crash in %ls directive.
50871         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
50872         string is passed as argument to %ls, with no precision and no width.
50873         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50875 2010-04-10  Bruno Haible  <bruno@clisp.org>
50877         vasnprintf: Fix multiple test failures on mingw.
50878         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
50879         _snprintf, or snwprintf, not _snwprintf.
50881 2010-04-10  Bruno Haible  <bruno@clisp.org>
50883         write: Fix a C++ test error on mingw.
50884         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
50886 2010-04-10  Bruno Haible  <bruno@clisp.org>
50888         vasnprintf test: Reduce code duplication.
50889         * tests/test-vasnprintf.c (test_function): New function, extracted from
50890         test_vasnprintf.
50891         (test_vasnprintf, test_asnprintf): Invoke it.
50893 2010-04-10  Bruno Haible  <bruno@clisp.org>
50895         strnlen: Fix warning in C++ mode on MacOS X.
50896         * lib/string.in.h (strnlen): Use the modern idiom.
50897         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
50898         defining strnlen as a macro already in <config.h>.
50899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50900         REPLACE_STRNLEN.
50901         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
50902         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50904 2010-04-08  James Youngman  <jay@gnu.org>
50906         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
50907         the example.
50909 2010-04-09  Jim Meyering  <meyering@redhat.com>
50911         maint.mk: print better diagnostic when there is no $(_hv_file)
50912         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
50913         announce that when $(_hv_file) (aka help-version) does not exist.
50915         init.sh: run tr in the "C" locale to avoid multibyte interpretation
50916         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
50917         not try to interpret its random input bytes.  Jarno Rajahalme reported
50918         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
50919         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
50920         (mktempd_): Likewise, just in case.
50922         ftruncate: add two years to projected module removal date: 2012
50923         * m4/ftruncate.m4: Adjust comments.
50925         ftruncate: mark module as obsolete; even MinGW provides it, now
50926         * modules/ftruncate (Status): Obsolete.
50927         (Notice): Say that.
50928         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
50929         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
50931 2010-04-08  Bruno Haible  <bruno@clisp.org>
50933         Fix side effects from tests-related modules.
50934         * modules/dprintf-posix (Comment): New section.
50935         * modules/fprintf-posix (Comment): Likewise.
50936         * modules/obstack-printf-posix (Comment): Likewise.
50937         * modules/printf-posix (Comment): Likewise.
50938         * modules/snprintf-posix (Comment): Likewise.
50939         * modules/sprintf-posix (Comment): Likewise.
50940         * modules/vasnprintf-posix (Comment): Likewise.
50941         * modules/vasprintf-posix (Comment): Likewise.
50942         * modules/vdprintf-posix (Comment): Likewise.
50943         * modules/vfprintf-posix (Comment): Likewise.
50944         * modules/vprintf-posix (Comment): Likewise.
50945         * modules/vsnprintf-posix (Comment): Likewise.
50946         * modules/vsprintf-posix (Comment): Likewise.
50947         * modules/xprintf-posix (Comment): Likewise.
50948         * modules/xvasprintf-posix (Comment): Likewise.
50949         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
50950         * modules/floorf-tests (Depends-on): Likewise.
50951         * modules/round-tests (Depends-on): Likewise.
50952         * modules/roundf-tests (Depends-on): Likewise.
50953         * modules/trunc-tests (Depends-on): Likewise.
50954         * modules/truncf-tests (Depends-on): Likewise.
50955         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
50956         'fprintf-posix' module is not present.
50957         * tests/test-floorf2.c (check): Likewise.
50958         * tests/test-trunc2.c (check): Likewise.
50959         * tests/test-truncf2.c (check): Likewise.
50960         * tests/test-round2.c (equal): Likewise.
50961         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50963 2010-04-07  Karl Berry  <karl@gnu.org>
50965         * config/srclist.txt,
50966         * config/srclistvars.sh,
50967         * config/srclist-update: doc fixes.
50969 2010-04-07  Jim Meyering  <meyering@redhat.com>
50971         maint.mk: add a PATH crosschecking syntax-check rule
50972         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
50973         Useful if you use a test like the one in help-version (coreutils,
50974         diffutils, grep, gzip) that ensures $(VERSION) matches what is
50975         printed by prog --version.
50977 2010-04-06  Bruno Haible  <bruno@clisp.org>
50979         Fix link error on mingw.
50980         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
50981         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
50983 2010-04-06  Bruno Haible  <bruno@clisp.org>
50985         Assume rmdir exists.
50986         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
50988 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
50990         doc: update users.txt
50991         * users.txt: Add gcal.
50993 2010-04-06  Jim Meyering  <meyering@redhat.com>
50995         init.sh: simply unset TMPDIR rather than risking env -i
50996         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
50997         although it probably works fine on all Unix-based systems, some
50998         systems (Cygwin?) cannot tolerate a totally cleared environment.
50999         Suggestion from Eric Blake.
51001 2010-04-06  Jim Meyering  <meyering@redhat.com>
51003         init.sh: portability fix: use env's POSIX-specified -i option not -u
51004         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
51005         than unportable env -u.  Solaris 5.11's env lacks support for -u.
51007 2010-04-05  Bruno Haible  <bruno@clisp.org>
51009         btowc: Work around Cygwin 1.7.2 bug.
51010         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
51011         does not map NUL to 0.
51012         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
51014 2010-04-05  Bruno Haible  <bruno@clisp.org>
51016         Make the multithread modules work on Cygwin 1.7.2.
51017         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
51018         imported symbols can be declared weak, so that it returns "no" on
51019         Cygwin 1.7.2.
51021 2010-04-05  Bruno Haible  <bruno@clisp.org>
51023         Use the module 'strncat'.
51024         * modules/unistr/u8-strncat (Depends-on): Add strncat.
51026         Tests for module 'strncat'.
51027         * modules/strncat-tests: New file.
51028         * tests/test-strncat.c: New file.
51030         New module 'strncat'.
51031         * lib/string.in.h (strncat): New declaration.
51032         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
51033         * m4/strncat.m4: New file, based on m4/memchr.m4.
51034         * modules/strncat: New file.
51035         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
51036         is declared.
51037         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
51038         REPLACE_STRNCAT.
51039         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
51040         REPLACE_STRNCAT.
51041         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
51042         module.
51043         * tests/test-string-c++.cc: Check signature of strncat.
51045 2010-04-05  Jim Meyering  <meyering@redhat.com>
51047         xstrtoumax-tests: convert to use init.sh
51048         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
51049         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51050         Use Exit, not exit.
51051         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51053         xstrtoimax-tests: convert to use init.sh
51054         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
51055         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51056         Use Exit, not exit.
51057         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51059 2010-04-05  Bruno Haible  <bruno@clisp.org>
51061         sys_socket: Avoid #define replacements in C++ mode.
51062         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
51063         warning to the function if possible, rather than #defining the symbol
51064         to a dysfunctional alias.
51066 2010-04-05  Bruno Haible  <bruno@clisp.org>
51068         fseeko: Fix C++ test error on mingw.
51069         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
51070         gl_FUNC_FSEEKO.
51071         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
51072         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
51073         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
51074         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
51076 2010-04-05  Bruno Haible  <bruno@clisp.org>
51078         duplocale: Improve test output.
51079         * tests/test-duplocale.c (main): Print reason for skipped test.
51081 2010-04-05  Bruno Haible  <bruno@clisp.org>
51083         Assume rmdir exists.
51084         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
51085         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
51087 2010-04-05  Bruno Haible  <bruno@clisp.org>
51089         Fix link error on Solaris 8 with cc.
51090         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
51092 2010-04-05  Bruno Haible  <bruno@clisp.org>
51094         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
51095         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
51097 2010-04-05  Bruno Haible  <bruno@clisp.org>
51099         vasprintf: Update documentation.
51100         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
51102 2010-04-05  Bruno Haible  <bruno@clisp.org>
51104         ptsname: Improve test.
51105         * tests/test-ptsname.c (main): Also try the various master names of BSD
51106         systems.
51108 2010-04-05  Bruno Haible  <bruno@clisp.org>
51110         memchr: Avoid a possible C++ test error.
51111         * lib/string.in.h (memchr): Provide declaration if function is missing.
51112         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
51113         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
51114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
51115         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
51117 2010-04-05  Bruno Haible  <bruno@clisp.org>
51119         strtok_r: Improve idiom.
51120         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
51121         AC_LIBOBJ is used.
51123 2010-04-05  Bruno Haible  <bruno@clisp.org>
51125         strdup: Improve idiom.
51126         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
51127         AC_LIBOBJ is used.
51128         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
51129         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
51130         when AC_LIBOBJ is used.
51132 2010-04-05  Bruno Haible  <bruno@clisp.org>
51134         mbsinit, mbrtowc, wcrtomb: Improve idioms.
51135         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
51136         don't set REPLACE_MBSINIT to 1.
51137         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
51138         don't set REPLACE_MBRTOWC to 1.
51139         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
51140         exist, don't set REPLACE_MBSRTOWCS to 1.
51141         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
51142         exist, don't set REPLACE_MBSNRTOWCS to 1.
51143         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
51144         don't set REPLACE_WCRTOMB to 1.
51145         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
51146         exist, don't set REPLACE_WCSRTOMBS to 1.
51147         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
51148         exist, don't set REPLACE_WCSNRTOMBS to 1.
51150 2010-04-05  Bruno Haible  <bruno@clisp.org>
51152         ldexpl: Improve idiom.
51153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
51154         make sure to set HAVE_DECL_LDEXPL to 0.
51156 2010-04-05  Jim Meyering  <meyering@redhat.com>
51158         xstrtol-tests: convert to use init.sh
51159         * modules/xstrtol-tests (Files): Add tests/init.sh.
51160         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51161         Use Exit, not exit.
51162         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51164         atexit-tests: convert to use init.sh
51165         * modules/atexit-tests (Files): Add tests/init.sh.
51166         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51167         Use Exit, not exit.
51168         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51170         init.sh: fix typo
51171         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
51173         init.sh: make it easier for a test script to write to the tty, ...
51174         when using automake's parallel-tests mode.
51175         * tests/init.sh (stderr_fileno_): Define overridable variable.
51176         (warn_): New function, to use it.
51177         (fail_, skip_, framework_failure_): Use warn_.
51179 2010-04-04  Bruno Haible  <bruno@clisp.org>
51181         btowc: Avoid warning.
51182         * lib/btowc.c: Include <stdlib.h>.
51183         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
51185 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
51186             Bruno Haible  <bruno@clisp.org>
51188         wchar: Port to NetBSD 1.5.
51189         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
51190         * lib/wctype.in.h (WEOF): Likewise.
51192 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
51193             Bruno Haible  <bruno@clisp.org>
51195         Port extended stdio to NetBSD 1.5.
51196         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
51197         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
51198         older.
51200 2010-04-04  Bruno Haible  <bruno@clisp.org>
51202         string: Remove unused substitution.
51203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51204         HAVE_DECL_STRERROR.
51205         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
51207 2010-04-04  Bruno Haible  <bruno@clisp.org>
51209         strtod: Avoid a possible C++ test error.
51210         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
51211         set REPLACE_STRTOD.
51213 2010-04-04  Bruno Haible  <bruno@clisp.org>
51215         strerror: Update documentation.
51216         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
51218 2010-04-04  Bruno Haible  <bruno@clisp.org>
51220         stdio: Fix some C++ test errors on Solaris 8 with GCC.
51221         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
51222         _GL_CXXALIAS_SYS_CAST.
51224 2010-04-04  Bruno Haible  <bruno@clisp.org>
51226         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
51227         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
51228         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
51229         REPLACE_FREXPL to 1.
51230         * doc/posix-functions/frexpl.texi: Update documentation.
51232 2010-04-04  Bruno Haible  <bruno@clisp.org>
51234         math: Fix some C++ test errors on Solaris 8 and Cygwin.
51235         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
51237 2010-04-04  Bruno Haible  <bruno@clisp.org>
51239         Implement nanosleep for native Windows.
51240         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
51242 2010-04-04  Bruno Haible  <bruno@clisp.org>
51244         math: Fix some C++ test errors on Solaris 8.
51245         * lib/math.in.h (truncf, trunc): Use simpler idiom.
51247 2010-04-04  Bruno Haible  <bruno@clisp.org>
51249         math: Fix some C++ test errors on Cygwin.
51250         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
51251         truncl): Provide declaration if the system does not have it.
51252         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
51253         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
51254         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
51255         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
51256         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
51257         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
51258         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
51259         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
51260         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
51261         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
51262         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
51263         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
51264         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
51265         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
51266         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
51267         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
51268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
51269         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
51270         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
51271         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
51272         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
51273         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
51275 2010-04-04  Bruno Haible  <bruno@clisp.org>
51277         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
51278         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51279         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
51280         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51281         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51282         * m4/isinf.m4 (gl_ISINF): Likewise.
51283         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51285 2010-04-04  Bruno Haible  <bruno@clisp.org>
51287         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
51288         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51290 2010-04-04  Bruno Haible  <bruno@clisp.org>
51292         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
51293         * modules/tmpfile (configure.ac): Update.
51295         tmpfile: Fix C++ test error on mingw.
51296         * lib/stdio.in.h (tmpfile): New declaration.
51297         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
51298         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
51299         * modules/tmpfile (Depends-on): Add stdio.
51300         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51301         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
51302         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
51303         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
51304         REPLACE_TMPFILE.
51305         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
51307 2010-04-04  Bruno Haible  <bruno@clisp.org>
51309         ioctl: Fix C++ test error on mingw.
51310         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
51311         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
51312         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
51314 2010-04-03  Bruno Haible  <bruno@clisp.org>
51316         wcwidth: Fix C++ test error on mingw.
51317         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
51318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
51319         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
51321 2010-04-03  Bruno Haible  <bruno@clisp.org>
51323         nanosleep: Fix C++ test error on mingw.
51324         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
51325         * lib/time.in.h (nanosleep): Use modern idiom.
51326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
51327         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
51328         REPLACE_NANOSLEEP to 1.
51329         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
51330         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
51332 2010-04-03  Bruno Haible  <bruno@clisp.org>
51334         strptime: Fix C++ test error on mingw.
51335         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
51336         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
51337         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
51338         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
51339         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
51340         not REPLACE_STRPTIME.
51341         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
51342         REPLACE_STRPTIME.
51344 2010-04-03  Bruno Haible  <bruno@clisp.org>
51346         timegm: Fix C++ test error on mingw.
51347         * lib/time.in.h (timegm): Use modern idiom.
51348         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
51349         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
51350         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
51351         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
51353 2010-04-03  Bruno Haible  <bruno@clisp.org>
51355         timegm: Assume declaration if function exists.
51356         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
51357         if it exists. Don't clobber ac_cv_func_timegm.
51359 2010-04-03  Bruno Haible  <bruno@clisp.org>
51361         time_r: Fix C++ test error on mingw.
51362         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
51363         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
51364         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
51365         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
51366         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
51368 2010-04-03  Bruno Haible  <bruno@clisp.org>
51370         time_r: Minor updates.
51371         * modules/time_r (Description): Mention the provided functions.
51372         * lib/time_r.c: Don't include <string.h>.
51373         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
51374         * doc/posix-functions/localtime_r.texi: Likewise.
51376 2010-04-03  Bruno Haible  <bruno@clisp.org>
51378         time: Fix regression introduced on 2010-03-08.
51379         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
51380         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
51382 2010-04-03  Jim Meyering  <meyering@redhat.com>
51384         maint.mk: don't silently disable project-specific syntax-check rules
51385         * top/maint.mk (_prohibit_regexp): Define, to help people realize
51386         that they need to convert their project-specific syntax-check rules
51387         to use the new _sc_search_regexp.
51389 2010-04-03  Bruno Haible  <bruno@clisp.org>
51391         fchdir: Fix regression introduced on 2010-03-08.
51392         * lib/unistd.in.h (fchdir): Fix declaration.
51393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
51394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
51395         REPLACE_FCHDIR.
51396         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
51397         REPLACE_FCHDIR.
51399 2010-04-03  Bruno Haible  <bruno@clisp.org>
51401         getpagesize: Fix C++ test error on mingw.
51402         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
51403         system does not declare the function.
51404         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
51405         declared.
51406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51407         HAVE_DECL_GETPAGESIZE.
51408         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
51410 2010-04-03  Bruno Haible  <bruno@clisp.org>
51412         stdio: Make C++ tests work on mingw.
51413         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
51414         does not declare the function.
51416 2010-04-03  Bruno Haible  <bruno@clisp.org>
51418         ftello: Fix C++ test error on mingw.
51419         * lib/stdio.in.h (ftello): Use modern idiom.
51420         * lib/ftello.c (ftello): Renamed from rpl_ftello.
51421         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
51422         is missing and that it needs to be replaced.
51423         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
51424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
51425         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
51427 2010-04-03  Bruno Haible  <bruno@clisp.org>
51429         fseeko: Fix C++ test error on mingw.
51430         * lib/stdio.in.h (fseeko): Use modern idiom.
51431         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
51432         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
51433         is missing and that it needs to be replaced.
51434         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
51435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
51436         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
51438 2010-04-03  Bruno Haible  <bruno@clisp.org>
51440         mkstemp: Fix C++ test error on mingw.
51441         * lib/stdlib.in.h (mkstemp): Use modern idiom.
51442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
51443         function is missing and that it needs to be replaced.
51444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
51445         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
51447 2010-04-03  Bruno Haible  <bruno@clisp.org>
51449         stpncpy: Fix C++ test error on mingw.
51450         * lib/string.in.h (stpncpy): Use modern idiom.
51451         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
51452         function is missing and that it needs to be replaced.
51453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51454         REPLACE_STPNCPY.
51455         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
51457 2010-04-03  Bruno Haible  <bruno@clisp.org>
51459         sys_stat: Fix C++ test error on mingw.
51460         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
51461         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
51463 2010-04-03  Bruno Haible  <bruno@clisp.org>
51465         pty: Update doc.
51466         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
51468 2010-04-03  Bruno Haible  <bruno@clisp.org>
51470         unistd: Fix C++ test error on mingw.
51471         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
51473 2010-04-03  Bruno Haible  <bruno@clisp.org>
51475         Update doc regarding mingw.
51476         * doc/glibc-functions/openpty.texi: Update regarding mingw.
51477         * doc/glibc-functions/login_tty.texi: Likewise.
51478         * doc/glibc-functions/forkpty.texi: Likewise.
51480 2010-04-03  Bruno Haible  <bruno@clisp.org>
51482         stdlib: Avoid compilation failure of c-strtold on mingw.
51483         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
51485 2010-04-03  Bruno Haible  <bruno@clisp.org>
51487         locale: Make C++ tests work on Cygwin and mingw.
51488         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
51489         cannot provide the function.
51490         Reported by Simon Josefsson.
51492 2010-04-03  Bruno Haible  <bruno@clisp.org>
51494         localename: Port to MacOS X 10.6.
51495         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
51496         memory layout of the locales in MacOS X 10.6 as well.
51497         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
51499 2010-04-02  Bruno Haible  <bruno@clisp.org>
51501         gnulib-tool: Ensure that long-running tests are executed last.
51502         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
51503         running tests after the one for the other tests.
51505 2010-04-02  Bruno Haible  <bruno@clisp.org>
51507         gnulib-tool: Ensure the tests in the main directory are executed first.
51508         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
51509         start with the current directory.
51511 2010-04-02  Bruno Haible  <bruno@clisp.org>
51513         Tests for module 'havelib', moved here from GNU gettext.
51514         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
51515         modifications.
51516         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
51517         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
51518         with modifications.
51519         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
51520         modifications.
51521         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
51522         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
51523         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
51524         with modifications.
51525         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
51526         with modifications.
51527         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
51528         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
51529         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
51530         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
51531         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
51532         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
51533         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
51534         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
51535         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
51536         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
51537         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
51538         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
51539         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
51540         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
51541         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
51542         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
51543         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
51544         with modifications.
51545         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
51546         with modifications.
51547         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
51548         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
51549         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
51550         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
51551         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
51552         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
51553         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
51554         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
51555         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
51556         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
51557         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
51558         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
51559         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
51560         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
51561         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
51562         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
51563         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
51564         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
51565         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
51566         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
51567         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
51568         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
51569         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
51570         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
51571         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
51572         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
51573         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
51574         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
51575         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
51576         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
51577         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
51578         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
51579         * tests/havelib/rpathx/rpathx.c: New file, from
51580         gettext/autoconf-lib-link.
51581         * tests/havelib/rpathx/Makefile.am: New file, from
51582         gettext/autoconf-lib-link.
51583         * tests/havelib/rpathx/configure.ac: New file, from
51584         gettext/autoconf-lib-link with modifications.
51585         * tests/havelib/rpathy/rpathy.c: New file, from
51586         gettext/autoconf-lib-link.
51587         * tests/havelib/rpathy/Makefile.am: New file, from
51588         gettext/autoconf-lib-link.
51589         * tests/havelib/rpathy/configure.ac: New file, from
51590         gettext/autoconf-lib-link with modifications.
51591         * tests/havelib/rpathz/rpathz.c: New file, from
51592         gettext/autoconf-lib-link.
51593         * tests/havelib/rpathz/Makefile.am: New file, from
51594         gettext/autoconf-lib-link.
51595         * tests/havelib/rpathz/configure.ac: New file, from
51596         gettext/autoconf-lib-link with modifications.
51597         * tests/havelib/rpathlx/usex.c: New file, from
51598         gettext/autoconf-lib-link.
51599         * tests/havelib/rpathlx/Makefile.am: New file, from
51600         gettext/autoconf-lib-link.
51601         * tests/havelib/rpathlx/configure.ac: New file, from
51602         gettext/autoconf-lib-link with modifications.
51603         * tests/havelib/rpathly/usey.c: New file, from
51604         gettext/autoconf-lib-link.
51605         * tests/havelib/rpathly/Makefile.am: New file, from
51606         gettext/autoconf-lib-link.
51607         * tests/havelib/rpathly/configure.ac: New file, from
51608         gettext/autoconf-lib-link with modifications.
51609         * tests/havelib/rpathlz/usez.c: New file, from
51610         gettext/autoconf-lib-link.
51611         * tests/havelib/rpathlz/Makefile.am: New file, from
51612         gettext/autoconf-lib-link.
51613         * tests/havelib/rpathlz/configure.ac: New file, from
51614         gettext/autoconf-lib-link with modifications.
51615         * tests/havelib/rpathlyx/usey.c: New file, from
51616         gettext/autoconf-lib-link.
51617         * tests/havelib/rpathlyx/Makefile.am: New file, from
51618         gettext/autoconf-lib-link.
51619         * tests/havelib/rpathlyx/configure.ac: New file, from
51620         gettext/autoconf-lib-link with modifications.
51621         * tests/havelib/rpathlzyx/usez.c: New file, from
51622         gettext/autoconf-lib-link.
51623         * tests/havelib/rpathlzyx/Makefile.am: New file, from
51624         gettext/autoconf-lib-link.
51625         * tests/havelib/rpathlzyx/configure.ac: New file, from
51626         gettext/autoconf-lib-link with modifications.
51627         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
51628         with modifications.
51630 2010-04-02  Bruno Haible  <bruno@clisp.org>
51632         gnulib-tool: Create distributed built sources also for the tests.
51633         * gnulib-tool (func_create_testdir): Also generate distributed built
51634         sources in the tests directory.
51636 2010-04-02  Bruno Haible  <bruno@clisp.org>
51638         gnulib-tool: Obey user's environment variables.
51639         * gnulib-tool (func_create_testdir): When creating built sources,
51640         respect the environment variables for autoconf, automake, etc. given by
51641         the user.
51643 2010-04-02  Bruno Haible  <bruno@clisp.org>
51645         gnulib-tool: Provide the value of --m4-base to modules.
51646         * gnulib-tool (func_import, func_create_testdir): Emit a definition
51647         of gl_m4_base.
51649 2010-04-02  Eric Blake  <eblake@redhat.com>
51651         maint.mk: fix some fallout
51652         * NEWS: Document the incompatible change, and its effect on cfg.mk.
51653         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
51655 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
51657         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
51658         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
51659         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
51660         (sc_cast_of_x_alloc_return_value): Likewise.
51661         (sc_cast_of_alloca_return_value): Likewise.
51662         (sc_space_tab): Likewise.
51663         (sc_prohibit_atoi_atof): Likewise.
51664         (sc_prohibit_magic_number_exit): Likewise.
51665         (sc_error_exit_success): Likewise.
51666         (sc_file_system): Likewise.
51667         (sc_prohibit_have_config_h): Likewise.
51668         (sc_require_config_h): Likewise.
51669         (sc_prohibit_HAVE_MBRTOWC): Likewise.
51670         (sc_obsolete_symbols): Likewise.
51671         (sc_changelog): Likewise.
51672         (sc_program_name): Likewise.
51673         (sc_the_the): Likewise.
51674         (sc_trailing_blank): Likewise.
51675         (sc_two_space_separator_in_usage): Likewise.
51676         (sc_useless_cpp_parens): Likewise.
51677         (sc_GPL_version): Likewise.
51678         (sc_GFDL_version): Likewise.
51679         (sc_texinfo_acronym): Likewise.
51680         (sc_prohibit_cvs_keyword): Likewise.
51681         (sc_prohibit_stat_st_blocks): Likewise.
51682         (sc_prohibit_S_IS_definition): Likewise.
51683         (sc_redundant_const): Likewise.
51684         (sc_makefile_TAB_only_indentation): Likewise.
51685         (sc_m4_quote_check): Likewise.
51686         (sc_makefile_path_separator_check): Likewise.
51687         (sc_copyright_check): Likewise.
51688         (sc_Wundef_boolean): Likewise.
51689         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
51691         maint.mk: match 0 or more whitespace-before-function-call '('
51692         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
51693         that have zero or two-and-more spaces between the function name
51694         and the open parenthesis.
51695         (sc_error_message_warn_fatal): Likewise.
51696         (sc_error_message_uppercase): Likewise.
51697         (sc_error_message_period): Likewise.
51699 2010-03-31  Eric Blake  <eblake@redhat.com>
51701         maint.mk: check for [ as well as test
51702         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
51703         Based on a libvirt report by Matthias Bolte.
51705         gnumakefile: don't squelch _version output
51706         * top/GNUmakefile (_version): Create one-shot dependency rather
51707         than using $(shell) when version must be regenerated.
51708         (_autoreconf): Run verbosely, by default.
51710         sys_time: avoid compiler warnings
51711         * lib/sys_time.in.h (includes): Ensure gcc pragma is
51712         unconditional, fixing regression from 2010-03-29.
51713         Reported by Simon Josefsson.
51715 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
51717         maint.mk: s/_header_without_use/_sc_header_without_use/
51718         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
51719         (sc_prohibit_assert_without_use): Use the new name.
51720         (sc_prohibit_close_stream_without_use): Likewise.
51721         (sc_prohibit_getopt_without_use): Likewise.
51722         (sc_prohibit_quotearg_without_use): Likewise.
51723         (sc_prohibit_quote_without_use): Likewise.
51724         (sc_prohibit_long_options_without_use): Likewise.
51725         (sc_prohibit_inttostr_without_use): Likewise.
51726         (sc_prohibit_ignore_value_without_use): Likewise.
51727         (sc_prohibit_error_without_use): Likewise.
51728         (sc_prohibit_xalloc_without_use): Likewise.
51729         (sc_prohibit_hash_without_use): Likewise.
51730         (sc_prohibit_hash_pjw_without_use): Likewise.
51731         (sc_prohibit_safe_read_without_use): Likewise.
51732         (sc_prohibit_argmatch_without_use): Likewise.
51733         (sc_prohibit_canonicalize_without_use): Likewise.
51734         (sc_prohibit_root_dev_ino_without_use): Likewise.
51735         (sc_prohibit_openat_without_use): Likewise.
51736         (sc_prohibit_c_ctype_without_use): Likewise.
51737         (sc_prohibit_signal_without_use): Likewise.
51738         (sc_prohibit_intprops_without_use): Likewise.
51740 2010-03-30  Eric Blake  <eblake@redhat.com>
51742         maint: improve module indicators
51743         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
51744         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
51745         columns, and avoid extra macro expansion.
51747         fdopendir: work around FreeBSD bug
51748         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
51749         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
51750         * modules/dirent (Makefile.am): Substitute it.
51751         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
51752         declaration.
51753         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
51754         fix.
51755         Reported by Christian Weisgerber <naddy@mips.inka.de>.
51757 2010-03-29  Bruno Haible  <bruno@clisp.org>
51759         Emit #pragma system_header after the inclusion guard, not before.
51760         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
51761         guard that spans the entire file, not before. This enables an
51762         optimization in GCC's preprocessor.
51763         * lib/ctype.in.h: Likewise.
51764         * lib/dirent.in.h: Likewise.
51765         * lib/errno.in.h: Likewise.
51766         * lib/float.in.h: Likewise.
51767         * lib/getopt.in.h: Likewise.
51768         * lib/iconv.in.h: Likewise.
51769         * lib/langinfo.in.h: Likewise.
51770         * lib/locale.in.h: Likewise.
51771         * lib/math.in.h: Likewise.
51772         * lib/netdb.in.h: Likewise.
51773         * lib/netinet_in.in.h: Likewise.
51774         * lib/pty.in.h: Likewise.
51775         * lib/sched.in.h: Likewise.
51776         * lib/se-selinux.in.h: Likewise.
51777         * lib/search.in.h: Likewise.
51778         * lib/spawn.in.h: Likewise.
51779         * lib/stdarg.in.h: Likewise.
51780         * lib/stdint.in.h: Likewise.
51781         * lib/string.in.h: Likewise.
51782         * lib/strings.in.h: Likewise.
51783         * lib/sys_file.in.h: Likewise.
51784         * lib/sys_ioctl.in.h: Likewise.
51785         * lib/sys_time.in.h: Likewise.
51786         * lib/sys_times.in.h: Likewise.
51787         * lib/sys_utsname.in.h: Likewise.
51788         * lib/sys_wait.in.h: Likewise.
51789         * lib/sysexits.in.h: Likewise.
51790         * lib/wctype.in.h: Likewise.
51792 2010-03-28  James Youngman  <jay@gnu.org>
51794         save-cwd: don't leak a file descriptor when the caller execs.
51795         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
51796         saved file descriptor.
51797         * modules/save-cwd (Depends-on): Depend on cloexec.
51799 2010-03-29  Bruno Haible  <bruno@clisp.org>
51801         Remove vestiges of fts-lgpl module.
51802         * lib/fts_.h: Assume GNULIB_FTS is 1.
51803         * lib/fts.c: Likewise.
51804         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
51806 2010-03-28  Bruno Haible  <bruno@clisp.org>
51808         Fix definition of tests witness macro.
51809         * gnulib-tool (func_import): Fix definition of witness macro.
51811 2010-03-28  Bruno Haible  <bruno@clisp.org>
51813         Fix ioctl's protoype on glibc systems.
51814         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
51815         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
51816         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
51817         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
51818         signature. If not, arrange to replace the ioctl function.
51819         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
51820         REPLACE_IOCTL.
51821         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
51822         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
51823         Reported by Ludovic Courtès <ludo@gnu.org>.
51825 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
51827         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
51828         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
51829         made it so grep -r --include=GLOB* ... did not work.
51831 2010-03-26  Jim Meyering  <meyering@redhat.com>
51832             Eric Blake  <eblake@redhat.com>
51834         maint.mk: prohibit use of test's -o and -a operators
51835         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
51837 2010-03-28  Bruno Haible  <bruno@clisp.org>
51839         Remove unused GNULIB_XYZ macro definitions.
51840         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
51841         invocation.
51843 2010-03-28  Bruno Haible  <bruno@clisp.org>
51845         Mark privileged tests modules.
51846         * modules/idpriv-drop-tests (Status): New section.
51847         * modules/idpriv-droptemp-tests (Status): New section.
51849 2010-03-28  Bruno Haible  <bruno@clisp.org>
51851         Split C++ tests into separate tests modules.
51852         * modules/dirent-c++-tests: New file, extracted from
51853         modules/dirent-tests.
51854         * modules/dirent-tests: Depend on it.
51855         * modules/fcntl-h-c++-tests: New file, extracted from
51856         modules/fcntl-h-tests.
51857         * modules/fcntl-h-tests: Depend on it.
51858         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
51859         * modules/glob-tests: Depend on it.
51860         * modules/iconv-h-c++-tests: New file, extracted from
51861         modules/iconv-h-tests.
51862         * modules/iconv-h-tests: Depend on it.
51863         * modules/langinfo-c++-tests: New file, extracted from
51864         modules/langinfo-tests.
51865         * modules/langinfo-tests: Depend on it.
51866         * modules/locale-c++-tests: New file, extracted from
51867         modules/locale-tests.
51868         * modules/locale-tests: Depend on it.
51869         * modules/math-c++-tests: New file, extracted from modules/math-tests.
51870         * modules/math-tests: Depend on it.
51871         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
51872         * modules/pty-tests: Depend on it.
51873         * modules/search-c++-tests: New file, extracted from
51874         modules/search-tests.
51875         * modules/search-tests: Depend on it.
51876         * modules/signal-c++-tests: New file, extracted from
51877         modules/signal-tests.
51878         * modules/signal-tests: Depend on it.
51879         * modules/spawn-c++-tests: New file, extracted from
51880         modules/spawn-tests.
51881         * modules/spawn-tests: Depend on it.
51882         * modules/stdio-c++-tests: New file, extracted from
51883         modules/stdio-tests.
51884         * modules/stdio-tests: Depend on it.
51885         * modules/stdlib-c++-tests: New file, extracted from
51886         modules/stdlib-tests.
51887         * modules/stdlib-tests: Depend on it.
51888         * modules/string-c++-tests: New file, extracted from
51889         modules/string-tests.
51890         * modules/string-tests: Depend on it.
51891         * modules/sys_ioctl-c++-tests: New file, extracted from
51892         modules/sys_ioctl-tests.
51893         * modules/sys_ioctl-tests: Depend on it.
51894         * modules/sys_select-c++-tests: New file, extracted from
51895         modules/sys_select-tests.
51896         * modules/sys_select-tests: Depend on it.
51897         * modules/sys_socket-c++-tests: New file, extracted from
51898         modules/sys_socket-tests.
51899         * modules/sys_socket-tests: Depend on it.
51900         * modules/sys_stat-c++-tests: New file, extracted from
51901         modules/sys_stat-tests.
51902         * modules/sys_stat-tests: Depend on it.
51903         * modules/sys_time-c++-tests: New file, extracted from
51904         modules/sys_time-tests.
51905         * modules/sys_time-tests: Depend on it.
51906         * modules/time-c++-tests: New file, extracted from modules/time-tests.
51907         * modules/time-tests: Depend on it.
51908         * modules/unistd-c++-tests: New file, extracted from
51909         modules/unistd-tests.
51910         * modules/unistd-tests: Depend on it.
51911         * modules/wchar-c++-tests: New file, extracted from
51912         modules/wchar-tests.
51913         * modules/wchar-tests: Depend on it.
51914         * modules/wctype-c++-tests: New file, extracted from
51915         modules/wctype-tests.
51916         * modules/wctype-tests: Depend on it.
51917         Reported by Simon Josefsson.
51919 2010-03-28  Bruno Haible  <bruno@clisp.org>
51921         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
51922         * gnulib-tool (func_exists_module): New function, extracted from
51923         func_verify_module.
51924         (func_verify_module): Use it.
51925         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
51926         'foo' only if 'foo' exists.
51927         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
51928         module.
51930 2010-03-28  Bruno Haible  <bruno@clisp.org>
51932         gnulib-tool: Add support for special categories of tests.
51933         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
51934         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
51935         (func_usage): Document them.
51936         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
51937         inc_unportable_tests, inc_all_tests): New variables.
51938         (func_acceptable): Consider these variables.
51939         (func_modules_transitive_closure): Make it work when the 'Status' field
51940         consists of multiple words.
51941         (func_import): Store and restore the values of inc_cxx_tests,
51942         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
51943         inc_all_tests in gnulib-comp.m4.
51944         (func_create_testdir): Set inc_all_tests to true.
51945         * doc/gnulib.texi (Extra tests modules): New section.
51946         Suggested by Jim Meyering.
51948 2010-03-28  Bruno Haible  <bruno@clisp.org>
51950         ansi-c++-opt: Allow turning off the C++ build by default.
51951         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
51952         gl_CXX_CHOICE_DEFAULT_NO is defined.
51953         Requested by Eric Blake.
51955 2010-03-28  Bruno Haible  <bruno@clisp.org>
51957         unistd: Avoid #define replacements in C++ mode.
51958         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
51959         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
51960         setsockopt, shutdown, select): In C++, attach a warning to the function
51961         if possible, rather than #defining the symbol to a dysfunctional alias.
51962         Reported by John W. Eaton <jwe@gnu.org>.
51964 2010-03-28  Bruno Haible  <bruno@clisp.org>
51966         Fix link errors on mingw.
51967         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
51968         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
51969         $(LIBSOCKET).
51970         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
51971         $(LIBSOCKET).
51973 2010-03-28  Bruno Haible  <bruno@clisp.org>
51974             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51976         lib-ignore: Determine different options for different compilers.
51977         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
51978         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
51979         Add comments.
51980         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
51981         * NEWS: Mention the change.
51983 2010-03-27  Bruno Haible  <bruno@clisp.org>
51985         Remove unused GNULIB_XYZ macro definitions.
51986         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
51987         * modules/fseek (configure.ac): Likewise.
51988         * modules/ioctl (configure.ac): Likewise.
51989         * modules/open (configure.ac): Likewise.
51990         * modules/stdlib-safer (configure.ac): Likewise.
51992 2010-03-27  Bruno Haible  <bruno@clisp.org>
51994         Add a remark about certain modules.
51995         * modules/malloc (Comment): New section.
51996         * modules/realloc (Comment): Likewise.
51997         * modules/sigpipe (Comment): Likewise.
51999 2010-03-27  Bruno Haible  <bruno@clisp.org>
52001         Resolve conflict between the two kinds of module indicators.
52002         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
52003         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
52004         * modules/canonicalize (configure.ac): Invoke
52005         gl_MODULE_INDICATOR_FOR_TESTS.
52006         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
52007         GNULIB_XYZ.
52008         * tests/test-dirent-c++.cc: Likewise.
52009         * tests/test-dirent-safer.c: Likewise.
52010         * tests/test-dup2.c: Likewise.
52011         * tests/test-fchdir.c: Likewise.
52012         * tests/test-fcntl-h-c++.cc: Likewise.
52013         * tests/test-getopt.c: Likewise.
52014         * tests/test-getopt.h: Likewise.
52015         * tests/test-langinfo-c++.cc: Likewise.
52016         * tests/test-locale-c++.cc: Likewise.
52017         * tests/test-math-c++.cc: Likewise.
52018         * tests/test-pty-c++.cc: Likewise.
52019         * tests/test-search-c++.cc: Likewise.
52020         * tests/test-signal-c++.cc: Likewise.
52021         * tests/test-spawn-c++.cc: Likewise.
52022         * tests/test-stdio-c++.cc: Likewise.
52023         * tests/test-stdlib-c++.cc: Likewise.
52024         * tests/test-string-c++.cc: Likewise.
52025         * tests/test-sys_ioctl-c++.cc: Likewise.
52026         * tests/test-sys_select-c++.cc: Likewise.
52027         * tests/test-sys_socket-c++.cc: Likewise.
52028         * tests/test-sys_stat-c++.cc: Likewise.
52029         * tests/test-sys_time-c++.cc: Likewise.
52030         * tests/test-time-c++.cc: Likewise.
52031         * tests/test-unistd-c++.cc: Likewise.
52032         * tests/test-wchar-c++.cc: Likewise.
52033         * tests/uninorm/test-u8-nfc.c: Likewise.
52034         * tests/uninorm/test-u8-nfd.c: Likewise.
52035         * tests/uninorm/test-u8-nfkc.c: Likewise.
52036         * tests/uninorm/test-u8-nfkd.c: Likewise.
52037         * tests/uninorm/test-u16-nfc.c: Likewise.
52038         * tests/uninorm/test-u16-nfd.c: Likewise.
52039         * tests/uninorm/test-u16-nfkc.c: Likewise.
52040         * tests/uninorm/test-u16-nfkd.c: Likewise.
52041         * tests/uninorm/test-u32-nfc.c: Likewise.
52042         * tests/uninorm/test-u32-nfc-big.c: Likewise.
52043         * tests/uninorm/test-u32-nfd.c: Likewise.
52044         * tests/uninorm/test-u32-nfd-big.c: Likewise.
52045         * tests/uninorm/test-u32-nfkc.c: Likewise.
52046         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
52047         * tests/uninorm/test-u32-nfkd.c: Likewise.
52048         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
52049         * tests/uninorm/test-u32-normalize-big.c: Likewise.
52051 2010-03-27  Bruno Haible  <bruno@clisp.org>
52053         Distinguish two kinds of module indicators.
52054         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
52055         gl_MODULE_INDICATOR.
52056         (gl_MODULE_INDICATOR): New macro.
52057         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
52058         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
52059         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
52060         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
52061         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
52062         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
52063         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
52064         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
52065         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
52066         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
52067         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
52068         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
52069         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
52070         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
52071         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
52072         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
52073         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
52074         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
52075         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
52076         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
52077         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
52078         * modules/cloexec (configure.ac): Likewise.
52079         * modules/getopt-gnu (configure.ac): Likewise.
52080         * modules/uninorm/u8-normalize (configure.ac): Likewise.
52081         * modules/uninorm/u16-normalize (configure.ac): Likewise.
52082         * modules/uninorm/u32-normalize (configure.ac): Likewise.
52083         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
52085 2010-03-27  Bruno Haible  <bruno@clisp.org>
52087         New module description field 'Comment'.
52088         * gnulib-tool: New option --extract-comment.
52089         (func_usage): Document it.
52090         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
52091         (func_get_comment): New function.
52092         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
52094 2010-03-27  Bruno Haible  <bruno@clisp.org>
52096         Addendum to 2010-02-07 commit.
52097         * gnulib-tool (func_usage): Document --extract-applicability option.
52099 2010-03-27  Bruno Haible  <bruno@clisp.org>
52101         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
52102         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
52103         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
52104         rather than link errors.
52106 2010-03-27  Bruno Haible  <bruno@clisp.org>
52108         Avoid side effects from tests-related modules on the compilation of lib.
52109         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
52110         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
52111         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
52112         parameter. Emit into AM_CPPFLAGS a definition of the designated C
52113         macro.
52114         (func_import): Define a witness macro. Assign it a value that depends
52115         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
52116         tests-related modules.
52117         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
52118         Reported by Jim Meyering.
52120 2010-03-27  Bruno Haible  <bruno@clisp.org>
52122         Factorize common .m4 code.
52123         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
52124         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
52125         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
52126         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
52127         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
52128         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
52129         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
52130         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
52131         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
52132         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
52133         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
52134         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
52135         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
52136         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
52137         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
52138         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
52139         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
52140         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
52141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
52142         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
52143         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
52144         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
52145         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
52146         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
52147         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
52148         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
52149         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
52150         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
52151         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
52152         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
52153         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
52154         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
52156 2010-03-27  Bruno Haible  <bruno@clisp.org>
52158         Fix a compilation error on Cygwin with g++ >= 4.3.
52159         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
52160         if it is undefined or if we alias it to chmod.
52161         (lstat): Don't warn about the use of this function if it is undefined
52162         or if we alias it to stat.
52163         Reported by Simon Josefsson.
52165 2010-03-27  Bruno Haible  <bruno@clisp.org>
52167         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
52168         * modules/getlogin (configure.ac): Update.
52170         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
52171         * modules/getlogin_r (configure.ac): Update.
52173         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
52174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
52175         * modules/inet_ntop (configure.ac): Update.
52177         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
52178         * modules/inet_pton (configure.ac): Update.
52180         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
52181         * modules/mbslen (configure.ac): Update.
52183         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
52184         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
52185         * modules/forkpty (configure.ac): Update.
52186         * modules/openpty (configure.ac): Update.
52188 2010-03-26  Simon Josefsson  <simon@josefsson.org>
52190         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
52191         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
52193 2010-03-25  Eric Blake  <eblake@redhat.com>
52195         maint: use pragma consistently across replacement headers
52196         * lib/ctype.in.h (system_header): Hoist for consistent placement.
52197         * lib/dirent.in.h (system_header): Likewise.
52198         * lib/errno.in.h (system_header): Likewise.
52199         * lib/float.in.h (system_header): Likewise.
52200         * lib/getopt.in.h (system_header): Likewise.
52201         * lib/iconv.in.h (system_header): Likewise.
52202         * lib/inttypes.in.h (system_header): Likewise.
52203         * lib/langinfo.in.h (system_header): Likewise.
52204         * lib/locale.in.h (system_header): Likewise.
52205         * lib/math.in.h (system_header): Likewise.
52206         * lib/netdb.in.h (system_header): Likewise.
52207         * lib/netinet_in.in.h (system_header): Likewise.
52208         * lib/pty.in.h (system_header): Likewise.
52209         * lib/sched.in.h (system_header): Likewise.
52210         * lib/se-selinux.in.h (system_header): Likewise.
52211         * lib/search.in.h (system_header): Likewise.
52212         * lib/spawn.in.h (system_header): Likewise.
52213         * lib/stdarg.in.h (system_header): Likewise.
52214         * lib/stdint.in.h (system_header): Likewise.
52215         * lib/string.in.h (system_header): Likewise.
52216         * lib/strings.in.h (system_header): Likewise.
52217         * lib/sys_file.in.h (system_header): Likewise.
52218         * lib/sys_ioctl.in.h (system_header): Likewise.
52219         * lib/sys_socket.in.h (system_header): Likewise.
52220         * lib/sys_times.in.h (system_header): Likewise.
52221         * lib/sys_utsname.in.h (system_header): Likewise.
52222         * lib/sys_wait.in.h (system_header): Likewise.
52223         * lib/sysexits.in.h (system_header): Likewise.
52224         * lib/unistd.in.h (system_header): Likewise.
52225         * lib/wctype.in.h (system_header): Likewise.
52227         arpa/inet: fix mingw compilation warning
52228         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
52229         Reported by Matthew Bolte.
52231 2010-03-25  Bruno Haible  <bruno@clisp.org>
52233         Avoid collision between gnulib wrapper and libintl wrapper.
52234         * lib/printf.c (printf): Don't define if a printf wrapper is already
52235         defined in intl/printf.c.
52236         Reported by Michel Boaventura <michel@michelboaventura.com>.
52238 2010-03-25  Bruno Haible  <bruno@clisp.org>
52240         Use ANSI C.
52241         * lib/readutmp.h (getutent): Provide ANSI C prototype.
52243 2010-03-25  Bruno Haible  <bruno@clisp.org>
52245         Minor formatting changes.
52246         * lib/acosl.c: Insert space before function argument list.
52247         * lib/argz.c: Likewise.
52248         * lib/asinl.c: Likewise.
52249         * lib/expl.c: Likewise.
52250         * lib/gen-uni-tables.c: Likewise.
52251         * lib/gettext.h: Likewise.
52252         * lib/glthread/lock.h: Likewise.
52253         * lib/tanl.c: Likewise.
52254         * lib/uniname/uniname.c: Likewise.
52255         * tests/test-idpriv-drop.c: Likewise.
52256         * tests/test-idpriv-droptemp.c: Likewise.
52257         * tests/test-lock.c: Likewise.
52258         * tests/test-tls.c: Likewise.
52259         * lib/argp-help.c: Insert space before function-like macro argument
52260         list.
52261         * lib/memcmp.c: Likewise.
52262         * tests/test-base64.c: Likewise.
52263         * lib/localename.c: Insert space before sizeof's argument list.
52264         * lib/safe-alloc.h: Likewise.
52265         * lib/file-set.h: Insert space before macro argument list.
52266         * tests/test-argp.c: Likewise.
52267         * lib/argp-namefrob.h: Insert space before function parameter list.
52268         * lib/getaddrinfo.c: Likewise.
52269         * lib/netdb.in.h: Likewise.
52270         * lib/parse-duration.h: Likewise.
52271         * lib/parse-duration.c: Likewise.
52272         * lib/poll.c: Likewise.
52273         * lib/select.c: Likewise.
52274         * lib/trim.h: Likewise.
52275         * tests/test-usleep.c: Likewise.
52276         * lib/ldexpl.c: Insert space before function parameter list and before
52277         function argument list.
52278         * lib/logl.c: Likewise.
52279         * lib/sqrtl.c: Likewise.
52280         * lib/trim.c: Likewise.
52281         * lib/cosl.c: Use GNU style indentation. Insert space before function
52282         argument list.
52283         * lib/sinl.c: Likewise.
52284         * lib/tsearch.c: Insert space after 'for'.
52285         Reported by Jim Meyering.
52287 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
52289         * maint.mk (sc_Wundef_boolean): Check for the presence of the
52290         config header before grepping, as it's not present before
52291         autoreconf/configure are run.  Reported by Simon Josefsson.
52293 2010-03-23  Bruno Haible  <bruno@clisp.org>
52295         pt_chown: Make it work with automake < 1.11.
52296         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
52297         Reported by Simon Josefsson.
52299 2010-03-23  Bruno Haible  <bruno@clisp.org>
52301         pt_chown: Don't depend on GPLed modules.
52302         * lib/pt_chown.c: Don't include idpriv.h.
52303         (main): Don't drop privileges.
52304         * modules/pt_chown (Depends-on): Remove idpriv-drop.
52305         Reported by Simon Josefsson.
52307 2010-03-24  Simon Josefsson  <simon@josefsson.org>
52309         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
52310         suggestions from karl@freefriends.org (Karl Berry).
52312 2010-03-22  Eric Blake  <eblake@redhat.com>
52314         gethostname: further tweaks
52315         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
52316         are overriding gethostname.
52317         Suggested by Bruno Haible.
52319 2010-03-21  Bruno Haible  <bruno@clisp.org>
52321         Fix comments.
52322         * lib/forkpty.c (rpl_forkpty): Fix comment.
52323         * lib/openpty.c (rpl_openpty): Likewise.
52324         Reported by Eric Blake.
52326 2010-03-22  Eric Blake  <eblake@redhat.com>
52328         gethostname: fix build on mingw
52329         * lib/unistd.in.h (includes): Work around fact that mingw
52330         <winsock2.h> re-includes <unistd.h>, by avoiding any
52331         redeclarations if we are being included by <winsock2.h>.
52332         Reported by Matthias Bolte.
52334 2010-03-21  Bruno Haible  <bruno@clisp.org>
52336         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52337         * lib/forkpty.c (forkpty): New replacement function, from glibc with
52338         modifications.
52339         * lib/pty.in.h (forkpty): Update declaration. Add comments.
52340         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
52341         provide the replacement.
52342         * modules/forkpty (Depends-on): Add openpty, login_tty.
52343         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
52344         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
52345         * doc/glibc-functions/forkpty.texi: More supported platforms.
52346         * config/srclist.txt: Add forkpty.c (commented).
52348 2010-03-21  Bruno Haible  <bruno@clisp.org>
52350         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
52351         (Makefile.am): Verify that PTY_LIB is defined.
52353         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
52355 2010-03-21  Bruno Haible  <bruno@clisp.org>
52357         Tests for module 'login_tty'.
52358         * modules/login_tty-tests: New file.
52359         * tests/test-login_tty.c: New file.
52361         New module 'login_tty'.
52362         * lib/login_tty.c: New file.
52363         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
52364         * modules/login_tty: New file.
52365         * doc/glibc-functions/login_tty.texi: Mention the new module.
52367 2010-03-21  Bruno Haible  <bruno@clisp.org>
52369         login_tty: Documentation.
52370         * doc/glibc-functions/login_tty.texi: New file.
52371         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
52373 2010-03-21  Bruno Haible  <bruno@clisp.org>
52375         pty: Consistent macro naming.
52376         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
52377         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
52378         * modules/pty (configure.ac): Update.
52380 2010-03-21  Bruno Haible  <bruno@clisp.org>
52382         Tests for openpty: Make stricter.
52383         * tests/test-openpty.c (main): Add test of canonical processing and
52384         erase.
52385         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
52387         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52388         * lib/openpty.c (openpty): New replacement function.
52389         * lib/pty.in.h: Include <termios.h>.
52390         (openpty): Update declaration. Add comments.
52391         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
52392         is not declared, arrange to provide the replacement. Check for _getpty
52393         and posix_openpt.
52394         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
52395         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
52396         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
52397         * modules/pty-tests (test_pty_c___LDADD): New variable.
52398         * doc/glibc-functions/openpty.texi: More supported platforms.
52400 2010-03-21  Bruno Haible  <bruno@clisp.org>
52402         setenv: Tweaks.
52403         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
52404         the test program.
52405         * doc/posix-functions/setenv.texi: Update platforms list.
52407 2010-03-21  Bruno Haible  <bruno@clisp.org>
52409         New module 'unlockpt'.
52410         * lib/unlockpt.c: New file, from glibc with modifications.
52411         * m4/unlockpt.m4: New file.
52412         * modules/unlockpt: New file.
52413         * lib/stdlib.in.h (unlockpt): New declaration.
52414         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
52415         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
52416         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
52417         HAVE_UNLOCKPT.
52418         * doc/posix-functions/unlockpt.texi: Mention the new module.
52419         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
52420         * config/srclist.txt: Add unlockpt.c (commented).
52422 2010-03-21  Jim Meyering  <meyering@redhat.com>
52424         maint.mk: prohibit inclusion of "intprops.h" without use
52425         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
52427 2010-03-21  Bruno Haible  <bruno@clisp.org>
52429         New module 'grantpt'.
52430         * lib/grantpt.c: New file, from glibc with modifications.
52431         * m4/grantpt.m4: New file.
52432         * modules/grantpt: New file.
52433         * lib/stdlib.in.h (grantpt): New declaration.
52434         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
52435         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
52436         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
52437         HAVE_GRANTPT.
52438         * doc/posix-functions/grantpt.texi: Mention the new module.
52439         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
52440         * config/srclist.txt: Add grantpt.c (commented).
52442 2010-03-21  Bruno Haible  <bruno@clisp.org>
52444         New module 'pt_chown'.
52445         * lib/pt_chown.c: New file, from glibc with modifications.
52446         * lib/pty-private.h: New file, from glibc with modifications.
52447         * modules/pt_chown: New file.
52448         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
52450 2010-03-21  Bruno Haible  <bruno@clisp.org>
52452         Tests for module 'ptsname'.
52453         * modules/ptsname-tests: New file.
52454         * tests/test-ptsname.c: New file.
52456         New module 'ptsname'.
52457         * lib/ptsname.c: New file, from glibc with modifications.
52458         * m4/ptsname.m4: New file.
52459         * modules/ptsname: New file.
52460         * lib/stdlib.in.h (ptsname): New declaration.
52461         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
52462         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
52463         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
52464         HAVE_PTSNAME.
52465         * doc/posix-functions/ptsname.texi: Mention the new module.
52466         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
52467         * config/srclist.txt: Add ptsname.c (commented).
52469 2010-03-21  Bruno Haible  <bruno@clisp.org>
52471         Tests for module 'ttyname_r'.
52472         * modules/ttyname_r-tests: New file.
52473         * tests/test-ttyname_r.c: New file.
52475         New module 'ttyname_r'.
52476         * lib/ttyname_r.c: New file.
52477         * m4/ttyname_r.m4: New file.
52478         * modules/ttyname_r: New file.
52479         * lib/unistd.in.h (ttyname_r): New declaration.
52480         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
52481         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
52482         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
52483         HAVE_TTYNAME_R.
52484         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
52485         * doc/posix-functions/ttyname_r.texi: Mention the new module.
52487 2010-03-20  Bruno Haible  <bruno@clisp.org>
52489         signal: Undefine macro definitions in C++ mode.
52490         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
52491         sigfillset): Undefine macro definitions from the system header in C++
52492         mode.
52493         Reported by John W. Eaton <jwe@gnu.org>.
52495 2010-03-20  Bruno Haible  <bruno@clisp.org>
52497         Ensure no #include statements inside extern "C" { ... }.
52498         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
52499         contain #include statements.
52500         * lib/time.in.h: Likewise.
52502 2010-03-20  Bruno Haible  <bruno@clisp.org>
52504         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
52505         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
52506         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
52507         Reported by John W. Eaton <jwe@gnu.org>.
52509 2010-03-20  Bruno Haible  <bruno@clisp.org>
52511         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
52512         Reported by Jim Meyering.
52514 2010-03-20  Bruno Haible  <bruno@clisp.org>
52516         pipe: Set errno upon failure.
52517         * lib/pipe.h: Specify that when -1 is returned, errno is set.
52518         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
52519         errno value in error message.
52521 2010-03-20  Bruno Haible  <bruno@clisp.org>
52522             Jim Meyering  <meyering@redhat.com>
52524         lchown: Avoid "unused variable" warning.
52525         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
52527 2010-03-20  Bruno Haible  <bruno@clisp.org>
52529         Work around unlink() bug on MacOS X 10.5.6.
52530         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
52531         attempting to unlink a parent directory.
52532         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
52533         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
52534         activate for the replacement function.
52535         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
52537 2010-03-20  Bruno Haible  <bruno@clisp.org>
52539         Fix link errors on Solaris 8.
52540         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
52541         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
52543 2010-03-19  Jim Meyering  <meyering@redhat.com>
52545         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
52546         The _LIBC implementation of build_range_exp correctly honors the
52547         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
52548         However, the non-_LIBC implementation would ignore that syntax-bit
52549         flag and return REG_ERANGE unconditionally.
52550         This change makes it honor that flag.
52551         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
52552         Make two pointer parameters "const".
52553         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
52554         (parse_bracket_exp): Update caller.
52556         regex.m4: correct the reversed range endpoint ([b-a]) test
52557         * m4/regex.m4: When requiring that [b-a] evoke failure,
52558         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
52559         test pass once again for x86-based systems.
52561 2010-03-19  Bruno Haible  <bruno@clisp.org>
52563         scandir: Fix link error on Solaris 8.
52564         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
52565         macros.
52567 2010-03-19  Bruno Haible  <bruno@clisp.org>
52569         getusershell: Fix documentation.
52570         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
52571         module.
52572         * doc/glibc-functions/setusershell.texi: Likewise.
52574         getusershell: Provide declaration, missing on Solaris 9.
52575         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
52576         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
52577         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
52578         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
52579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52580         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
52581         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
52582         HAVE_GETUSERSHELL.
52583         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
52585 2010-03-19  Bruno Haible  <bruno@clisp.org>
52587         wctype: Provide iswblank function.
52588         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
52589         exists and is fine.
52590         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
52591         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
52592         * tests/test-wctype.c (main): Re-enable the iswblank tests.
52593         * doc/posix-functions/iswblank.texi: Update.
52595 2010-03-19  Bruno Haible  <bruno@clisp.org>
52597         Tests of module 'pty' in C++ mode.
52598         * modules/pty-tests: New file.
52599         * tests/test-pty-c++.cc: New file.
52600         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52602 2010-03-19  Eric Blake  <eblake@redhat.com>
52604         logb: fix documentation
52605         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
52606         1.5 declaration bug.
52608         forkpty, openpty: prefer glibc's const-safe prototype
52609         * lib/forkpty.c (rpl_forkpty): New file.
52610         * lib/openpty.c (rpl_openpty): Likewise.
52611         * modules/forkpty (Files): Distribute it.
52612         * modules/openpty (Files): Likewise.
52613         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
52614         check...
52615         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
52616         replacement for non-const BSD signature.
52617         * modules/pty (Makefile.am): Substitute witnesses.
52618         * lib/pty.in.h (forkpty, openpty): Declare replacements.
52619         * tests/test-forkpty.c: Update signature check.
52620         * tests/test-openpty.c: Likewise.
52621         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
52622         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52624         forkpty, openpty: split functions into new modules
52625         * modules/pty (Makefile.am): Substitute new witnesses.
52626         (Libraries): Move library detection...
52627         * modules/forkpty: ...into new module.
52628         * modules/openpty: Another new module.
52629         * modules/pty-tests: Rename and split...
52630         * modules/forkpty-tests: ...to this...
52631         * modules/openpty-tests: ...and this.
52632         * tests/test-pty.c: Rename and split...
52633         * tests/test-forkpty.c: ...to this...
52634         * tests/test-openpty.c: ...and this.
52635         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
52636         (gl_PTY): Split library searching...
52637         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
52638         (gl_FORKPTY, gl_OPENPTY): New macros.
52639         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
52640         * NEWS: Mention the split.
52641         * MODULES.html.sh (Misc): Document the modules.
52642         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
52643         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52645         pty: improve replacement header
52646         * lib/pty.in.h: New file.
52647         * modules/pty (Files): Ship it.
52648         (Makefile.am): Always build replacement.
52649         * m4/pty.m4: Rename...
52650         * m4/pty_h.m4: ...to this.
52651         (gl_PTY): Modernize setting of witness macros; update check of
52652         forkpty to take proper advantage of cache.
52653         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
52655         getopt: avoid compiler warning
52656         * lib/getopt.c (attribute_hidden): Remove unused macro.
52658 2010-03-18  Bruno Haible  <bruno@clisp.org>
52660         Fix link errors on Solaris 8.
52661         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
52662         * modules/search-tests (test_search_c___LDADD): Likewise.
52663         * modules/signal-tests (test_signal_c___LDADD): Likewise.
52664         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
52665         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
52666         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
52667         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
52668         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
52669         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
52671 2010-03-18  Bruno Haible  <bruno@clisp.org>
52673         Fix bug introduced on 2010-03-14.
52674         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
52675         (gl_SPAWN_H): Require it.
52676         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
52677         Reported by Simon Josefsson.
52679 2010-03-18  Bruno Haible  <bruno@clisp.org>
52681         Fix typo introduced on 2009-12-31.
52682         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
52683         posix_spawn_file_actions_adddup2.
52685 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
52686         and Eric Blake  <eblake@redhat.com>
52688         test-vc-list-files-git: make more robust
52689         * tests/test-vc-list-files-git.sh: Unset problematic environment
52690         variables.  Chain commands together.
52692 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
52694         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
52695         `AC_CHECK_DECL' invocation.
52697 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
52699         * lib/inttostr.c (inttostr): Make sure the invocation of verify
52700         appears before executable statements. Suggested by Petr Sumbera
52701         <Petr.Sumbera@Sun.COM>.
52703 2010-03-14  Bruno Haible  <bruno@clisp.org>
52705         * tests/test-flock.c (test_exclusive): Comment out a test that causes
52706         portability problems. Instead use a simpler test.
52707         (main): Check that invalid arguments are rejected only on Linux.
52709 2010-03-14  Bruno Haible  <bruno@clisp.org>
52711         Fix bug introduced on 2009-12-31.
52712         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
52713         gl_PREREQ_SYS_H_WINSOCK2 always.
52714         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
52715         SYS_SOCKET_H variable.
52716         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
52717         Update comments.
52718         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
52719         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52720         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52721         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
52722         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
52724 2010-03-14  Bruno Haible  <bruno@clisp.org>
52726         Fix values returned by sinl, cosl.
52727         * lib/trigl.h: Add specification comments.
52728         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
52729         that combines the values from the precomputed table with the values of
52730         the Chebyshev polynomials.
52732 2010-03-14  Bruno Haible  <bruno@clisp.org>
52734         Fix compilation error when modules 'posix_spawn[p]' are not used.
52735         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
52736         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
52738 2010-03-14  Bruno Haible  <bruno@clisp.org>
52740         Fix compilation error on mingw when module 'time_r' is not used.
52741         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
52742         is 1.
52743         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
52744         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
52745         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
52746         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
52748 2010-03-14  Bruno Haible  <bruno@clisp.org>
52750         Fix compilation error with Sun C.
52751         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
52752         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
52753         instead of GCC specific ULONG_LONG_MAX.
52754         * lib/xstrtoll.c: Likewise.
52755         * lib/xstrtoull.c: Likewise.
52757 2010-03-13  Bruno Haible  <bruno@clisp.org>
52759         Allow the user to disable C++ code and tests.
52760         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
52761         (gl_PROG_ANSI_CXX): Require it.
52763 2010-03-13  Bruno Haible  <bruno@clisp.org>
52765         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
52766         cases.
52768 2010-03-13  Bruno Haible  <bruno@clisp.org>
52770         Test that gnulib does not break the standard C++ headers.
52771         * tests/test-locale-c++2.cc: New file.
52772         * modules/locale-tests (Files): Add it.
52773         (Makefile.am): Compile it for test-locale-c++.
52774         * tests/test-math-c++2.cc: New file.
52775         * modules/math-tests (Files): Add it.
52776         (Makefile.am): Compile it for test-math-c++.
52777         * tests/test-signal-c++2.cc: New file.
52778         * modules/signal-tests (Files): Add it.
52779         (Makefile.am): Compile it for test-signal-c++.
52780         * tests/test-stdio-c++2.cc: New file.
52781         * modules/stdio-tests (Files): Add it.
52782         (Makefile.am): Compile it for test-stdio-c++.
52783         * tests/test-stdlib-c++2.cc: New file.
52784         * modules/stdlib-tests (Files): Add it.
52785         (Makefile.am): Compile it for test-stdlib-c++.
52786         * tests/test-string-c++2.cc: New file.
52787         * modules/string-tests (Files): Add it.
52788         (Makefile.am): Compile it for test-string-c++.
52789         * tests/test-time-c++2.cc: New file.
52790         * modules/time-tests (Files): Add it.
52791         (Makefile.am): Compile it for test-time-c++.
52792         Reported by John W. Eaton <jwe@gnu.org>.
52794 2010-03-13  Bruno Haible  <bruno@clisp.org>
52796         * gnulib-tool (func_usage): Clarify which options are available for
52797         --create-testdir and --create-megatestdir.
52799 2010-03-13  Bruno Haible  <bruno@clisp.org>
52801         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
52802         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
52803         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
52804         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
52805         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
52806         when appropriate.
52807         Reported by Jim Meyering.
52809 2010-03-12  Simon Josefsson  <simon@josefsson.org>
52811         * gnulib-tool (func_import): Explain origin of code.
52813 2010-03-12  Bruno Haible  <bruno@clisp.org>
52815         Fix problem with automake's definition of CXXLINK.
52816         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
52817         Reported by Simon Josefsson and Ludovic Courtès.
52819 2010-03-12  Bruno Haible  <bruno@clisp.org>
52821         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
52822         stable releases.
52824 2010-03-11  Bruno Haible  <bruno@clisp.org>
52826         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
52827         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
52828         whether the system provides one variant or multiple variants of the
52829         function.
52830         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
52831         C++ compilers.
52832         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
52833         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
52834         Reported by Jim Meyering.
52836 2010-03-09  Simon Josefsson  <simon@josefsson.org>
52838         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
52840 2010-03-08  Bruno Haible  <bruno@clisp.org>
52842         gnulib-tool: Add support for --libtool in --create-testdir.
52843         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
52844         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
52846 2010-03-08  Eric Blake  <eblake@redhat.com>
52848         gnulib-tool.texi: mention possibility of git submodule
52849         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
52850         submodules.
52851         * doc/.gitignore: Ignore another generated file.
52853 2010-03-08  Karl Berry  <karl@gnu.org>
52855         * doc/gnulib-tool.texi (VCS Issues): Mention third option
52856         of committing gnulib files while skipping others.
52858 2010-03-07  Bruno Haible  <bruno@clisp.org>
52860         Tests of module 'wctype' in C++ mode.
52861         * tests/test-wctype-c++.cc: New file.
52862         * modules/wctype-tests (Files): Add it and tests/signature.h.
52863         (Depends-on): Add ansi-c++-opt.
52864         (Makefile.am): Arrange to compile and run test-wctype-c++.
52866         Tests of module 'wchar' in C++ mode.
52867         * tests/test-wchar-c++.cc: New file.
52868         * modules/wchar-tests (Files): Add it and tests/signature.h.
52869         (Depends-on): Add ansi-c++-opt.
52870         (Makefile.am): Arrange to compile and run test-wchar-c++.
52871         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
52872         gl_MODULE_INDICATOR.
52874         Tests of module 'unistd' in C++ mode.
52875         * tests/test-unistd-c++.cc: New file.
52876         * modules/unistd-tests (Files): Add it and tests/signature.h.
52877         (Depends-on): Add ansi-c++-opt.
52878         (Makefile.am): Arrange to compile and run test-unistd-c++.
52879         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
52880         gl_MODULE_INDICATOR.
52882         Tests of module 'time' in C++ mode.
52883         * tests/test-time-c++.cc: New file.
52884         * modules/time-tests (Files): Add it and tests/signature.h.
52885         (Depends-on): Add ansi-c++-opt.
52886         (Makefile.am): Arrange to compile and run test-time-c++.
52887         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52889         Tests of module 'sys_time' in C++ mode.
52890         * tests/test-sys_time-c++.cc: New file.
52891         * modules/sys_time-tests (Files): Add it and tests/signature.h.
52892         (Depends-on): Add ansi-c++-opt.
52893         (Makefile.am): Arrange to compile and run test-sys_time-c++.
52894         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
52895         gl_MODULE_INDICATOR.
52897         Tests of module 'sys_stat' in C++ mode.
52898         * tests/test-sys_stat-c++.cc: New file.
52899         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
52900         (Depends-on): Add ansi-c++-opt.
52901         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
52902         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
52903         gl_MODULE_INDICATOR.
52905         Tests of module 'sys_socket' in C++ mode.
52906         * tests/test-sys_socket-c++.cc: New file.
52907         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
52908         (Depends-on): Add ansi-c++-opt.
52909         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
52910         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
52911         gl_MODULE_INDICATOR.
52913         Tests of module 'sys_select' in C++ mode.
52914         * tests/test-sys_select-c++.cc: New file.
52915         * modules/sys_select-tests (Files): Add it and tests/signature.h.
52916         (Depends-on): Add ansi-c++-opt.
52917         (Makefile.am): Arrange to compile and run test-sys_select-c++.
52918         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
52919         gl_MODULE_INDICATOR.
52921         Tests of module 'sys_ioctl' in C++ mode.
52922         * tests/test-sys_ioctl-c++.cc: New file.
52923         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
52924         (Depends-on): Add ansi-c++-opt.
52925         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
52926         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
52927         gl_MODULE_INDICATOR.
52929         Tests of module 'string' in C++ mode.
52930         * tests/test-string-c++.cc: New file.
52931         * modules/string-tests (Files): Add it and tests/signature.h.
52932         (Depends-on): Add ansi-c++-opt.
52933         (Makefile.am): Arrange to compile and run test-string-c++.
52934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
52935         gl_MODULE_INDICATOR.
52937         Tests of module 'stdlib' in C++ mode.
52938         * tests/test-stdlib-c++.cc: New file.
52939         * modules/stdlib-tests (Files): Add it and tests/signature.h.
52940         (Depends-on): Add ansi-c++-opt.
52941         (Makefile.am): Arrange to compile and run test-stdlib-c++.
52942         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
52943         gl_MODULE_INDICATOR.
52945         Tests of module 'stdio' in C++ mode.
52946         * tests/test-stdio-c++.cc: New file.
52947         * modules/stdio-tests (Files): Add it and tests/signature.h.
52948         (Depends-on): Add ansi-c++-opt.
52949         (Makefile.am): Arrange to compile and run test-stdio-c++.
52950         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
52951         gl_MODULE_INDICATOR.
52953         Tests of module 'spawn' in C++ mode.
52954         * tests/test-spawn-c++.cc: New file.
52955         * modules/spawn-tests (Files): Add it and tests/signature.h.
52956         (Depends-on): Add ansi-c++-opt.
52957         (Makefile.am): Arrange to compile and run test-spawn-c++.
52958         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
52959         gl_MODULE_INDICATOR.
52961         Tests of module 'signal' in C++ mode.
52962         * tests/test-signal-c++.cc: New file.
52963         * modules/signal-tests (Files): Add it and tests/signature.h.
52964         (Depends-on): Add ansi-c++-opt.
52965         (Makefile.am): Arrange to compile and run test-signal-c++.
52966         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
52967         gl_MODULE_INDICATOR.
52969         Tests of module 'search' in C++ mode.
52970         * tests/test-search-c++.cc: New file.
52971         * modules/search-tests (Files): Add it and tests/signature.h.
52972         (Depends-on): Add ansi-c++-opt.
52973         (Makefile.am): Arrange to compile and run test-search-c++.
52974         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
52975         gl_MODULE_INDICATOR.
52977         Tests of module 'math' in C++ mode.
52978         * tests/test-math-c++.cc: New file.
52979         * modules/math-tests (Files): Add it and tests/signature.h.
52980         (Depends-on): Add ansi-c++-opt.
52981         (Makefile.am): Arrange to compile and run test-math-c++.
52982         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52984         Tests of module 'locale' in C++ mode.
52985         * tests/test-locale-c++.cc: New file.
52986         * modules/locale-tests (Files): Add it and tests/signature.h.
52987         (Depends-on): Add ansi-c++-opt.
52988         (Makefile.am): Arrange to compile and run test-locale-c++.
52989         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
52990         gl_MODULE_INDICATOR.
52992         Tests of module 'langinfo' in C++ mode.
52993         * tests/test-langinfo-c++.cc: New file.
52994         * modules/langinfo-tests (Files): Add it and tests/signature.h.
52995         (Depends-on): Add ansi-c++-opt.
52996         (Makefile.am): Arrange to compile and run test-langinfo-c++.
52997         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
52998         gl_MODULE_INDICATOR.
53000         Tests of module 'iconv-h' in C++ mode.
53001         * tests/test-iconv-h-c++.cc: New file.
53002         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
53003         (Depends-on): Add ansi-c++-opt.
53004         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
53006         Tests of module 'glob' in C++ mode.
53007         * tests/test-glob-c++.cc: New file.
53008         * modules/glob-tests (Files): Add it.
53009         (Depends-on): Add ansi-c++-opt.
53010         (Makefile.am): Arrange to compile and run test-glob-c++.
53012         Tests of module 'fcntl-h' in C++ mode.
53013         * tests/test-fcntl-h-c++.cc: New file.
53014         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
53015         (Depends-on): Add ansi-c++-opt.
53016         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
53017         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
53018         gl_MODULE_INDICATOR.
53020         Tests of module 'dirent' in C++ mode.
53021         * tests/test-dirent-c++.cc: New file.
53022         * modules/dirent-tests (Files): Add it and tests/signature.h.
53023         (Depends-on): Add ansi-c++-opt.
53024         (Makefile.am): Arrange to compile and run test-dirent-c++.
53025         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
53026         gl_MODULE_INDICATOR.
53028         New module 'ansi-c++-opt'.
53029         * modules/ansi-c++-opt: New file.
53030         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
53032         Document C++ namespace mode.
53033         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
53035         wctype: Avoid #define replacements in C++ mode.
53036         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
53037         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
53038         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
53039         In C++, define a namespaced alias symbol.
53040         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
53041         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
53042         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
53043         rule.
53045         wchar: Avoid #define replacements in C++ mode.
53046         * lib/wchar.in.h: Include c++defs.h.
53047         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
53048         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
53049         symbol.
53050         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
53051         * modules/wchar (Depends-on): Add c++defs.
53052         (Makefile.am): Update wchar.h rule.
53054         unistd: Avoid #define replacements in C++ mode.
53055         * lib/unistd.in.h: Include c++defs.h.
53056         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
53057         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
53058         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
53059         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
53060         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
53061         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
53062         symbol.
53063         (environ): Update.
53064         * modules/unistd (Depends-on): Add c++defs.
53065         (Makefile.am): Update unistd.h rule.
53067         time: Avoid #define replacements in C++ mode.
53068         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
53069         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
53070         define a namespaced alias symbol.
53071         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
53072         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
53073         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
53074         * modules/time (Depends-on): Add c++defs, warn-on-use.
53075         (Makefile.am): Update time.h rule.
53076         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
53077         * modules/nanosleep (configure.ac): Likewise.
53078         * modules/strptime (configure.ac): Likewise.
53079         * modules/timegm (configure.ac): Likewise.
53081         sys_time: Avoid #define replacements in C++ mode.
53082         * lib/sys_time.in.h: Include c++defs.h.
53083         (gettimeofday): In C++, define a namespaced alias symbol.
53084         * modules/sys_time (Depends-on): Add c++defs.
53085         (Makefile.am): Update sys/time.h rule.
53087         sys_stat: Avoid #define replacements in C++ mode.
53088         * lib/sys_stat.in.h: Include c++defs.h.
53089         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
53090         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
53091         namespaced alias symbol.
53092         In C++, define a namespaced alias symbol.
53093         * modules/sys_stat (Depends-on): Add c++defs.
53094         (Makefile.am): Update sys/stat.h rule.
53096         sys_socket: Avoid #define replacements in C++ mode.
53097         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
53098         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
53099         definitions also when the system has a <sys/socket.h>.
53100         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53101         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
53102         In C++, define a namespaced alias symbol.
53103         * modules/sys_socket (Depends-on): Add c++defs.
53104         (Makefile.am): Update sys/socket.h rule.
53106         sys_select: Avoid #define replacements in C++ mode.
53107         * lib/sys_select.in.h: Include c++defs.h. Enable the function
53108         definitions also when the system has a <sys/select.h>.
53109         (select): In C++, define a namespaced alias symbol.
53110         * modules/sys_select (Depends-on): Add c++defs.
53111         (Makefile.am): Update sys/select.h rule.
53113         sys_ioctl: Avoid #define replacements in C++ mode.
53114         * lib/sys_ioctl.in.h: Include c++defs.h.
53115         (ioctl): In C++, define a namespaced alias symbol.
53116         * modules/sys_ioctl (Depends-on): Add c++defs.
53117         (Makefile.am): Update sys/ioctl.h rule.
53119         string: Avoid #define replacements in C++ mode.
53120         * lib/string.in.h: Include c++defs.h.
53121         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
53122         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
53123         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
53124         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
53125         strsignal, strverscmp): In C++, define a namespaced alias symbol.
53126         * modules/string (Depends-on): Add c++defs.
53127         (Makefile.am): Update string.h rule.
53129         stdlib: Avoid #define replacements in C++ mode.
53130         * lib/stdlib.in.h: Include c++defs.h.
53131         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
53132         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
53133         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
53134         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
53135         symbol.
53136         * modules/stdlib (Depends-on): Add c++defs.
53137         (Makefile.am): Update stdlib.h rule.
53139         stdio: Avoid #define replacements in C++ mode.
53140         * lib/stdio.in.h: Include c++defs.h.
53141         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
53142         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
53143         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
53144         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
53145         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
53146         namespaced alias symbol.
53147         * modules/stdio (Depends-on): Add c++defs.
53148         (Makefile.am): Update stdio.h rule.
53150         spawn: Avoid #define replacements in C++ mode.
53151         * lib/spawn.in.h: Include c++defs.h.
53152         (posix_spawn, posix_spawnp, posix_spawnattr_init,
53153         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
53154         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
53155         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
53156         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
53157         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
53158         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
53159         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
53160         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
53161         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
53162         In C++, define a namespaced alias symbol.
53163         * modules/spawn (Depends-on): Add c++defs.
53164         (Makefile.am): Update spawn.h rule.
53166         signal: Avoid #define replacements in C++ mode.
53167         * lib/signal.in.h: Include c++defs.h.
53168         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
53169         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
53170         namespaced alias symbol.
53171         * modules/signal (Depends-on): Add c++defs.
53172         (Makefile.am): Update signal.h rule.
53174         search: Avoid #define replacements in C++ mode.
53175         * lib/search.in.h: Include c++defs.h.
53176         (_gl_search_compar_fn, _gl_search_action_fn): New types.
53177         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
53178         symbol.
53179         * modules/search (Depends-on): Add c++defs.
53180         (Makefile.am): Update search.h rule.
53182         math: Avoid #define replacements in C++ mode.
53183         * lib/math.in.h: Include c++defs.h.
53184         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
53185         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
53186         trunc, truncl): In C++, define a namespaced alias symbol.
53187         * modules/math (Depends-on): Add c++defs.
53188         (Makefile.am): Update math.h rule.
53190         locale: Avoid #define replacements in C++ mode.
53191         * lib/locale.in.h: Include c++defs.h.
53192         (duplocale): In C++, define a namespaced alias symbol.
53193         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
53194         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
53195         * modules/locale (Depends-on): Add c++defs.
53196         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
53198         langinfo: Avoid #define replacements in C++ mode.
53199         * lib/langinfo.in.h: Include c++defs.h.
53200         (nl_langinfo): In C++, define a namespaced alias symbol.
53201         * modules/langinfo (Depends-on): Add c++defs.
53202         (Makefile.am): Update langinfo.h rule.
53204         iconv-h: Avoid #define replacements in C++ mode.
53205         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
53206         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
53207         symbol.
53208         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53209         whenever iconv is present.
53210         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
53211         (Makefile.am): Update iconv.h rule.
53213         glob: Avoid #define replacements in C++ mode.
53214         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
53215         (_gl_glob_errfunc_fn): New type.
53216         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
53217         symbol.
53218         * modules/glob (Depends-on): Add c++defs, warn-on-use.
53219         (Makefile.am): Update glob.h rule.
53221         fcntl-h: Avoid #define replacements in C++ mode.
53222         * lib/fcntl.in.h: Include c++defs.h.
53223         (fcntl, open, openat): In C++, define a namespaced alias symbol.
53224         * modules/fcntl-h (Depends-on): Add c++defs.
53225         (Makefile.am): Update fcntl.h rule.
53227         dirent: Avoid #define replacements in C++ mode.
53228         * lib/dirent.in.h: Include c++defs.h.
53229         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
53230         namespaced alias symbol.
53231         (dirfd): Update declaration.
53232         * modules/dirent (Depends-on): Add c++defs.
53233         (Makefile.am): Update dirent.h rule.
53235         ctype: Make it usable in C++ code.
53236         * lib/ctype.in.h: Include c++defs.h.
53237         (isblank): Declare as extern "C".
53238         * modules/ctype (Depends-on): Add c++defs.
53239         (Makefile.am): Update ctype.h rule.
53241         New module 'c++defs'.
53242         * modules/c++defs: New file.
53243         * build-aux/c++defs.h: New file.
53244         Reported by John W. Eaton <jwe@gnu.org>.
53246 2010-03-07  Bruno Haible  <bruno@clisp.org>
53248         logb: Provide missing declaration for Cygwin.
53249         * lib/math.in.h (logb): New declaration.
53250         * m4/logb.m4: New file.
53251         * modules/logb (Files): Add m4/logb.m4.
53252         (Depends-on): Add math.
53253         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
53254         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
53255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
53256         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
53257         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
53259 2010-03-07  Bruno Haible  <bruno@clisp.org>
53261         Fix test-cond link error.
53262         * tests/test-cond.c: Include <stdio.h>.
53264 2010-03-07  Bruno Haible  <bruno@clisp.org>
53266         Fix test-dirent-safer link error.
53267         * modules/dirent-safer-tests (Makefile.am): Define
53268         test_dirent_safer_LDADD.
53270 2010-03-07  Bruno Haible  <bruno@clisp.org>
53272         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
53273         among default module list.
53275 2010-03-07  Bruno Haible  <bruno@clisp.org>
53277         Fix link error on platforms with GNU libiconv.
53278         * modules/unistr/u8-strcoll-tests (Makefile): Define
53279         test_u8_strcoll_LDADD.
53280         * modules/unistr/u16-strcoll-tests (Makefile): Define
53281         test_u16_strcoll_LDADD.
53282         * modules/unistr/u32-strcoll-tests (Makefile): Define
53283         test_u32_strcoll_LDADD.
53285 2010-03-07  Bruno Haible  <bruno@clisp.org>
53287         Use POSIX declarations for socket functions.
53288         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
53289         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
53290         rpl_sendto): Change declaration to match POSIX.
53291         * lib/connect.c (rpl_connect): Likewise.
53292         * lib/accept.c (rpl_accept): Likewise.
53293         * lib/bind.c (rpl_bind): Likewise.
53294         * lib/getpeername.c (rpl_getpeername): Likewise.
53295         * lib/getsockname.c (rpl_getsockname): Likewise.
53296         * lib/recv.c (rpl_recv): Likewise.
53297         * lib/send.c (rpl_send): Likewise.
53298         * lib/recvfrom.c (rpl_recvfrom): Likewise.
53299         * lib/sendto.c (rpl_sendto): Likewise.
53301 2010-03-06  Bruno Haible  <bruno@clisp.org>
53303         Clarify access, euidaccess, faccessat.
53304         * doc/posix-functions/faccessat.texi: Mention security problem under
53305         "Other problems", not "Portability problems".
53306         * doc/posix-functions/access.texi: Likewise. Mention a related security
53307         problem.
53308         * doc/glibc-functions/euidaccess.texi: Mention security problems.
53309         * lib/euidaccess.c: Add comments about platforms.
53310         * lib/unistd.in.h (access, euidaccess): Add warnings.
53312 2010-03-07  Bruno Haible  <bruno@clisp.org>
53314         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
53315         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
53316         (POSIX_SPAWN_SETSCHEDULER): Likewise.
53317         (POSIX_SPAWN_USEVFORK): Define in a way that works when
53318         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
53319         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
53320         declare when POSIX_SPAWN_SETSCHEDULER is zero.
53321         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
53322         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
53323         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
53324         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
53325         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
53326         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
53327         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
53328         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
53329         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
53330         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
53331         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
53332         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
53333         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
53334         Likewise.
53335         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
53336         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
53337         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
53338         Likewise.
53339         * tests/test-spawn.c (main): Make it work when
53340         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
53342 2010-03-07  Bruno Haible  <bruno@clisp.org>
53344         Fix incorrect Makefile.am generation in German locale.
53345         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53346         Execute sed command with character range in C locale.
53348 2010-03-06  Bruno Haible  <bruno@clisp.org>
53350         Tests for module 'iconv-h'.
53351         * modules/iconv-h-tests: New file.
53352         * tests/test-iconv-h.c: New file.
53354         New module 'iconv-h'.
53355         * modules/iconv-h: New file.
53356         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
53357         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
53358         (configure.ac): Remove gl_ICONV_H.
53359         (Makefile.am): Remove rule for iconv.h.
53361 2010-03-06  Bruno Haible  <bruno@clisp.org>
53363         More consistent naming of *.m4 files.
53364         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
53365         * modules/wctype (Files): Update.
53367         More consistent naming of *.m4 files.
53368         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
53369         * modules/wchar (Files): Update.
53371 2010-03-06  Jim Meyering  <meyering@redhat.com>
53373         euidaccess: relax license to LGPLv2+
53374         * modules/euidaccess (License): Relax to LGPLv2+.
53376 2010-03-06  Bruno Haible  <bruno@clisp.org>
53378         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
53379         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
53380         (Makefile.am): Augment lib_SOURCES instead.
53382 2010-03-04  Jim Meyering  <meyering@redhat.com>
53384         utime: remove obsolete module
53385         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
53386         unnecessary for years, and has been marked as obsolete for 10 months.
53387         * modules/utime: Remove file.
53388         * lib/utime.c: Remove file.
53389         * m4/utime.m4: Remove file.
53390         * m4/utimes-null.m4: Remove file.
53391         * doc/posix-functions/utime.texi (utime): Remove reference to
53392         the module.  Move the sole "fixed by gnulib" item into the
53393         "problems not fixed by Gnulib" list.
53394         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
53396 2010-03-05  Simon Josefsson  <simon@josefsson.org>
53398         * modules/exit (License): Relax license to LGPLv2+.
53399         (Status): Mark as obsolete.
53400         * NEWS: Mention deprecated 'exit' module.
53401         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
53402         of now obsolete 'exit'.
53404 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53406         fts-lgpl: remove unused module
53407         * modules/fts-lgpl: Remove.
53408         * MODULES.html.sh (func_all_modules): Adjust.
53409         * check-module (find_included_lib_files): Adjust.
53410         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
53412 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
53414         copy-acl: enhance Solaris ACL error handling
53415         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
53416         * lib/set-mode-acl.c (qset_acl): Likewise.
53418 2010-03-02  Bruno Haible  <bruno@clisp.org>
53420         spawn: Don't override the system defined values on FreeBSD 8.
53421         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
53422         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
53423         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
53424         if HAVE_POSIX_SPAWN is 1.
53425         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
53427 2010-03-01  Bruno Haible  <bruno@clisp.org>
53429         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
53430         regarding Automake.
53432 2010-02-25  Bruno Haible  <bruno@clisp.org>
53434         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
53435         * gnulib-tool: Define 'echo' as a function only before the ksh alias
53436         setting, not afterwards.
53437         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
53439 2010-02-24  Eric Blake  <eblake@redhat.com>
53441         bootstrap, git-version-gen: use timestamp
53442         * build-aux/git-version-gen (scriptversion): Force UTC.
53443         * build-aux/bootstrap (scriptversion): New variable.
53445         bootstrap: allow older git
53446         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
53447         older than 1.6.4.  Requested by the libvirt project.
53449 2010-02-23  Eric Blake  <eblake@redhat.com>
53451         warn-on-use: work with old autoconf
53452         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
53453         AS_VAR semantics of autoconf 2.60.
53454         Reported by Bruno Haible.
53456         bootstrap: improve some comments
53457         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
53458         clarification comments.
53460         gettimeofday: provide correct function
53461         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
53462         when replacement is declared, otherwise provide gettimeofday.
53463         Reported by Michael Goffioul.
53465 2010-02-23  Jim Meyering  <meyering@redhat.com>
53467         lib-ignore: relax license to "unlimited", not LGPLv2+
53468         * modules/lib-ignore (License): Relax to "unlimited".
53470 2010-02-23  Jim Meyering  <meyering@redhat.com>
53472         lib-ignore: relax license to LGPLv2+
53473         * modules/lib-ignore (License): Relax to LGPLv2+.
53475 2010-02-22  Eric Blake  <eblake@redhat.com>
53477         lseek: avoid bash 3.2 broken pipe bug
53478         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
53479         warning from bash 3.2.
53480         Reported by Ben Pfaff, with analysis from Bruno Haible.
53482         bootstrap: support non-FSF copyright holder
53483         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
53484         bootstrap.conf override of COPYRIGHT_HOLDER.
53485         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
53487         bootstrap: interoperate with gettext 0.14.1
53488         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
53490         bootstrap: allow for alternate submodule location
53491         * build-aux/bootstrap (gnulib_path): New variable; use instead of
53492         hardcoding submodule location.
53493         (gnulib_mk): Allow direct use of Makefile.am.
53495         bootstrap: use GNULIB_SRCDIR to reduce disk usage
53496         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
53497         rather than reconfiguring where the submodule points.
53499         gettimeofday: restore support for platforms that lack function
53500         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
53501         replacement if function is missing.
53502         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
53503         * modules/sys_time (Makefile.am): Substitute it.
53504         * lib/sys_time.in.h (gettimeofday): Check it.
53505         Reported by Michael Goffioul.
53507 2010-02-21  Bruno Haible  <bruno@clisp.org>
53509         * lib/stdio.in.h (obstack_printf): Fix typo.
53511 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
53513         vc-list-files: use bzr ls's -R option
53514         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
53515         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
53517 2010-02-21  Jim Meyering  <meyering@redhat.com>
53519         init.sh: fix EXEEXT shims to work also for names like test-prog
53520         * tests/init.sh: Re-exec a better shell, when needed.
53521         If the current shell lacks support for posix $(...), an init.sh-using
53522         test will now try to find a shell that supports that.  If EXEEXT is
53523         nonempty, we also require support for hyphen-in-alias-name and shell
53524         substitutions like ${var#glob}.  Failure to find such a shell results
53525         in a skipped test.
53527 2010-02-21  Bruno Haible  <bruno@clisp.org>
53529         Really work around "broken pipe" error message from bash 3.2.
53530         * gnulib-tool (func_reset_sigpipe): Remove function.
53531         (echo): In bash 3.2, define to a function that uses printf.
53532         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
53534 2010-02-20  Bruno Haible  <bruno@clisp.org>
53536         Restore support for automake 1.9.6 with autoconf 2.61.
53537         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
53538         Reported by James Youngman <jay@gnu.org>.
53540 2010-02-20  Bruno Haible  <bruno@clisp.org>
53542         Improve *printf warning condition.
53543         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
53544         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
53545         and the function is overridden due to SIGPIPE emulation.
53547 2010-02-20  Bruno Haible  <bruno@clisp.org>
53549         * lib/stdio.in.h: Tweak comments.
53551 2010-02-19  Bruno Haible  <bruno@clisp.org>
53553         Make it easier to find modules. New gnulib-tool option '--find'.
53554         * gnulib-tool: New option --find.
53555         (func_usage): Document it.
53556         (func_sanitize_modulelist): New function, extracted from
53557         func_all_modules.
53558         (func_all_modules): Invoke it.
53559         * doc/gnulib-tool.texi (Which modules?): New node.
53561 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
53563         * lib/sys_select.in.h: Provide select replacement even if
53564         sys/select.h exists on a system, for Interix.
53566 2010-02-18  Jim Meyering  <meyering@redhat.com>
53568         init.sh: don't use $(...) just yet
53569         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
53570         to accommodate e.g., Solaris' /bin/sh.
53572 2010-02-17  Bruno Haible  <bruno@clisp.org>
53574         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
53575         Reported by Ludovic Courtès <ludo@gnu.org>.
53577 2010-02-16  Simon Josefsson  <simon@josefsson.org>
53579         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
53580         linking with -lintl.
53582 2010-02-17  Simon Josefsson  <simon@josefsson.org>
53584         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
53585         if not provided by the system's netdb.h.  Reported by
53586         ludo@gnu.org (Ludovic Courtès).
53588 2010-02-15  Jim Meyering  <meyering@redhat.com>
53590         init.sh: improve portability and efficiency
53591         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
53592         "dummy" in a for loop.
53593         Use '!', not '^' to select the complement of a character set used
53594         in a "case" statement.
53595         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
53596         Suggestions from Eric Blake.
53598         init.sh: automatically accommodate programs with the .exe suffix
53599         Automatically arrange for an invocation of "prog" to execute the
53600         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
53601         may use the simpler "prog", yet still work when built on a system
53602         that requires specifying the added suffix.
53603         Do this by constructing a function named "prog" that invokes
53604         "prog.exe" for each .exe file in selected directories.
53605         * tests/init.sh (find_exe_basenames_): New function.
53606         (create_exe_shim_functions_): New function.
53607         (path_prepend_): Use it.
53609         maint.mk: mark syntax-check sc_*.m rules as .PHONY
53610         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
53611         "make -t syntax-check" doesn't create a ton of sc_*.m files.
53613 2010-02-14  Jim Meyering  <meyering@redhat.com>
53615         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
53616         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
53617         (sc_prohibit_hash_pjw_without_use): New rule.
53619         maint.mk: allow the default upload destination dir to be overridden
53620         * top/maint.mk (upload_dest_dir_): Define with a default that
53621         preserves the status quo.
53622         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
53623         Reported by Peter Simons.
53625         maint.mk: prohibit inclusion of "hash.h" without_use
53626         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
53628 2010-02-10  Jim Meyering  <meyering@redhat.com>
53630         maint.mk: prohibit inclusion of "ignore-value.h" without_use
53631         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
53633 2010-02-09  Eric Blake  <ebb9@byu.net>
53634         and Bruno Haible  <bruno@clisp.org>
53636         obstack-printf-posix: ensure declaration
53637         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
53638         extracted from gl_FUNC_OBSTACK_PRINTF.
53639         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
53640         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53641         Likewise.
53642         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
53643         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
53644         0.
53646 2010-02-08  Bruno Haible  <bruno@clisp.org>
53648         gnulib-tool: Fix typo in 2010-02-07 commit.
53649         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
53650         Reported by Eric Blake.
53652 2010-02-07  Bruno Haible  <bruno@clisp.org>
53654         gnulib-tool: Fix up caching patches.
53655         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
53656         option --no-cache. Use associative arrays when supported by the shell.
53657         (sed_comments): New variable.
53658         (modcache): Renamed from do_cache.
53659         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
53660         abbreviate unnecessarily.
53661         (have_associative): New variable.
53662         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
53663         way also for ksh and zsh.
53664         (func_init_sed_convert_to_cache_statements): New function, extracted
53665         from func_cache_lookup_module. Add support for associative arrays.
53666         Don't set the c_MODULE_cached variable here. Ignore all lines before
53667         the first field header. Remove only the final newline, not all trailing
53668         newlines. Support empty fields correctly. Limit the use of 'eval' to
53669         assignments.
53670         (func_get_description, func_get_status, func_get_notice,
53671         func_get_applicability, func_get_filelist, func_get_dependencies,
53672         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
53673         func_get_automake_snippet, func_get_include_directive,
53674         func_get_link_directive, func_get_license, func_get_maintainer):
53675         Update documentation. List the unoptimized code first. Add support for
53676         associative arrays. Limit the use of 'eval' to assignments.
53677         (func_get_applicability): Undo stylistic pessimisations.
53678         (func_get_automake_snippet, func_get_include_directive): Reduce code
53679         duplication.
53680         (func_modules_transitive_closure, func_modules_add_dummy,
53681         func_modules_notice, func_modules_to_filelist, func_add_file,
53682         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
53683         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
53684         func_create_testdir, func_create_megatestdir): Update documentation.
53686 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53688         * gnulib-tool (func_cache_lookup_module): Store the module name
53689         belonging to the cache variable; error out if two different
53690         module names map to the same cache variable name.
53692 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53694         gnulib-tool: Make caching optional.
53695         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
53696         Update matching short versions of --no-changelog.
53697         (func_usage): Update.
53698         (sed_extract_cache_prog): Renamed from ...
53699         (sed_extract_prog): ... this; revert to old extraction script.
53700         (func_get_description, func_get_status)
53701         (func_get_notice, func_get_applicability, func_get_filelist)
53702         (func_get_dependencies, func_get_autoconf_early_snippet)
53703         (func_get_autoconf_snippet, func_get_automake_snippet)
53704         (func_get_include_directive, func_get_link_directive)
53705         (func_get_license, func_get_maintainer): If $do_cache is false,
53706         use old, non-caching extraction scripts.
53707         Suggestion by Bruno Haible.
53709 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53711         gnulib-tool: cache module metainformation.
53712         * gnulib-tool (sed_extract_prog): Match newline before each
53713         header, and rewrite header to a shell variable suffix.
53714         (func_cache_var, func_cache_lookup_module): New functions,
53715         to turn a module name into a cache variable prefix, and to
53716         look up and cache module metainformation.
53717         (func_get_description, func_get_status)
53718         (func_get_notice, func_get_applicability, func_get_filelist)
53719         (func_get_dependencies, func_get_autoconf_early_snippet)
53720         (func_get_autoconf_snippet, func_get_automake_snippet)
53721         (func_get_include_directive, func_get_link_directive)
53722         (func_get_license, func_get_maintainer): Use
53723         func_cache_lookup_module.
53725 2010-02-07  Bruno Haible  <bruno@clisp.org>
53727         fnctl: Fix missing dependency.
53728         * modules/fcntl (Depends-on): Add getdtablesize.
53729         Reported by John W. Eaton <jwe@gnu.org>.
53731 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53733         Argp: fix recognition of short alias options.
53735         * lib/argp-parse.c (convert_options): Fix improper use of
53736         `|' between character values.
53737         * tests/test-argp.c (group1_option): New alias option
53738         --read (-r).
53739         (group1_parser): Special handling for 'r'.
53740         (test15): New test case.
53741         (test_fun): Add test15.
53742         * tests/test-argp-2.sh: Update expected --help and --usage
53743         outputs.
53745 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53747         * tests/test-argp.c: Fix indentation.
53749 2010-02-04  Eric Blake  <ebb9@byu.net>
53751         gettimeofday: expose type of second argument
53752         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
53753         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
53754         * tests/test-gettimeofday.c: Use it to silence warning.
53755         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
53756         the issue.
53758 2010-02-03  Jim Meyering  <meyering@redhat.com>
53760         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
53761         * lib/regcomp.c (TYPE_SIGNED): Define.
53762         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
53764         regcomp.c: avoid a new -Wshadow warning
53765         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
53767 2010-02-01  Jim Meyering  <meyering@redhat.com>
53769         removing useless parentheses in cpp #define directives
53770         For motivation, see commit c0221df4, "define STREQ(a,b)
53771         consistently, removing useless parentheses"
53772         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
53773         * lib/mountlist.c (MNT_IGNORE): Likewise.
53774         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
53776 2010-02-01  Eric Blake  <ebb9@byu.net>
53778         sys_time: use link-warning
53779         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
53780         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
53781         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
53782         * modules/sys_time (Depends-on): Add warn-on-use.
53783         (Makefile.am): Always build replacement.
53784         (configure.ac): Update substitutions.
53785         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
53786         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
53787         bother with SYS_TIME_H.
53788         * modules/gettimeofday (configure.ac): Declare indicator.
53789         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
53790         in use.
53792         closein-tests: silence compiler warning
53793         * tests/test-closein.c (main): Ignore fread result.
53794         * modules/closein-tests (Depends-on): Add ignore-value.
53796         tests: silence warning about system return
53797         * tests/test-areadlink-with-size.c (main): Ignore system result.
53798         * tests/test-areadlink.c (main): Likewise.
53799         * tests/test-areadlinkat-with-size.c (main): Likewise.
53800         * tests/test-areadlinkat.c (main): Likewise.
53801         * tests/test-canonicalize-lgpl.c (main): Likewise.
53802         * tests/test-canonicalize.c (main): Likewise.
53803         * tests/test-chown.c (main): Likewise.
53804         * tests/test-fchownat.c (main): Likewise.
53805         * tests/test-fdutimensat.c (main): Likewise.
53806         * tests/test-fstatat.c (main): Likewise.
53807         * tests/test-futimens.c (main): Likewise.
53808         * tests/test-lchown.c (main): Likewise.
53809         * tests/test-link.c (main): Likewise.
53810         * tests/test-linkat.c (main): Likewise.
53811         * tests/test-lstat.c (main): Likewise.
53812         * tests/test-mkdir.c (main): Likewise.
53813         * tests/test-mkdirat.c (main): Likewise.
53814         * tests/test-mkfifo.c (main): Likewise.
53815         * tests/test-mkfifoat.c (main): Likewise.
53816         * tests/test-mknod.c (main): Likewise.
53817         * tests/test-readlink.c (main): Likewise.
53818         * tests/test-remove.c (main): Likewise.
53819         * tests/test-rename.c (main): Likewise.
53820         * tests/test-renameat.c (main): Likewise.
53821         * tests/test-rmdir.c (main): Likewise.
53822         * tests/test-symlink.c (main): Likewise.
53823         * tests/test-symlinkat.c (main): Likewise.
53824         * tests/test-unlink.c (main): Likewise.
53825         * tests/test-unlinkat.c (main): Likewise.
53826         * tests/test-utimens.c (main): Likewise.
53827         * tests/test-utimensat.c (main): Likewise.
53828         * modules/areadlink-tests (Depends-on): Add ignore-value.
53829         * modules/areadlink-with-size-tests (Depends-on): Likewise.
53830         * modules/areadlinkat-tests (Depends-on): Likewise.
53831         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
53832         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
53833         * modules/canonicalize-tests (Depends-on): Likewise.
53834         * modules/chown-tests (Depends-on): Likewise.
53835         * modules/fdutimensat-tests (Depends-on): Likewise.
53836         * modules/futimens-tests (Depends-on): Likewise.
53837         * modules/lchown-tests (Depends-on): Likewise.
53838         * modules/link-tests (Depends-on): Likewise.
53839         * modules/linkat-tests (Depends-on): Likewise.
53840         * modules/lstat-tests (Depends-on): Likewise.
53841         * modules/mkdir-tests (Depends-on): Likewise.
53842         * modules/mkfifo-tests (Depends-on): Likewise.
53843         * modules/mkfifoat-tests (Depends-on): Likewise.
53844         * modules/mknod-tests (Depends-on): Likewise.
53845         * modules/openat-tests (Depends-on): Likewise.
53846         * modules/readlink-tests (Depends-on): Likewise.
53847         * modules/remove-tests (Depends-on): Likewise.
53848         * modules/rename-tests (Depends-on): Likewise.
53849         * modules/renameat-tests (Depends-on): Likewise.
53850         * modules/rmdir-tests (Depends-on): Likewise.
53851         * modules/symlink-tests (Depends-on): Likewise.
53852         * modules/symlinkat-tests (Depends-on): Likewise.
53853         * modules/unlink-tests (Depends-on): Likewise.
53854         * modules/utimens-tests (Depends-on): Likewise.
53855         * modules/utimensat-tests (Depends-on): Likewise.
53857 2010-01-31  Bruno Haible  <bruno@clisp.org>
53859         Perform the same test for many <math.h> functions.
53860         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
53861         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
53862         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
53863         of gl_MATHFUNC.
53864         * modules/acos (configure.ac): Likewise.
53865         * modules/asin (configure.ac): Likewise.
53866         * modules/atan (configure.ac): Likewise.
53867         * modules/atan2 (configure.ac): Likewise.
53868         * modules/cbrt (configure.ac): Likewise.
53869         * modules/copysign (configure.ac): Likewise.
53870         * modules/cos (configure.ac): Likewise.
53871         * modules/cosh (configure.ac): Likewise.
53872         * modules/erf (configure.ac): Likewise.
53873         * modules/erfc (configure.ac): Likewise.
53874         * modules/exp (configure.ac): Likewise.
53875         * modules/fmod (configure.ac): Likewise.
53876         * modules/hypot (configure.ac): Likewise.
53877         * modules/j0 (configure.ac): Likewise.
53878         * modules/j1 (configure.ac): Likewise.
53879         * modules/jn (configure.ac): Likewise.
53880         * modules/lgamma (configure.ac): Likewise.
53881         * modules/log (configure.ac): Likewise.
53882         * modules/log10 (configure.ac): Likewise.
53883         * modules/log1p (configure.ac): Likewise.
53884         * modules/pow (configure.ac): Likewise.
53885         * modules/remainder (configure.ac): Likewise.
53886         * modules/sin (configure.ac): Likewise.
53887         * modules/sinh (configure.ac): Likewise.
53888         * modules/tan (configure.ac): Likewise.
53889         * modules/tanh (configure.ac): Likewise.
53890         * modules/y0 (configure.ac): Likewise.
53891         * modules/y1 (configure.ac): Likewise.
53892         * modules/yn (configure.ac): Likewise.
53893         Suggested by Paolo Bonzini.
53895 2010-01-31  Bruno Haible  <bruno@clisp.org>
53897         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
53899 2010-01-31  Bruno Haible  <bruno@clisp.org>
53901         Work around getdelim() bug on FreeBSD 8.0.
53902         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
53903         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
53904         not work.
53905         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
53906         is 1.
53907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
53908         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
53909         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
53910         a non-zero size.
53911         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
53913 2010-01-31  Bruno Haible  <bruno@clisp.org>
53915         Work around getline() bug on FreeBSD 8.0.
53916         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
53917         and a non-zero size.
53918         * tests/test-getline.c (main): Likewise.
53919         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
53920         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
53922 2010-01-28  Eric Blake  <ebb9@byu.net>
53924         regex: fix build failure
53925         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
53926         platforms.
53928 2010-01-28  Jim Meyering  <meyering@redhat.com>
53930         regex: do not ignore memory allocation failure
53931         * lib/regex_internal.c (create_cd_newstate): Detect
53932         re_node_set_init_copy failure.   Extracted from glibc commit
53933         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53935         regex: sync more white-space changes from libc
53936         * lib/regex_internal.c: White-space only changes.
53937         * lib/regexec.c: Likewise.
53939         regex: add many uses of __attribute_warn_unused_result__
53940         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
53941         * lib/regexec.c: Likewise.
53942         Extracted from a messy glibc commit.
53944         regcomp.c: spelling and merge-artifact from glibc
53945         * lib/regcomp.c: Merge remainder of glibc's
53946         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53948         regcomp.c: sync white-space changes from glibc
53949         * lib/regcomp.c: Merge to accommodate white space
53950         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
53952         regcomp.c: do not ignore internal return values
53953         * lib/regcomp.c: Do not ignore internal return values.
53954         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
53955         but without its white-space changes and spelling fixes.
53957         regex_internal.h: define __attribute_warn_unused_result__
53958         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
53960         maint: add a syntax-check rule to check for vulnerable Makefile.in
53961         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
53963 2010-01-27  Jim Meyering  <meyering@redhat.com>
53965         ncftpput-ftp: clean up spaces
53966         * build-aux/ncftpput-ftp: Make Copyright line consistent.
53967         Remove trailing blanks.
53969 2010-01-27  Simon Josefsson  <simon@josefsson.org>
53971         * build-aux/git-version-gen: Fix copyright statement.
53972         * build-aux/gnupload: Likewise.
53973         * tests/test-arcfour.c: Likewise.
53974         * tests/test-arctwo.c: Likewise.
53975         * tests/test-count-one-bits.c: Likewise.
53976         * tests/test-crc.c: Likewise.
53977         * tests/test-des.c: Likewise.
53978         * tests/test-gc-arcfour.c: Likewise.
53979         * tests/test-gc-arctwo.c: Likewise.
53980         * tests/test-gc-des.c: Likewise.
53981         * tests/test-gc-hmac-md5.c: Likewise.
53982         * tests/test-gc-hmac-sha1.c: Likewise.
53983         * tests/test-gc-md2.c: Likewise.
53984         * tests/test-gc-md4.c: Likewise.
53985         * tests/test-gc-md5.c: Likewise.
53986         * tests/test-gc-pbkdf2-sha1.c: Likewise.
53987         * tests/test-gc-rijndael.c: Likewise.
53988         * tests/test-gc-sha1.c: Likewise.
53989         * tests/test-gc.c: Likewise.
53990         * tests/test-gethostname.c: Likewise.
53991         * tests/test-gettimeofday.c: Likewise.
53992         * tests/test-hash.c: Likewise.
53993         * tests/test-hmac-md5.c: Likewise.
53994         * tests/test-hmac-sha1.c: Likewise.
53995         * tests/test-md2.c: Likewise.
53996         * tests/test-md4.c: Likewise.
53997         * tests/test-md5.c: Likewise.
53998         * tests/test-memchr.c: Likewise.
53999         * tests/test-memchr2.c: Likewise.
54000         * tests/test-memcmp.c: Likewise.
54001         * tests/test-memmem.c: Likewise.
54002         * tests/test-memrchr.c: Likewise.
54003         * tests/test-rawmemchr.c: Likewise.
54004         * tests/test-read-file.c: Likewise.
54005         * tests/test-rijndael.c: Likewise.
54006         * tests/test-sockets.c: Likewise.
54007         * tests/test-strchrnul.c: Likewise.
54008         * tests/test-strstr.c: Likewise.
54009         * tests/test-strtod.c: Likewise.
54010         * build-aux/ncftpput-ftp: Likewise.
54012 2010-01-26  Eric Blake  <ebb9@byu.net>
54014         ignore-value: update recommended header name
54015         * modules/ignore-value (Include): Only use <> for headers that
54016         exist in glibc.
54018 2010-01-26  Jim Meyering  <meyering@redhat.com>
54020         test-userspec.c: avoid compiler warnings
54021         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
54022         and "initialization discards qualifiers..." warnings.
54023         Put the first "uid" in its own scope, and make char* members "const".
54025 2010-01-25  Bruno Haible  <bruno@clisp.org>
54027         gnulib-tool: Make warning diagnostics consistent.
54028         * gnulib-tool (func_warning): New function.
54029         Use it everywhere where gnulib-tool produces output to stderr and it is
54030         not a fatal error.
54032 2010-01-25  Bruno Haible  <bruno@clisp.org>
54034         Fix test dependencies.
54035         * modules/xstrtol-tests (Depends-on): Add inttypes.
54036         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
54038 2010-01-25  Pádraig Brady  <P@draigBrady.com>
54040         syntax-check: detect incorrect boolean macro values in config.h
54041         * modules/maintainer-makefile (configure.ac): Parameterize the location
54042         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
54043         The logic is from Eric Blake and the location indicated by Jim Meyering.
54044         Note the more natural CONFIG_HEADER name is prohibited by automake
54045         for backwards compatibility reasons.
54046         * top/maint.mk (sc_Wundef_boolean): New rule.
54048 2010-01-25  Jim Meyering  <meyering@redhat.com>
54050         bootstrap: detect MacOS 10.6's shasum, too
54051         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
54052         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
54054 2010-01-23  Jim Meyering  <meyering@redhat.com>
54056         xstrtoll: new module
54057         * modules/xstrtoll: New file.
54058         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
54059         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
54060         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
54061         ./configure fails if you use this module and lack "long long".
54062         * modules/xstrtoll-tests: New module.
54063         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
54064         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
54065         new init.sh-based test framework.
54067 2010-01-24  Bruno Haible  <bruno@clisp.org>
54069         Tests for module 'yn'.
54070         * modules/yn-tests: New file.
54071         * tests/test-yn.c: New file.
54073         Tests for module 'y1'.
54074         * modules/y1-tests: New file.
54075         * tests/test-y1.c: New file.
54077         Tests for module 'y0'.
54078         * modules/y0-tests: New file.
54079         * tests/test-y0.c: New file.
54081         Tests for module 'tanh'.
54082         * modules/tanh-tests: New file.
54083         * tests/test-tanh.c: New file.
54085         Tests for module 'tan'.
54086         * modules/tan-tests: New file.
54087         * tests/test-tan.c: New file.
54089         Tests for module 'sqrt'.
54090         * modules/sqrt-tests: New file.
54091         * tests/test-sqrt.c: New file.
54093         Tests for module 'sinh'.
54094         * modules/sinh-tests: New file.
54095         * tests/test-sinh.c: New file.
54097         Tests for module 'sin'.
54098         * modules/sin-tests: New file.
54099         * tests/test-sin.c: New file.
54101         Tests for module 'rint'.
54102         * modules/rint-tests: New file.
54103         * tests/test-rint.c: New file.
54105         Tests for module 'remainder'.
54106         * modules/remainder-tests: New file.
54107         * tests/test-remainder.c: New file.
54109         Tests for module 'pow'.
54110         * modules/pow-tests: New file.
54111         * tests/test-pow.c: New file.
54113         Tests for module 'nextafter'.
54114         * modules/nextafter-tests: New file.
54115         * tests/test-nextafter.c: New file.
54117         Tests for module 'modf'.
54118         * modules/modf-tests: New file.
54119         * tests/test-modf.c: New file.
54121         Tests for module 'logb'.
54122         * modules/logb-tests: New file.
54123         * tests/test-logb.c: New file.
54125         Tests for module 'log1p'.
54126         * modules/log1p-tests: New file.
54127         * tests/test-log1p.c: New file.
54129         Tests for module 'log10'.
54130         * modules/log10-tests: New file.
54131         * tests/test-log10.c: New file.
54133         Tests for module 'log'.
54134         * modules/log-tests: New file.
54135         * tests/test-log.c: New file.
54137         Tests for module 'lgamma'.
54138         * modules/lgamma-tests: New file.
54139         * tests/test-lgamma.c: New file.
54141         Tests for module 'ldexp'.
54142         * modules/ldexp-tests: New file.
54143         * tests/test-ldexp.c: New file.
54145         Tests for module 'jn'.
54146         * modules/jn-tests: New file.
54147         * tests/test-jn.c: New file.
54149         Tests for module 'j1'.
54150         * modules/j1-tests: New file.
54151         * tests/test-j1.c: New file.
54153         Tests for module 'j0'.
54154         * modules/j0-tests: New file.
54155         * tests/test-j0.c: New file.
54157         Tests for module 'hypot'.
54158         * modules/hypot-tests: New file.
54159         * tests/test-hypot.c: New file.
54161         Tests for module 'fmod'.
54162         * modules/fmod-tests: New file.
54163         * tests/test-fmod.c: New file.
54165         Tests for module 'fabs'.
54166         * modules/fabs-tests: New file.
54167         * tests/test-fabs.c: New file.
54169         Tests for module 'exp'.
54170         * modules/exp-tests: New file.
54171         * tests/test-exp.c: New file.
54173         Tests for module 'erfc'.
54174         * modules/erfc-tests: New file.
54175         * tests/test-erfc.c: New file.
54177         Tests for module 'erf'.
54178         * modules/erf-tests: New file.
54179         * tests/test-erf.c: New file.
54181         Tests for module 'cosh'.
54182         * modules/cosh-tests: New file.
54183         * tests/test-cosh.c: New file.
54185         Tests for module 'cos'.
54186         * modules/cos-tests: New file.
54187         * tests/test-cos.c: New file.
54189         Tests for module 'copysign'.
54190         * modules/copysign-tests: New file.
54191         * tests/test-copysign.c: New file.
54193         Tests for module 'cbrt'.
54194         * modules/cbrt-tests: New file.
54195         * tests/test-cbrt.c: New file.
54197         Tests for module 'atan2'.
54198         * modules/atan2-tests: New file.
54199         * tests/test-atan2.c: New file.
54201         Tests for module 'atan'.
54202         * modules/atan-tests: New file.
54203         * tests/test-atan.c: New file.
54205         Tests for module 'asin'.
54206         * modules/asin-tests: New file.
54207         * tests/test-asin.c: New file.
54209         Tests for module 'acos'.
54210         * modules/acos-tests: New file.
54211         * tests/test-acos.c: New file.
54213 2010-01-24  Bruno Haible  <bruno@clisp.org>
54215         Fix tests for common <math.h> functions.
54216         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
54217         code snippet that references the function pointer, rather than merely
54218         calling the function. Substitute the FUNC_LIBM variable.
54219         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
54220         * modules/acos (configure.ac): Likewise.
54221         * modules/asin (configure.ac): Likewise.
54222         * modules/atan (configure.ac): Likewise.
54223         * modules/atan2 (configure.ac): Likewise.
54224         * modules/cbrt (configure.ac): Likewise.
54225         * modules/copysign (configure.ac): Likewise.
54226         * modules/cos (configure.ac): Likewise.
54227         * modules/cosh (configure.ac): Likewise.
54228         * modules/erf (configure.ac): Likewise.
54229         * modules/erfc (configure.ac): Likewise.
54230         * modules/exp (configure.ac): Likewise.
54231         * modules/fabs (configure.ac): Likewise.
54232         * modules/fmod (configure.ac): Likewise.
54233         * modules/hypot (configure.ac): Likewise.
54234         * modules/j0 (configure.ac): Likewise.
54235         * modules/j1 (configure.ac): Likewise.
54236         * modules/jn (configure.ac): Likewise.
54237         * modules/ldexp (configure.ac): Likewise.
54238         * modules/lgamma (configure.ac): Likewise.
54239         * modules/log (configure.ac): Likewise.
54240         * modules/log10 (configure.ac): Likewise.
54241         * modules/log1p (configure.ac): Likewise.
54242         * modules/logb (configure.ac): Likewise.
54243         * modules/modf (configure.ac): Likewise.
54244         * modules/nextafter (configure.ac): Likewise.
54245         * modules/pow (configure.ac): Likewise.
54246         * modules/remainder (configure.ac): Likewise.
54247         * modules/rint (configure.ac): Likewise.
54248         * modules/sin (configure.ac): Likewise.
54249         * modules/sinh (configure.ac): Likewise.
54250         * modules/tan (configure.ac): Likewise.
54251         * modules/tanh (configure.ac): Likewise.
54252         * modules/y0 (configure.ac): Likewise.
54253         * modules/y1 (configure.ac): Likewise.
54254         * modules/yn (configure.ac): Likewise.
54256 2010-01-24  Bruno Haible  <bruno@clisp.org>
54258         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
54259         * tests/test-acosl.c (x): New variable.
54260         (main): Store argument in x and fetch it from x.
54261         * tests/test-asinl.c (x): New variable.
54262         (main): Store argument in x and fetch it from x.
54263         * tests/test-atanl.c (x): New variable.
54264         (main): Store argument in x and fetch it from x.
54265         * tests/test-cosl.c (x): New variable.
54266         (main): Store argument in x and fetch it from x.
54267         * tests/test-expl.c (x): New variable.
54268         (main): Store argument in x and fetch it from x.
54269         * tests/test-logl.c (x): New variable.
54270         (main): Store argument in x and fetch it from x.
54271         * tests/test-sinl.c (x): New variable.
54272         (main): Store argument in x and fetch it from x.
54273         * tests/test-sqrtl.c (x): New variable.
54274         (main): Store argument in x and fetch it from x.
54275         * tests/test-tanl.c (x): New variable.
54276         (main): Store argument in x and fetch it from x.
54278 2010-01-24  Bruno Haible  <bruno@clisp.org>
54280         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
54281         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
54282         assignments to the initial TESTS_ENVIRONMENT.
54283         * doc/gnulib.texi (Unit test modules): Document it.
54284         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
54285         TESTS_ENVIRONMENT.
54286         * modules/btowc-tests (Makefile.am): Likewise.
54287         * modules/c-stack-tests (Makefile.am): Likewise.
54288         * modules/c-strcase-tests (Makefile.am): Likewise.
54289         * modules/copy-file-tests (Makefile.am): Likewise.
54290         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
54291         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
54292         * modules/mbrtowc-tests (Makefile.am): Likewise.
54293         * modules/mbscasecmp-tests (Makefile.am): Likewise.
54294         * modules/mbscasestr-tests (Makefile.am): Likewise.
54295         * modules/mbschr-tests (Makefile.am): Likewise.
54296         * modules/mbscspn-tests (Makefile.am): Likewise.
54297         * modules/mbsinit-tests (Makefile.am): Likewise.
54298         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
54299         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
54300         * modules/mbspbrk-tests (Makefile.am): Likewise.
54301         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
54302         * modules/mbsrchr-tests (Makefile.am): Likewise.
54303         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
54304         * modules/mbsspn-tests (Makefile.am): Likewise.
54305         * modules/mbsstr-tests (Makefile.am): Likewise.
54306         * modules/nl_langinfo-tests (Makefile.am): Likewise.
54307         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
54308         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
54309         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
54310         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
54311         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
54312         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
54313         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
54314         * modules/wcrtomb-tests (Makefile.am): Likewise.
54315         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
54316         * modules/wcsrtombs-tests (Makefile.am): Likewise.
54317         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
54318         assignments from TESTS_ENVIRONMENT.
54319         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
54320         augmentation.
54321         * modules/argp-version-etc-tests (Makefile.am): Likewise.
54322         * modules/atexit-tests (Makefile.am): Likewise.
54323         * modules/binary-io-tests (Makefile.am): Likewise.
54324         * modules/closein-tests (Makefile.am): Likewise.
54325         * modules/dprintf-posix-tests (Makefile.am): Likewise.
54326         * modules/exclude-tests (Makefile.am): Likewise.
54327         * modules/fflush-tests (Makefile.am): Likewise.
54328         * modules/fpending-tests (Makefile.am): Likewise.
54329         * modules/fprintf-posix-tests (Makefile.am): Likewise.
54330         * modules/freadahead-tests (Makefile.am): Likewise.
54331         * modules/freadptr-tests (Makefile.am): Likewise.
54332         * modules/freadseek-tests (Makefile.am): Likewise.
54333         * modules/fseek-tests (Makefile.am): Likewise.
54334         * modules/fseeko-tests (Makefile.am): Likewise.
54335         * modules/ftell-tests (Makefile.am): Likewise.
54336         * modules/ftello-tests (Makefile.am): Likewise.
54337         * modules/idpriv-drop-tests (Makefile.am): Likewise.
54338         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
54339         * modules/lseek-tests (Makefile.am): Likewise.
54340         * modules/parse-duration-tests (Makefile.am): Likewise.
54341         * modules/perror-tests (Makefile.am): Likewise.
54342         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
54343         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
54344         * modules/pipe-tests (Makefile.am): Likewise.
54345         * modules/pread-tests (Makefile.am): Likewise.
54346         * modules/printf-posix-tests (Makefile.am): Likewise.
54347         * modules/select-tests (Makefile.am): Likewise.
54348         * modules/sigpipe-tests (Makefile.am): Likewise.
54349         * modules/tsearch-tests (Makefile.am): Likewise.
54350         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
54351         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
54352         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54353         * modules/uniwidth/width-tests (Makefile.am): Likewise.
54354         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
54355         * modules/version-etc-tests (Makefile.am): Likewise.
54356         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54357         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54358         * modules/xalloc-die-tests (Makefile.am): Likewise.
54359         * modules/xprintf-posix-tests (Makefile.am): Likewise.
54360         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54361         * modules/xstrtol-tests (Makefile.am): Likewise.
54362         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54363         * modules/yesno-tests (Makefile.am): Likewise.
54364         Suggested by Jim Meyering.
54366 2010-01-24  Bruno Haible  <bruno@clisp.org>
54368         More documentation.
54369         * doc/gnulib.texi (Writing modules): New chapter.
54370         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
54371         the new chapter.
54373 2010-01-24  Jim Meyering  <meyering@redhat.com>
54375         maint.mk: do not prepend "./" after filtering
54376         * top/maint.mk (_prepend_srcdir_prefix): New variable
54377         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
54378         "./" when $(srcdir) is ".".
54380         define STREQ(a,b) consistently, removing useless parentheses
54381         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
54382         since the only risk is that "a" or "b" contains an unparenthesized
54383         comma, but if either did that, STREQ would have 3 or more arguments.
54384         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
54385         * lib/fts.c (STREQ): Remove unnecessary parentheses.
54386         * lib/hash-triple.c (STREQ): Likewise.
54387         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
54388         * lib/getugroups.c (STREQ): Likewise.
54390 2010-01-23  Jim Meyering  <meyering@redhat.com>
54392         maint.mk: fix syntax-check in a non-srcdir build directory
54393         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
54394         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
54396 2010-01-22  Jim Meyering  <meyering@redhat.com>
54398         userspec: add unit tests
54399         * tests/test-userspec.c: New file.
54400         * modules/userspec-tests: Likewise.
54402 2010-01-21  Jim Meyering  <meyering@redhat.com>
54404         maint.mk: handle source file names containing "." robustly
54405         * top/maint.mk (_dot_escaped_srcdir): Define.
54406         (VC_LIST): Use it in LHS of sed substitution.
54408 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
54410         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
54411         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
54412         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
54413         from a non-srcdir build.
54415 2010-01-20  Eric Blake  <ebb9@byu.net>
54417         warn-on-use: use instead of link-warning
54418         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
54419         * modules/unistd (Depends-on, Makefile.am): Likewise.
54420         * modules/arpa_inet (Depends-on): Replace link-warning with
54421         warn-on-use.
54422         (Makefile.am): Update rules accordingly.
54423         * modules/ctype (Depends-on, Makefile.am): Likewise.
54424         * modules/dirent (Depends-on, Makefile.am): Likewise.
54425         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
54426         * modules/inttypes (Depends-on, Makefile.am): Likewise.
54427         * modules/langinfo (Depends-on, Makefile.am): Likewise.
54428         * modules/locale (Depends-on, Makefile.am): Likewise.
54429         * modules/math (Depends-on, Makefile.am): Likewise.
54430         * modules/search (Depends-on, Makefile.am): Likewise.
54431         * modules/signal (Depends-on, Makefile.am): Likewise.
54432         * modules/spawn (Depends-on, Makefile.am): Likewise.
54433         * modules/stdlib (Depends-on, Makefile.am): Likewise.
54434         * modules/string (Depends-on, Makefile.am): Likewise.
54435         * modules/strings (Depends-on, Makefile.am): Likewise.
54436         * modules/sys_file (Depends-on, Makefile.am): Likewise.
54437         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
54438         * modules/sys_select (Depends-on, Makefile.am): Likewise.
54439         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
54440         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
54441         * modules/sys_times (Depends-on, Makefile.am): Likewise.
54442         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
54443         * modules/wchar (Depends-on, Makefile.am): Likewise.
54444         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
54445         should be poisoned.
54446         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
54447         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
54448         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
54449         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54450         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54451         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54452         * m4/math_h.m4 (gl_MATH_H): Likewise.
54453         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54454         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54455         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
54456         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54457         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54458         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54459         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
54460         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
54461         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
54462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54463         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54465         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54466         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
54467         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54468         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54469         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
54470         GL_LINK_WARNING.
54471         * lib/ctype.in.h: Likewise.
54472         * lib/dirent.in.h: Likewise.
54473         * lib/fcntl.in.h: Likewise.
54474         * lib/inttypes.in.h: Likewise.
54475         * lib/langinfo.in.h: Likewise.
54476         * lib/locale.in.h: Likewise.
54477         * lib/math.in.h: Likewise.
54478         * lib/search.in.h: Likewise.
54479         * lib/signal.in.h: Likewise.
54480         * lib/spawn.in.h: Likewise.
54481         * lib/stdio.in.h: Likewise.
54482         * lib/stdlib.in.h: Likewise.
54483         * lib/string.in.h: Likewise.
54484         * lib/strings.in.h: Likewise.
54485         * lib/sys_file.in.h: Likewise.
54486         * lib/sys_ioctl.in.h: Likewise.
54487         * lib/sys_select.in.h: Likewise.
54488         * lib/sys_socket.in.h: Likewise.
54489         * lib/sys_stat.in.h: Likewise.
54490         * lib/sys_times.in.h: Likewise.
54491         * lib/sys_utsname.in.h: Likewise.
54492         * lib/unistd.in.h: Likewise.
54493         * lib/wchar.in.h: Likewise.
54495 2010-01-20  Bruno Haible  <bruno@clisp.org>
54497         Avoid duplicate -lm.
54498         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
54499         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
54500         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
54501         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
54502         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
54503         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
54504         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
54505         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
54506         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
54507         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
54508         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
54509         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
54510         Reported by Paolo Bonzini.
54512 2010-01-19  Bruno Haible  <bruno@clisp.org>
54514         langinfo, nl_langinfo: Relicense under LGPLv2+.
54515         * modules/langinfo (License): Change to LGPLv2+.
54516         * modules/nl_langinfo (License): Likewise.
54517         Patch by David Lutterkort <lutter@redhat.com>.
54519 2010-01-19  Bruno Haible  <bruno@clisp.org>
54521         Avoid compilation error with cc on OSF/1 5.1.
54522         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
54523         statement, not before.
54524         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54526 2010-01-18  Bruno Haible  <bruno@clisp.org>
54528         Avoid a link error due to the __printf__ symbol.
54529         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
54530         and 2.6.x.
54531         (__format__, __printf__): Remove definitions.
54532         * lib/argp-fmtstream.h: Likewise.
54533         * lib/argp.h: Likewise.
54534         * lib/error.h: Likewise.
54535         * lib/vasnprintf.h: Likewise.
54536         * lib/xprintf.h: Likewise.
54537         * lib/xvasprintf.h: Likewise.
54538         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54540 2010-01-18  Bruno Haible  <bruno@clisp.org>
54542         Tests for module 'tanl'.
54543         * modules/tanl-tests: New file.
54544         * tests/test-tanl.c: New file.
54546         Tests for module 'sqrtl'.
54547         * modules/sqrtl-tests: New file.
54548         * tests/test-sqrtl.c: New file.
54550         Tests for module 'sinl'.
54551         * modules/sinl-tests: New file.
54552         * tests/test-sinl.c: New file.
54554         Tests for module 'logl'.
54555         * modules/logl-tests: New file.
54556         * tests/test-logl.c: New file.
54558         Tests for module 'expl'.
54559         * modules/expl-tests: New file.
54560         * tests/test-expl.c: New file.
54562         Tests for module 'cosl'.
54563         * modules/cosl-tests: New file.
54564         * tests/test-cosl.c: New file.
54566         Tests for module 'atanl'.
54567         * modules/atanl-tests: New file.
54568         * tests/test-atanl.c: New file.
54570         Tests for module 'asinl'.
54571         * modules/asinl-tests: New file.
54572         * tests/test-asinl.c: New file.
54574         Tests for module 'acosl'.
54575         * modules/acosl-tests: New file.
54576         * tests/test-acosl.c: New file.
54578         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
54579         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
54580         tanl): Use the standard gnulib idiom.
54581         * lib/cosl.c: Don't include trigl.c and sincosl.c.
54582         * lib/sinl.c: Likewise.
54583         * lib/tanl.c: Don't include trigl.c.
54584         (kernel_tanl): Make static.
54585         * lib/sincosl.c: Include trigl.h first.
54586         * lib/trigl.c: Likewise.
54587         * m4/acosl.m4: New file.
54588         * m4/asinl.m4: New file.
54589         * m4/atanl.m4: New file.
54590         * m4/cosl.m4: New file.
54591         * m4/expl.m4: New file.
54592         * m4/logl.m4: New file.
54593         * m4/sinl.m4: New file.
54594         * m4/sqrtl.m4: New file.
54595         * m4/tanl.m4: New file.
54596         * m4/mathl.m4: Remove file.
54597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
54598         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
54599         Don't initialize GNULIB_MATHL.
54600         * modules/acosl: New file.
54601         * modules/asinl: New file.
54602         * modules/atanl: New file.
54603         * modules/cosl: New file.
54604         * modules/expl: New file.
54605         * modules/logl: New file.
54606         * modules/sinl: New file.
54607         * modules/sqrtl: New file.
54608         * modules/tanl: New file.
54609         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
54610         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
54611         substitute GNULIB_MATHL.
54612         * modules/mathl: Rewritten.
54613         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
54614         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
54615         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
54616         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
54617         * doc/posix-functions/expl.texi: Mention the 'expl' module.
54618         * doc/posix-functions/logl.texi: Mention the 'logl' module.
54619         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
54620         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
54621         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
54623 2010-01-18  Bruno Haible  <bruno@clisp.org>
54625         sqrt: Make gl_FUNC_SQRT requirable.
54626         * m4/sqrt.m4: New file.
54627         * modules/sqrt (Files): Add it.
54628         (configure.ac): Invoke gl_FUNC_SQRT.
54630 2010-01-18  Bruno Haible  <bruno@clisp.org>
54632         New modules for common <math.h> functions.
54633         * m4/mathfunc.m4: New file.
54634         * modules/acos: New file.
54635         * modules/asin: New file.
54636         * modules/atan: New file.
54637         * modules/atan2: New file.
54638         * modules/cbrt: New file.
54639         * modules/copysign: New file.
54640         * modules/cos: New file.
54641         * modules/cosh: New file.
54642         * modules/erf: New file.
54643         * modules/erfc: New file.
54644         * modules/exp: New file.
54645         * modules/fabs: New file.
54646         * modules/fmod: New file.
54647         * modules/hypot: New file.
54648         * modules/j0: New file.
54649         * modules/j1: New file.
54650         * modules/jn: New file.
54651         * modules/ldexp: New file.
54652         * modules/lgamma: New file.
54653         * modules/log: New file.
54654         * modules/log10: New file.
54655         * modules/log1p: New file.
54656         * modules/logb: New file.
54657         * modules/modf: New file.
54658         * modules/nextafter: New file.
54659         * modules/pow: New file.
54660         * modules/remainder: New file.
54661         * modules/rint: New file.
54662         * modules/sin: New file.
54663         * modules/sinh: New file.
54664         * modules/sqrt: New file.
54665         * modules/tan: New file.
54666         * modules/tanh: New file.
54667         * modules/y0: New file.
54668         * modules/y1: New file.
54669         * modules/yn: New file.
54670         * doc/posix-functions/acos.texi: Mention the 'acos' module.
54671         * doc/posix-functions/asin.texi: Mention the 'asin' module.
54672         * doc/posix-functions/atan.texi: Mention the 'atan' module.
54673         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
54674         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
54675         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
54676         * doc/posix-functions/cos.texi: Mention the 'cos' module.
54677         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
54678         * doc/posix-functions/erf.texi: Mention the 'erf' module.
54679         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
54680         * doc/posix-functions/exp.texi: Mention the 'exp' module.
54681         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
54682         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
54683         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
54684         * doc/posix-functions/j0.texi: Mention the 'j0' module.
54685         * doc/posix-functions/j1.texi: Mention the 'j1' module.
54686         * doc/posix-functions/jn.texi: Mention the 'jn' module.
54687         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
54688         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
54689         * doc/posix-functions/log.texi: Mention the 'log' module.
54690         * doc/posix-functions/log10.texi: Mention the 'log10' module.
54691         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
54692         * doc/posix-functions/logb.texi: Mention the 'logb' module.
54693         * doc/posix-functions/modf.texi: Mention the 'modf' module.
54694         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
54695         * doc/posix-functions/pow.texi: Mention the 'pow' module.
54696         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
54697         * doc/posix-functions/rint.texi: Mention the 'rint' module.
54698         * doc/posix-functions/sin.texi: Mention the 'sin' module.
54699         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
54700         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
54701         * doc/posix-functions/tan.texi: Mention the 'tan' module.
54702         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
54703         * doc/posix-functions/y0.texi: Mention the 'y0' module.
54704         * doc/posix-functions/y1.texi: Mention the 'y1' module.
54705         * doc/posix-functions/yn.texi: Mention the 'yn' module.
54707 2010-01-18  Jim Meyering  <meyering@redhat.com>
54709         ignore-value: relax license to LGPLv2+
54710         * modules/ignore-value (License): Relax to LGPLv2+.
54712         getdate: don't leak when TZ contains two or more '"'s
54713         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
54714         double quote in TZ after the first one.
54716         readtokens: do not leak internal token_lengths buffer
54717         * lib/readtokens.c (readtokens): Free the local, lengths,
54718         when the supplied "token_lengths" parameter is NULL.
54720 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54722         Fix a couple of missing LIBTHREAD link failures on AIX.
54723         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
54724         $(LIBTHREAD).
54725         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
54727         Link test-poll against INET_PTON_LIB.
54728         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
54729         for inet_pton on Solaris 10.
54731 2010-01-17  Bruno Haible  <bruno@clisp.org>
54733         unistdio/*-sprintf: Fix typo in module description.
54734         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
54735         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
54736         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
54737         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
54738         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
54739         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
54740         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
54741         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54743 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54745         gnulib-tool: fix filelist for AIX, HP-UX ksh.
54746         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
54747         variables in shell case patterns, for AIX and HP-UX ksh.
54749         Split large sed scripts, for HP-UX sed.
54750         * modules/stdio: Split sed scripts around 50 sed commands,
54751         to avoid HP-UX limit of 99 commands, in the near future.
54752         * modules/string: Likewise.
54753         * modules/unistd: Likewise.
54755         gnulib-tool: avoid writing in the current directory.
54756         * gnulib-tool (func_emit_lib_Makefile_am)
54757         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
54758         not in the current directory, so concurrent gnulib-tool
54759         instances do not interfere.
54761 2010-01-16  Jim Meyering  <meyering@redhat.com>
54763         doc: update users.txt
54764         * users.txt: Add grep.
54765         (diffutils, gzip): Update URLs.
54767 2010-01-12  Bruno Haible  <bruno@clisp.org>
54769         posix_spawn: Avoid test failure on Cygwin.
54770         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
54771         characters.
54772         Reported by Simon Josefsson.
54774 2010-01-12  Bruno Haible  <bruno@clisp.org>
54776         * tests/test-cond.c (main): When skipping the test, show the reason.
54778 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54780         * lib/striconv.c (str_cd_iconv): Avoid if before free.
54782 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54784         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
54785         VC_LIST_ALWAYS_EXCLUDE_REGEX.
54787 2010-01-12  Eric Blake  <ebb9@byu.net>
54789         build: guarantee AS_VAR_IF
54790         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
54791         (gl_AS_VAR_IF): Move...
54792         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
54793         Reported by Simon Josefsson.
54795 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54797         * lib/stdio.in.h: Fix typo.
54799 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54801         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
54802         libgpg-error.
54804 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54806         * tests/test-xalloc-die.sh: Use $EXEEXT.
54808 2010-01-12  Simon Josefsson  <simon@josefsson.org>
54809             Bruno Haible  <bruno@clisp.org>
54811         getlogin, getlogin_r: Avoid test failure.
54812         * tests/test-getlogin.c: Include <stdio.h>.
54813         (main): Skip the test when the function fails because stdin is not a
54814         tty.
54815         * tests/test-getlogin_r.c: Include <stdio.h>.
54816         (main): Skip the test when the function fails because stdin is not a
54817         tty.
54819 2010-01-11  Eric Blake  <ebb9@byu.net>
54821         tests: avoid more large file warnings
54822         * tests/test-fflush.c: Avoid warning about ftell use.
54823         * tests/test-fseek.c: Avoid warning about fseek use.
54825 2010-01-10  Bruno Haible  <bruno@clisp.org>
54827         nproc: Work better on Linux when /proc and /sys are not mounted.
54828         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
54829         as lower bound when, on glibc/Linux systems,
54830         sysconf (_SC_NPROCESSORS_CONF) returns 1.
54831         Suggested by Pádraig Brady <P@draigbrady.com>.
54832         Reported by Dmitry V. Levin <ldv@altlinux.org>.
54834         nproc: Refactor.
54835         * lib/nproc.c (num_processors_via_affinity_mask): New function,
54836         extracted from num_processors.
54837         (num_processors): Call it.
54839 2010-01-11  Jim Meyering  <meyering@redhat.com>
54841         utimecmp: avoid new warning from upcoming gcc-4.5.0
54842         * lib/utimecmp.c (BILLION): Define using #define rather than an
54843         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
54845 2010-01-11  Eric Blake  <ebb9@byu.net>
54847         math: add portability warnings for classification macros
54848         * modules/math (Depends-on): Add warn-on-use.
54849         (Makefile.am): Provide new substitutions.
54850         * m4/math_h.m4 (gl_MATH_H): Require inline.
54851         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
54852         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
54853         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
54854         implement warnings.
54856         unistd: warn on use of environ without module
54857         * modules/unistd (Depends-on): Add warn-on-use.
54858         (Makefile.am): Provide new substitutions.
54859         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
54860         * lib/unistd.in.h (environ): Wrap with a warning helper function.
54862         stdio: warn on suspicious uses
54863         * modules/stdio (Depends-on): Add warn-on-use.
54864         (Makefile.am): Provide new substitutions.
54865         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
54866         fseeko.
54867         * lib/stdio.in.h (gets): Always warn on use.
54868         (fseek, ftell): Adjust when warnings are issued, and honor
54869         _GL_NO_LARGE_FILES as a way to silence the warning.
54870         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
54871         any warning about large file offsets.
54872         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
54873         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
54874         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
54875         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
54876         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
54877         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
54878         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
54879         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
54881         warn-on-use: new module
54882         * modules/warn-on-use: New file.
54883         * build-aux/warn-on-use.h: Likewise.
54884         * m4/warn-on-use.m4: Likewise.
54885         * MODULES.html.sh (Support for building): Mention it.
54887 2010-01-10  Bruno Haible  <bruno@clisp.org>
54889         Tests for module 'unistr/u32-strdup'.
54890         * modules/unistr/u32-strdup-tests: New file.
54891         * tests/unistr/test-u32-strdup.c: New file.
54893         Tests for module 'unistr/u16-strdup'.
54894         * modules/unistr/u16-strdup-tests: New file.
54895         * tests/unistr/test-u16-strdup.c: New file.
54897         Tests for module 'unistr/u8-strdup'.
54898         * modules/unistr/u8-strdup-tests: New file.
54899         * tests/unistr/test-u8-strdup.c: New file.
54900         * tests/unistr/test-strdup.h: New file.
54902         Tests for module 'unistr/u32-strncmp'.
54903         * modules/unistr/u32-strncmp-tests: New file.
54904         * tests/unistr/test-u32-strncmp.c: New file.
54906         Tests for module 'unistr/u16-strncmp'.
54907         * modules/unistr/u16-strncmp-tests: New file.
54908         * tests/unistr/test-u16-strncmp.c: New file.
54910         Tests for module 'unistr/u8-strncmp'.
54911         * modules/unistr/u8-strncmp-tests: New file.
54912         * tests/unistr/test-u8-strncmp.c: New file.
54913         * tests/unistr/test-strncmp.h: New file.
54915         Tests for module 'unistr/u32-strcoll'.
54916         * modules/unistr/u32-strcoll-tests: New file.
54917         * tests/unistr/test-u32-strcoll.c: New file.
54919         Tests for module 'unistr/u16-strcoll'.
54920         * modules/unistr/u16-strcoll-tests: New file.
54921         * tests/unistr/test-u16-strcoll.c: New file.
54923         Tests for module 'unistr/u8-strcoll'.
54924         * modules/unistr/u8-strcoll-tests: New file.
54925         * tests/unistr/test-u8-strcoll.c: New file.
54927         Tests for module 'unistr/u32-strcmp'.
54928         * modules/unistr/u32-strcmp-tests: New file.
54929         * tests/unistr/test-u32-strcmp.c: New file.
54930         * tests/unistr/test-u32-strcmp.h: New file.
54932         Tests for module 'unistr/u16-strcmp'.
54933         * modules/unistr/u16-strcmp-tests: New file.
54934         * tests/unistr/test-u16-strcmp.c: New file.
54935         * tests/unistr/test-u16-strcmp.h: New file.
54937         Tests for module 'unistr/u8-strcmp'.
54938         * modules/unistr/u8-strcmp-tests: New file.
54939         * tests/unistr/test-u8-strcmp.c: New file.
54940         * tests/unistr/test-u8-strcmp.h: New file.
54941         * tests/unistr/test-strcmp.h: New file.
54943         Tests for module 'unistr/u32-strncat'.
54944         * modules/unistr/u32-strncat-tests: New file.
54945         * tests/unistr/test-u32-strncat.c: New file.
54947         Tests for module 'unistr/u16-strncat'.
54948         * modules/unistr/u16-strncat-tests: New file.
54949         * tests/unistr/test-u16-strncat.c: New file.
54951         Tests for module 'unistr/u8-strncat'.
54952         * modules/unistr/u8-strncat-tests: New file.
54953         * tests/unistr/test-u8-strncat.c: New file.
54954         * tests/unistr/test-strncat.h: New file.
54956         Tests for module 'unistr/u32-strcat'.
54957         * modules/unistr/u32-strcat-tests: New file.
54958         * tests/unistr/test-u32-strcat.c: New file.
54960         Tests for module 'unistr/u16-strcat'.
54961         * modules/unistr/u16-strcat-tests: New file.
54962         * tests/unistr/test-u16-strcat.c: New file.
54964         Tests for module 'unistr/u8-strcat'.
54965         * modules/unistr/u8-strcat-tests: New file.
54966         * tests/unistr/test-u8-strcat.c: New file.
54967         * tests/unistr/test-strcat.h: New file.
54969         Tests for module 'unistr/u32-stpncpy'.
54970         * modules/unistr/u32-stpncpy-tests: New file.
54971         * tests/unistr/test-u32-stpncpy.c: New file.
54973         Tests for module 'unistr/u16-stpncpy'.
54974         * modules/unistr/u16-stpncpy-tests: New file.
54975         * tests/unistr/test-u16-stpncpy.c: New file.
54977         Tests for module 'unistr/u8-stpncpy'.
54978         * modules/unistr/u8-stpncpy-tests: New file.
54979         * tests/unistr/test-u8-stpncpy.c: New file.
54980         * tests/unistr/test-stpncpy.h: New file.
54982         Tests for module 'unistr/u32-strncpy'.
54983         * modules/unistr/u32-strncpy-tests: New file.
54984         * tests/unistr/test-u32-strncpy.c: New file.
54986         Tests for module 'unistr/u16-strncpy'.
54987         * modules/unistr/u16-strncpy-tests: New file.
54988         * tests/unistr/test-u16-strncpy.c: New file.
54990         Tests for module 'unistr/u8-strncpy'.
54991         * modules/unistr/u8-strncpy-tests: New file.
54992         * tests/unistr/test-u8-strncpy.c: New file.
54993         * tests/unistr/test-strncpy.h: New file.
54995         Tests for module 'unistr/u32-stpcpy'.
54996         * modules/unistr/u32-stpcpy-tests: New file.
54997         * tests/unistr/test-u32-stpcpy.c: New file.
54999         Tests for module 'unistr/u16-stpcpy'.
55000         * modules/unistr/u16-stpcpy-tests: New file.
55001         * tests/unistr/test-u16-stpcpy.c: New file.
55003         Tests for module 'unistr/u8-stpcpy'.
55004         * modules/unistr/u8-stpcpy-tests: New file.
55005         * tests/unistr/test-u8-stpcpy.c: New file.
55006         * tests/unistr/test-stpcpy.h: New file.
55008         Tests for module 'unistr/u32-strcpy'.
55009         * modules/unistr/u32-strcpy-tests: New file.
55010         * tests/unistr/test-u32-strcpy.c: New file.
55012         Tests for module 'unistr/u16-strcpy'.
55013         * modules/unistr/u16-strcpy-tests: New file.
55014         * tests/unistr/test-u16-strcpy.c: New file.
55016         Tests for module 'unistr/u8-strcpy'.
55017         * modules/unistr/u8-strcpy-tests: New file.
55018         * tests/unistr/test-u8-strcpy.c: New file.
55019         * tests/unistr/test-strcpy.h: New file.
55021         Tests for module 'unistr/u32-strnlen'.
55022         * modules/unistr/u32-strnlen-tests: New file.
55023         * tests/unistr/test-u32-strnlen.c: New file.
55025         Tests for module 'unistr/u16-strnlen'.
55026         * modules/unistr/u16-strnlen-tests: New file.
55027         * tests/unistr/test-u16-strnlen.c: New file.
55029         Tests for module 'unistr/u8-strnlen'.
55030         * modules/unistr/u8-strnlen-tests: New file.
55031         * tests/unistr/test-u8-strnlen.c: New file.
55032         * tests/unistr/test-strnlen.h: New file.
55034         Tests for module 'unistr/u32-strlen'.
55035         * modules/unistr/u32-strlen-tests: New file.
55036         * tests/unistr/test-u32-strlen.c: New file.
55038         Tests for module 'unistr/u16-strlen'.
55039         * modules/unistr/u16-strlen-tests: New file.
55040         * tests/unistr/test-u16-strlen.c: New file.
55042         Tests for module 'unistr/u8-strlen'.
55043         * modules/unistr/u8-strlen-tests: New file.
55044         * tests/unistr/test-u8-strlen.c: New file.
55046         Tests for module 'unistr/u32-prev'.
55047         * modules/unistr/u32-prev-tests: New file.
55048         * tests/unistr/test-u32-prev.c: New file.
55050         Tests for module 'unistr/u16-prev'.
55051         * modules/unistr/u16-prev-tests: New file.
55052         * tests/unistr/test-u16-prev.c: New file.
55054         Tests for module 'unistr/u8-prev'.
55055         * modules/unistr/u8-prev-tests: New file.
55056         * tests/unistr/test-u8-prev.c: New file.
55058         Tests for module 'unistr/u32-next'.
55059         * modules/unistr/u32-next-tests: New file.
55060         * tests/unistr/test-u32-next.c: New file.
55062         Tests for module 'unistr/u16-next'.
55063         * modules/unistr/u16-next-tests: New file.
55064         * tests/unistr/test-u16-next.c: New file.
55066         Tests for module 'unistr/u8-next'.
55067         * modules/unistr/u8-next-tests: New file.
55068         * tests/unistr/test-u8-next.c: New file.
55070         Tests for module 'unistr/u32-strmbtouc'.
55071         * modules/unistr/u32-strmbtouc-tests: New file.
55072         * tests/unistr/test-u32-strmbtouc.c: New file.
55074         Tests for module 'unistr/u16-strmbtouc'.
55075         * modules/unistr/u16-strmbtouc-tests: New file.
55076         * tests/unistr/test-u16-strmbtouc.c: New file.
55078         Tests for module 'unistr/u8-strmbtouc'.
55079         * modules/unistr/u8-strmbtouc-tests: New file.
55080         * tests/unistr/test-u8-strmbtouc.c: New file.
55082         Tests for module 'unistr/u32-strmblen'.
55083         * modules/unistr/u32-strmblen-tests: New file.
55084         * tests/unistr/test-u32-strmblen.c: New file.
55086         Tests for module 'unistr/u16-strmblen'.
55087         * modules/unistr/u16-strmblen-tests: New file.
55088         * tests/unistr/test-u16-strmblen.c: New file.
55090         Tests for module 'unistr/u8-strmblen'.
55091         * modules/unistr/u8-strmblen-tests: New file.
55092         * tests/unistr/test-u8-strmblen.c: New file.
55094         Tests for module 'unistr/u32-cpy-alloc'.
55095         * modules/unistr/u32-cpy-alloc-tests: New file.
55096         * tests/unistr/test-u32-cpy-alloc.c: New file.
55098         Tests for module 'unistr/u16-cpy-alloc'.
55099         * modules/unistr/u16-cpy-alloc-tests: New file.
55100         * tests/unistr/test-u16-cpy-alloc.c: New file.
55102         Tests for module 'unistr/u8-cpy-alloc'.
55103         * modules/unistr/u8-cpy-alloc-tests: New file.
55104         * tests/unistr/test-u8-cpy-alloc.c: New file.
55105         * tests/unistr/test-cpy-alloc.h: New file.
55107         Tests for module 'unistr/u32-mbsnlen'.
55108         * modules/unistr/u32-mbsnlen-tests: New file.
55109         * tests/unistr/test-u32-mbsnlen.c: New file.
55111         Tests for module 'unistr/u16-mbsnlen'.
55112         * modules/unistr/u16-mbsnlen-tests: New file.
55113         * tests/unistr/test-u16-mbsnlen.c: New file.
55115         Tests for module 'unistr/u8-mbsnlen'.
55116         * modules/unistr/u8-mbsnlen-tests: New file.
55117         * tests/unistr/test-u8-mbsnlen.c: New file.
55119         Tests for module 'unistr/u32-chr'.
55120         * modules/unistr/u32-chr-tests: New file.
55121         * tests/unistr/test-u32-chr.c: New file.
55123         Tests for module 'unistr/u16-chr'.
55124         * modules/unistr/u16-chr-tests: New file.
55125         * tests/unistr/test-u16-chr.c: New file.
55127         Tests for module 'unistr/u8-chr'.
55128         * modules/unistr/u8-chr-tests: New file.
55129         * tests/unistr/test-u8-chr.c: New file.
55130         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
55132         Tests for module 'unistr/u32-cmp2'.
55133         * modules/unistr/u32-cmp2-tests: New file.
55134         * tests/unistr/test-u32-cmp2.c: New file.
55136         Tests for module 'unistr/u16-cmp2'.
55137         * modules/unistr/u16-cmp2-tests: New file.
55138         * tests/unistr/test-u16-cmp2.c: New file.
55140         Tests for module 'unistr/u8-cmp2'.
55141         * modules/unistr/u8-cmp2-tests: New file.
55142         * tests/unistr/test-u8-cmp2.c: New file.
55143         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
55145         Tests for module 'unistr/u32-cmp'.
55146         * modules/unistr/u32-cmp-tests: New file.
55147         * tests/unistr/test-u32-cmp.c: New file.
55149         Tests for module 'unistr/u16-cmp'.
55150         * modules/unistr/u16-cmp-tests: New file.
55151         * tests/unistr/test-u16-cmp.c: New file.
55153         Tests for module 'unistr/u8-cmp'.
55154         * modules/unistr/u8-cmp-tests: New file.
55155         * tests/unistr/test-u8-cmp.c: New file.
55156         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
55158         Tests for module 'unistr/u32-set'.
55159         * modules/unistr/u32-set-tests: New file.
55160         * tests/unistr/test-u32-set.c: New file.
55162         Tests for module 'unistr/u16-set'.
55163         * modules/unistr/u16-set-tests: New file.
55164         * tests/unistr/test-u16-set.c: New file.
55166         Tests for module 'unistr/u8-set'.
55167         * modules/unistr/u8-set-tests: New file.
55168         * tests/unistr/test-u8-set.c: New file.
55169         * tests/unistr/test-set.h: New file.
55171         Tests for module 'unistr/u32-move'.
55172         * modules/unistr/u32-move-tests: New file.
55173         * tests/unistr/test-u32-move.c: New file.
55175         Tests for module 'unistr/u16-move'.
55176         * modules/unistr/u16-move-tests: New file.
55177         * tests/unistr/test-u16-move.c: New file.
55179         Tests for module 'unistr/u8-move'.
55180         * modules/unistr/u8-move-tests: New file.
55181         * tests/unistr/test-u8-move.c: New file.
55182         * tests/unistr/test-move.h: New file.
55184         Tests for module 'unistr/u32-cpy'.
55185         * modules/unistr/u32-cpy-tests: New file.
55186         * tests/unistr/test-u32-cpy.c: New file.
55188         Tests for module 'unistr/u16-cpy'.
55189         * modules/unistr/u16-cpy-tests: New file.
55190         * tests/unistr/test-u16-cpy.c: New file.
55192         Tests for module 'unistr/u8-cpy'.
55193         * modules/unistr/u8-cpy-tests: New file.
55194         * tests/unistr/test-u8-cpy.c: New file.
55195         * tests/unistr/test-cpy.h: New file.
55197 2010-01-09  Bruno Haible  <bruno@clisp.org>
55199         Tests for module 'unistr/u32-uctomb'.
55200         * modules/unistr/u32-uctomb-tests: New file.
55201         * tests/unistr/test-u32-uctomb.c: New file.
55203         Tests for module 'unistr/u16-uctomb'.
55204         * modules/unistr/u16-uctomb-tests: New file.
55205         * tests/unistr/test-u16-uctomb.c: New file.
55207         Tests for module 'unistr/u8-uctomb'.
55208         * modules/unistr/u8-uctomb-tests: New file.
55209         * tests/unistr/test-u8-uctomb.c: New file.
55211         Tests for module 'unistr/u32-mbtoucr'.
55212         * modules/unistr/u32-mbtoucr-tests: New file.
55213         * tests/unistr/test-u32-mbtoucr.c: New file.
55215         Tests for module 'unistr/u16-mbtoucr'.
55216         * modules/unistr/u16-mbtoucr-tests: New file.
55217         * tests/unistr/test-u16-mbtoucr.c: New file.
55219         Tests for module 'unistr/u8-mbtoucr'.
55220         * modules/unistr/u8-mbtoucr-tests: New file.
55221         * tests/unistr/test-u8-mbtoucr.c: New file.
55223         Tests for module 'unistr/u32-mbtouc'.
55224         * modules/unistr/u32-mbtouc-tests: New file.
55225         * tests/unistr/test-u32-mbtouc.c: New file.
55227         Tests for module 'unistr/u16-mbtouc'.
55228         * modules/unistr/u16-mbtouc-tests: New file.
55229         * tests/unistr/test-u16-mbtouc.c: New file.
55231         Tests for module 'unistr/u8-mbtouc'.
55232         * modules/unistr/u8-mbtouc-tests: New file.
55233         * tests/unistr/test-u8-mbtouc.c: New file.
55235         Tests for module 'unistr/u32-mbtouc-unsafe'.
55236         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
55237         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
55238         * tests/unistr/test-u32-mbtouc.h: New file.
55240         Tests for module 'unistr/u16-mbtouc-unsafe'.
55241         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
55242         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
55243         * tests/unistr/test-u16-mbtouc.h: New file.
55245         Tests for module 'unistr/u8-mbtouc-unsafe'.
55246         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
55247         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
55248         * tests/unistr/test-u8-mbtouc.h: New file.
55250         Tests for module 'unistr/u32-mblen'.
55251         * modules/unistr/u32-mblen-tests: New file.
55252         * tests/unistr/test-u32-mblen.c: New file.
55254         Tests for module 'unistr/u16-mblen'.
55255         * modules/unistr/u16-mblen-tests: New file.
55256         * tests/unistr/test-u16-mblen.c: New file.
55258         Tests for module 'unistr/u8-mblen'.
55259         * modules/unistr/u8-mblen-tests: New file.
55260         * tests/unistr/test-u8-mblen.c: New file.
55262         Tests for module 'unistr/u32-to-u16'.
55263         * modules/unistr/u32-to-u16-tests: New file.
55264         * tests/unistr/test-u32-to-u16.c: New file.
55266         Tests for module 'unistr/u32-to-u8'.
55267         * modules/unistr/u32-to-u8-tests: New file.
55268         * tests/unistr/test-u32-to-u8.c: New file.
55270         Tests for module 'unistr/u16-to-u32'.
55271         * modules/unistr/u16-to-u32-tests: New file.
55272         * tests/unistr/test-u16-to-u32.c: New file.
55274         Tests for module 'unistr/u16-to-u8'.
55275         * modules/unistr/u16-to-u8-tests: New file.
55276         * tests/unistr/test-u16-to-u8.c: New file.
55278         Tests for module 'unistr/u8-to-u32'.
55279         * modules/unistr/u8-to-u32-tests: New file.
55280         * tests/unistr/test-u8-to-u32.c: New file.
55282         Tests for module 'unistr/u8-to-u16'.
55283         * modules/unistr/u8-to-u16-tests: New file.
55284         * tests/unistr/test-u8-to-u16.c: New file.
55286         Tests for module 'unistr/u32-check'.
55287         * modules/unistr/u32-check-tests: New file.
55288         * tests/unistr/test-u32-check.c: New file.
55290         Tests for module 'unistr/u16-check'.
55291         * modules/unistr/u16-check-tests: New file.
55292         * tests/unistr/test-u16-check.c: New file.
55294         Tests for module 'unistr/u8-check'.
55295         * modules/unistr/u8-check-tests: New file.
55296         * tests/unistr/test-u8-check.c: New file.
55298         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
55299         (category_equals): New function.
55300         (main): Add more tests.
55301         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
55303         * tests/unictype/test-bidi_byname.c (main): Add more tests.
55305 2010-01-10  Bruno Haible  <bruno@clisp.org>
55307         unistr/u*-strcoll: Try harder to distinguish different strings.
55308         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
55309         compare s1 and s2 to see if they are different.
55311 2010-01-10  Bruno Haible  <bruno@clisp.org>
55313         unistr/u*-stpncpy: Fix the return value.
55314         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
55315         description of the return value consistent with stpncpy in glibc.
55316         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
55317         written non-NUL unit.
55319 2010-01-10  Bruno Haible  <bruno@clisp.org>
55321         unistr/u*-next: Add missing dependencies.
55322         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
55323         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
55324         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
55326 2010-01-10  Bruno Haible  <bruno@clisp.org>
55328         unistr/u8-mbsnlen: Fix return value for incomplete character.
55329         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
55330         u8_mblen.
55331         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
55332         Remove unistr/u8-mblen.
55333         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
55334         u16_mblen.
55335         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
55336         Remove unistr/u16-mblen.
55338 2010-01-10  Bruno Haible  <bruno@clisp.org>
55340         wchar: Fix compilation error when <wchar.h> is used from coreutils.
55341         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
55342         Reported by Brian Gough <bjg@gnu.org> and
55343         Chris Clayton <chris2553@googlemail.com> via
55344         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
55346 2010-01-09  Bruno Haible  <bruno@clisp.org>
55348         unistr/u16-to-u32: Reject invalid input.
55349         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
55350         u16_mbtouc.
55351         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
55352         Remove unistr/u16-mbtouc.
55354         unistr/u16-to-u8: Reject invalid input.
55355         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
55356         u16_mbtouc.
55357         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
55358         Remove unistr/u16-mbtouc.
55360         unistr/u8-to-u32: Reject invalid input.
55361         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
55362         u8_mbtouc.
55363         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
55364         Remove unistr/u8-mbtouc.
55366         unistr/u8-to-u16: Reject invalid input.
55367         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
55368         u8_mbtouc.
55369         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
55370         Remove unistr/u8-mbtouc.
55372 2010-01-09  Bruno Haible  <bruno@clisp.org>
55374         Tests for module 'getlogin'.
55375         * modules/getlogin-tests: New file.
55376         * tests/test-getlogin.c: New file.
55378         New module 'getlogin'.
55379         * lib/unistd.in.h (getlogin): New declaration.
55380         * lib/getlogin.c: New file.
55381         * m4/getlogin.m4: New file.
55382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
55383         HAVE_GETLOGIN.
55384         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
55385         HAVE_GETLOGIN.
55386         * modules/getlogin: New file.
55387         * doc/posix-functions/getlogin.texi: Mention the new module.
55388         Reported by John W. Eaton <jwe@gnu.org>.
55390 2010-01-09  Bruno Haible  <bruno@clisp.org>
55392         getlogin_r: Support for native Windows.
55393         * lib/getlogin_r.c: Include <windows.h>
55394         (getlogin_r): Implement for native Windows.
55395         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
55396         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
55397         via John W. Eaton <jwe@gnu.org>.
55399 2010-01-09  Bruno Haible  <bruno@clisp.org>
55401         getlogin_r: Small fixes.
55402         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
55403         succeeds.
55404         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
55405         before testing whether getlogin_r is declared. No need to set
55406         HAVE_DECL_GETLOGIN_R to 1.
55407         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
55409 2010-01-09  Bruno Haible  <bruno@clisp.org>
55411         * lib/unistd.in.h (getlogin_r): Add comment.
55413 2010-01-09  Bruno Haible  <bruno@clisp.org>
55415         Tests for module 'getlogin_r'.
55416         * modules/getlogin_r-tests: New file.
55417         * tests/test-getlogin_r.c: New file.
55419 2010-01-09  Jim Meyering  <meyering@redhat.com>
55421         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
55422         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
55423         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
55425 2010-01-08  Simon Josefsson  <simon@josefsson.org>
55427         * lib/dup2.c (rpl_dup2): Improve comment.
55429 2010-01-08  Eric Blake  <ebb9@byu.net>
55431         maint.mk: allow packages to add makefile @@ exceptions
55432         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
55433         (sc_makefile_check): Rename...
55434         (sc_makefile_at_at_check): ...to this, and use hook.
55436         dup2: work around mingw bug
55437         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
55438         Reported by Simon Josefsson.
55440 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
55442         glob: Fix C++ compilation.
55443         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
55444         C++.
55446 2010-01-07  Bruno Haible  <bruno@clisp.org>
55448         Fix indentation of wctype.in.h, broken since 2007-01-06.
55449         * lib/wctype.in.h: Fix indentation of preprocessor directives.
55451 2010-01-07  Bruno Haible  <bruno@clisp.org>
55453         mbslen: Avoid collision with system function.
55454         * lib/string.in.h [MirBSD]: Include <wchar.h>.
55455         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
55456         * m4/mbslen.m4: New file.
55457         * modules/mbslen (Files): Add it.
55458         (configure.ac): Invoke gl_MBSLEN.
55459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
55460         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
55461         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
55462         via Ian Beckwith <ianb@erislabs.net>.
55464 2010-01-07  Bruno Haible  <bruno@clisp.org>
55466         dirent: Document the last fix.
55467         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
55469 2010-01-07  Bruno Haible  <bruno@clisp.org>
55471         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
55472         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
55473         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
55474         va_list are defined.
55475         * doc/posix-headers/stdio.texi: Document the bug of missing types.
55476         Reported by Eric Blake.
55478 2010-01-07  Bruno Haible  <bruno@clisp.org>
55480         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
55481         * modules/xlist (Depends-on): Add 'list',
55482         * modules/xoset (Depends-on): Add 'oset'.
55483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55485 2010-01-07  Bruno Haible  <bruno@clisp.org>
55487         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
55488         * doc/posix-functions/strncasecmp.texi: Likewise.
55490 2010-01-07  Bruno Haible  <bruno@clisp.org>
55492         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
55494 2010-01-07  John W. Eaton  <jwe@octave.org>
55496         wctype: allow C++ use
55497         * lib/wctype.in.h: Add extern "C" block for C++.
55499 2010-01-06  Eric Blake  <ebb9@byu.net>
55501         maint.mk: detect incorrect GFDL usage
55502         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
55504 2010-01-06  Jim Meyering  <meyering@redhat.com>
55505         and Eric Blake  <ebb9@byu.net>
55507         maint.mk: ignore multi-line copyright in NEWS
55508         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
55510 2010-01-06  Eric Blake  <ebb9@byu.net>
55512         select: add missing dependency
55513         * modules/select-tests (Depends-on): Move sockets dependency...
55514         * modules/select (Depends-on): ...here.
55515         Reported by Ian Beckwith.
55517         doc: regenerate INSTALL
55518         * doc/INSTALL: Reflect recent autoconf update.
55519         * doc/INSTALL.ISO: Likewise.
55520         * doc/INSTALL.UTF-8: Likewise.
55522         pread: fix compilation on glibc
55523         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
55524         Reported by Ralf Wildenhues.
55526         dirent: fix test failure
55527         * lib/dirent.in.h (includes): Guarantee ino_t.
55528         Reported by Ralf Wildenhues.
55530 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
55532         linkat, renameat: avoid bad free
55533         * lib/at-func2.c (at_func2): Fix typo.
55534         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
55536 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55538         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
55539         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
55540         to avoid failure of symlink test later.
55542 2010-01-06  Eric Blake  <ebb9@byu.net>
55544         stdio, unistd: guarantee ssize_t
55545         * lib/unistd.in.h (includes): Ensure that types required by POSIX
55546         2008 are exposed when needed.
55547         * lib/stdio.in.h (includes): Likewise.
55548         Reported by Ralf Wildenhues.
55550 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
55552         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
55553         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
55554         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
55556 2010-01-06  Jim Meyering  <meyering@redhat.com>
55558         readtokens: this module *does* require xalloc.h
55559         It uses only functions that were omitted by the old syntax-check rule.
55560         * lib/readtokens.c: Include "xalloc.h" once again.
55561         * modules/readtokens (Depends-on): Add xalloc.
55562         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
55564 2010-01-05  Eric Blake  <ebb9@byu.net>
55566         maint: support 'make announcement' from a VPATH build
55567         * top/maint.mk (announcement): Look for correct NEWS file.
55569 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
55571         utimens (fdutimens): ignore a negative FD, per contract
55572         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
55573         when we have a valid file descriptor.  Otherwise, using a brand
55574         new glibc (with just-patched futimens that now fails with EBADF)
55575         would cause this function to fail with ENOSYS.
55576         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
55577         See also http://bugzilla.redhat.com/552320.
55579 2010-01-05  Eric Blake  <ebb9@byu.net>
55581         strcase: document what it provides
55582         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
55583         gnulib module.
55584         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
55585         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
55587 2010-01-05  Jim Meyering  <meyering@redhat.com>
55589         maint: remove useless inclusions of "xalloc.h"
55590         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
55591         * lib/readtokens.c: Likewise.
55592         * lib/same.c: Likewise.
55593         * modules/getloadavg (Depends-on): Remove xalloc.
55594         * modules/readtokens: Likewise.
55595         * modules/same: Likewise.
55597         maint.mk: include 4 more function names in alloca.h-checking regexp
55598         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
55599         regexp.  Before, we would give a false-positive (saying alloca.h
55600         is included unnecessarily) when the only uses involved omitted symbols.
55602         xalloc.h: use consistent formatting
55603         * lib/xalloc.h: Move declarations to start in the first column.
55605 2010-01-05  Eric Blake  <ebb9@byu.net>
55607         mkdir: avoid xalloc
55608         * lib/mkdir.c (includes): Drop unused header.
55609         Reported by John W. Eaton.
55611 2010-01-04  Jim Meyering  <meyering@redhat.com>
55613         nl_langinfo: avoid configure-time syntax error
55614         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
55615         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
55616         the empty string.  Don't let that provoke a shell syntax error.
55618         regcomp, regexec, fnmatch: avoid array bounds read error
55619         * lib/regcomp.c (build_equiv_class): From glibc:
55620         Use only the low 24 bits of a findidx return value as an index
55621         into the weights array.  Patch by Ulrich Drepper:
55622         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
55623         * lib/regexec.c (check_node_accept_bytes): Likewise.
55624         * lib/fnmatch_loop.c (FCT): Likewise.
55626         regcomp: skip collseq lookup when there are no rules
55627         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
55628         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
55630         regcomp: recognize ill-formed { } expressions
55631         * lib/regcomp.c (parse_dup_op): From glibc:
55632         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
55634         regcomp: fix typo in comment
55635         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
55636         s/satisfy/satisfies/.
55638         regcomp: sync from glibc: remove dead store
55639         * lib/regcomp.c (duplicate_node_closure): Remove useless
55640         search_duplicated_node call and dead store.
55642         regcomp: sync from glibc; always use nl_langinfo
55643         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
55644         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
55645         * modules/regex (Depends-on): Add nl_langinfo.
55647 2010-01-04  Eric Blake  <ebb9@byu.net>
55649         fdopendir: fix configure test
55650         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
55652 2010-01-01  Bruno Haible  <bruno@clisp.org>
55654         wchar: Remove unused configure check.
55655         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
55657 2010-01-01  Eric Blake  <ebb9@byu.net>
55659         headers: make check of system header explicit
55660         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
55661         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
55662         ourselves.
55663         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55664         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55665         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55666         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
55667         internals.
55668         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
55669         missing.
55670         Suggested by Bruno Haible.
55672 2010-01-01  Jim Meyering  <meyering@redhat.com>
55674         ChangeLog: tweak to eliminate unnecessary copyright line
55675         * ChangeLog: Remove a copyright line that was mistakenly updated
55676         by today's update-copyright run.  Reported by Eric Blake.
55678         test-update-copyright: don't let envvar setting cause test failure
55679         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
55681 2010-01-01  Bruno Haible  <bruno@clisp.org>
55683         localename: Avoid gcc warning.
55684         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
55685         function if it is not used.
55687 2010-01-01  Jim Meyering  <meyering@redhat.com>
55689         update nearly all FSF copyright year lists to include 2010
55690         Use the same procedure as for 2009, outlined in
55691         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
55693         version-etc: set COPYRIGHT_YEAR to 2010
55694         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
55696 2009-12-31  Eric Blake  <ebb9@byu.net>
55698         doc: correct availability of cygwin 1.5.x getopt
55699         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
55700         variables.
55701         * doc/posix-functions/opterr.texi (opterr): Likewise.
55702         * doc/posix-functions/optind.texi (optind): Likewise.
55703         * doc/posix-functions/optopt.texi (optopt): Likewise.
55704         * doc/posix-functions/tzname.texi (tzname): Likewise.
55706         openat: update maintainer
55707         * modules/openat (Maintainer): Add myself.
55709         utimens: avoid shadowing warning
55710         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
55711         buffers into one, to avoid shadowing, as well as avoiding a
55712         redundant stat.
55713         Reported by Jim Meyering.
55715         test-dup2: avoid compiler warning
55716         * tests/test-dup2.c (is_inheritable): Only define if used.
55718 2010-01-01  Bruno Haible  <bruno@clisp.org>
55720         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
55721         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
55722         defined, use wctomb instead of wcrtomb.
55724 2010-01-01  Bruno Haible  <bruno@clisp.org>
55726         iconv: Reject native Solaris iconv.
55727         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
55728         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
55730 2009-12-31  Bruno Haible  <bruno@clisp.org>
55732         * tests/test-signal.c (main): Remove test of 'SIG'.
55734 2009-12-31  Bruno Haible  <bruno@clisp.org>
55736         spawn: Fix incomplete fix.
55737         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
55738         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
55739         warnings for GNULIB_POSIXCHECK again.
55740         Reported by Eric Blake.
55742 2009-12-31  Bruno Haible  <bruno@clisp.org>
55744         Avoid namespace pollution on glibc systems.
55745         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
55746         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
55747         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
55748         glibc systems.
55750 2009-12-31  Bruno Haible  <bruno@clisp.org>
55752         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
55753         (gl_REPLACE_WCHAR_H): Turn into a no-op.
55754         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
55755         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
55756         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
55757         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55758         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55760 2009-12-31  Bruno Haible  <bruno@clisp.org>
55762         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
55763         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
55764         afterwards.
55766 2009-12-31  Bruno Haible  <bruno@clisp.org>
55768         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
55769         SYS_UTSNAME_H.
55771 2009-12-31  Bruno Haible  <bruno@clisp.org>
55773         spawn: Fix misapplied patch.
55774         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
55775         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
55776         warnings for GNULIB_POSIXCHECK.
55778 2009-12-31  Bruno Haible  <bruno@clisp.org>
55780         times: Update after sys_times changed.
55781         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
55782         * modules/times (Files): Add it.
55783         (configure.ac): Invoke gl_FUNC_TIMES.
55785 2009-12-31  Bruno Haible  <bruno@clisp.org>
55787         Use AC_C_INLINE where necessary.
55788         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
55789         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55790         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55791         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55792         * m4/mbfile.m4 (gl_MBFILE): Likewise.
55793         * m4/mbiter.m4 (gl_MBITER): Likewise.
55794         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55795         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
55796         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
55797         * modules/u64 (configure.ac): Likewise.
55799 2009-12-31  Bruno Haible  <bruno@clisp.org>
55801         Use AC_C_INLINE instead of module 'inline' where possible.
55802         * modules/inline (Description): Clarify purpose.
55803         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
55804         * modules/count-one-bits (Depends-on): Remove inline.
55805         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
55806         * modules/openat (Depends-on): Remove inline.
55807         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
55808         instead of depending on module 'inline'.
55809         * modules/filevercmp (Depends-on, configure.ac): Likewise.
55810         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
55811         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
55812         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
55813         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
55814         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
55815         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
55816         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
55817         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
55818         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
55819         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
55820         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
55821         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
55822         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
55823         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
55824         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
55825         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
55826         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
55827         Likewise.
55828         * modules/unictype/property-ascii-hex-digit (Depends-on,
55829         configure.ac): Likewise.
55830         * modules/unictype/property-bidi-arabic-digit (Depends-on,
55831         configure.ac): Likewise.
55832         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
55833         configure.ac): Likewise.
55834         * modules/unictype/property-bidi-block-separator (Depends-on,
55835         configure.ac): Likewise.
55836         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
55837         configure.ac): Likewise.
55838         * modules/unictype/property-bidi-common-separator (Depends-on,
55839         configure.ac): Likewise.
55840         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
55841         Likewise.
55842         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
55843         configure.ac): Likewise.
55844         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
55845         configure.ac): Likewise.
55846         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
55847         configure.ac): Likewise.
55848         * modules/unictype/property-bidi-european-digit (Depends-on,
55849         configure.ac): Likewise.
55850         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
55851         configure.ac): Likewise.
55852         * modules/unictype/property-bidi-left-to-right (Depends-on,
55853         configure.ac): Likewise.
55854         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
55855         configure.ac): Likewise.
55856         * modules/unictype/property-bidi-other-neutral (Depends-on,
55857         configure.ac): Likewise.
55858         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
55859         Likewise.
55860         * modules/unictype/property-bidi-segment-separator (Depends-on,
55861         configure.ac): Likewise.
55862         * modules/unictype/property-bidi-whitespace (Depends-on,
55863         configure.ac): Likewise.
55864         * modules/unictype/property-combining (Depends-on, configure.ac):
55865         Likewise.
55866         * modules/unictype/property-composite (Depends-on, configure.ac):
55867         Likewise.
55868         * modules/unictype/property-currency-symbol (Depends-on,
55869         configure.ac): Likewise.
55870         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
55871         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
55872         Likewise.
55873         * modules/unictype/property-default-ignorable-code-point (Depends-on,
55874         configure.ac): Likewise.
55875         * modules/unictype/property-deprecated (Depends-on, configure.ac):
55876         Likewise.
55877         * modules/unictype/property-diacritic (Depends-on, configure.ac):
55878         Likewise.
55879         * modules/unictype/property-extender (Depends-on, configure.ac):
55880         Likewise.
55881         * modules/unictype/property-format-control (Depends-on, configure.ac):
55882         Likewise.
55883         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
55884         Likewise.
55885         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
55886         Likewise.
55887         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
55888         Likewise.
55889         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
55890         Likewise.
55891         * modules/unictype/property-hyphen (Depends-on, configure.ac):
55892         Likewise.
55893         * modules/unictype/property-id-continue (Depends-on, configure.ac):
55894         Likewise.
55895         * modules/unictype/property-id-start (Depends-on, configure.ac):
55896         Likewise.
55897         * modules/unictype/property-ideographic (Depends-on, configure.ac):
55898         Likewise.
55899         * modules/unictype/property-ids-binary-operator (Depends-on,
55900         configure.ac): Likewise.
55901         * modules/unictype/property-ids-trinary-operator (Depends-on,
55902         configure.ac): Likewise.
55903         * modules/unictype/property-ignorable-control (Depends-on,
55904         configure.ac): Likewise.
55905         * modules/unictype/property-iso-control (Depends-on, configure.ac):
55906         Likewise.
55907         * modules/unictype/property-join-control (Depends-on, configure.ac):
55908         Likewise.
55909         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
55910         Likewise.
55911         * modules/unictype/property-line-separator (Depends-on, configure.ac):
55912         Likewise.
55913         * modules/unictype/property-logical-order-exception (Depends-on,
55914         configure.ac): Likewise.
55915         * modules/unictype/property-lowercase (Depends-on, configure.ac):
55916         Likewise.
55917         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
55918         * modules/unictype/property-non-break (Depends-on, configure.ac):
55919         Likewise.
55920         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
55921         Likewise.
55922         * modules/unictype/property-numeric (Depends-on, configure.ac):
55923         Likewise.
55924         * modules/unictype/property-other-alphabetic (Depends-on,
55925         configure.ac): Likewise.
55926         * modules/unictype/property-other-default-ignorable-code-point
55927         (Depends-on, configure.ac): Likewise.
55928         * modules/unictype/property-other-grapheme-extend (Depends-on,
55929         configure.ac): Likewise.
55930         * modules/unictype/property-other-id-continue (Depends-on,
55931         configure.ac): Likewise.
55932         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
55933         Likewise.
55934         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
55935         Likewise.
55936         * modules/unictype/property-other-math (Depends-on, configure.ac):
55937         Likewise.
55938         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
55939         Likewise.
55940         * modules/unictype/property-paired-punctuation (Depends-on,
55941         configure.ac): Likewise.
55942         * modules/unictype/property-paragraph-separator (Depends-on,
55943         configure.ac): Likewise.
55944         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
55945         Likewise.
55946         * modules/unictype/property-pattern-white-space (Depends-on,
55947         configure.ac): Likewise.
55948         * modules/unictype/property-private-use (Depends-on, configure.ac):
55949         Likewise.
55950         * modules/unictype/property-punctuation (Depends-on, configure.ac):
55951         Likewise.
55952         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
55953         Likewise.
55954         * modules/unictype/property-radical (Depends-on, configure.ac):
55955         Likewise.
55956         * modules/unictype/property-sentence-terminal (Depends-on,
55957         configure.ac): Likewise.
55958         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
55959         Likewise.
55960         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
55961         * modules/unictype/property-terminal-punctuation (Depends-on,
55962         configure.ac): Likewise.
55963         * modules/unictype/property-titlecase (Depends-on, configure.ac):
55964         Likewise.
55965         * modules/unictype/property-unassigned-code-value (Depends-on,
55966         configure.ac): Likewise.
55967         * modules/unictype/property-unified-ideograph (Depends-on,
55968         configure.ac): Likewise.
55969         * modules/unictype/property-uppercase (Depends-on, configure.ac):
55970         Likewise.
55971         * modules/unictype/property-variation-selector (Depends-on,
55972         configure.ac): Likewise.
55973         * modules/unictype/property-white-space (Depends-on, configure.ac):
55974         Likewise.
55975         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
55976         Likewise.
55977         * modules/unictype/property-xid-start (Depends-on, configure.ac):
55978         Likewise.
55979         * modules/unictype/property-zero-width (Depends-on, configure.ac):
55980         Likewise.
55981         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
55982         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
55983         Likewise.
55985 2009-12-31  Bruno Haible  <bruno@clisp.org>
55987         Remove unnecessary AC_C_INLINE invocation.
55988         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
55989         since 2009-08-21.
55991 2009-12-31  Jim Meyering  <meyering@redhat.com>
55993         maint.mk: don't require explicit gpg_key_ID in cfg.mk
55994         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
55995         With this change, we can all remove the gpg_key_ID = ... definition
55996         from our respective cfg.mk files.
55998         maint.mk: create announcement template in ~/, not in /tmp
55999         * top/maint.mk (emit_upload_commands): Adjust.
56000         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
56001         Remove temporary file, .ci-msg.
56003 2009-12-31  Eric Blake  <ebb9@byu.net>
56005         link-warning: always build headers with link warnings
56006         * modules/arpa_inet (Makefile.am): Always build replacement
56007         header.
56008         * modules/ctype (Makefile.am): Likewise.
56009         * modules/dirent (Makefile.am): Likewise.
56010         * modules/inttypes (Makefile.am): Likewise.
56011         * modules/langinfo (Makefile.am): Likewise.
56012         * modules/locale (Makefile.am): Likewise.
56013         * modules/spawn (Makefile.am): Likewise.
56014         * modules/sys_file (Makefile.am): Likewise.
56015         * modules/sys_ioctl (Makefile.am): Likewise.
56016         * modules/sys_select (Makefile.am): Likewise.
56017         * modules/sys_socket (Makefile.am): Likewise.
56018         * modules/sys_times (Makefile.am): Likewise.
56019         * modules/sys_utsname (Makefile.am): Likewise.
56020         * modules/sys_wait (Makefile.am): Likewise.
56021         * modules/wchar (Makefile.am): Likewise.
56022         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
56023         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
56024         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
56025         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
56026         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
56027         Likewise.
56028         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56029         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
56030         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
56031         Likewise.
56032         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
56033         Likewise.
56034         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56035         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
56036         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
56037         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56038         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56039         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
56040         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
56041         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
56042         (gl_WCHAR_H_DEFAULTS): Likewise.
56044 2009-12-31  Eric Blake  <ebb9@byu.net>
56046         signal, spawn: use link warnings
56047         * lib/signal.in.h (sigset_t): Make unconditional.
56048         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
56049         (sigpending, sigprocmask, sigaction): Add link warnings.
56050         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
56051         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
56052         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
56053         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
56054         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
56055         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
56056         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
56057         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
56058         (posix_spawn_file_actions_destroy)
56059         (posix_spawn_file_actions_addopen)
56060         (posix_spawn_file_actions_addclose)
56061         (posix_spawn_file_actions_adddup2): Likewise.
56062         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
56063         * tests/test-signal.c (main): Enhance test.
56065         spawn: improve wrapper support
56066         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
56067         (gl_SPAWN_H_DEFAULTS): New defaults.
56068         * modules/spawn (Makefile.am): Substitute them.
56069         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
56070         Only declare if missing or broken.
56072         sys_times, sys_utsname: use include_next
56073         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
56074         header.
56075         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
56076         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
56077         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
56078         * modules/sys_times (Depends-on): Add include_next.
56079         (Makefile.am): Substitute additional values.
56080         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
56081         * lib/sys_times.in.h (includes): Include native header, if
56082         available.
56083         * lib/sys_utsname.in.h (includes): Likewise.
56084         * tests/test-sys_times.c (main): Enhance test.
56086         fdutimensat: revert prior patch
56087         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
56088         utimens.h.
56089         Reported by Bruno Haible.
56091 2009-12-30  Eric Blake  <ebb9@byu.net>
56093         sys_wait: drop link-warning dependency
56094         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
56095         link-warning efforts.
56096         * lib/sys_wait.in.h: Likewise.
56098         fdutimensat: remove bogus dependency
56099         * modules/fdutimensat (Depends-on): Drop inline.
56101         unistd: fix typo
56102         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
56104 2009-12-30  Bruno Haible  <bruno@clisp.org>
56106         Fix compilation error with Solaris cc.
56107         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
56108         * lib/unicase/u16-is-invariant.c: Likewise.
56109         * lib/unicase/u32-is-invariant.c: Likewise.
56110         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56112 2009-12-30  Bruno Haible  <bruno@clisp.org>
56114         Fix test crash.
56115         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
56116         locales.
56117         Reported by Simon Josefsson <simon@josefsson.org>.
56119 2009-12-30  Bruno Haible  <bruno@clisp.org>
56121         Fix compilation error on most platforms.
56122         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
56123         Reported by Simon Josefsson <simon@josefsson.org>
56124         and Nelson H. F. Beebe <beebe@math.utah.edu>.
56126 2009-12-30  Eric Blake  <ebb9@byu.net>
56128         futimens, utimensat: work around ntfs-3g bug
56129         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
56130         a ctime bug is present, and expand workaround to cover ntfs-3g.
56131         * lib/utimens.c (fdutimens, lutimens): Likewise.
56132         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
56133         (validate_timespec): Adjust return value.
56134         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
56135         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
56136         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
56138 2009-12-29  Eric Blake  <ebb9@byu.net>
56140         link-warning: make usage consistent
56141         * modules/ctype (Depends-on): Add link-warning.
56142         (Makefile.am): Update rules accordingly.
56143         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56144         * modules/locale (Depends-on, Makefile.am): Likewise.
56145         * modules/sys_file (Makefile.am): Likewise.
56146         * modules/getopt-posix (Makefile.am): Delete unused link warning
56147         efforts.
56148         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
56149         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
56150         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
56151         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
56153         stdio: remove unused variables
56154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
56155         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
56156         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
56158         tests: test more substitute headers
56159         * modules/ctype-tests: New file.
56160         * modules/dirent-tests: Likewise.
56161         * modules/spawn-tests: Likewise.
56162         * modules/sys_file-tests: Likewise.
56163         * modules/sys_ioctl-tests: Likewise.
56164         * modules/sys_wait-tests: Likewise.
56165         * tests/test-ctype.c: Likewise.
56166         * tests/test-dirent.c: Likewise.
56167         * tests/test-spawn.c: Likewise.
56168         * tests/test-sys_file.c: Likewise.
56169         * tests/test-sys_ioctl.c: Likewise.
56170         * tests/test-sys_wait.c: Likewise.
56171         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
56172         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
56173         whether or not flock is in use.
56175         tests: remove License section from module
56176         * modules/arpa_inet-tests: Remove unneeded section.
56177         * modules/byteswap-tests: Likewise.
56178         * modules/ceilf-tests: Likewise.
56179         * modules/ceill-tests: Likewise.
56180         * modules/crypto/des-tests: Likewise.
56181         * modules/crypto/gc-arcfour-tests: Likewise.
56182         * modules/crypto/gc-arctwo-tests: Likewise.
56183         * modules/crypto/gc-des-tests: Likewise.
56184         * modules/crypto/gc-hmac-md5-tests: Likewise.
56185         * modules/crypto/gc-hmac-sha1-tests: Likewise.
56186         * modules/crypto/gc-md2-tests: Likewise.
56187         * modules/crypto/gc-md4-tests: Likewise.
56188         * modules/crypto/gc-md5-tests: Likewise.
56189         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
56190         * modules/crypto/gc-rijndael-tests: Likewise.
56191         * modules/crypto/gc-sha1-tests: Likewise.
56192         * modules/crypto/gc-tests: Likewise.
56193         * modules/crypto/md2-tests: Likewise.
56194         * modules/crypto/md4-tests: Likewise.
56195         * modules/fcntl-h-tests: Likewise.
56196         * modules/floorf-tests: Likewise.
56197         * modules/floorl-tests: Likewise.
56198         * modules/frexp-nolibm-tests: Likewise.
56199         * modules/frexp-tests: Likewise.
56200         * modules/frexpl-nolibm-tests: Likewise.
56201         * modules/frexpl-tests: Likewise.
56202         * modules/getaddrinfo-tests: Likewise.
56203         * modules/inttypes-tests: Likewise.
56204         * modules/isfinite-tests: Likewise.
56205         * modules/isinf-tests: Likewise.
56206         * modules/ldexpl-tests: Likewise.
56207         * modules/locale-tests: Likewise.
56208         * modules/math-tests: Likewise.
56209         * modules/netdb-tests: Likewise.
56210         * modules/netinet_in-tests: Likewise.
56211         * modules/printf-frexp-tests: Likewise.
56212         * modules/printf-frexpl-tests: Likewise.
56213         * modules/priv-set-tests: Likewise.
56214         * modules/random_r-tests: Likewise.
56215         * modules/round-tests: Likewise.
56216         * modules/roundf-tests: Likewise.
56217         * modules/roundl-tests: Likewise.
56218         * modules/search-tests: Likewise.
56219         * modules/select-tests: Likewise.
56220         * modules/signal-tests: Likewise.
56221         * modules/stdbool-tests: Likewise.
56222         * modules/stddef-tests: Likewise.
56223         * modules/stdint-tests: Likewise.
56224         * modules/stdio-tests: Likewise.
56225         * modules/stdlib-tests: Likewise.
56226         * modules/string-tests: Likewise.
56227         * modules/strings-tests: Likewise.
56228         * modules/sys_select-tests: Likewise.
56229         * modules/sys_socket-tests: Likewise.
56230         * modules/sys_stat-tests: Likewise.
56231         * modules/sys_time-tests: Likewise.
56232         * modules/sys_utsname-tests: Likewise.
56233         * modules/sysexits-tests: Likewise.
56234         * modules/time-tests: Likewise.
56235         * modules/trunc-tests: Likewise.
56236         * modules/truncf-tests: Likewise.
56237         * modules/truncl-tests: Likewise.
56238         * modules/tsearch-tests: Likewise.
56239         * modules/unistd-tests: Likewise.
56240         * modules/wchar-tests: Likewise.
56241         * modules/wctype-tests: Likewise.
56243         tests: fix license on several tests
56244         * tests/test-des.c: Update to GPLv3+.
56245         * tests/test-flock.c: Likewise.
56246         * tests/test-fsync.c: Likewise.
56247         * tests/test-futimens.h: Likewise.
56248         * tests/test-gc-arcfour.c: Likewise.
56249         * tests/test-gc-arctwo.c: Likewise.
56250         * tests/test-gc-des.c: Likewise.
56251         * tests/test-gc-hmac-md5.c: Likewise.
56252         * tests/test-gc-hmac-sha1.c: Likewise.
56253         * tests/test-gc-md2.c: Likewise.
56254         * tests/test-gc-md4.c: Likewise.
56255         * tests/test-gc-md5.c: Likewise.
56256         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56257         * tests/test-gc-rijndael.c: Likewise.
56258         * tests/test-gc-sha1.c: Likewise.
56259         * tests/test-gc.c: Likewise.
56260         * tests/test-getcwd.c: Likewise.
56261         * tests/test-link.c: Likewise.
56262         * tests/test-link.h: Likewise.
56263         * tests/test-lutimens.h: Likewise.
56264         * tests/test-md2.c: Likewise.
56265         * tests/test-md4.c: Likewise.
56266         * tests/test-mkdir.h: Likewise.
56267         * tests/test-rename.c: Likewise.
56268         * tests/test-rename.h: Likewise.
56269         * tests/test-safe-alloc.c: Likewise.
56270         * tests/test-utimens-common.h: Likewise.
56271         * tests/test-utimens.h: Likewise.
56273         maint: sync license texts
56274         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
56275         * doc/gpl-3.0.texi: Revert copyright year update.
56276         * doc/lgpl-3.0.texi: Likewise.
56278 2009-12-29  Jim Meyering  <meyering@redhat.com>
56280         update nearly all FSF copyright year lists to include 2009
56281         The files named by the following are exempted:
56282             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
56283               test -f "$dst" && { echo "$dst"; continue; }
56284               test -d "$dst" || continue
56285               echo "$dst"/$(basename "$src")
56286             done > exempt
56287             git ls-files tests/unictype >> exempt
56288         In the remaining files, convert to all-interval notation if
56289         - there is already at least one year interval like 2000-2003
56290         - the file is maintained by me
56291         - the file is in lib/uni*/, where that style already prevails
56292         Otherwise, use update-copyright's default.
56294 2009-12-29  Simon Josefsson  <simon@josefsson.org>
56295         and Eric Blake  <ebb9@byu.net>
56297         tests: don't require debug system() to pass
56298         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
56299         * tests/test-rmdir.h (test_rmdir_func): Likewise.
56300         * tests/test-unlink.h (test_unlink_func): Likewise.
56301         * tests/test-fstatat.c (main): ...into callers.
56302         * tests/test-lstat.c (main): Likewise.
56303         * tests/test-rmdir.c (main): Likewise.
56304         * tests/test-unlink.c (main): Likewise.
56305         * tests/test-unlinkat.c (main): Likewise.
56306         * tests/test-areadlink-with-size.c (main): Don't require a
56307         debug-only system call to pass, aiding cross-testing to mingw.
56308         * tests/test-areadlink.c (main): Likewise.
56309         * tests/test-areadlinkat-with-size.c (main): Likewise.
56310         * tests/test-areadlinkat.c (main): Likewise.
56311         * tests/test-canonicalize-lgpl.c (main): Likewise.
56312         * tests/test-canonicalize.c (main): Likewise.
56313         * tests/test-chown.c (main): Likewise.
56314         * tests/test-fchownat.c (main): Likewise.
56315         * tests/test-lchown.c (main): Likewise.
56316         * tests/test-fdutimensat.c (main): Likewise.
56317         * tests/test-futimens.c (main): Likewise.
56318         * tests/test-link.c (main): Likewise.
56319         * tests/test-linkat.c (main): Likewise.
56320         * tests/test-mkdir.c (main): Likewise.
56321         * tests/test-mkdirat.c (main): Likewise.
56322         * tests/test-mkfifo.c (main): Likewise.
56323         * tests/test-mkfifoat.c (main): Likewise.
56324         * tests/test-mknod.c (main): Likewise.
56325         * tests/test-readlink.c (main): Likewise.
56326         * tests/test-remove.c (main): Likewise.
56327         * tests/test-rename.c (main): Likewise.
56328         * tests/test-renameat.c (main): Likewise.
56329         * tests/test-symlink.c (main): Likewise.
56330         * tests/test-symlinkat.c (main): Likewise.
56331         * tests/test-utimens.c (main): Likewise.
56332         * tests/test-utimensat.c (main): Likewise.
56334 2009-12-29  Simon Josefsson  <simon@josefsson.org>
56336         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
56337         on $(UNUSED_PARAMETER_H) to avoid build failure.
56339 2009-12-28  Jim Meyering  <meyering@redhat.com>
56341         update-copyright: you may specify a max. line length other than 72
56342         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
56344         maint: use consistent FSF copyright line syntax
56345         * lib/posixtm.c: Add missing comma in FSF copyright line.
56346         * lib/posixtm.h: Likewise.
56347         * lib/getugroups.c: Add missing ", Inc.".
56349         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
56350         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
56351         FSF copyright line.  Remove trailing blanks.
56353 2009-12-28  Eric Blake  <ebb9@byu.net>
56355         test-dup2: reduce dependencies
56356         * modules/cloexec (Configure.ac): Set witness.
56357         * modules/dup2-tests (Depends-on): Drop cloexec.
56358         * tests/test-dup2.c (main): Skip portion of test if cloexec module
56359         not present.
56360         Suggested by Bruno Haible.
56362 2009-12-26  Bruno Haible  <bruno@clisp.org>
56364         Remove an unneeded dependency.
56365         * modules/fseterr (Depends-on): Remove dup2.
56367 2009-12-26  Eric Blake  <ebb9@byu.net>
56369         tests: use macros.h in more places
56370         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
56371         (ASSERT_STREAM): Provide default of stderr.
56372         * tests/test-dirent-safer.c: Include macros.h, using alternate
56373         stream for assertions.
56374         * tests/test-dup-safer.c: Likewise.
56375         * tests/test-freopen-safer.c: Likewise.
56376         * tests/test-getopt.c: Likewise.
56377         * tests/test-openat-safer.c: Likewise.
56378         * tests/test-pipe.c: Likewise.
56379         * tests/test-popen-safer.c: Likewise.
56380         * modules/dirent-safer-tests (Files): Include macros.h.
56381         * modules/unistd-safer-tests (Files): Likewise.
56382         * modules/freopen-safer-tests (Files): Likewise.
56383         * modules/getopt-posix-tests (Files): Likewise.
56384         * modules/openat-safer-tests (Files): Likewise.
56385         * modules/pipe-tests (Files): Likewise.
56387 2009-12-26  Bruno Haible  <bruno@clisp.org>
56389         javacomp-script: Portability fix.
56390         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
56391         that it also works on Solaris.
56393 2009-12-26  Bruno Haible  <bruno@clisp.org>
56395         localename: Fix storage allocation of gl_locale_name_thread's result.
56396         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
56397         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
56398         all platforms that have 'uselocale'.
56399         (gl_locale_name_thread_unsafe): New function, extracted from
56400         gl_locale_name_thread.
56401         (gl_locale_name_thread): Call struniq on all platforms that have
56402         'uselocale'.
56403         * tests/test-localename.c (test_locale_name_thread): Check that the
56404         resulting strings are permanently allocated.
56405         * modules/localename-tests (Depends-on): Add strdup.
56407 2009-12-26  Bruno Haible  <bruno@clisp.org>
56409         * tests/test-localename.c (categories): Fill in the strings.
56411 2009-12-26  Jim Meyering  <meyering@redhat.com>
56413         isdir: complete the removal of m4/isdir.m4
56414         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
56416         isdir: clean up, since at least grep still uses it
56417         * lib/isdir.c: Include "isdir.h".
56418         (S_ISDIR): Remove now-unneeded definition.
56419         * modules/isdir (Files): Add lib/isdir.h.
56420         * lib/isdir.h: New file, with declaration.
56421         * m4/isdir.m4: Remove file -- unneeded.
56423 2009-12-25  Bruno Haible  <bruno@clisp.org>
56425         selinux-h: Make generated .h files standalone.
56426         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
56427         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
56428         * lib/se-selinux.in.h: Likewise.
56429         * modules/selinux-h (Depends-on): Add unused-parameter.
56430         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
56431         selinux/selinux.h and selinux/context.h.
56432         Suggested by Eric Blake.
56434 2009-12-25  Bruno Haible  <bruno@clisp.org>
56436         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
56437         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
56438         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
56439         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
56440         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
56442 2009-12-24  Bruno Haible  <bruno@clisp.org>
56444         openat: Fix warning.
56445         * lib/openat-proc.c: Include <unistd.h>.
56447 2009-12-24  Bruno Haible  <bruno@clisp.org>
56449         New module 'unused-parameter'.
56450         * build-aux/unused-parameter.h: New file, extracted from earlier
56451         gnulib-common.m4.
56452         * modules/unused-parameter: New file.
56453         * lib/unistr.h: Include unused-parameter.h.
56454         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
56455         _GL_UNUSED.
56456         * modules/unistr/base (Depends-on): Add unused-parameter.
56458 2009-12-24  Bruno Haible  <bruno@clisp.org>
56460         Add missing dependencies to 'extensions' module.
56461         * m4/extensions.m4: Add comment.
56462         * modules/accept4 (Depends-on): Add extensions.
56463         * modules/dup3 (Depends-on): Likewise.
56464         * modules/fcntl (Depends-on): Likewise.
56465         * modules/futimens (Depends-on): Likewise.
56466         * modules/mknod (Depends-on): Likewise.
56467         * modules/pipe2 (Depends-on): Likewise.
56468         * modules/stat-time (Depends-on): Likewise.
56469         * modules/strcasestr-simple (Depends-on): Likewise.
56470         * modules/strsignal (Depends-on): Likewise.
56471         * modules/utimensat (Depends-on): Likewise.
56472         * modules/localcharset (Depends-on): Likewise. Needed because of
56473         gl_FCNTL_O_FLAGS.
56474         * modules/wcrtomb (Depends-on): Likewise. Needed because of
56475         AC_TYPE_MBSTATE_T.
56476         * modules/wcsnrtombs (Depends-on): Likewise.
56477         * modules/wcsrtombs (Depends-on): Likewise.
56479 2009-12-24  Bruno Haible  <bruno@clisp.org>
56481         binary-io: Avoid gcc warning due to SET_BINARY.
56482         * lib/binary-io.h (SET_BINARY): Cast the result to void.
56483         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
56485 2009-12-24  Bruno Haible  <bruno@clisp.org>
56487         Avoid future namespace pollution on glibc systems.
56488         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
56489         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
56490         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
56491         glibc systems.
56493 2009-12-24  Bruno Haible  <bruno@clisp.org>
56495         Refactor common macros used in tests.
56496         * tests/macros.h: New file.
56497         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
56498         and/or <stdlib.h>, if appropriate.
56499         (ASSERT, SIZEOF): Remove macros.
56500         * tests/test-areadlink-with-size.c: Likewise.
56501         * tests/test-areadlinkat.c: Likewise.
56502         * tests/test-areadlinkat-with-size.c: Likewise.
56503         * tests/test-argmatch.c: Likewise.
56504         * tests/test-argv-iter.c: Likewise.
56505         * tests/test-array-mergesort.c: Likewise.
56506         * tests/test-array_list.c: Likewise.
56507         * tests/test-array_oset.c: Likewise.
56508         * tests/test-avltree_list.c: Likewise.
56509         * tests/test-avltree_oset.c: Likewise.
56510         * tests/test-avltreehash_list.c: Likewise.
56511         * tests/test-base64.c: Likewise.
56512         * tests/test-binary-io.c: Likewise.
56513         * tests/test-bitrotate.c: Likewise.
56514         * tests/test-btowc.c: Likewise.
56515         * tests/test-byteswap.c: Likewise.
56516         * tests/test-c-ctype.c: Likewise.
56517         * tests/test-c-stack.c: Likewise.
56518         * tests/test-c-strcasecmp.c: Likewise.
56519         * tests/test-c-strcasestr.c: Likewise.
56520         * tests/test-c-strncasecmp.c: Likewise.
56521         * tests/test-c-strstr.c: Likewise.
56522         * tests/test-canonicalize-lgpl.c: Likewise.
56523         * tests/test-canonicalize.c: Likewise.
56524         * tests/test-carray_list.c: Likewise.
56525         * tests/test-ceilf1.c: Likewise.
56526         * tests/test-ceilf2.c: Likewise.
56527         * tests/test-ceill.c: Likewise.
56528         * tests/test-chown.c: Likewise.
56529         * tests/test-cloexec.c: Likewise.
56530         * tests/test-copy-acl.c: Likewise.
56531         * tests/test-copy-file.c: Likewise.
56532         * tests/test-count-one-bits.c: Likewise.
56533         * tests/test-dprintf-posix.c: Likewise.
56534         * tests/test-dup2.c: Likewise.
56535         * tests/test-dup3.c: Likewise.
56536         * tests/test-duplocale.c: Likewise.
56537         * tests/test-fbufmode.c: Likewise.
56538         * tests/test-fchdir.c: Likewise.
56539         * tests/test-fchownat.c: Likewise.
56540         * tests/test-fcntl-safer.c: Likewise.
56541         * tests/test-fcntl.c: Likewise.
56542         * tests/test-fdopendir.c: Likewise.
56543         * tests/test-fdutimensat.c: Likewise.
56544         * tests/test-fflush2.c: Likewise.
56545         * tests/test-file-has-acl.c: Likewise.
56546         * tests/test-filevercmp.c: Likewise.
56547         * tests/test-flock.c: Likewise.
56548         * tests/test-floorf1.c: Likewise.
56549         * tests/test-floorf2.c: Likewise.
56550         * tests/test-floorl.c: Likewise.
56551         * tests/test-fnmatch.c: Likewise.
56552         * tests/test-fopen.h: Likewise.
56553         * tests/test-fpending.c: Likewise.
56554         * tests/test-fprintf-posix.c: Likewise.
56555         * tests/test-fpurge.c: Likewise.
56556         * tests/test-freadable.c: Likewise.
56557         * tests/test-freadahead.c: Likewise.
56558         * tests/test-freading.c: Likewise.
56559         * tests/test-freadptr.c: Likewise.
56560         * tests/test-freadptr2.c: Likewise.
56561         * tests/test-freadseek.c: Likewise.
56562         * tests/test-freopen.c: Likewise.
56563         * tests/test-frexp.c: Likewise.
56564         * tests/test-frexpl.c: Likewise.
56565         * tests/test-fseek.c: Likewise.
56566         * tests/test-fseeko.c: Likewise.
56567         * tests/test-fstatat.c: Likewise.
56568         * tests/test-fstrcmp.c: Likewise.
56569         * tests/test-fsync.c: Likewise.
56570         * tests/test-ftell.c: Likewise.
56571         * tests/test-ftello.c: Likewise.
56572         * tests/test-func.c: Likewise.
56573         * tests/test-futimens.c: Likewise.
56574         * tests/test-fwritable.c: Likewise.
56575         * tests/test-fwriting.c: Likewise.
56576         * tests/test-getcwd.c: Likewise.
56577         * tests/test-getdate.c: Likewise.
56578         * tests/test-getdelim.c: Likewise.
56579         * tests/test-getdtablesize.c: Likewise.
56580         * tests/test-getgroups.c: Likewise.
56581         * tests/test-getline.c: Likewise.
56582         * tests/test-getndelim2.c: Likewise.
56583         * tests/test-glob.c: Likewise.
56584         * tests/test-hash.c: Likewise.
56585         * tests/test-i-ring.c: Likewise.
56586         * tests/test-iconv-utf.c: Likewise.
56587         * tests/test-iconv.c: Likewise.
56588         * tests/test-idpriv-drop.c: Likewise.
56589         * tests/test-idpriv-droptemp.c: Likewise.
56590         * tests/test-inet_ntop.c: Likewise.
56591         * tests/test-inet_pton.c: Likewise.
56592         * tests/test-isblank.c: Likewise.
56593         * tests/test-isfinite.c: Likewise.
56594         * tests/test-isinf.c: Likewise.
56595         * tests/test-isnan.c: Likewise.
56596         * tests/test-isnand.h: Likewise.
56597         * tests/test-isnanf.h: Likewise.
56598         * tests/test-isnanl.h: Likewise.
56599         * tests/test-lchown.c: Likewise.
56600         * tests/test-ldexpl.c: Likewise.
56601         * tests/test-link.c: Likewise.
56602         * tests/test-linkat.c: Likewise.
56603         * tests/test-linked_list.c: Likewise.
56604         * tests/test-linkedhash_list.c: Likewise.
56605         * tests/test-localename.c: Likewise.
56606         * tests/test-lseek.c: Likewise.
56607         * tests/test-lstat.c: Likewise.
56608         * tests/test-mbmemcasecmp.c: Likewise.
56609         * tests/test-mbmemcasecoll.c: Likewise.
56610         * tests/test-mbrtowc.c: Likewise.
56611         * tests/test-mbscasecmp.c: Likewise.
56612         * tests/test-mbscasestr1.c: Likewise.
56613         * tests/test-mbscasestr2.c: Likewise.
56614         * tests/test-mbscasestr3.c: Likewise.
56615         * tests/test-mbscasestr4.c: Likewise.
56616         * tests/test-mbschr.c: Likewise.
56617         * tests/test-mbscspn.c: Likewise.
56618         * tests/test-mbsinit.c: Likewise.
56619         * tests/test-mbsncasecmp.c: Likewise.
56620         * tests/test-mbsnrtowcs.c: Likewise.
56621         * tests/test-mbspbrk.c: Likewise.
56622         * tests/test-mbspcasecmp.c: Likewise.
56623         * tests/test-mbsrchr.c: Likewise.
56624         * tests/test-mbsrtowcs.c: Likewise.
56625         * tests/test-mbsspn.c: Likewise.
56626         * tests/test-mbsstr1.c: Likewise.
56627         * tests/test-mbsstr2.c: Likewise.
56628         * tests/test-mbsstr3.c: Likewise.
56629         * tests/test-memchr.c: Likewise.
56630         * tests/test-memchr2.c: Likewise.
56631         * tests/test-memcmp.c: Likewise.
56632         * tests/test-memmem.c: Likewise.
56633         * tests/test-memrchr.c: Likewise.
56634         * tests/test-mkdir.c: Likewise.
56635         * tests/test-mkdirat.c: Likewise.
56636         * tests/test-mkfifo.c: Likewise.
56637         * tests/test-mkfifoat.c: Likewise.
56638         * tests/test-mknod.c: Likewise.
56639         * tests/test-nanosleep.c: Likewise.
56640         * tests/test-nl_langinfo.c: Likewise.
56641         * tests/test-obstack-printf.c: Likewise.
56642         * tests/test-open.c: Likewise.
56643         * tests/test-openat.c: Likewise.
56644         * tests/test-pipe-filter-gi1.c: Likewise.
56645         * tests/test-pipe-filter-gi2-main.c: Likewise.
56646         * tests/test-pipe-filter-ii1.c: Likewise.
56647         * tests/test-pipe-filter-ii2-main.c: Likewise.
56648         * tests/test-pipe2.c: Likewise.
56649         * tests/test-popen.h: Likewise.
56650         * tests/test-posixtm.c: Likewise.
56651         * tests/test-pread.c: Likewise.
56652         * tests/test-printf-frexp.c: Likewise.
56653         * tests/test-printf-frexpl.c: Likewise.
56654         * tests/test-printf-posix.c: Likewise.
56655         * tests/test-priv-set.c: Likewise.
56656         * tests/test-quotearg.c: Likewise.
56657         * tests/test-random_r.c: Likewise.
56658         * tests/test-rawmemchr.c: Likewise.
56659         * tests/test-rbtree_list.c: Likewise.
56660         * tests/test-rbtree_oset.c: Likewise.
56661         * tests/test-rbtreehash_list.c: Likewise.
56662         * tests/test-readlink.c: Likewise.
56663         * tests/test-remove.c: Likewise.
56664         * tests/test-rename.c: Likewise.
56665         * tests/test-renameat.c: Likewise.
56666         * tests/test-rmdir.c: Likewise.
56667         * tests/test-round1.c: Likewise.
56668         * tests/test-roundf1.c: Likewise.
56669         * tests/test-roundl.c: Likewise.
56670         * tests/test-safe-alloc.c: Likewise.
56671         * tests/test-sameacls.c: Likewise.
56672         * tests/test-set-mode-acl.c: Likewise.
56673         * tests/test-setenv.c: Likewise.
56674         * tests/test-sigaction.c: Likewise.
56675         * tests/test-signbit.c: Likewise.
56676         * tests/test-sleep.c: Likewise.
56677         * tests/test-snprintf-posix.c: Likewise.
56678         * tests/test-snprintf.c: Likewise.
56679         * tests/test-sprintf-posix.c: Likewise.
56680         * tests/test-stat-time.c: Likewise.
56681         * tests/test-stat.c: Likewise.
56682         * tests/test-strcasestr.c: Likewise.
56683         * tests/test-strchrnul.c: Likewise.
56684         * tests/test-strerror.c: Likewise.
56685         * tests/test-striconv.c: Likewise.
56686         * tests/test-striconveh.c: Likewise.
56687         * tests/test-striconveha.c: Likewise.
56688         * tests/test-strsignal.c: Likewise.
56689         * tests/test-strstr.c: Likewise.
56690         * tests/test-strtod.c: Likewise.
56691         * tests/test-strverscmp.c: Likewise.
56692         * tests/test-symlink.c: Likewise.
56693         * tests/test-symlinkat.c: Likewise.
56694         * tests/test-trunc1.c: Likewise.
56695         * tests/test-trunc2.c: Likewise.
56696         * tests/test-truncf1.c: Likewise.
56697         * tests/test-truncf2.c: Likewise.
56698         * tests/test-truncl.c: Likewise.
56699         * tests/test-uname.c: Likewise.
56700         * tests/test-unlink.c: Likewise.
56701         * tests/test-unlinkat.c: Likewise.
56702         * tests/test-unsetenv.c: Likewise.
56703         * tests/test-usleep.c: Likewise.
56704         * tests/test-utimens.c: Likewise.
56705         * tests/test-utimensat.c: Likewise.
56706         * tests/test-vasnprintf-posix.c: Likewise.
56707         * tests/test-vasnprintf-posix2.c: Likewise.
56708         * tests/test-vasnprintf.c: Likewise.
56709         * tests/test-vasprintf-posix.c: Likewise.
56710         * tests/test-vasprintf.c: Likewise.
56711         * tests/test-vdprintf-posix.c: Likewise.
56712         * tests/test-vfprintf-posix.c: Likewise.
56713         * tests/test-vprintf-posix.c: Likewise.
56714         * tests/test-vsnprintf-posix.c: Likewise.
56715         * tests/test-vsnprintf.c: Likewise.
56716         * tests/test-vsprintf-posix.c: Likewise.
56717         * tests/test-wcrtomb.c: Likewise.
56718         * tests/test-wcsnrtombs.c: Likewise.
56719         * tests/test-wcsrtombs.c: Likewise.
56720         * tests/test-wctype.c: Likewise.
56721         * tests/test-wcwidth.c: Likewise.
56722         * tests/test-xfprintf-posix.c: Likewise.
56723         * tests/test-xmemdup0.c: Likewise.
56724         * tests/test-xprintf-posix.c: Likewise.
56725         * tests/test-xvasprintf.c: Likewise.
56726         * tests/unicase/test-locale-language.c: Likewise.
56727         * tests/unicase/test-mapping-part1.h: Likewise.
56728         * tests/unicase/test-predicate-part1.h: Likewise.
56729         * tests/unicase/test-u8-casecmp.c: Likewise.
56730         * tests/unicase/test-u8-casecoll.c: Likewise.
56731         * tests/unicase/test-u8-casefold.c: Likewise.
56732         * tests/unicase/test-u8-is-cased.c: Likewise.
56733         * tests/unicase/test-u8-is-casefolded.c: Likewise.
56734         * tests/unicase/test-u8-is-lowercase.c: Likewise.
56735         * tests/unicase/test-u8-is-titlecase.c: Likewise.
56736         * tests/unicase/test-u8-is-uppercase.c: Likewise.
56737         * tests/unicase/test-u8-tolower.c: Likewise.
56738         * tests/unicase/test-u8-totitle.c: Likewise.
56739         * tests/unicase/test-u8-toupper.c: Likewise.
56740         * tests/unicase/test-u16-casecmp.c: Likewise.
56741         * tests/unicase/test-u16-casecoll.c: Likewise.
56742         * tests/unicase/test-u16-casefold.c: Likewise.
56743         * tests/unicase/test-u16-is-cased.c: Likewise.
56744         * tests/unicase/test-u16-is-casefolded.c: Likewise.
56745         * tests/unicase/test-u16-is-lowercase.c: Likewise.
56746         * tests/unicase/test-u16-is-titlecase.c: Likewise.
56747         * tests/unicase/test-u16-is-uppercase.c: Likewise.
56748         * tests/unicase/test-u16-tolower.c: Likewise.
56749         * tests/unicase/test-u16-totitle.c: Likewise.
56750         * tests/unicase/test-u16-toupper.c: Likewise.
56751         * tests/unicase/test-u32-casecmp.c: Likewise.
56752         * tests/unicase/test-u32-casecoll.c: Likewise.
56753         * tests/unicase/test-u32-casefold.c: Likewise.
56754         * tests/unicase/test-u32-is-cased.c: Likewise.
56755         * tests/unicase/test-u32-is-casefolded.c: Likewise.
56756         * tests/unicase/test-u32-is-lowercase.c: Likewise.
56757         * tests/unicase/test-u32-is-titlecase.c: Likewise.
56758         * tests/unicase/test-u32-is-uppercase.c: Likewise.
56759         * tests/unicase/test-u32-tolower.c: Likewise.
56760         * tests/unicase/test-u32-totitle.c: Likewise.
56761         * tests/unicase/test-u32-toupper.c: Likewise.
56762         * tests/unicase/test-ulc-casecmp.c: Likewise.
56763         * tests/unicase/test-ulc-casecoll.c: Likewise.
56764         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56765         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56766         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56767         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56768         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56769         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56770         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56771         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56772         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56773         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56774         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56775         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56776         * tests/unictype/test-bidi_byname.c: Likewise.
56777         * tests/unictype/test-bidi_name.c: Likewise.
56778         * tests/unictype/test-bidi_of.c: Likewise.
56779         * tests/unictype/test-bidi_test.c: Likewise.
56780         * tests/unictype/test-block_list.c: Likewise.
56781         * tests/unictype/test-block_of.c: Likewise.
56782         * tests/unictype/test-block_test.c: Likewise.
56783         * tests/unictype/test-categ_and.c: Likewise.
56784         * tests/unictype/test-categ_and_not.c: Likewise.
56785         * tests/unictype/test-categ_byname.c: Likewise.
56786         * tests/unictype/test-categ_name.c: Likewise.
56787         * tests/unictype/test-categ_none.c: Likewise.
56788         * tests/unictype/test-categ_of.c: Likewise.
56789         * tests/unictype/test-categ_or.c: Likewise.
56790         * tests/unictype/test-categ_test_withtable.c: Likewise.
56791         * tests/unictype/test-combining.c: Likewise.
56792         * tests/unictype/test-decdigit.c: Likewise.
56793         * tests/unictype/test-digit.c: Likewise.
56794         * tests/unictype/test-mirror.c: Likewise.
56795         * tests/unictype/test-numeric.c: Likewise.
56796         * tests/unictype/test-pr_byname.c: Likewise.
56797         * tests/unictype/test-pr_test.c: Likewise.
56798         * tests/unictype/test-predicate-part1.h: Likewise.
56799         * tests/unictype/test-scripts.c: Likewise.
56800         * tests/unictype/test-sy_c_ident.c: Likewise.
56801         * tests/unictype/test-sy_java_ident.c: Likewise.
56802         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
56803         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
56804         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
56805         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
56806         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
56807         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
56808         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
56809         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
56810         * tests/uninorm/test-canonical-decomposition.c: Likewise.
56811         * tests/uninorm/test-compat-decomposition.c: Likewise.
56812         * tests/uninorm/test-composition.c: Likewise.
56813         * tests/uninorm/test-decomposing-form.c: Likewise.
56814         * tests/uninorm/test-decomposition.c: Likewise.
56815         * tests/uninorm/test-u8-nfc.c: Likewise.
56816         * tests/uninorm/test-u8-nfd.c: Likewise.
56817         * tests/uninorm/test-u8-nfkc.c: Likewise.
56818         * tests/uninorm/test-u8-nfkd.c: Likewise.
56819         * tests/uninorm/test-u8-normcmp.c: Likewise.
56820         * tests/uninorm/test-u8-normcoll.c: Likewise.
56821         * tests/uninorm/test-u16-nfc.c: Likewise.
56822         * tests/uninorm/test-u16-nfd.c: Likewise.
56823         * tests/uninorm/test-u16-nfkc.c: Likewise.
56824         * tests/uninorm/test-u16-nfkd.c: Likewise.
56825         * tests/uninorm/test-u16-normcmp.c: Likewise.
56826         * tests/uninorm/test-u16-normcoll.c: Likewise.
56827         * tests/uninorm/test-u32-nfc.c: Likewise.
56828         * tests/uninorm/test-u32-nfd.c: Likewise.
56829         * tests/uninorm/test-u32-nfkc.c: Likewise.
56830         * tests/uninorm/test-u32-nfkd.c: Likewise.
56831         * tests/uninorm/test-u32-normalize-big.c: Likewise.
56832         * tests/uninorm/test-u32-normcmp.c: Likewise.
56833         * tests/uninorm/test-u32-normcoll.c: Likewise.
56834         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
56835         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56836         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56837         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56838         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56839         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56840         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56841         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56842         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56843         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56844         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56845         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56846         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56847         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56848         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56849         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56850         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56851         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56852         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56853         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56854         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56855         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56856         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56857         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56858         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56859         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56860         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56861         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56862         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56863         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
56864         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
56865         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
56866         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
56867         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56868         * tests/uniwidth/test-u8-width.c: Likewise.
56869         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56870         * tests/uniwidth/test-u16-width.c: Likewise.
56871         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56872         * tests/uniwidth/test-u32-width.c: Likewise.
56873         * tests/uniwidth/test-uc_width.c: Likewise.
56874         * tests/uniwidth/test-uc_width2.c: Likewise.
56875         * modules/acl-tests (Files): Add tests/macros.h.
56876         * modules/areadlink-tests (Files): Likewise.
56877         * modules/areadlink-with-size-tests (Files): Likewise.
56878         * modules/areadlinkat-tests (Files): Likewise.
56879         * modules/areadlinkat-with-size-tests (Files): Likewise.
56880         * modules/argmatch-tests (Files): Likewise.
56881         * modules/argv-iter-tests (Files): Likewise.
56882         * modules/array-list-tests (Files): Likewise.
56883         * modules/array-mergesort-tests (Files): Likewise.
56884         * modules/array-oset-tests (Files): Likewise.
56885         * modules/avltree-list-tests (Files): Likewise.
56886         * modules/avltree-oset-tests (Files): Likewise.
56887         * modules/avltreehash-list-tests (Files): Likewise.
56888         * modules/base64-tests (Files): Likewise.
56889         * modules/binary-io-tests (Files): Likewise.
56890         * modules/bitrotate-tests (Files): Likewise.
56891         * modules/btowc-tests (Files): Likewise.
56892         * modules/byteswap-tests (Files): Likewise.
56893         * modules/c-ctype-tests (Files): Likewise.
56894         * modules/c-stack-tests (Files): Likewise.
56895         * modules/c-strcase-tests (Files): Likewise.
56896         * modules/c-strcasestr-tests (Files): Likewise.
56897         * modules/c-strstr-tests (Files): Likewise.
56898         * modules/canonicalize-lgpl-tests (Files): Likewise.
56899         * modules/canonicalize-tests (Files): Likewise.
56900         * modules/carray-list-tests (Files): Likewise.
56901         * modules/ceilf-tests (Files): Likewise.
56902         * modules/ceill-tests (Files): Likewise.
56903         * modules/chown-tests (Files): Likewise.
56904         * modules/cloexec-tests (Files): Likewise.
56905         * modules/copy-file-tests (Files): Likewise.
56906         * modules/count-one-bits-tests (Files): Likewise.
56907         * modules/dprintf-posix-tests (Files): Likewise.
56908         * modules/dup2-tests (Files): Likewise.
56909         * modules/dup3-tests (Files): Likewise.
56910         * modules/duplocale-tests (Files): Likewise.
56911         * modules/fbufmode-tests (Files): Likewise.
56912         * modules/fchdir-tests (Files): Likewise.
56913         * modules/fcntl-safer-tests (Files): Likewise.
56914         * modules/fcntl-tests (Files): Likewise.
56915         * modules/fdopendir-tests (Files): Likewise.
56916         * modules/fdutimensat-tests (Files): Likewise.
56917         * modules/fflush-tests (Files): Likewise.
56918         * modules/filevercmp-tests (Files): Likewise.
56919         * modules/flock-tests (Files): Likewise.
56920         * modules/floorf-tests (Files): Likewise.
56921         * modules/floorl-tests (Files): Likewise.
56922         * modules/fnmatch-tests (Files): Likewise.
56923         * modules/fopen-safer-tests (Files): Likewise.
56924         * modules/fopen-tests (Files): Likewise.
56925         * modules/fpending-tests (Files): Likewise.
56926         * modules/fprintf-posix-tests (Files): Likewise.
56927         * modules/fpurge-tests (Files): Likewise.
56928         * modules/freadable-tests (Files): Likewise.
56929         * modules/freadahead-tests (Files): Likewise.
56930         * modules/freading-tests (Files): Likewise.
56931         * modules/freadptr-tests (Files): Likewise.
56932         * modules/freadseek-tests (Files): Likewise.
56933         * modules/freopen-tests (Files): Likewise.
56934         * modules/frexp-nolibm-tests (Files): Likewise.
56935         * modules/frexp-tests (Files): Likewise.
56936         * modules/frexpl-nolibm-tests (Files): Likewise.
56937         * modules/frexpl-tests (Files): Likewise.
56938         * modules/fseek-tests (Files): Likewise.
56939         * modules/fseeko-tests (Files): Likewise.
56940         * modules/fstrcmp-tests (Files): Likewise.
56941         * modules/fsync-tests (Files): Likewise.
56942         * modules/ftell-tests (Files): Likewise.
56943         * modules/ftello-tests (Files): Likewise.
56944         * modules/func-tests (Files): Likewise.
56945         * modules/futimens-tests (Files): Likewise.
56946         * modules/fwritable-tests (Files): Likewise.
56947         * modules/fwriting-tests (Files): Likewise.
56948         * modules/getcwd-tests (Files): Likewise.
56949         * modules/getdate-tests (Files): Likewise.
56950         * modules/getdelim-tests (Files): Likewise.
56951         * modules/getdtablesize-tests (Files): Likewise.
56952         * modules/getgroups-tests (Files): Likewise.
56953         * modules/getline-tests (Files): Likewise.
56954         * modules/getndelim2-tests (Files): Likewise.
56955         * modules/glob-tests (Files): Likewise.
56956         * modules/hash-tests (Files): Likewise.
56957         * modules/i-ring-tests (Files): Likewise.
56958         * modules/iconv-tests (Files): Likewise.
56959         * modules/iconv_open-utf-tests (Files): Likewise.
56960         * modules/idpriv-drop-tests (Files): Likewise.
56961         * modules/idpriv-droptemp-tests (Files): Likewise.
56962         * modules/inet_ntop-tests (Files): Likewise.
56963         * modules/inet_pton-tests (Files): Likewise.
56964         * modules/isblank-tests (Files): Likewise.
56965         * modules/isfinite-tests (Files): Likewise.
56966         * modules/isinf-tests (Files): Likewise.
56967         * modules/isnan-tests (Files): Likewise.
56968         * modules/isnand-nolibm-tests (Files): Likewise.
56969         * modules/isnand-tests (Files): Likewise.
56970         * modules/isnanf-nolibm-tests (Files): Likewise.
56971         * modules/isnanf-tests (Files): Likewise.
56972         * modules/isnanl-nolibm-tests (Files): Likewise.
56973         * modules/isnanl-tests (Files): Likewise.
56974         * modules/lchown-tests (Files): Likewise.
56975         * modules/ldexpl-tests (Files): Likewise.
56976         * modules/link-tests (Files): Likewise.
56977         * modules/linkat-tests (Files): Likewise.
56978         * modules/linked-list-tests (Files): Likewise.
56979         * modules/linkedhash-list-tests (Files): Likewise.
56980         * modules/localename-tests (Files): Likewise.
56981         * modules/lseek-tests (Files): Likewise.
56982         * modules/lstat-tests (Files): Likewise.
56983         * modules/mbmemcasecmp-tests (Files): Likewise.
56984         * modules/mbmemcasecoll-tests (Files): Likewise.
56985         * modules/mbrtowc-tests (Files): Likewise.
56986         * modules/mbscasecmp-tests (Files): Likewise.
56987         * modules/mbscasestr-tests (Files): Likewise.
56988         * modules/mbschr-tests (Files): Likewise.
56989         * modules/mbscspn-tests (Files): Likewise.
56990         * modules/mbsinit-tests (Files): Likewise.
56991         * modules/mbsncasecmp-tests (Files): Likewise.
56992         * modules/mbsnrtowcs-tests (Files): Likewise.
56993         * modules/mbspbrk-tests (Files): Likewise.
56994         * modules/mbspcasecmp-tests (Files): Likewise.
56995         * modules/mbsrchr-tests (Files): Likewise.
56996         * modules/mbsrtowcs-tests (Files): Likewise.
56997         * modules/mbsspn-tests (Files): Likewise.
56998         * modules/mbsstr-tests (Files): Likewise.
56999         * modules/memchr-tests (Files): Likewise.
57000         * modules/memchr2-tests (Files): Likewise.
57001         * modules/memcmp-tests (Files): Likewise.
57002         * modules/memmem-tests (Files): Likewise.
57003         * modules/memrchr-tests (Files): Likewise.
57004         * modules/mkdir-tests (Files): Likewise.
57005         * modules/mkfifo-tests (Files): Likewise.
57006         * modules/mkfifoat-tests (Files): Likewise.
57007         * modules/mknod-tests (Files): Likewise.
57008         * modules/nanosleep-tests (Files): Likewise.
57009         * modules/nl_langinfo-tests (Files): Likewise.
57010         * modules/obstack-printf-tests (Files): Likewise.
57011         * modules/open-tests (Files): Likewise.
57012         * modules/openat-tests (Files): Likewise.
57013         * modules/pipe-filter-gi-tests (Files): Likewise.
57014         * modules/pipe-filter-ii-tests (Files): Likewise.
57015         * modules/pipe2-tests (Files): Likewise.
57016         * modules/popen-safer-tests (Files): Likewise.
57017         * modules/popen-tests (Files): Likewise.
57018         * modules/posixtm-tests (Files): Likewise.
57019         * modules/pread-tests (Files): Likewise.
57020         * modules/printf-frexp-tests (Files): Likewise.
57021         * modules/printf-frexpl-tests (Files): Likewise.
57022         * modules/printf-posix-tests (Files): Likewise.
57023         * modules/priv-set-tests (Files): Likewise.
57024         * modules/quotearg-tests (Files): Likewise.
57025         * modules/random_r-tests (Files): Likewise.
57026         * modules/rawmemchr-tests (Files): Likewise.
57027         * modules/rbtree-list-tests (Files): Likewise.
57028         * modules/rbtree-oset-tests (Files): Likewise.
57029         * modules/rbtreehash-list-tests (Files): Likewise.
57030         * modules/readlink-tests (Files): Likewise.
57031         * modules/remove-tests (Files): Likewise.
57032         * modules/rename-tests (Files): Likewise.
57033         * modules/renameat-tests (Files): Likewise.
57034         * modules/rmdir-tests (Files): Likewise.
57035         * modules/round-tests (Files): Likewise.
57036         * modules/roundf-tests (Files): Likewise.
57037         * modules/roundl-tests (Files): Likewise.
57038         * modules/safe-alloc-tests (Files): Likewise.
57039         * modules/setenv-tests (Files): Likewise.
57040         * modules/sigaction-tests (Files): Likewise.
57041         * modules/signbit-tests (Files): Likewise.
57042         * modules/sleep-tests (Files): Likewise.
57043         * modules/snprintf-posix-tests (Files): Likewise.
57044         * modules/snprintf-tests (Files): Likewise.
57045         * modules/sprintf-posix-tests (Files): Likewise.
57046         * modules/stat-tests (Files): Likewise.
57047         * modules/stat-time-tests (Files): Likewise.
57048         * modules/strcasestr-tests (Files): Likewise.
57049         * modules/strchrnul-tests (Files): Likewise.
57050         * modules/strerror-tests (Files): Likewise.
57051         * modules/striconv-tests (Files): Likewise.
57052         * modules/striconveh-tests (Files): Likewise.
57053         * modules/striconveha-tests (Files): Likewise.
57054         * modules/strsignal-tests (Files): Likewise.
57055         * modules/strstr-tests (Files): Likewise.
57056         * modules/strtod-tests (Files): Likewise.
57057         * modules/strverscmp-tests (Files): Likewise.
57058         * modules/symlink-tests (Files): Likewise.
57059         * modules/symlinkat-tests (Files): Likewise.
57060         * modules/trunc-tests (Files): Likewise.
57061         * modules/truncf-tests (Files): Likewise.
57062         * modules/truncl-tests (Files): Likewise.
57063         * modules/uname-tests (Files): Likewise.
57064         * modules/unicase/cased-tests (Files): Likewise.
57065         * modules/unicase/ignorable-tests (Files): Likewise.
57066         * modules/unicase/locale-language-tests (Files): Likewise.
57067         * modules/unicase/tolower-tests (Files): Likewise.
57068         * modules/unicase/totitle-tests (Files): Likewise.
57069         * modules/unicase/toupper-tests (Files): Likewise.
57070         * modules/unicase/u8-casecmp-tests (Files): Likewise.
57071         * modules/unicase/u8-casecoll-tests (Files): Likewise.
57072         * modules/unicase/u8-casefold-tests (Files): Likewise.
57073         * modules/unicase/u8-is-cased-tests (Files): Likewise.
57074         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
57075         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
57076         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
57077         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
57078         * modules/unicase/u8-tolower-tests (Files): Likewise.
57079         * modules/unicase/u8-totitle-tests (Files): Likewise.
57080         * modules/unicase/u8-toupper-tests (Files): Likewise.
57081         * modules/unicase/u16-casecmp-tests (Files): Likewise.
57082         * modules/unicase/u16-casecoll-tests (Files): Likewise.
57083         * modules/unicase/u16-casefold-tests (Files): Likewise.
57084         * modules/unicase/u16-is-cased-tests (Files): Likewise.
57085         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
57086         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
57087         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
57088         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
57089         * modules/unicase/u16-tolower-tests (Files): Likewise.
57090         * modules/unicase/u16-totitle-tests (Files): Likewise.
57091         * modules/unicase/u16-toupper-tests (Files): Likewise.
57092         * modules/unicase/u32-casecmp-tests (Files): Likewise.
57093         * modules/unicase/u32-casecoll-tests (Files): Likewise.
57094         * modules/unicase/u32-casefold-tests (Files): Likewise.
57095         * modules/unicase/u32-is-cased-tests (Files): Likewise.
57096         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
57097         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
57098         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
57099         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
57100         * modules/unicase/u32-tolower-tests (Files): Likewise.
57101         * modules/unicase/u32-totitle-tests (Files): Likewise.
57102         * modules/unicase/u32-toupper-tests (Files): Likewise.
57103         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
57104         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
57105         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
57106         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
57107         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
57108         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
57109         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
57110         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
57111         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
57112         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
57113         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
57114         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
57115         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
57116         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
57117         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
57118         * modules/unictype/bidicategory-name-tests (Files): Likewise.
57119         * modules/unictype/bidicategory-of-tests (Files): Likewise.
57120         * modules/unictype/bidicategory-test-tests (Files): Likewise.
57121         * modules/unictype/block-list-tests (Files): Likewise.
57122         * modules/unictype/block-of-tests (Files): Likewise.
57123         * modules/unictype/block-test-tests (Files): Likewise.
57124         * modules/unictype/category-C-tests (Files): Likewise.
57125         * modules/unictype/category-Cc-tests (Files): Likewise.
57126         * modules/unictype/category-Cf-tests (Files): Likewise.
57127         * modules/unictype/category-Cn-tests (Files): Likewise.
57128         * modules/unictype/category-Co-tests (Files): Likewise.
57129         * modules/unictype/category-Cs-tests (Files): Likewise.
57130         * modules/unictype/category-L-tests (Files): Likewise.
57131         * modules/unictype/category-Ll-tests (Files): Likewise.
57132         * modules/unictype/category-Lm-tests (Files): Likewise.
57133         * modules/unictype/category-Lo-tests (Files): Likewise.
57134         * modules/unictype/category-Lt-tests (Files): Likewise.
57135         * modules/unictype/category-Lu-tests (Files): Likewise.
57136         * modules/unictype/category-M-tests (Files): Likewise.
57137         * modules/unictype/category-Mc-tests (Files): Likewise.
57138         * modules/unictype/category-Me-tests (Files): Likewise.
57139         * modules/unictype/category-Mn-tests (Files): Likewise.
57140         * modules/unictype/category-N-tests (Files): Likewise.
57141         * modules/unictype/category-Nd-tests (Files): Likewise.
57142         * modules/unictype/category-Nl-tests (Files): Likewise.
57143         * modules/unictype/category-No-tests (Files): Likewise.
57144         * modules/unictype/category-P-tests (Files): Likewise.
57145         * modules/unictype/category-Pc-tests (Files): Likewise.
57146         * modules/unictype/category-Pd-tests (Files): Likewise.
57147         * modules/unictype/category-Pe-tests (Files): Likewise.
57148         * modules/unictype/category-Pf-tests (Files): Likewise.
57149         * modules/unictype/category-Pi-tests (Files): Likewise.
57150         * modules/unictype/category-Po-tests (Files): Likewise.
57151         * modules/unictype/category-Ps-tests (Files): Likewise.
57152         * modules/unictype/category-S-tests (Files): Likewise.
57153         * modules/unictype/category-Sc-tests (Files): Likewise.
57154         * modules/unictype/category-Sk-tests (Files): Likewise.
57155         * modules/unictype/category-Sm-tests (Files): Likewise.
57156         * modules/unictype/category-So-tests (Files): Likewise.
57157         * modules/unictype/category-Z-tests (Files): Likewise.
57158         * modules/unictype/category-Zl-tests (Files): Likewise.
57159         * modules/unictype/category-Zp-tests (Files): Likewise.
57160         * modules/unictype/category-Zs-tests (Files): Likewise.
57161         * modules/unictype/category-and-not-tests (Files): Likewise.
57162         * modules/unictype/category-and-tests (Files): Likewise.
57163         * modules/unictype/category-byname-tests (Files): Likewise.
57164         * modules/unictype/category-name-tests (Files): Likewise.
57165         * modules/unictype/category-none-tests (Files): Likewise.
57166         * modules/unictype/category-of-tests (Files): Likewise.
57167         * modules/unictype/category-or-tests (Files): Likewise.
57168         * modules/unictype/category-test-withtable-tests (Files): Likewise.
57169         * modules/unictype/combining-class-tests (Files): Likewise.
57170         * modules/unictype/ctype-alnum-tests (Files): Likewise.
57171         * modules/unictype/ctype-alpha-tests (Files): Likewise.
57172         * modules/unictype/ctype-blank-tests (Files): Likewise.
57173         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
57174         * modules/unictype/ctype-digit-tests (Files): Likewise.
57175         * modules/unictype/ctype-graph-tests (Files): Likewise.
57176         * modules/unictype/ctype-lower-tests (Files): Likewise.
57177         * modules/unictype/ctype-print-tests (Files): Likewise.
57178         * modules/unictype/ctype-punct-tests (Files): Likewise.
57179         * modules/unictype/ctype-space-tests (Files): Likewise.
57180         * modules/unictype/ctype-upper-tests (Files): Likewise.
57181         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
57182         * modules/unictype/decimal-digit-tests (Files): Likewise.
57183         * modules/unictype/digit-tests (Files): Likewise.
57184         * modules/unictype/mirror-tests (Files): Likewise.
57185         * modules/unictype/numeric-tests (Files): Likewise.
57186         * modules/unictype/property-alphabetic-tests (Files): Likewise.
57187         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
57188         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
57189         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
57190         Likewise.
57191         * modules/unictype/property-bidi-block-separator-tests (Files):
57192         Likewise.
57193         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
57194         Likewise.
57195         * modules/unictype/property-bidi-common-separator-tests (Files):
57196         Likewise.
57197         * modules/unictype/property-bidi-control-tests (Files): Likewise.
57198         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
57199         Likewise.
57200         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
57201         Likewise.
57202         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
57203         Likewise.
57204         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
57205         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
57206         Likewise.
57207         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
57208         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
57209         Likewise.
57210         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
57211         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
57212         * modules/unictype/property-bidi-segment-separator-tests (Files):
57213         Likewise.
57214         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
57215         * modules/unictype/property-byname-tests (Files): Likewise.
57216         * modules/unictype/property-combining-tests (Files): Likewise.
57217         * modules/unictype/property-composite-tests (Files): Likewise.
57218         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
57219         * modules/unictype/property-dash-tests (Files): Likewise.
57220         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
57221         * modules/unictype/property-default-ignorable-code-point-tests (Files):
57222         Likewise.
57223         * modules/unictype/property-deprecated-tests (Files): Likewise.
57224         * modules/unictype/property-diacritic-tests (Files): Likewise.
57225         * modules/unictype/property-extender-tests (Files): Likewise.
57226         * modules/unictype/property-format-control-tests (Files): Likewise.
57227         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
57228         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
57229         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
57230         * modules/unictype/property-hex-digit-tests (Files): Likewise.
57231         * modules/unictype/property-hyphen-tests (Files): Likewise.
57232         * modules/unictype/property-id-continue-tests (Files): Likewise.
57233         * modules/unictype/property-id-start-tests (Files): Likewise.
57234         * modules/unictype/property-ideographic-tests (Files): Likewise.
57235         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
57236         * modules/unictype/property-ids-trinary-operator-tests (Files):
57237         Likewise.
57238         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
57239         * modules/unictype/property-iso-control-tests (Files): Likewise.
57240         * modules/unictype/property-join-control-tests (Files): Likewise.
57241         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
57242         * modules/unictype/property-line-separator-tests (Files): Likewise.
57243         * modules/unictype/property-logical-order-exception-tests (Files):
57244         Likewise.
57245         * modules/unictype/property-lowercase-tests (Files): Likewise.
57246         * modules/unictype/property-math-tests (Files): Likewise.
57247         * modules/unictype/property-non-break-tests (Files): Likewise.
57248         * modules/unictype/property-not-a-character-tests (Files): Likewise.
57249         * modules/unictype/property-numeric-tests (Files): Likewise.
57250         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
57251         * modules/unictype/property-other-default-ignorable-code-point-tests
57252         (Files): Likewise.
57253         * modules/unictype/property-other-grapheme-extend-tests (Files):
57254         Likewise.
57255         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
57256         * modules/unictype/property-other-id-start-tests (Files): Likewise.
57257         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
57258         * modules/unictype/property-other-math-tests (Files): Likewise.
57259         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
57260         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
57261         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
57262         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
57263         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
57264         * modules/unictype/property-private-use-tests (Files): Likewise.
57265         * modules/unictype/property-punctuation-tests (Files): Likewise.
57266         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
57267         * modules/unictype/property-radical-tests (Files): Likewise.
57268         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
57269         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
57270         * modules/unictype/property-space-tests (Files): Likewise.
57271         * modules/unictype/property-terminal-punctuation-tests (Files):
57272         Likewise.
57273         * modules/unictype/property-test-tests (Files): Likewise.
57274         * modules/unictype/property-titlecase-tests (Files): Likewise.
57275         * modules/unictype/property-unassigned-code-value-tests (Files):
57276         Likewise.
57277         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
57278         * modules/unictype/property-uppercase-tests (Files): Likewise.
57279         * modules/unictype/property-variation-selector-tests (Files): Likewise.
57280         * modules/unictype/property-white-space-tests (Files): Likewise.
57281         * modules/unictype/property-xid-continue-tests (Files): Likewise.
57282         * modules/unictype/property-xid-start-tests (Files): Likewise.
57283         * modules/unictype/property-zero-width-tests (Files): Likewise.
57284         * modules/unictype/scripts-tests (Files): Likewise.
57285         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
57286         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
57287         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
57288         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
57289         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
57290         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
57291         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
57292         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
57293         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
57294         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
57295         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
57296         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
57297         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
57298         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
57299         * modules/uninorm/composition-tests (Files): Likewise.
57300         * modules/uninorm/decomposing-form-tests (Files): Likewise.
57301         * modules/uninorm/decomposition-tests (Files): Likewise.
57302         * modules/uninorm/filter-tests (Files): Likewise.
57303         * modules/uninorm/nfc-tests (Files): Likewise.
57304         * modules/uninorm/nfd-tests (Files): Likewise.
57305         * modules/uninorm/nfkc-tests (Files): Likewise.
57306         * modules/uninorm/nfkd-tests (Files): Likewise.
57307         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
57308         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
57309         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
57310         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
57311         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
57312         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
57313         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
57314         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
57315         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
57316         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
57317         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
57318         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
57319         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
57320         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
57321         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
57322         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
57323         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
57324         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
57325         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
57326         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
57327         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
57328         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
57329         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
57330         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
57331         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
57332         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
57333         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
57334         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
57335         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
57336         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
57337         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
57338         * modules/uniwidth/u8-width-tests (Files): Likewise.
57339         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
57340         * modules/uniwidth/u16-width-tests (Files): Likewise.
57341         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
57342         * modules/uniwidth/u32-width-tests (Files): Likewise.
57343         * modules/uniwidth/width-tests (Files): Likewise.
57344         * modules/unlink-tests (Files): Likewise.
57345         * modules/unsetenv-tests (Files): Likewise.
57346         * modules/usleep-tests (Files): Likewise.
57347         * modules/utimens-tests (Files): Likewise.
57348         * modules/utimensat-tests (Files): Likewise.
57349         * modules/vasnprintf-posix-tests (Files): Likewise.
57350         * modules/vasnprintf-tests (Files): Likewise.
57351         * modules/vasprintf-posix-tests (Files): Likewise.
57352         * modules/vasprintf-tests (Files): Likewise.
57353         * modules/vdprintf-posix-tests (Files): Likewise.
57354         * modules/vfprintf-posix-tests (Files): Likewise.
57355         * modules/vprintf-posix-tests (Files): Likewise.
57356         * modules/vsnprintf-posix-tests (Files): Likewise.
57357         * modules/vsnprintf-tests (Files): Likewise.
57358         * modules/vsprintf-posix-tests (Files): Likewise.
57359         * modules/wcrtomb-tests (Files): Likewise.
57360         * modules/wcsnrtombs-tests (Files): Likewise.
57361         * modules/wcsrtombs-tests (Files): Likewise.
57362         * modules/wctype-tests (Files): Likewise.
57363         * modules/wcwidth-tests (Files): Likewise.
57364         * modules/xmemdup0-tests (Files): Likewise.
57365         * modules/xprintf-posix-tests (Files): Likewise.
57366         * modules/xvasprintf-tests (Files): Likewise.
57368 2009-12-24  Eric Blake  <ebb9@byu.net>
57370         test-nanosleep: fix typo
57371         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
57372         patch.
57373         Reported by Bruno Haible.
57375 2009-12-24  Bruno Haible  <bruno@clisp.org>
57377         Reduce namespace pollution on glibc systems.
57378         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
57379         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
57380         systems.
57381         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
57382         <getopt.h> on glibc systems.
57383         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
57384         systems.
57385         * lib/fcntl.c: Include <unistd.h> here instead.
57387 2009-12-24  Bruno Haible  <bruno@clisp.org>
57389         * lib/stdlib.in.h (includes): Fix typo in today's commit.
57391 2009-12-24  Eric Blake  <ebb9@byu.net>
57393         tests: add signature checks
57394         * tests/signature.h (SIGNATURE_CHECK): New file.
57395         * modules/atexit-tests (Files): Use it.
57396         * modules/btowc-tests (Files): Likewise.
57397         * modules/canonicalize-lgpl-tests (Files): Likewise.
57398         * modules/ceilf-tests (Files): Likewise.
57399         * modules/ceill-tests (Files): Likewise.
57400         * modules/chown-tests (Files): Likewise.
57401         * modules/dprintf-posix-tests (Files): Likewise.
57402         * modules/dup2-tests (Files): Likewise.
57403         * modules/dup3-tests (Files): Likewise.
57404         * modules/duplocale-tests (Files): Likewise.
57405         * modules/fchdir-tests (Files): Likewise.
57406         * modules/fcntl-tests (Files): Likewise.
57407         * modules/fdopendir-tests (Files): Likewise.
57408         * modules/fflush-tests (Files): Likewise.
57409         * modules/flock-tests (Files): Likewise.
57410         * modules/floorf-tests (Files): Likewise.
57411         * modules/floorl-tests (Files): Likewise.
57412         * modules/fnmatch-tests (Files): Likewise.
57413         * modules/fopen-tests (Files): Likewise.
57414         * modules/fprintf-posix-tests (Files): Likewise.
57415         * modules/freopen-tests (Files): Likewise.
57416         * modules/frexp-nolibm-tests (Files): Likewise.
57417         * modules/frexp-tests (Files): Likewise.
57418         * modules/frexpl-nolibm-tests (Files): Likewise.
57419         * modules/frexpl-tests (Files): Likewise.
57420         * modules/fseek-tests (Files): Likewise.
57421         * modules/fseeko-tests (Files): Likewise.
57422         * modules/fsync-tests (Files): Likewise.
57423         * modules/ftell-tests (Files): Likewise.
57424         * modules/ftello-tests (Files): Likewise.
57425         * modules/futimens-tests (Files): Likewise.
57426         * modules/getaddrinfo-tests (Files): Likewise.
57427         * modules/getcwd-tests (Files): Likewise.
57428         * modules/getdelim-tests (Files): Likewise.
57429         * modules/getdtablesize-tests (Files): Likewise.
57430         * modules/getgroups-tests (Files): Likewise.
57431         * modules/gethostname-tests (Files): Likewise.
57432         * modules/getline-tests (Files): Likewise.
57433         * modules/getopt-posix-tests (Files): Likewise.
57434         * modules/gettimeofday-tests (Files): Likewise.
57435         * modules/glob-tests (Files): Likewise.
57436         * modules/iconv-tests (Files): Likewise.
57437         * modules/inet_ntop-tests (Files): Likewise.
57438         * modules/inet_pton-tests (Files): Likewise.
57439         * modules/isblank-tests (Files): Likewise.
57440         * modules/lchown-tests (Files): Likewise.
57441         * modules/ldexpl-tests (Files): Likewise.
57442         * modules/link-tests (Files): Likewise.
57443         * modules/linkat-tests (Files): Likewise.
57444         * modules/lseek-tests (Files): Likewise.
57445         * modules/lstat-tests (Files): Likewise.
57446         * modules/mbrtowc-tests (Files): Likewise.
57447         * modules/mbsinit-tests (Files): Likewise.
57448         * modules/mbsnrtowcs-tests (Files): Likewise.
57449         * modules/mbsrtowcs-tests (Files): Likewise.
57450         * modules/memchr-tests (Files): Likewise.
57451         * modules/memcmp-tests (Files): Likewise.
57452         * modules/memmem-tests (Files): Likewise.
57453         * modules/memrchr-tests (Files): Likewise.
57454         * modules/mkdir-tests (Files): Likewise.
57455         * modules/mkfifo-tests (Files): Likewise.
57456         * modules/mkfifoat-tests (Files): Likewise.
57457         * modules/mknod-tests (Files): Likewise.
57458         * modules/nanosleep-tests (Files): Likewise.
57459         * modules/nl_langinfo-tests (Files): Likewise.
57460         * modules/obstack-printf-tests (Files): Likewise.
57461         * modules/open-tests (Files): Likewise.
57462         * modules/openat-tests (Files): Likewise.
57463         * modules/perror-tests (Files): Likewise.
57464         * modules/pipe2-tests (Files): Likewise.
57465         * modules/poll-tests (Files): Likewise.
57466         * modules/popen-tests (Files): Likewise.
57467         * modules/posix_spawn-tests (Files): Likewise.
57468         * modules/posix_spawnp-tests (Files): Likewise.
57469         * modules/pread-tests (Files): Likewise.
57470         * modules/printf-posix-tests (Files): Likewise.
57471         * modules/pty-tests (Files): Likewise.
57472         * modules/random_r-tests (Files): Likewise.
57473         * modules/rawmemchr-tests (Files): Likewise.
57474         * modules/readlink-tests (Files): Likewise.
57475         * modules/remove-tests (Files): Likewise.
57476         * modules/rename-tests (Files): Likewise.
57477         * modules/renameat-tests (Files): Likewise.
57478         * modules/rmdir-tests (Files): Likewise.
57479         * modules/round-tests (Files): Likewise.
57480         * modules/roundf-tests (Files): Likewise.
57481         * modules/roundl-tests (Files): Likewise.
57482         * modules/select-tests (Files): Likewise.
57483         * modules/setenv-tests (Files): Likewise.
57484         * modules/sigaction-tests (Files): Likewise.
57485         * modules/sleep-tests (Files): Likewise.
57486         * modules/snprintf-posix-tests (Files): Likewise.
57487         * modules/snprintf-tests (Files): Likewise.
57488         * modules/sprintf-posix-tests (Files): Likewise.
57489         * modules/stat-tests (Files): Likewise.
57490         * modules/strcasestr-tests (Files): Likewise.
57491         * modules/strchrnul-tests (Files): Likewise.
57492         * modules/strerror-tests (Files): Likewise.
57493         * modules/strsignal-tests (Files): Likewise.
57494         * modules/strstr-tests (Files): Likewise.
57495         * modules/strtod-tests (Files): Likewise.
57496         * modules/strverscmp-tests (Files): Likewise.
57497         * modules/symlink-tests (Files): Likewise.
57498         * modules/symlinkat-tests (Files): Likewise.
57499         * modules/times-tests (Files): Likewise.
57500         * modules/trunc-tests (Files): Likewise.
57501         * modules/truncf-tests (Files): Likewise.
57502         * modules/truncl-tests (Files): Likewise.
57503         * modules/tsearch-tests (Files): Likewise.
57504         * modules/uname-tests (Files): Likewise.
57505         * modules/unlink-tests (Files): Likewise.
57506         * modules/unsetenv-tests (Files): Likewise.
57507         * modules/usleep-tests (Files): Likewise.
57508         * modules/utimensat-tests (Files): Likewise.
57509         * modules/vasprintf-tests (Files): Likewise.
57510         * modules/vdprintf-posix-tests (Files): Likewise.
57511         * modules/vfprintf-posix-tests (Files): Likewise.
57512         * modules/vprintf-posix-tests (Files): Likewise.
57513         * modules/vsnprintf-posix-tests (Files): Likewise.
57514         * modules/vsnprintf-tests (Files): Likewise.
57515         * modules/vsprintf-posix-tests (Files): Likewise.
57516         * modules/wcrtomb-tests (Files): Likewise.
57517         * modules/wcsnrtombs-tests (Files): Likewise.
57518         * modules/wcsrtombs-tests (Files): Likewise.
57519         * modules/wcwidth-tests (Files): Likewise.
57520         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
57521         * tests/test-isinf.c (isinf): Likewise.
57522         * tests/test-isnan.c (isnan): Likewise.
57523         * tests/test-signbit.c (signbit): Likewise.
57524         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
57525         declaration, either as macro or with correct signature.
57526         (select): Ensure function under test is declared with correct
57527         signature in correct header.
57528         * tests/test-atexit.c (atexit): Likewise.
57529         * tests/test-btowc.c (btowc): Likewise.
57530         * tests/test-canonicalize-lgpl.c (realpath)
57531         (canonicalize_file_name): Likewise.
57532         * tests/test-ceilf1.c (ceilf): Likewise.
57533         * tests/test-ceill.c (ceill): Likewise.
57534         * tests/test-chown.c (chown): Likewise.
57535         * tests/test-dprintf-posix.c (dprintf): Likewise.
57536         * tests/test-dup2.c (dup2): Likewise.
57537         * tests/test-dup3.c (dup3): Likewise.
57538         * tests/test-duplocale.c (duplocale): Likewise.
57539         * tests/test-fchdir.c (fchdir): Likewise.
57540         * tests/test-fchownat.c (fchownat): Likewise.
57541         * tests/test-fcntl.c (fcntl): Likewise.
57542         * tests/test-fdopendir.c (fdopendir): Likewise.
57543         * tests/test-fflush.c (fflush): Likewise.
57544         * tests/test-flock.c (flock): Likewise.
57545         * tests/test-floorf1.c (floorf): Likewise.
57546         * tests/test-floorl.c (floorl): Likewise.
57547         * tests/test-fnmatch.c (fnmatch): Likewise.
57548         * tests/test-fopen.c (fopen): Likewise.
57549         * tests/test-fprintf-posix.c (fprintf): Likewise.
57550         * tests/test-freopen.c (freopen): Likewise.
57551         * tests/test-frexp.c (frexp): Likewise.
57552         * tests/test-frexpl.c (frexpl): Likewise.
57553         * tests/test-fseek.c (fseek): Likewise.
57554         * tests/test-fseeko.c (fseeko): Likewise.
57555         * tests/test-fstatat.c (fstatat): Likewise.
57556         * tests/test-fsync.c (fsync): Likewise.
57557         * tests/test-ftell.c (ftell): Likewise.
57558         * tests/test-ftello.c (ftello): Likewise.
57559         * tests/test-futimens.c (futimens): Likewise.
57560         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
57561         (gai_strerror): Likewise.
57562         * tests/test-getcwd.c (getcwd): Likewise.
57563         * tests/test-getdelim.c (getdelim): Likewise.
57564         * tests/test-getdtablesize.c (getdtablesize): Likewise.
57565         * tests/test-getgroups.c (getgroups): Likewise.
57566         * tests/test-gethostname.c (gethostname): Likewise.
57567         * tests/test-getline.c (getline): Likewise.
57568         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
57569         Likewise.
57570         * tests/test-gettimeofday.c (gettimeofday): Likewise.
57571         * tests/test-glob.c (glob, globfree): Likewise.
57572         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
57573         * tests/test-inet_ntop.c (inet_ntop): Likewise.
57574         * tests/test-inet_pton.c (inet_pton): Likewise.
57575         * tests/test-isblank.c (isblank): Likewise.
57576         * tests/test-lchown.c (lchown): Likewise.
57577         * tests/test-ldexpl.c (ldexpl): Likewise.
57578         * tests/test-link.c (link): Likewise.
57579         * tests/test-linkat.c (linkat): Likewise.
57580         * tests/test-lseek.c (lseek): Likewise.
57581         * tests/test-lstat.c (lstat): Likewise.
57582         * tests/test-mbrtowc.c (mbrtowc): Likewise.
57583         * tests/test-mbsinit.c (mbsinit): Likewise.
57584         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
57585         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
57586         * tests/test-memchr.c (memchr): Likewise.
57587         * tests/test-memcmp.c (memcmp): Likewise.
57588         * tests/test-memmem.c (memmem): Likewise.
57589         * tests/test-memrchr.c (memrchr): Likewise.
57590         * tests/test-mkdir.c (mkdir): Likewise.
57591         * tests/test-mkdirat.c (mkdirat): Likewise.
57592         * tests/test-mkfifo.c (mkfifo): Likewise.
57593         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
57594         * tests/test-mknod.c (mknod): Likewise.
57595         * tests/test-nanosleep.c (nanosleep): Likewise.
57596         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
57597         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
57598         Likewise.
57599         * tests/test-open.c (open): Likewise.
57600         * tests/test-openat.c (openat): Likewise.
57601         * tests/test-perror.c (perror): Likewise.
57602         * tests/test-pipe2.c (pipe2): Likewise.
57603         * tests/test-poll.c (poll): Likewise.
57604         * tests/test-popen.c (popen, pclose): Likewise.
57605         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
57606         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
57607         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
57608         (posix_spawn_file_actions_destroy)
57609         (posix_spawn_file_actions_addclose)
57610         (posix_spawn_file_actions_addopen)
57611         (posix_spawn_file_actions_adddup2): Likewise.
57612         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
57613         * tests/test-pread.c (pread): Likewise.
57614         * tests/test-printf-posix.c (printf): Likewise.
57615         * tests/test-pty.c (openpty, forkpty): Likewise.
57616         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
57617         (random_r): Likewise.
57618         * tests/test-rawmemchr.c (rawmemchr): Likewise.
57619         * tests/test-readlink.c (readlink): Likewise.
57620         * tests/test-remove.c (remove): Likewise.
57621         * tests/test-rename.c (rename): Likewise.
57622         * tests/test-renameat.c (renameat): Likewise.
57623         * tests/test-rmdir.c (rmdir): Likewise.
57624         * tests/test-round1.c (round): Likewise.
57625         * tests/test-roundf1.c (roundf): Likewise.
57626         * tests/test-roundl.c (roundl): Likewise.
57627         * tests/test-setenv.c (setenv): Likewise.
57628         * tests/test-sigaction.c (sigaction): Likewise.
57629         * tests/test-sleep.c (sleep): Likewise.
57630         * tests/test-snprintf.c (snprintf): Likewise.
57631         * tests/test-sprintf-posix.c (sprintf): Likewise.
57632         * tests/test-stat.c (stat): Likewise.
57633         * tests/test-stpncpy.c (stpncpy): Likewise.
57634         * tests/test-strcasestr.c (strcasestr): Likewise.
57635         * tests/test-strchrnul.c (strchrnul): Likewise.
57636         * tests/test-strerror.c (strerror): Likewise.
57637         * tests/test-strsignal.c (strsignal): Likewise.
57638         * tests/test-strstr.c (strstr): Likewise.
57639         * tests/test-strtod.c (strtod): Likewise.
57640         * tests/test-strverscmp.c (strverscmp): Likewise.
57641         * tests/test-symlink.c (symlink): Likewise.
57642         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
57643         * tests/test-times.c (times): Likewise.
57644         * tests/test-trunc1.c (trunc): Likewise.
57645         * tests/test-truncf1.c (truncf): Likewise.
57646         * tests/test-truncl.c (truncl): Likewise.
57647         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
57648         Likewise.
57649         * tests/test-uname.c (uname): Likewise.
57650         * tests/test-unlink.c (unlink): Likewise.
57651         * tests/test-unlinkat.c (unlinkat): Likewise.
57652         * tests/test-unsetenv.c (unsetenv): Likewise.
57653         * tests/test-usleep.c (usleep): Likewise.
57654         * tests/test-utimensat.c (utimensat): Likewise.
57655         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
57656         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
57657         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
57658         * tests/test-vprintf-posix.c (vprintf): Likewise.
57659         * tests/test-vsnprintf.c (vsnprintf): Likewise.
57660         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
57661         * tests/test-wcrtomb.c (wcrtomb): Likewise.
57662         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
57663         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
57664         * tests/test-wcwidth.c (wcwidth): Likewise.
57666         build: pull in conditional headers during GNULIB_POSIXCHECK
57667         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
57668         definitions from any conditionally-included headers.
57669         * lib/stdlib.in.h (includes): Likewise.
57670         * lib/unistd.in.h (includes): Likewise.
57672 2009-12-24  Bruno Haible  <bruno@clisp.org>
57674         * tests/test-argv-iter.c: Include header file being tested immediately
57675         after config.h.
57676         * tests/test-base64.c: Likewise.
57677         * tests/test-flock.c: Likewise.
57678         * tests/test-fsync.c: Likewise.
57679         * tests/test-getdate.c: Likewise.
57680         * tests/test-getndelim2.c: Likewise.
57681         * tests/test-isfinite.c: Likewise.
57682         * tests/test-isinf.c: Likewise.
57683         * tests/test-strerror.c: Likewise.
57684         * tests/test-strsignal.c: Likewise.
57686 2009-12-23  Eric Blake  <ebb9@byu.net>
57688         unistd: work around cygwin bug
57689         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
57690         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
57691         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
57693 2009-12-23  Bruno Haible  <bruno@clisp.org>
57695         localename: More tests.
57696         * tests/test-localename.c (SIZEOF): New macro.
57697         (categories): New variable.
57698         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
57699         test_locale_name_default): Add test w.r.t. thread locale.
57700         (test_locale_name_thread): New function.
57701         (main): Invoke it.
57703         localename: Make aware of thread locale.
57704         * lib/localename.h (gl_locale_name_thread): New declaration.
57705         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
57706         behaviour with respect to thread locale.
57707         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
57708         <langinfo.h>, glthread/lock.h.
57709         (SIZE_BITS): New macro.
57710         (string_hash): New function.
57711         (struct hash_node): New type.
57712         (HASH_TABLE_SIZE): New macro.
57713         (struniq_hash_table, struniq_lock): New variables.
57714         (struniq): New function.
57715         (gl_locale_name_thread): New function.
57716         (gl_locale_name): Invoke it.
57717         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
57718         * modules/localename (Depends-on): Add lock.
57719         Reported by Mike Gran <spk121@yahoo.com>.
57721 2009-12-23  Eric Blake  <ebb9@byu.net>
57723         va-args: new module
57724         * modules/va-args: New file.
57725         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
57726         * MODULES.html.sh (Core language properties): Mention it.
57728         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
57729         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
57730         named alias for __attribute__((__unused__)).
57731         * lib/chown.c: Update client.
57732         * lib/fchmodat.c: Likewise.
57733         * lib/fts.c: Likewise.
57734         * lib/getdate.y: Likewise.
57735         * lib/getgroups.c: Likewise.
57736         * lib/getopt.c: Likewise.
57737         * lib/getugroups.c: Likewise.
57738         * lib/mkdir.c: Likewise.
57739         * lib/mkfifo.c: Likewise.
57740         * lib/mkfifoat.c: Likewise.
57741         * lib/mknod.c: Likewise.
57742         * lib/mknodat.c: Likewise.
57743         * lib/readlink.c: Likewise.
57744         * lib/se-context.in.h: Likewise.
57745         * lib/se-selinux.in.h: Likewise.
57746         * lib/sockets.c: Likewise.
57747         * lib/symlink.c: Likewise.
57748         * lib/symlinkat.c: Likewise.
57749         * lib/unicodeio.c: Likewise.
57750         * lib/unistr.h: Likewise.
57751         * tests/test-areadlink.c: Likewise.
57752         * tests/test-areadlinkat.c: Likewise.
57753         * tests/test-filenamecat.c: Likewise.
57754         * tests/test-fseeko.c: Likewise.
57755         * tests/test-ftello.c: Likewise.
57756         * tests/test-getdate.c: Likewise.
57757         * tests/test-getgroups.c: Likewise.
57758         * tests/test-gethostname.c: Likewise.
57759         * tests/test-quotearg.c: Likewise.
57760         * tests/test-version-etc.c: Likewise.
57761         * tests/test-xalloc-die.c: Likewise.
57762         * tests/test-xfprintf-posix.c: Likewise.
57763         * tests/test-xprintf-posix.c: Likewise.
57764         * tests/test-xvasprintf.c: Likewise.
57766         tests: avoid compiler warnings
57767         * tests/test-fcntl.c (main): Delete unused parameters.
57768         * tests/test-freopen-safer.c (main): Likewise.
57769         * tests/test-xalloc-die.c (main): Mark unused parameters.
57770         * tests/test-fseeko.c (main): Likewise.
57771         * tests/test-ftello.c (main): Likewise.
57772         * tests/test-nanosleep.c (main): Avoid declaration warning.
57773         * tests/test-sleep.c (main): Likewise.
57774         * tests/test-unsetenv.c (main): Silence warning about string
57775         literal.
57776         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
57778 2009-12-23  Bruno Haible  <bruno@clisp.org>
57780         * tests/test-localename.c (test_locale_name): New function, extracted
57781         from main. Also test mixed situations.
57782         (test_locale_name_posix, test_locale_name_environ,
57783         test_locale_name_default): New functions.
57784         (main): Invoke them all.
57785         * modules/localename-tests (configure.ac): Test for newlocale.
57787 2009-12-23  Bruno Haible  <bruno@clisp.org>
57789         unistd: Ensure getcwd gets declared before being overridden.
57790         * lib/unistd.in.h: Conditionally include <io.h>.
57792 2009-12-22  Bruno Haible  <bruno@clisp.org>
57794         wchar: Diagnose broken combination of glibc and gcc versions and flags.
57795         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
57796         (gl_WCHAR_H): Invoke it.
57797         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
57798         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
57799         Reported by Karl Berry <karl@freefriends.org>.
57801 2009-12-22  Eric Blake  <ebb9@byu.net>
57803         math, unistd: avoid redundant includes
57804         * lib/math.in.h (isnan): No need to re-include <math.h>.
57805         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
57807         getsubopt: work around cygwin bug
57808         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
57809         avoid conflicting with system getsubopt.
57810         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
57811         bug.
57813         getopt: synchronize from glibc
57814         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
57815         parameter order.  Adjust all callers.
57816         (_getopt_internal_r, main): Adjust quoting in error messages.
57817         Drop considerations for outdated POSIX 1003.2 error message.
57818         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
57819         callers.
57820         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
57822         test-getopt: test stderr behavior
57823         * modules/getopt-posix-tests (Depends-on): Add dup2.
57824         * tests/test-getopt.c (ASSERT): Avoid stderr.
57825         (main): Move stderr to a temporary file.
57826         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
57827         Instead, add parameter to inform caller if output occurred.
57828         (test_getopt): Adjust all existing tests to expect silence, and
57829         add new tests of leading ":".
57830         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
57831         glibc shortcomings with leading "-:" or "+:" in optstring.
57832         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57833         Likewise.
57834         * doc/posix-functions/getopt.texi (getopt): Likewise.
57836         test-getopt: enhance test
57837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
57838         supports optind=0.
57839         * tests/test-getopt.c (OPTIND_MIN): Move...
57840         * tests/test-getopt.h (OPTIND_MIN): ...here.
57841         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
57842         Require that optind=0 works, since modern BSD supports it in
57843         addition to optreset, and since coreutils expects it.
57844         (test_getopt_long_only): New test.
57845         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
57846         glibc shortcomings with 'W;', and enforcement of optind=0.
57847         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
57848         Likewise.
57850 2009-12-21  Bruno Haible  <bruno@clisp.org>
57852         localename: Improvements for MacOS X and Cygwin.
57853         * lib/localename.h (gl_locale_name_environ): New declaration.
57854         * lib/localename.c (gl_locale_name_environ): New function, extracted from
57855         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
57856         (gl_locale_name_posix): Invoke it.
57857         (gl_locale_name_default): Add comments. Use Windows native API also on
57858         Cygwin.
57860 2009-12-21  Bruno Haible  <bruno@clisp.org>
57862         Update list of Win32 locale ids.
57863         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
57864         (LANG_SAMI): Renamed from LANG_SAAMI.
57865         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
57866         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
57867         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
57868         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
57869         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
57870         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
57871         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
57872         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
57873         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
57874         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
57875         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
57876         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
57877         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
57878         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
57879         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
57880         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
57881         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
57882         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
57883         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
57884         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
57885         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
57886         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
57887         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
57888         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
57889         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
57890         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
57891         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
57892         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
57893         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
57894         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
57895         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
57896         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
57897         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
57898         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
57899         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
57900         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
57901         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
57902         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
57903         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
57904         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
57905         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
57906         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
57907         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
57908         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
57909         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
57910         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
57911         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
57912         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
57913         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
57914         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
57915         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
57916         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
57917         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
57918         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
57919         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
57920         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
57921         Add more languages and countries for Sami, Sorbian. Add more countries
57922         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
57923         for Pashto. Change country for Syriac, Tswana.
57925 2009-12-21  Eric Blake  <ebb9@byu.net>
57927         test-utimens: avoid spurious failure
57928         * tests/test-chown.h (nap): Factor...
57929         * tests/nap.h: ...into new file.
57930         * tests/test-lchown.h (nap): Avoid duplication.
57931         * tests/test-utimens-common.h (nap): Use shared implementation,
57932         necessary on file systems with 1-second resolution.
57933         * modules/chown-tests (Files): Include new file.
57934         * modules/fdutimensat-tests (Files): Likewise.
57935         * modules/futimens-tests (Files): Likewise.
57936         * modules/lchown-tests (Files): Likewise.
57937         * modules/openat-tests (Files): Likewise.
57938         * modules/utimens-tests (Files): Likewise.
57939         * modules/utimensat-tests (Files): Likewise.
57941 2009-12-19  Eric Blake  <ebb9@byu.net>
57943         futimens, utimensat: work around Linux bug
57944         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
57945         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
57946         * lib/utimensat.c (rpl_utimensat): Work around it.
57947         * lib/futimens.c (rpl_futimens): Adjust comment.
57949         utimens: work around Linux ctime bug
57950         * lib/utimens.c (detect_ctime_bug): New helper function.
57951         (update_timespec): Differentiate between workaround needed for
57952         this bug vs. what is needed for systems that lack utimensat.
57953         (fdutimens, lutimens): Work around bug.
57955         utimens: check for ctime update
57956         * tests/test-utimens-common.h (check_ctime): Define.
57957         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
57958         * tests/test-futimens.h (test_futimens): Likewise.
57959         * tests/test-lutimens.h (test_lutimens): Likewise.
57960         * doc/posix-functions/futimens.texi (futimens): Document the bug.
57961         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57963 2009-12-19  Bruno Haible  <bruno@clisp.org>
57965         dprintf-posix: Check against memory leak fixed on 2009-12-15.
57966         * tests/test-dprintf-posix2.sh: New file.
57967         * tests/test-dprintf-posix2.c: New file.
57968         * modules/dprintf-posix-tests (Files): Add them.
57969         (configure.ac): Check for getrlimit and setrlimit.
57970         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
57972 2009-12-19  Bruno Haible  <bruno@clisp.org>
57974         fprintf-posix: Check against memory leak fixed on 2009-12-15.
57975         * tests/test-fprintf-posix3.sh: New file.
57976         * tests/test-fprintf-posix3.c: New file.
57977         * modules/fprintf-posix-tests (Files): Add them.
57978         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
57980 2009-12-19  Eric Blake  <ebb9@byu.net>
57982         dirfd: fix prototype
57983         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
57984         * lib/dirfd.c (dirfd): Likewise.
57986         canonicalize: reduce memory usage
57987         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
57988         allocation to size.
57989         Reported by Solar Designer <solar@openwall.com>.
57991 2009-12-19  Bruno Haible  <bruno@clisp.org>
57993         New module attribute 'Applicability'.
57994         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
57995         * gnulib-tool: New option --extract-applicability.
57996         (func_usage): Document it.
57997         (sed_extract_prog): Recognize it.
57998         (func_get_applicability): New function.
57999         (func_import): Generalize handling of 'link-warning' module.
58000         * modules/link-warning (Applicability): New section.
58001         * modules/arg-nonnull (Applicability): New section.
58002         Repoted by Simon Josefsson <simon@josefsson.org>.
58004 2009-12-19  Bruno Haible  <bruno@clisp.org>
58006         fflush: tweak
58007         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
58008         * lib/fseeko.c (rpl_fseeko): Likewise.
58010 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
58012         * lib/gl_list.h: Fix typo in comment.
58014 2009-12-16  Eric Blake  <ebb9@byu.net>
58016         fcntl: use to simplify other modules
58017         * modules/cloexec (Depends-on): Add fcntl.
58018         * modules/fchdir (Depends-on): Likewise.
58019         * modules/fd-safer-flag (Depends-on): Likewise.
58020         * modules/unistd-safer (Depends-on): Likewise.
58021         * modules/dup3 (configure.ac): Set module indicator.
58022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
58023         missing.
58024         * lib/fchdir.c (_gl_register_dup): Fix comment.
58025         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
58026         * lib/dup-safer.c (dup_safer): Likewise.
58027         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
58028         * lib/dup3.c (dup3): Likewise.
58029         * tests/test-fchdir.c (main): Enhance test.
58030         Fixes a dup_cloexec bug reported by Ondřej Vašík.
58032         fcntl: port portions of fcntl to mingw
58033         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
58034         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
58035         replacement for mingw.
58036         * modules/fcntl (Description): Update.
58037         (Depends-on): Add dup2.
58038         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
58039         * modules/fcntl-h (Makefile.am): Substitute it.
58040         * lib/fcntl.in.h (fcntl): Update declaration.
58041         (F_DUPFD, F_GETFD): New macros, when needed.
58042         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
58043         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
58044         * tests/test-fcntl.c (check_flags, main): Enhance test for items
58045         we now guarantee.
58047         fcntl: work around cygwin bug in F_DUPFD
58048         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
58049         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
58050         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
58051         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
58052         * doc/posix-functions/fcntl.texi (fcntl): Document it.
58054         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
58055         * modules/fcntl (Files): List new files.
58056         (configure.ac): Run a test.
58057         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
58058         * lib/fcntl.c (rpl_fcntl): Likewise.
58059         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
58060         (gl_FCNTL_H): Always replace fcntl.h.
58061         * modules/fcntl-h (Makefile.am): Substitute witnesses.
58062         * lib/fcntl.in.h (fcntl): Declare replacement.
58063         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
58064         needed, plus a witness.
58065         * doc/posix-functions/fcntl.texi (fcntl): Document this.
58066         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
58067         * tests/test-fcntl.c: New file.
58068         * modules/fcntl-tests: Likewise.
58070         binary-io: avoid potential compilation warning
58071         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
58072         directives.
58074         fflush: avoid compilation error on NetBSD
58075         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
58076         between off_t and fpos_t, since the latter is sometimes a struct.
58077         * lib/fseeko.c (rpl_fseeko): Likewise.
58078         Reported by Alexander Nasonov <alnsn@yandex.ru>.
58080 2009-12-15  Eric Blake  <ebb9@byu.net>
58082         fcntl-h, stdio, sys_ioctl: fix declarations
58083         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
58084         function must not take arguments.
58085         * lib/sys_ioctl.in.h (ioctl): Likewise.
58086         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
58087         (open): Add a link warning.
58089 2009-12-15  Jim Meyering  <meyering@redhat.com>
58091         areadlink, areadlink-with-size: relax license to LGPLv2+
58092         * modules/areadlink (License): Relax to LGPLv2+.
58093         * modules/areadlink-with-size (License): Likewise.
58095 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
58096             Bruno Haible  <bruno@clisp.org>
58098         *printf: Fix memory leak.
58099         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
58100         * lib/vfprintf.c (vfprintf): Likewise.
58101         * lib/dprintf.c (dprintf): Likewise.
58102         * lib/vdprintf.c (vdprintf): Likewise.
58104 2009-12-14  Eric Blake  <ebb9@byu.net>
58106         accept4: adjust module dependencies
58107         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
58109         utimens: one more try at avoiding compiler warning
58110         * lib/utimens.c (lutimens): Lower scope of result.
58112 2009-12-13  Bruno Haible  <bruno@clisp.org>
58114         Move the malloc checking from module 'list' to new module 'xlist'.
58115         * modules/xlist: New file.
58116         * lib/gl_xlist.h: New file.
58117         * lib/gl_xlist.c: New file.
58118         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
58119         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
58120         gl_list_add_last, gl_list_add_before, gl_list_add_after,
58121         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
58122         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
58123         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
58124         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
58125         gl_sortedlist_nx_add): New declarations.
58126         (struct gl_list_implementation): Rename and change methods accordingly.
58127         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
58128         (gl_list_nx_create): Renamed from gl_list_create.
58129         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
58130         (gl_list_nx_set_at): Renamed from gl_list_set_at.
58131         (gl_list_nx_add_first): Renamed from gl_list_add_first.
58132         (gl_list_nx_add_last): Renamed from gl_list_add_last.
58133         (gl_list_nx_add_before): Renamed from gl_list_add_before.
58134         (gl_list_nx_add_after): Renamed from gl_list_add_after.
58135         (gl_list_nx_add_at): Renamed from gl_list_add_at.
58136         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
58137         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
58138         gl_list_create_empty.
58139         (gl_list_nx_create): Renamed from gl_list_create.
58140         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
58141         (gl_list_nx_set_at): Renamed from gl_list_set_at.
58142         (gl_list_nx_add_first): Renamed from gl_list_add_first.
58143         (gl_list_nx_add_last): Renamed from gl_list_add_last.
58144         (gl_list_nx_add_before): Renamed from gl_list_add_before.
58145         (gl_list_nx_add_after): Renamed from gl_list_add_after.
58146         (gl_list_nx_add_at): Renamed from gl_list_add_at.
58147         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
58148         * lib/gl_array_list.c: Don't include xalloc.h.
58149         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
58150         NULL upon out-of-memory.
58151         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
58152         out-of-memory.
58153         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
58154         Change return type to 'int'.
58155         (gl_array_nx_set_at): Renamed from gl_array_set_at.
58156         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
58157         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
58158         upon out-of-memory.
58159         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
58160         upon out-of-memory.
58161         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
58162         upon out-of-memory.
58163         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
58164         upon out-of-memory.
58165         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
58166         out-of-memory.
58167         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
58168         Update.
58169         (gl_array_list_implementation): Update.
58170         * lib/gl_carray_list.c: Don't include xalloc.h.
58171         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
58172         Return NULL upon out-of-memory.
58173         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
58174         out-of-memory.
58175         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
58176         Change return type to 'int'.
58177         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
58178         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
58179         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
58180         upon out-of-memory.
58181         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
58182         upon out-of-memory.
58183         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
58184         out-of-memory.
58185         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
58186         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
58187         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
58188         Update.
58189         (gl_carray_list_implementation): Update.
58190         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
58191         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
58192         gl_linked_create_empty. Return NULL upon out-of-memory.
58193         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
58194         out-of-memory.
58195         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
58196         Change return type to 'int'. Return -1 upon out-of-memory.
58197         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
58198         out-of-memory.
58199         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
58200         upon out-of-memory.
58201         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
58202         upon out-of-memory.
58203         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
58204         NULL upon out-of-memory.
58205         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
58206         upon out-of-memory.
58207         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
58208         out-of-memory.
58209         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
58210         Update.
58211         * lib/gl_linked_list.c: Don't include xalloc.h.
58212         (gl_linked_list_implementation): Update.
58213         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
58214         (add_to_bucket): Change return type to 'int'.
58215         (gl_linkedhash_list_implementation): Update.
58216         * lib/gl_anytree_list1.h (free_subtree): New function.
58217         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
58218         gl_tree_create_empty. Return NULL upon out-of-memory.
58219         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
58220         Change return type to 'int'. Return -1 upon out-of-memory.
58221         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
58222         out-of-memory.
58223         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
58224         (gl_tree_remove_node): New function, moved here from
58225         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
58226         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
58227         Update.
58228         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
58229         malloc, not xmalloc. Return NULL upon out-of-memory.
58230         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
58231         out-of-memory.
58232         (gl_tree_remove_node_from_tree): New function, extracted from
58233         gl_tree_remove_node.
58234         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
58235         upon out-of-memory.
58236         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
58237         out-of-memory.
58238         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
58239         upon out-of-memory.
58240         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
58241         upon out-of-memory.
58242         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
58243         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
58244         not xmalloc. Return NULL upon out-of-memory.
58245         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
58246         out-of-memory.
58247         (gl_tree_remove_node_from_tree): New function, extracted from
58248         gl_tree_remove_node.
58249         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
58250         upon out-of-memory.
58251         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
58252         out-of-memory.
58253         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
58254         upon out-of-memory.
58255         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
58256         upon out-of-memory.
58257         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
58258         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
58259         gl_anytree_list1.h before gl_anyavltree_list2.h.
58260         (gl_avltree_list_implementation): Update.
58261         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
58262         gl_anytree_list1.h before gl_anyavltree_list2.h.
58263         (gl_rbtree_list_implementation): Update.
58264         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
58265         Change return type to 'int'. Return -1 upon out-of-memory. Use
58266         __builtin_expect.
58267         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
58268         (gl_avltreehash_list_implementation): Update.
58269         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
58270         (gl_rbtreehash_list_implementation): Update.
58271         * modules/array-list (Depends-on): Remove xalloc.
58272         * modules/carray-list (Depends-on): Likewise.
58273         * modules/linked-list (Depends-on): Likewise.
58274         * modules/linkedhash-list (Depends-on): Likewise.
58275         * modules/avltree-list (Depends-on): Likewise.
58276         * modules/rbtree-list (Depends-on): Likewise.
58277         * modules/avltreehash-list (Depends-on): Likewise.
58278         * modules/rbtreehash-list (Depends-on): Likewise.
58280         * modules/xsublist: New file.
58281         * lib/gl_xsublist.h: New file.
58282         * lib/gl_xsublist.c: New file.
58283         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
58284         (gl_sublist_nx_create): New declaration.
58285         * lib/gl_sublist.c: Don't include xalloc.h.
58286         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
58287         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
58288         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
58289         Change return type to 'int'. Return -1 upon out-of-memory.
58290         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
58291         upon out-of-memory.
58292         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
58293         NULL upon out-of-memory.
58294         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
58295         upon out-of-memory.
58296         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
58297         NULL upon out-of-memory.
58298         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
58299         NULL upon out-of-memory.
58300         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
58301         upon out-of-memory.
58302         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
58303         (gl_sublist_list_implementation): Update.
58304         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
58305         upon out-of-memory.
58306         * modules/sublist (Depends-on): Remove xalloc.
58308         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
58309         * tests/test-carray_list.c: Likewise.
58310         * tests/test-linked_list.c: Likewise.
58311         * tests/test-linkedhash_list.c: Likewise.
58312         * tests/test-avltree_list.c: Likewise.
58313         * tests/test-rbtree_list.c: Likewise.
58314         * tests/test-avltreehash_list.c: Likewise.
58315         * tests/test-rbtreehash_list.c: Likewise.
58316         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
58317         * modules/carray-list-tests (Makefile.am): Likewise.
58318         * modules/linked-list-tests (Makefile.am): Likewise.
58319         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58320         * modules/avltree-list-tests (Makefile.am): Likewise.
58321         * modules/rbtree-list-tests (Makefile.am): Likewise.
58322         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58323         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58325         * NEWS: Mention the changes.
58327         * lib/clean-temp.c: Include gl_xlist.h.
58328         * modules/clean-temp (Depends-on): Add xlist.
58330         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
58331         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
58333         * tests/test-array_oset.c: Include gl_xlist.h.
58334         * modules/array-oset-tests (Depends-on): Add xlist.
58336         Reported by José E. Marchesi <jemarch@gnu.org>.
58338 2009-12-13  Bruno Haible  <bruno@clisp.org>
58340         Move the malloc checking from module 'oset' to new module 'xoset'.
58341         * modules/xoset: New file.
58342         * lib/gl_xoset.h: New file.
58343         * lib/gl_xoset.c: New file.
58344         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
58345         declarations.
58346         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
58347         (struct gl_oset_implementation): Rename and change methods accordingly.
58348         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
58349         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58350         'int'. Mark as __warn_unused_result__.
58351         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
58352         gl_oset_create_empty.
58353         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58354         'int'.
58355         * lib/gl_array_oset.c: Don't include xalloc.h.
58356         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
58357         malloc, not xmalloc.
58358         (grow): Change return type to 'int'. Don't call xalloc_die.
58359         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
58360         to 'int'.
58361         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
58362         'int'.
58363         (gl_array_oset_implementation): Update.
58364         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
58365         gl_tree_create_empty.
58366         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
58367         'int'.
58368         * lib/gl_avltree_oset.c: Don't include xalloc.h.
58369         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58370         xmalloc.
58371         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58372         not xmalloc.
58373         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58374         xmalloc.
58375         (gl_avltree_oset_implementation): Update.
58376         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
58377         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58378         xmalloc.
58379         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58380         not xmalloc.
58381         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58382         xmalloc.
58383         (gl_rbtree_oset_implementation): Update.
58384         * modules/array-oset (Depends-on): Remove xalloc.
58385         * modules/avltree-oset (Depends-on): Likewise.
58386         * modules/rbtree-oset (Depends-on): Likewise.
58387         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
58388         * tests/test-avltree_oset.c: Likewise.
58389         * tests/test-rbtree_oset.c: Likewise.
58390         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58391         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
58392         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58393         * NEWS: Mention the change.
58395 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
58397         maint.mk: allow a project to override release-prep commands
58398         * top/maint.mk (alpha, beta, stable): Move release-preparatory
58399         commands into a new rule.
58400         (release-prep): New rule.
58401         (release-prep-hook): New overridable variable.
58403 2009-12-13  Bruno Haible  <bruno@clisp.org>
58405         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
58407 2009-12-13  Jim Meyering  <meyering@redhat.com>
58409         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
58410         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
58412 2009-12-12  Bruno Haible  <bruno@clisp.org>
58414         duplocale: Tweak.
58415         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
58417 2009-12-12  Karl Berry  <karl@gnu.org>
58419         * config/srclist.txt (strtoll.c): tab changes, no more sync.
58421 2009-12-12  Bruno Haible  <bruno@clisp.org>
58423         * m4/po.m4: Undo incorrect untabification.
58425 2009-12-12  Bruno Haible  <bruno@clisp.org>
58427         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
58428         * modules/c-strtod (Depends-on): Add locale.
58429         * modules/c-strtold (Depends-on): Likewise.
58431 2009-12-12  Bruno Haible  <bruno@clisp.org>
58433         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
58435 2009-12-11  Eric Blake  <ebb9@byu.net>
58437         setenv: relax requirement in light of POSIX ruling
58438         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
58439         not NULL.
58440         * tests/test-setenv.c (main): Relax test.
58441         * tests/test-unsetenv.c (main): Likewise.
58442         * doc/posix-functions/setenv.texi (setenv): Document this.
58443         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
58445 2009-12-11  Bruno Haible  <bruno@clisp.org>
58447         New module 'fd-safer-flag'.
58448         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
58449         * lib/dup-safer.c (dup_safer_flag): Remove function.
58450         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
58451         * lib/fd-safer.c (fd_safer_flag): Remove function.
58452         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
58453         * modules/cloexec (configure.ac): Drop indicator macro.
58454         * modules/fd-safer-flag: New file.
58455         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
58456         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
58457         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
58459 2009-12-11  Bruno Haible  <bruno@clisp.org>
58461         Tests for module 'nl_langinfo'.
58462         * modules/nl_langinfo-tests: New file.
58463         * tests/test-nl_langinfo.sh: New file.
58464         * tests/test-nl_langinfo.c: New file.
58466         New module 'nl_langinfo'.
58467         * lib/nl_langinfo.c: New file.
58468         * m4/nl_langinfo.m4: New file.
58469         * modules/nl_langinfo: New file.
58470         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
58472 2009-12-11  Bruno Haible  <bruno@clisp.org>
58474         Tests for module 'langinfo'.
58475         * modules/langinfo-tests: New file.
58476         * tests/test-langinfo.c: New file.
58478         New module 'langinfo'.
58479         * lib/langinfo.in.h: New file.
58480         * m4/langinfo_h.m4: New file.
58481         * modules/langinfo: New file.
58482         * doc/posix-headers/langinfo.texi: Mention the new module.
58484 2009-12-11  Bruno Haible  <bruno@clisp.org>
58486         * lib/config.charset: Untabify.
58488 2009-12-11  Bruno Haible  <bruno@clisp.org>
58490         * modules/unistd-safer (configure.ac): Drop indicator macro.
58492 2009-12-11  Bruno Haible  <bruno@clisp.org>
58494         Move pipe2-safer code to its own file.
58495         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
58496         * lib/pipe-safer.c (pipe2_safer): Remove function.
58497         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
58498         (Makefile.am): Add it to lib_SOURCES.
58500 2009-12-10  Bruno Haible  <bruno@clisp.org>
58502         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
58504 2009-12-10  Bruno Haible  <bruno@clisp.org>
58506         Declare which arguments expect non-NULL values, for GCC and clang.
58507         * build-aux/arg-nonnull.h: New file.
58508         * modules/arg-nonnull: New file.
58509         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
58510         (inet_ntop, inet_pton): Use it.
58511         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
58512         (closedir, dirfd, opendir, scandir, alphasort): Use it.
58513         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
58514         (open, openat): Use it.
58515         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
58516         (fnmatch): Use it.
58517         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
58518         (getopt, getopt_long, getopt_long_only): Use it.
58519         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
58520         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
58521         Use it.
58522         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
58523         (iconv_open): Use it.
58524         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
58525         (strtoimax, strtoumax): Use it.
58526         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
58527         (duplocale): Use it.
58528         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
58529         (frexp, frexpl): Use it.
58530         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
58531         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
58532         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
58533         (tsearch, tfind, tdelete, twalk): Use it.
58534         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
58535         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
58536         sigpending): Use it.
58537         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
58538         (posix_spawn, posix_spawnp, posix_spawnattr_init,
58539         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
58540         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
58541         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
58542         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
58543         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
58544         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
58545         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
58546         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
58547         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
58548         Use it.
58549         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
58550         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
58551         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
58552         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
58553         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
58554         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
58555         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
58556         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
58557         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
58558         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
58559         strtoull, unsetenv): Use it.
58560         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
58561         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
58562         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
58563         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
58564         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
58565         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
58566         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
58567         (strcasecmp, strncasecmp): Use it.
58568         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
58569         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
58570         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
58571         rpl_setsockopt): Use it.
58572         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
58573         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
58574         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
58575         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
58576         (gettimeofday): Use it.
58577         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
58578         (times): Use it.
58579         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
58580         (uname): Use it.
58581         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
58582         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
58583         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
58584         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
58585         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
58586         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
58587         unlinkat, write): Use it.
58588         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
58589         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
58590         * lib/argv-iter.h: Include arg-nonnull.h.
58591         (_ATTRIBUTE_NONNULL_): Remove macro.
58592         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
58593         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
58594         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
58595         optimization.
58596         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
58597         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
58598         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
58599         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
58600         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
58601         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
58602         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
58603         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
58604         * modules/arpa_inet (Depends-on): Add arg-nonnull.
58605         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
58606         * modules/dirent (Depends-on): Add arg-nonnull.
58607         (Makefile.am): Insert arg-nonnull.h into dirent.h.
58608         * modules/fcntl-h (Depends-on): Add arg-nonnull.
58609         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
58610         * modules/fnmatch (Depends-on): Add arg-nonnull.
58611         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
58612         * modules/getopt-posix (Depends-on): Add arg-nonnull.
58613         (Makefile.am): Insert arg-nonnull.h into getopt.h.
58614         * modules/glob (Depends-on): Add arg-nonnull.
58615         (Makefile.am): Insert arg-nonnull.h into glob.h.
58616         * modules/iconv_open (Depends-on): Add arg-nonnull.
58617         (Makefile.am): Insert arg-nonnull.h into iconv.h.
58618         * modules/inttypes (Depends-on): Add arg-nonnull.
58619         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
58620         * modules/locale (Depends-on): Add arg-nonnull.
58621         (Makefile.am): Insert arg-nonnull.h into locale.h.
58622         * modules/math (Depends-on): Add arg-nonnull.
58623         (Makefile.am): Insert arg-nonnull.h into math.h.
58624         * modules/netdb (Depends-on): Add arg-nonnull.
58625         (Makefile.am): Insert arg-nonnull.h into netdb.h.
58626         * modules/search (Depends-on): Add arg-nonnull.
58627         (Makefile.am): Insert arg-nonnull.h into search.h.
58628         * modules/signal (Depends-on): Add arg-nonnull.
58629         (Makefile.am): Insert arg-nonnull.h into signal.h.
58630         * modules/spawn (Depends-on): Add arg-nonnull.
58631         (Makefile.am): Insert arg-nonnull.h into spawn.h.
58632         * modules/stdio (Depends-on): Add arg-nonnull.
58633         (Makefile.am): Insert arg-nonnull.h into stdio.h.
58634         * modules/stdlib (Depends-on): Add arg-nonnull.
58635         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
58636         * modules/string (Depends-on): Add arg-nonnull.
58637         (Makefile.am): Insert arg-nonnull.h into string.h.
58638         * modules/strings (Depends-on): Add arg-nonnull.
58639         (Makefile.am): Insert arg-nonnull.h into strings.h.
58640         * modules/sys_socket (Depends-on): Add arg-nonnull.
58641         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
58642         * modules/sys_stat (Depends-on): Add arg-nonnull.
58643         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
58644         * modules/sys_time (Depends-on): Add arg-nonnull.
58645         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
58646         * modules/sys_times (Depends-on): Add arg-nonnull.
58647         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
58648         * modules/sys_utsname (Depends-on): Add arg-nonnull.
58649         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
58650         * modules/time (Depends-on): Add arg-nonnull.
58651         (Makefile.am): Insert arg-nonnull.h into time.h.
58652         * modules/unistd (Depends-on): Add arg-nonnull.
58653         (Makefile.am): Insert arg-nonnull.h into unistd.h.
58654         * modules/wchar (Depends-on): Add arg-nonnull.
58655         (Makefile.am): Insert arg-nonnull.h into wchar.h.
58656         * modules/argv-iter (Depends-on): Add arg-nonnull.
58657         * tests/test-canonicalize.c (null_ptr): New function.
58658         (main): Use it.
58659         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
58660         (main): Use it.
58661         * tests/test-memmem.c (null_ptr): New function.
58662         (main): Use it.
58663         Reported by Jim Meyering.
58665 2009-12-10  Bruno Haible  <bruno@clisp.org>
58667         Use spaces for indentation, not tabs.
58668         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
58669         * m4/*.m4: Untabify.
58670         * build-aux/*.h: Untabify.
58671         * tests/**/*.[hc]: Untabify.
58672         * README: New section "Indent with spaces, not TABs", based on
58673         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
58674         * NEWS: Mention the change.
58676 2009-12-10  Bruno Haible  <bruno@clisp.org>
58678         pty test: Fix link error.
58679         * modules/pty-tests (Makefile.am): Add the default LDADD value to
58680         test_pty_LDADD.
58682 2009-12-07  Simon Josefsson  <simon@josefsson.org>
58684         * modules/pty: New file.
58685         * modules/pty-tests: New file.
58686         * m4/pty.m4: New file.
58687         * tests/test-pty.c: New file.
58688         * doc/glibc-headers/pty.texi: Modified.
58689         * doc/glibc-functions/forkpty.texi: Modified.
58690         * doc/glibc-functions/openpty.texi: Modified.
58692 2009-12-10  Bruno Haible  <bruno@clisp.org>
58694         Avoid syntax error in C++ mode.
58695         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
58697 2009-12-10  Bruno Haible  <bruno@clisp.org>
58699         Use sed with option -e.
58700         * gnulib-tool (func_version, func_emit_copyright_notice,
58701         func_emit_initmacro_end, func_import, func_create_testdir): Pass
58702         option -e to sed.
58703         * modules/link-warning (Makefile.am): Likewise.
58705 2009-12-10  Jim Meyering  <meyering@redhat.com>
58707         mgetgroups: do not write bytes beyond end of malloc'd buffer
58708         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
58709         username, we call getgroups with a one-element-shorter buffer,
58710         but still told it the length was original, max_n_groups.
58712 2009-12-09  Eric Blake  <ebb9@byu.net>
58714         cloexec: relax license
58715         * modules/cloexec (Maintainer): Add myself.
58716         (License): Use LGPL, not GPL.
58718         link-warning: optimize generation
58719         * modules/link-warning (Makefile.am): Reduce process usage.
58721 2009-12-09  Bruno Haible  <bruno@clisp.org>
58723         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
58724         workaround was added on 2009-11-17.
58726 2009-12-09  Jim Meyering  <meyering@redhat.com>
58727             Bruno Haible  <bruno@clisp.org>
58729         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
58730         * modules/link-warning (Makefile.am): Make the comment-removing sed
58731         command more robust in the face of bootstrap-prepended comment lines.
58733 2009-12-09  Bruno Haible  <bruno@clisp.org>
58735         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
58736         most one group.
58738 2009-12-09  Simon Josefsson  <simon@josefsson.org>
58739             Bruno Haible  <bruno@clisp.org>
58741         * build-aux/link-warning.h: Add copyright notice.
58742         * modules/link-warning (Makefile.am): Generate link-warning.h from
58743         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
58744         * NEWS: Mention change in link-warning module.
58745         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
58746         * modules/dirent (Makefile.am): Add dependency to dirent.h.
58747         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
58748         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
58749         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
58750         * modules/math (Makefile.am): Add dependency to math.h.
58751         * modules/search (Makefile.am): Add dependency to search.h.
58752         * modules/signal (Makefile.am): Add dependency to signal.h.
58753         * modules/spawn (Makefile.am): Add dependency to spawn.h.
58754         * modules/stdio (Makefile.am): Add dependency to stdio.h.
58755         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
58756         * modules/string (Makefile.am): Add dependency to string.h.
58757         * modules/strings (Makefile.am): Add dependency to strings.h.
58758         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
58759         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
58760         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
58761         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
58762         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
58763         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
58764         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
58765         * modules/unistd (Makefile.am): Add dependency to unistd.h.
58766         * modules/wchar (Makefile.am): Add dependency to wchar.h.
58768 2009-12-09  Bruno Haible  <bruno@clisp.org>
58770         fchdir: Optimize away rpl_fstat when possible.
58771         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
58772         REPLACE_OPEN_DIRECTORY.
58773         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
58775 2009-12-09  Bruno Haible  <bruno@clisp.org>
58777         * lib/fchdir.c: Update comment.
58779 2009-12-09  Bruno Haible  <bruno@clisp.org>
58781         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
58783 2009-12-08  Eric Blake  <ebb9@byu.net>
58785         fchdir: avoid memory leak on re-registration.
58786         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
58788 2009-12-08  Jim Meyering  <meyering@redhat.com>
58790         init.sh: avoid Solaris 10 /bin/sh portability problem
58791         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
58792         sourced script:
58793           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
58794           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
58795           bar
58796         tests/init.sh relied on that, accepting a --set-path=DIR argument,
58797         and two tests used that idiom.
58798         * tests/init.sh: Update suggested usage comments.
58799         (path_prepend_): New function, to be used in place
58800         of the --src-path=DIR option.
58801         (setup_): Move PATH-prepending code into path_prepend_.
58802         * tests/test-pread.sh: Adapt to new usage.
58803         * tests/test-xalloc-die.sh: Likewise.
58805 2009-12-08  Simon Josefsson  <simon@josefsson.org>
58807         * doc/gnulib.texi (Glibc pty.h): Add.
58808         * doc/glibc-functions/forkpty.texi: Add.
58809         * doc/glibc-functions/openpty.texi: Add.
58810         Suggested by Bruno Haible.
58812 2009-12-08  Eric Blake  <ebb9@byu.net>
58814         fchdir: fix logic bugs
58815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
58816         * tests/test-fchdir.c (main): Enhance test.
58817         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
58818         is in use.
58820         dup2: fix logic bugs
58821         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
58822         REPLACE_DUP2 to decide when rpl_dup2 is needed.
58823         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
58824         exists.
58825         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
58827 2009-12-07  Eric Blake  <ebb9@byu.net>
58829         unlink: fix m4 detection
58830         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
58832         unistd-safer: add unit test
58833         * modules/unistd-safer-tests: New file.
58834         * tests/test-dup-safer.c: Likewise.
58835         * tests/test-cloexec.c (setmode): Avoid compiler warning.
58836         * tests/test-dup2.c (setmode): Likewise.
58837         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
58839         cloexec: preserve text vs. binary across dup_cloexec
58840         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
58841         mode.
58842         * modules/dup2-tests (Depends-on): Add binary-io.
58843         * modules/cloexec-tests (Depends-on): Likewise.
58844         * tests/test-dup2.c (setmode, is_mode): New helpers.
58845         (main): Add tests that translation mode is preserved.
58846         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
58847         Reported by Bruno Haible.
58849         mgetgroups: reduce duplicate listings
58850         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
58851         resulting array.
58852         * tests/test-chown.h (test_chown): Simplify client.
58853         * tests/test-lchown.h (test_lchown): Likewise.
58855 2009-12-06  Bruno Haible  <bruno@clisp.org>
58857         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
58858         value.
58860 2009-12-06  Bruno Haible  <bruno@clisp.org>
58862         * lib/progname.c: Include stdio.h, stdlib.h.
58863         (set_program_name): Reject a NULL argument.
58865 2009-12-05  Eric Blake  <ebb9@byu.net>
58867         pipe2-safer: new module
58868         * modules/pipe2-safer: New file.
58869         * lib/unistd-safer.h (pipe2_safer): New prototype.
58870         * lib/unistd--.h (pipe2): New wrapper.
58871         * lib/pipe-safer.c (pipe2_safer): New function.
58872         * modules/pipe (Depends-on): Add pipe2-safer.
58873         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
58875         stdlib-safer: preserve cloexec flag for mkostemp[s]
58876         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
58877         fd_safer_flag.
58879         unistd-safer: allow preservation of cloexec status via flag
58880         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
58881         prototypes.
58882         * lib/dup-safer.c (dup_safer_flag): New function.
58883         * lib/fd-safer.c (fd_safer_flag): Likewise.
58884         * modules/cloexec (configure.ac): Set witness.
58886         test-dup2: enhance test
58887         * modules/dup2-tests (Depends-on): Add cloexec.
58888         * tests/test-dup2.c (main): Enhance test.
58890         cloexec: add dup_cloexec
58891         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
58892         header and comments.
58893         * lib/cloexec.c (set_cloexec_flag): Add comments.
58894         (dup_cloexec): New function, with mingw implementation borrowed
58895         from...
58896         * lib/w32spawn.h (dup_noinherit): ...here.
58897         * modules/execute (Depends-on): Add cloexec.
58898         * modules/pipe (Depends-on): Likewise.
58899         * modules/cloexec (Depends-on): Add dup2.
58900         * modules/cloexec-tests (Files): New file.
58901         * tests/test-cloexec.c: Likewise.
58903         test-xalloc-die: fix test for mingw
58904         * modules/xalloc-die-tests (Files): Add tests/init.sh.
58905         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
58906         directory and .exe suffix off argv[0] output.
58908         test-fseeko: fix test for mingw
58909         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
58910         than undefining fseek, so test will pass on mingw.
58912 2009-12-05  Bruno Haible  <bruno@clisp.org>
58914         * lib/progname.h (set_program_name): Clarify specification.
58915         * lib/progname.c (set_program_name): Likewise.
58916         Reported by Jim Meyering.
58918 2009-12-05  Jim Meyering  <meyering@redhat.com>
58920         maint.mk: backslash-escape parens in default regexp
58921         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
58922         backslash-escape the literal parentheses.
58924         maint.mk: news-date-check: use grep -E
58925         * top/maint.mk (today): Define a Make variable, not a...
58926         (news-date-check): ...shell variable.
58927         (news-date-regexp): Use the Make variable.
58928         Use grep's -E option.  Change the failing diagnostic to mention
58929         the variable, $(news-date-regexp).
58931 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
58933         maintainer-makefile: allow customization of NEWS entry format
58934         * top/maint.mk (news-date-regexp): New overridable variable.
58935         (news-date-check): Use it.
58937 2009-12-04  Eric Blake  <ebb9@byu.net>
58939         mgetgroups: add xgetgroups, and avoid ENOSYS failures
58940         * lib/mgetgroups.h (xgetgroups): New prototype.
58941         * lib/mgetgroups.c (xgetgroups): New wrapper.
58942         (mgetgroups): Handle ENOSYS.
58943         * modules/mgetgroups (Depends-on): Add realloc.
58944         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
58946         mgetgroups: avoid argument promotion issues with -1
58947         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
58948         for invalid gid_t.
58949         * tests/test-chown.h (getegid, test_chown): Likewise.
58950         * tests/test-lchown.h (getegid, test_lchown): Likewise.
58952 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
58954         exclude: Fix header file problems.
58955         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
58957 2009-12-01  Jim Meyering  <meyering@redhat.com>
58959         fts: fts_open: do not let an empty string cause immediate failure
58960         This is required in support of GNU rm, for which the command
58961         "rm A '' B" must process and remove both A and B, in spite of
58962         the empty string argument.
58963         * lib/fts.c (fts_open): Do not let the presence of an empty string
58964         cause fts_open to fail immediately.  Most fts-using tools must be
58965         able to process all arguments, in order, and can be expected to
58966         diagnose such arguments themselves.
58968 2009-11-30  Eric Blake  <ebb9@byu.net>
58970         utimens: fix compilation error
58971         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
58972         Declare variable at right scope.
58974 2009-11-29  Jim Meyering  <meyering@redhat.com>
58976         bootstrap: handle perl-5.11's changed --version output
58977         * build-aux/bootstrap (get_version): Handle perl separately,
58978         since perl-5.11's --version output is different.
58980 2009-11-28  Jim Meyering  <meyering@redhat.com>
58982         userspec: depend on the inttostr module, too
58983         * modules/userspec (Depends-on): Add inttostr.
58985         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
58986         * lib/userspec.c (parse_with_separator): Do not accept a user ID
58987         number of MAXUID when it evaluates to (uid_t) -1.
58988         Likewise for group ID.  Reported by Matt McCutchen in
58989         <http://savannah.gnu.org/bugs/?28113>
58991         userspec: reformat to use spaces, not TABs
58992         * lib/userspec.c: Expand TABs to spaces.
58993         Add Emacs' "indent-tabs-mode: nil" hint.
58995 2009-11-27  Eric Blake  <ebb9@byu.net>
58997         getopt-gnu: flush out another BSD bug
58998         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
58999         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
59000         flush out BSD bug.
59001         * tests/test-getopt.h (test_getopt): End lists with NULL.
59002         * tests/test-getopt_long.h (test_getopt_long): Likewise.
59003         (test_getopt_long_posix): Enhance test.
59004         * modules/getopt-posix-tests (Depends-on): Add stdbool.
59005         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
59006         getopt-gnu.
59007         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59008         Likewise.
59010 2009-11-27  Simon Josefsson  <simon@josefsson.org>
59012         * modules/idpriv-droptemp-tests (Notice): Fix text.
59014 2009-11-27  Jim Meyering  <meyering@redhat.com>
59016         test-xalloc-die: avoid spurious failure due to libtool argv difference
59017         In a libtool-enabled project, this test would fail due to a difference
59018         in the emitted program name, e.g.,
59019         -test-xalloc-die: memory exhausted
59020         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
59021         Use program to avoid that.
59022         * modules/xalloc-die-tests (Depends-on): Add progname.
59023         * tests/test-xalloc-die.c: Include progname.h".
59024         (program_name): Remove decl.
59025         (main): Call set_program_name.
59026         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
59028 2009-11-26  Richard Jones  <rjones@redhat.com>
59030         w32sock: leave win32 error in place.
59031         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
59033 2009-11-26  Eric Blake  <ebb9@byu.net>
59035         init.sh: suggest to use skip_ and fail_ functions in comments
59036         * tests/init.sh: Add a sentence.
59038 2009-11-25  Bruno Haible  <bruno@clisp.org>
59040         init.sh: add documentation in comments
59041         * tests/init.sh: Add some developer and user documentation.
59043 2009-11-26  Jim Meyering  <meyering@redhat.com>
59045         init.sh: accommodate even those who specify bogus srcdir manually
59046         * tests/init.sh: Normally, srcdir is guaranteed by automake and
59047         configure-time tests to be sanitized, so that there is no need to
59048         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
59049         (with no double quotes) suffices.  However, since tests may be
59050         invoked manually, and since you may explicitly set srcdir to the
59051         name of a directory containing spaces, do quote its uses here.
59052         * tests/test-pread.sh: Likewise.
59053         Suggested by Bruno Haible.
59055         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
59056         * tests/test-pread.sh: Write no data into the pipe, because
59057         test-pread actually reads none.  This avoids a diagnostic,
59058         "bash: echo: write error: Broken pipe", that arises in the unusual
59059         event something is ignoring SIGPIPE, and might be interpreted
59060         as some sort of failure.  Reported by Bruno Haible.
59062 2009-11-25  Jim Meyering  <meyering@redhat.com>
59064         test-pread: cover failure with ESPIPE and EINVAL
59065         * tests/test-pread.c (main): Test for failure, too.
59066         * tests/test-pread.sh: Invoke with stdin on a pipe.
59067         Suggested by Eric Blake.
59069         pread: improvement and fix
59070         * modules/pread (Depends-on): Depend on lseek, for portability to
59071         e.g., mingw.  Suggested by Eric Blake.
59072         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
59074         unistd.in.h: correct declaration of pread
59075         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
59076         Reported by Richard W.M. Jones.
59078         test-pread.sh: distribute the test script
59079         * modules/pread-tests (Files): Include test-pread.sh.
59081         test-pread.sh: clean up
59082         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
59083         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
59084         That is unnecessary, since it's always ".".
59085         Suggestion from Eric Blake.
59087         test-pread.sh: make executable
59088         * tests/test-pread.sh: Set executable bit.
59089         Reported by Eric Blake.
59091         correct typo in test-pread.sh
59092         * tests/test-pread.sh: Add #! line.
59094         test pread
59095         * tests/test-pread.c: New file.
59096         * tests/test-pread.sh: Likewise.
59097         * modules/pread-tests: Likewise.
59099         pread: new module
59100         * modules/pread: New file.
59101         * lib/unistd.in.h (pread): Define/declare.
59102         * lib/pread.c (pread): New file.
59103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
59104         * modules/unistd (Makefile.am): Substitute witnesses.
59105         * doc/posix-functions/pread.texi (pread): Update.
59106         * MODULES.html.sh: Add pread.
59108 2009-11-25  Jim Meyering  <meyering@redhat.com>
59110         tests/init.sh: new file to be used via most *.sh tests
59111         * tests/init.sh: New file.
59113 2009-11-25  Eric Blake  <ebb9@byu.net>
59115         utimens: work around older Linux failure with symlinks
59116         * lib/utimens.c (lutimensat_works_really): New variable.
59117         (fdutimens, lutimens): Use it to manage kernels that support
59118         nanosecond times on files, but not on symlinks.
59119         Reported by Ondřej Vašík.
59121         utimes: fix configure grammar
59122         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
59124 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
59126         regex: Fix fastmap for multibyte character ranges.
59127         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
59128         characters when a multibyte character range is included.
59130 2009-11-22  Andy Wingo  <wingo@pobox.com>
59132         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
59133         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
59135 2009-11-24  Bruno Haible  <bruno@clisp.org>
59137         doc: Most *_l functions exist in MacOS X 10.5.
59138         * doc/posix-functions/duplocale.texi: Update platforms list.
59139         * doc/posix-functions/freelocale.texi: Likewise.
59140         * doc/posix-functions/newlocale.texi: Likewise.
59141         * doc/posix-functions/uselocale.texi: Likewise.
59142         * doc/posix-functions/isalnum_l.texi: Likewise.
59143         * doc/posix-functions/isalpha_l.texi: Likewise.
59144         * doc/posix-functions/isblank_l.texi: Likewise.
59145         * doc/posix-functions/iscntrl_l.texi: Likewise.
59146         * doc/posix-functions/isdigit_l.texi: Likewise.
59147         * doc/posix-functions/isgraph_l.texi: Likewise.
59148         * doc/posix-functions/islower_l.texi: Likewise.
59149         * doc/posix-functions/isprint_l.texi: Likewise.
59150         * doc/posix-functions/ispunct_l.texi: Likewise.
59151         * doc/posix-functions/isspace_l.texi: Likewise.
59152         * doc/posix-functions/isupper_l.texi: Likewise.
59153         * doc/posix-functions/iswalnum_l.texi: Likewise.
59154         * doc/posix-functions/iswalpha_l.texi: Likewise.
59155         * doc/posix-functions/iswblank_l.texi: Likewise.
59156         * doc/posix-functions/iswcntrl_l.texi: Likewise.
59157         * doc/posix-functions/iswctype_l.texi: Likewise.
59158         * doc/posix-functions/iswdigit_l.texi: Likewise.
59159         * doc/posix-functions/iswgraph_l.texi: Likewise.
59160         * doc/posix-functions/iswlower_l.texi: Likewise.
59161         * doc/posix-functions/iswprint_l.texi: Likewise.
59162         * doc/posix-functions/iswpunct_l.texi: Likewise.
59163         * doc/posix-functions/iswspace_l.texi: Likewise.
59164         * doc/posix-functions/iswupper_l.texi: Likewise.
59165         * doc/posix-functions/iswxdigit_l.texi: Likewise.
59166         * doc/posix-functions/isxdigit_l.texi: Likewise.
59167         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
59168         * doc/posix-functions/strcasecmp_l.texi: Likewise.
59169         * doc/posix-functions/strcoll_l.texi: Likewise.
59170         * doc/posix-functions/strfmon_l.texi: Likewise.
59171         * doc/posix-functions/strftime_l.texi: Likewise.
59172         * doc/posix-functions/strncasecmp_l.texi: Likewise.
59173         * doc/posix-functions/strxfrm_l.texi: Likewise.
59174         * doc/posix-functions/tolower_l.texi: Likewise.
59175         * doc/posix-functions/toupper_l.texi: Likewise.
59176         * doc/posix-functions/towctrans_l.texi: Likewise.
59177         * doc/posix-functions/towlower_l.texi: Likewise.
59178         * doc/posix-functions/towupper_l.texi: Likewise.
59179         * doc/posix-functions/wcscoll_l.texi: Likewise.
59180         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
59181         * doc/posix-functions/wctrans_l.texi: Likewise.
59182         * doc/posix-functions/wctype_l.texi: Likewise.
59183         * doc/glibc-functions/strptime_l.texi: Likewise.
59184         * doc/glibc-functions/strtod_l.texi: Likewise.
59185         * doc/glibc-functions/strtof_l.texi: Likewise.
59186         * doc/glibc-functions/strtol_l.texi: Likewise.
59187         * doc/glibc-functions/strtold_l.texi: Likewise.
59188         * doc/glibc-functions/strtoll_l.texi: Likewise.
59189         * doc/glibc-functions/strtoul_l.texi: Likewise.
59190         * doc/glibc-functions/strtoull_l.texi: Likewise.
59191         * doc/glibc-functions/wcsftime_l.texi: Likewise.
59192         * doc/glibc-functions/wcstod_l.texi: Likewise.
59193         * doc/glibc-functions/wcstof_l.texi: Likewise.
59194         * doc/glibc-functions/wcstol_l.texi: Likewise.
59195         * doc/glibc-functions/wcstold_l.texi: Likewise.
59196         * doc/glibc-functions/wcstoll_l.texi: Likewise.
59197         * doc/glibc-functions/wcstoul_l.texi: Likewise.
59198         * doc/glibc-functions/wcstoull_l.texi: Likewise.
59200 2009-11-24  Bruno Haible  <bruno@clisp.org>
59202         duplocale: Fix logic bug.
59203         * lib/duplocale.c: Don't include <langinfo.h>.
59204         (_NL_LOCALE_NAME): Remove macro.
59205         (rpl_duplocale): Use setlocale instead of nl_langinfo.
59206         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
59208 2009-11-23  Jim Meyering  <meyering@redhat.com>
59210         test-update-copyright: don't hard-code /usr/bin/perl
59211         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
59212         perl to print the current year.  Gilles Espinasse reported that
59213         the replaced use of perl was hard-coded as /usr/bin/perl.
59215 2009-11-23  Bruno Haible  <bruno@clisp.org>
59217         duplocale: Add support for glibc 2.3.x.
59218         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
59220 2009-11-22  Bruno Haible  <bruno@clisp.org>
59222         vasnprintf: Tiny optimization.
59223         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
59224         MacOS X.
59226 2009-11-22  Bruno Haible  <bruno@clisp.org>
59228         Tests for module 'duplocale'.
59229         * modules/duplocale-tests: New file.
59230         * tests/test-duplocale.c: New file.
59232         New module 'duplocale'.
59233         * m4/duplocale.m4: New file.
59234         * lib/locale.in.h (duplocale): New declaration.
59235         * lib/duplocale.c: New file.
59236         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
59237         gl_LOCALE_H_DEFAULTS): New macros.
59238         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
59239         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
59240         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
59241         REPLACE_DUPLOCALE.
59242         * modules/duplocale: New file.
59243         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
59245 2009-11-22  Bruno Haible  <bruno@clisp.org>
59247         * modules/locale-tests (configure.ac): Test for newlocale function.
59248         * tests/test-locale.c: When the system has extended locale functions,
59249         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
59251         locale: Make locale_t available when possible.
59252         * lib/locale.in.h: Include <xlocale.h> when it exists.
59253         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
59254         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
59255         * modules/locale (Depends-on): Add extensions.
59256         (Makefile.am): Also substitute HAVE_XLOCALE_H.
59257         * doc/posix-headers/locale.texi: Document the problem with locale_t.
59259 2009-11-22  Bruno Haible  <bruno@clisp.org>
59261         Add comments.
59262         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
59263         invocation.
59264         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59265         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59266         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59268 2009-11-22  Bruno Haible  <bruno@clisp.org>
59270         error: account for the possibility of freopen (stdout).
59271         * lib/error.c: Include <unistd.h>.
59272         (flush_stdout): New function, extracted from error and error_at_line.
59273         Determine stdout's fd dynamically.
59274         (error, error_at_line): Invoke flush_stdout.
59275         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
59276         * modules/error (Depends-on): Add unistd.
59278 2009-11-22  Bruno Haible  <bruno@clisp.org>
59280         diffseq: Add comment.
59281         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
59283 2009-11-22  Jim Meyering  <meyering@redhat.com>
59285         c-stack: avoid defining an unused static function
59286         * lib/c-stack.c (find_stack_direction): Do not define this function
59287         when it will not be used.
59289         diffseq: avoid spurious gcc warnings
59290         * lib/diffseq.h (IF_LINT2): Define.
59291         (compareseq): Use it to initialize two members of "part".
59292         This avoids two used-uninitialized warnings.
59294 2009-11-21  Jim Meyering  <meyering@redhat.com>
59296         c-stack: avoid "ignoring return value of `write'" warning
59297         * lib/c-stack.c: Include "ignore-value.h".
59298         (die): Explicitly ignore each write return value.
59299         * modules/c-stack (Depends-on): Add ignore-value.
59301 2009-11-21  Bruno Haible  <bruno@clisp.org>
59303         diffseq: reduce scope of variable 'best'.
59304         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
59305         variable, earlier used for two different purposes.
59307 2009-11-21  Jim Meyering  <meyering@redhat.com>
59309         diffseq: remove useless assignment to "best"
59310         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
59311         assignment.  At that point "best" is already guaranteed to be zero.
59313 2009-11-20  Eric Blake  <ebb9@byu.net>
59315         build: mention ftp redirector in release announcements
59316         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
59317         values that used to come from cfg.mk; mention FTP redirect URL.
59318         * build-aux/announce-gen: Mention the mirror list.
59319         Suggested by Karl Berry.
59321         nanosleep: improve port to mingw
59322         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
59323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
59324         LIB_NANOSLEEP, but only when needed.
59325         * modules/select (Link): Document LIBSOCKET.
59326         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
59327         enough.
59329         nanosleep: work around cygwin bug
59330         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
59331         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
59332         bug.
59333         (getnow): Delete, not needed.
59334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
59335         LIB_CLOCK_GETTIME.
59336         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
59337         clock-time, gettime.
59338         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
59339         bug.
59340         * modules/nanosleep-tests: New test.
59341         * tests/test-nanosleep.c: New file.
59343         sleep: work around cygwin bug
59344         * lib/sleep.c (rpl_sleep): Work around the bug.
59345         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
59346         (gl_PREREQ_SLEEP): Delete unused macro.
59347         * modules/sleep (Depends-on): Add verify.
59348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
59349         * modules/unistd (Makefile.am): Substitute witness.
59350         * lib/unistd.in.h (sleep): Update prototype.
59351         * doc/posix-functions/sleep.texi (sleep): Document the bug.
59352         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
59353         * modules/sleep-tests (Depends-on): Check for alarm.
59355 2009-11-20  Jim Meyering  <meyering@redhat.com>
59357         maint.mk: improve sc_prohibit_magic_number_exit
59358         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
59359         so it does not match uses like System.exit(1).
59360         Add comments showing how to correct all offenders.
59362 2009-11-19  Eric Blake  <ebb9@byu.net>
59364         xalloc-die-tests: add missing library
59365         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
59367         test-xvasprintf: silence compiler warnings
59368         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
59369         empty string from gcc.
59371 2009-11-19  Jim Meyering  <meyering@redhat.com>
59373         xfreopen: new module, from coreutils
59374         * modules/xfreopen: New module.
59375         * lib/xfreopen.c: New file.
59376         * lib/xfreopen.h: New file.
59377         * MODULES.html.sh (File stream based Input/Output"): Add it.
59379 2009-11-19  Eric Blake  <ebb9@byu.net>
59381         manywarnings: depend on warnings
59382         * modules/manywarnings (Depends-on): Add warnings.
59384         build: avoid compiler warnings
59385         * lib/select.c (rpl_select): Delete unused variable.
59386         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
59388 2009-11-18  Eric Blake  <ebb9@byu.net>
59390         tests: avoid false negative with --with-packager
59391         * tests/test-version-etc.sh: Discard packager information.
59392         * tests/test-argp-version-etc-1.sh: Likewise.
59393         Reported by Mike Frysinger.
59395         utimens: fix regression on Solaris
59396         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
59397         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
59398         can only change fd timestamps via futimesat.  Instead, use an
59399         additional witness macro to avoid BSD bug.
59400         Reported by Jim Meyering.
59402 2009-11-17  Eric Blake  <ebb9@byu.net>
59404         usleep: use it to simplify tests
59405         * modules/stat-time-tests (Depends-on): Add usleep.
59406         (configure.ac): Drop usleep check.
59407         * modules/chown-tests (Depends-on, configure.ac): Likewise.
59408         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
59409         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
59410         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
59411         * modules/openat-tests (Depends-on, configure.ac): Likewise.
59412         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
59413         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
59414         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
59415         Likewise.
59416         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
59417         * tests/test-lchown.h (nap): Likewise.
59418         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
59419         * tests/test-stat-time.c (nap): Likewise.
59420         * tests/test-utimens-common.h (nap): Update comments.
59422         usleep: new module
59423         * modules/usleep: New file.
59424         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
59425         * lib/usleep.c (usleep): Likewise.
59426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
59427         * modules/unistd (Makefile.am): Substitute witnesses.
59428         * lib/unistd.in.h (usleep): Add declaration.
59429         * doc/pastposix-functions/usleep.texi (usleep): Document this.
59430         * MODULES.html.sh (Date and time): Likewise.
59431         * modules/usleep-tests (Depends-on): New test.
59432         * tests/test-usleep.c: New file.
59434         chown: work around OpenBSD bug
59435         * lib/chown.c (rpl_chown): Work around the bug.
59436         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
59437         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
59438         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
59439         * modules/chown (Depends-on): Add stdbool.
59440         * modules/lchown (Depends-on): Likewise.
59441         * doc/posix-functions/chown.texi (chown): Document the bug.
59442         * doc/posix-functions/lchown.texi (lchown): Likewise.
59443         * tests/test-lchown.h (test_chown): Relax test.
59445         mkstemp: avoid conflict with C++ keyword template
59446         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
59447         * lib/mkostemp.c (mkostemp): Likewise.
59448         * lib/mkostemps.c (mkostemps): Likewise.
59449         * lib/mkstemp.c (mkstemp): Likewise.
59450         * lib/mkstemps.c (mkstemps): Likewise.
59452         xalloc-die-tests: optimize
59453         * tests/test-xalloc-die.sh: Reduce number of processes.
59455 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59457         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
59458         patch from ludo@gnu.org (Ludovic Courtès).
59460 2009-11-17  Jim Meyering  <meyering@redhat.com>
59462         version-etc: use proper license string
59463         * modules/version-etc (License): Use LGPL, not LGPLv3+.
59464         * modules/version-etc-fsf: Likewise.
59466 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59468         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
59469         printed to stdout.  Deal with EOL differences.
59471 2009-11-17  Eric Blake  <ebb9@byu.net>
59473         unsetenv: work around Solaris bug
59474         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
59475         * lib/unsetenv.c (rpl_unsetenv): Work around it.
59476         Reported by Jim Meyering.
59478         vasnprintf: avoid compiler warnings
59479         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
59480         variables.
59481         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
59483 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59485         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
59486         settings since xalloc-die is no longer the self test,
59487         xalloc-die.sh is.
59489 2009-11-17  Jim Meyering  <meyering@redhat.com>
59491         test-xalloc-die.sh: make the code agree with the commit log
59492         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
59493         at the end, just in case you happen to have a test-xalloc-die
59494         program in some other PATH directory.
59496         test-xalloc-die.sh: fix a portability bug
59497         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
59498         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
59499         Otherwise, argv[0] (as often seen in diagnostics) would be too
59500         system-dependent, sometimes with, and sometimes without the leading "./".
59502         version-etc-fsf: relax license to LGPLv3+
59503         * modules/version-etc-fsf (License): Relax license.
59505 2009-11-16  Eric Blake  <ebb9@byu.net>
59507         xalloc-die-tests: avoid printing null pointer
59508         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
59509         shell script.
59510         * tests/test-xalloc-die.c (program_name): Declare.
59511         * tests/test-xalloc-die.sh (tmpfiles): New file.
59513         setenv, unsetenv: work around various bugs
59514         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
59515         (setenv) [HAVE_SETENV]: Work around bugs.
59516         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
59517         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
59518         for bugs.
59519         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
59520         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
59521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
59522         * modules/stdlib (Makefile.am): Update substitutions.
59523         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
59524         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
59525         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
59526         * modules/setenv-tests: New test.
59527         * modules/unsetenv-tests: Likewise.
59528         * tests/test-setenv.c: New file.
59529         * tests/test-unsetenv.c: Likewise.
59531 2009-11-16  Jim Meyering  <meyering@redhat.com>
59533         version-etc: relax license to LGPLv3+
59534         * modules/version-etc (License): Relax license.
59536         better AC_REQUIRE expanded-before-required-warning avoidance
59537         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
59538         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
59539         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
59540         which is no longer needed.
59542 2009-11-16  Eric Blake  <ebb9@byu.net>
59544         test-freading: clean up temporary file
59545         * tests/test-freading.c (main): Remove file on success, and use
59546         ASSERT more liberally.
59547         Reported by Jim Meyering.
59549 2009-11-16  Jim Meyering  <meyering@redhat.com>
59551         avoid new AC_REQUIRE expanded-before-required warnings
59552         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
59553         merely using it.
59554         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
59555         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
59557 2009-11-15  Simon Josefsson  <simon@josefsson.org>
59559         * tests/test-xalloc-die.c: New file.
59560         * modules/xalloc-die-tests: New file.
59561         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
59562         XFAIL_TESTS so it can be appended by modules.
59564 2009-11-15  Simon Josefsson  <simon@josefsson.org>
59566         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
59567         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
59569 2009-11-14  Eric Blake  <ebb9@byu.net>
59571         fnmatch: avoid compiler warning
59572         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
59573         to silence compiler warning about mismatch signedness in ?:.
59574         Reported by Robert Millan.
59576         intprops: add double-inclusion guard
59577         * lib/intprops.h: Allow idempotent includes.
59578         Suggested by Bruce Korb.
59580         openat: detect Solaris fchownat bug
59581         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
59582         penalizing glibc chownat when only lchownat is broken.
59583         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
59584         trailing slash bugs.
59585         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
59586         * modules/openat-tests (Files): Include more files.
59587         (Depends-on): Add mgetgroups, sleep, stat-time.
59588         (configure.ac): Add additional checks.
59589         (Makefile.am): Build new test.
59590         * tests/test-fchownat.c: New file.
59592         lchown: detect Solaris and FreeBSD bug
59593         * lib/lchown.c (rpl_lchown): Work around bug.
59594         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
59595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59596         * modules/unistd (Makefile.am): Populate it.
59597         * lib/unistd.in.h (lchown): Update declaration.
59598         * doc/posix-functions/lchown.texi (lchown): Document the bug.
59599         * modules/lchown-tests: New file.
59600         * tests/test-lchown.h (test_lchown): Likewise.
59601         * tests/test-lchown.c (main): Likewise.
59603         chown: detect Solaris and FreeBSD bug
59604         * lib/chown.c (rpl_chown): Work around bug.
59605         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
59606         (gl_PREREQ_CHOWN): Delete.
59607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59608         * modules/unistd (Makefile.am): Populate it.
59609         * lib/unistd.in.h (chown): Update declaration.
59610         * lib/lchown.c (chown): Update client.
59611         * modules/lchown (Depends-on): Add lstat.
59612         * doc/posix-functions/chown.texi (chown): Document the bug.
59613         * doc/posix-functions/getgroups.texi (getgroups): Document
59614         getgroups pitfall.
59615         * modules/chown-tests: New file.
59616         * tests/test-chown.h (test_chown): Likewise.
59617         * tests/test-chown.c (main): Likewise.
59619 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
59621         gnulib-tool: correctly detect absence of m4 directories
59622         * gnulib-tool: Avoid extra newline on data passed to wc -l.
59624 2009-11-14  Jim Meyering  <meyering@redhat.com>
59626         maint.mk: Prohibit inclusion of "xalloc.h" without use.
59627         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
59629 2009-11-14  John W. Eaton  <jwe@gnu.org>
59631         strftime.h: wrap function declaration in extern "C" block
59632         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
59634 2009-11-13  Eric Blake  <ebb9@byu.net>
59636         getgroups: avoid compiler warning
59637         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
59639         getgroups: work around FreeBSD bug
59640         * lib/getgroups.c (rpl_getgroups): Work around the bug.
59641         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
59642         * doc/posix-functions/getgroups.texi (getgroups): Document it.
59643         * tests/test-getgroups.c (main): Fix buffer overrun.
59645         getgroups: avoid compilation failure
59646         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
59647         * modules/getgroups (Depends-on): Add stdint.
59649 2009-11-13  Jim Meyering  <meyering@redhat.com>
59651         test-getgroups: avoid compilation failure
59652         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
59654 2009-11-13  Eric Blake  <ebb9@byu.net>
59656         mgetgroups: new module, taken from coreutils
59657         * modules/mgetgroups: New file.
59658         * lib/mgetgroups.h: Likewise.
59659         * lib/mgetgroups.c (mgetgroups): Likewise.
59660         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
59661         * MODULES.html.sh (Users and groups): Mention it.
59663         getgroups: don't expose GETGROUPS_T to user
59664         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
59665         an element at a time if GETGROUPS_T is wrong size.
59666         * lib/getugroups.h (getugroups): Change signature.
59667         * lib/unistd.in.h (getgroups): Likewise.
59668         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
59669         signature needs fixing.
59670         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
59671         AC_TYPE_GETGROUPS.
59672         * modules/group-member (Depends-on): Add getgroups.
59673         * lib/group-member.c (group_info, get_group_info): Use gid_t.
59674         (group_member): Rely on getgroups replacement.
59675         * lib/getugroups.c (getugroups): Use gid_t.
59676         * tests/test-getgroups.c (main): Likewise.
59677         * NEWS: Mention the signature change.
59678         * doc/posix-functions/getgroups.texi (getgroups): Mention the
59679         problem with signature.
59680         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
59681         GETGROUPS_T is still useful for setgroups.
59683         getgroups, getugroups: provide stubs for mingw
59684         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
59685         * lib/getugroups.c (getugroups): Likewise.
59686         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
59687         function.  Modernize replacement scheme.
59688         (gl_PREREQ_GETGROUPS): Delete.
59689         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
59690         * modules/getgroups (configure.ac): Declare witness.
59691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
59692         * modules/unistd (Depends-on): Substitute witness.
59693         * lib/unistd.in.h (getgroups): Declare replacement.
59695         getgroups: avoid calling exit
59696         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
59697         drop xalloc.
59698         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
59699         dependencies.
59700         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
59701         exiting, in the rare case of malloc failure.
59703         getgroups: fix logic error
59704         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
59705         has more than 20 groups.
59706         * modules/getgroups-tests: New test.
59707         * tests/test-getgroups.c: New file.
59709 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59711         * tests/test-base64.c: Improve.
59713 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59715         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
59716         Blake <ebb9@byu.net>.
59718 2009-11-13  Simon Josefsson  <simon@josefsson.org>
59720         * tests/test-xvasprintf.c: Add %s%s related checks.
59722 2009-11-12  Eric Blake  <ebb9@byu.net>
59724         version-etc: match standards.texi style
59725         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
59726         and use <> only for URLs.
59728 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
59730         fts: do not fail on a submount during traversal
59731         * lib/fts.c (fts_build): Read the stat info again after opening
59732         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
59733         Original report at http://bugzilla.redhat.com/501848.
59735 2009-11-12  Jim Meyering  <meyering@redhat.com>
59737         bootstrap: sync from coreutils
59738         * build-aux/bootstrap (bootstrap_epilogue): New function.
59739         Use git_modules_config in one more place.  This make bootstrap's
59740         --gnulib-srcdir option more useful for testing.
59742         bootstrap: generalize autoheader check
59743         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
59744         AC_CONFIG_HEADERS.
59746 2009-11-11  Eric Blake  <ebb9@byu.net>
59748         mkfifoat: use new modules for Solaris and BSD bugs
59749         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
59750         * lib/mkfifoat.c (mknodat): Split...
59751         * lib/mknodat.c (mknodat): ...into new file.
59752         * modules/mkfifoat (Files): Ship new file.
59753         (Depends-on): Add mkfifo, mknod.
59754         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
59755         (Depends-on): Add symlink.
59756         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
59757         redundant with test_mkfifo.h.
59758         (do_mkfifoat, do_mknodat): New helpers.
59760         mknod: new module
59761         * modules/mknod: New file.
59762         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
59763         * lib/mknod.c (mknod): Likewise.
59764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
59765         defaults.
59766         * modules/sys_stat (Makefile.am): Substitute them.
59767         * lib/sys_stat.in.h (mknod): Declare replacement.
59768         * MODULES.html.sh (Support for systems lacking POSIX:2008):
59769         Document it.
59770         * doc/posix-functions/mknod.texi (mknod): Likewise.
59771         * modules/mknod-tests: New test.
59772         * tests/test-mknod.c: Likewise.
59774         mkfifo: new module
59775         * modules/mkfifo: New file.
59776         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
59777         * lib/mkfifo.c (mkfifo): Likewise.
59778         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
59779         defaults.
59780         * modules/sys_stat (Makefile.am): Substitute them.
59781         * lib/sys_stat.in.h (mkfifo): Declare replacement.
59782         * MODULES.html.sh (Support for systems lacking POSIX:2008):
59783         Document it.
59784         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
59785         * modules/mkfifo-tests: New test.
59786         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
59787         from test-mkfifoat.c.
59788         * tests/test-mkfifo.c: New file.
59790         readlink: detect FreeBSD bug
59791         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
59792         slash on symlink.
59793         * doc/posix-functions/readlink.texi (readlink): Document the bug.
59794         * tests/test-readlink.h (test_readlink): Enhance test.
59796         symlink: detect FreeBSD bug
59797         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
59798         slash on symlink.
59799         * doc/posix-functions/symlink.texi (symlink): Document the bug.
59800         * tests/test-symlink.h (test_symlink): Enhance test.
59802 2009-11-10  Eric Blake  <ebb9@byu.net>
59804         link: detect FreeBSD bug
59805         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
59806         symlink.
59807         * doc/posix-functions/link.texi (link): Document the bug.
59808         * tests/test-link.h (test_link): Enhance test.
59809         * tests/test-linkat.c (main): Update caller.
59811         unlink, remove: detect FreeBSD bug
59812         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
59813         slash on symlink.
59814         * doc/posix-functions/unlink.texi (unlink): Document the bug.
59815         * doc/posix-functions/remove.texi (remove): Likewise.
59816         * tests/test-unlink.h (test_unlink): Enhance test.
59817         * tests/test-remove.c (main): Likewise.
59819 2009-11-09  Eric Blake  <ebb9@byu.net>
59821         rename: detect FreeBSD bug
59822         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
59823         slash on symlink.
59824         * modules/renameat-tests (Depends-on): Add filenamecat.
59825         * tests/test-rename.h (test_rename): Allow one more errno.
59826         * tests/test-renameat.c (main): Likewise.
59827         * doc/posix-functions/rename.texi (rename): Document the bug.
59829         open: detect FreeBSD bug
59830         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
59831         symlink.
59832         * doc/posix-functions/open.texi (open): Document the bug.
59833         * doc/posix-functions/utimes.texi (utimes): Likewise.
59834         * tests/test-open.h (test_open): Add parameters, and test symlink
59835         handling.
59836         * tests/test-open.c (main): Adjust caller.
59837         * tests/test-fcntl-safer.c (main): Likewise.
59838         * modules/open-tests (Depends-on): Add stdbool, symlink.
59839         * modules/fcntl-safer-tests (Depends-on): Likewise.
59840         * tests/test-openat.c (main): Add test-open tests.
59842         stat: detect FreeBSD bug
59843         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
59844         symlink.
59845         * doc/posix-functions/stat.texi (stat): Document the bug.
59846         * tests/test-stat.h (test_stat_func): Add argument.
59847         * tests/test-stat.c (main): Adjust caller.
59848         * tests/test-fstatat.c (main): Likewise.
59849         * modules/stat-tests (Depends-on): Add stdbool, symlink.
59850         Reported by Jim Meyering.
59852 2009-11-09  James Youngman  <jay@gnu.org>
59854         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
59855         * lib/strftime.c: Correct placement of #include "ignore-value.h".
59857 2009-11-08  Jim Meyering  <meyering@redhat.com>
59859         utimens: remove invalid futimesat call
59860         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
59861         It used the file descriptor of the target file as the DIR_FD
59862         parameter and NULL as the file name.  That caused failure with
59863         errno == EFAULT on FreeBSD-8.0-rc2
59865 2009-11-07  Eric Blake  <ebb9@byu.net>
59867         fflush, freadseek: use fseeko, not fseek
59868         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
59869         (clear_ungetc_buffer): Avoid potential problems on large files.
59870         * lib/freadseek.c (freadseek): Likewise.
59871         * modules/freadseek (Depends-on): Add fseeko.
59872         * modules/fseek (configure.ac): Set a witness.
59873         * tests/test-fflush.c (main): Use fseeko.
59874         * tests/test-fpurge.c (fseek): Disable link warning.
59875         * tests/test-freadable.c (fseek): Likewise.
59876         * tests/test-freading.c (fseek): Likewise.
59877         * tests/test-fseeko.c (fseek): Likewise.
59878         * tests/test-ftell.c (fseek): Likewise.
59879         * tests/test-ftello.c (fseek): Likewise.
59880         * tests/test-fwritable.c (fseek): Likewise.
59881         * tests/test-fwriting.c (fseek): Likewise.
59883 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59885         * modules/memchr (Depends-on): Drop getpagesize dependency.
59887 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59889         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
59890         Reported by Ludovic Courtès.
59891         * build-aux/pmccabe2html: Improve example usage.
59892         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
59894 2009-11-06  Jim Meyering  <meyering@redhat.com>
59896         do-release-commit-and-tag: New module.
59897         Automate the release-commit and tag process.
59898         * build-aux/do-release-commit-and-tag: New script, from coreutils.
59899         * modules/do-release-commit-and-tag: New file.
59900         * MODULES.html.sh (Support for maintaining and releasing): Add it.
59902 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59904         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
59905         because test-select.c uses inet_pton.
59907 2009-11-06  Simon Josefsson  <simon@josefsson.org>
59909         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
59910         GETADDRINFO_LIB.  Bump serial number.
59911         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
59912         Suggested by Eric Blake <ebb9@byu.net>.
59914 2009-11-05  Eric Blake  <ebb9@byu.net>
59916         strtod: detect darwin bug
59917         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
59918         Reported by Leo Davis.
59920         freopen-safer: new module
59921         * modules/freopen-safer: New module.
59922         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
59923         * lib/freopen-safer.c (freopen_safer): New file.
59924         * lib/stdio-safer.h (freopen_safer): New declaration.
59925         * lib/stdio--.h (freopen): New override.
59926         * MODULES.html.sh (File stream based Input/Output): Mention it.
59927         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
59928         freopen-safer module.
59929         * doc/posix-functions/stderr.texi (stderr): Likewise.
59930         * doc/posix-functions/stdin.texi (stdin): Likewise.
59931         * doc/posix-functions/stdout.texi (stdout): Likewise.
59932         * modules/freopen-safer-tests: New test.
59933         * tests/test-reopen-safer.c: New file.
59935 2009-11-05  Jim Meyering  <meyering@redhat.com>
59937         maint.mk: Prohibit inclusion of "close-stream.h" without use.
59938         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
59940 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59942         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
59944 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59946         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
59948 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59950         Fix link error.
59951         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
59952         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59954 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59956         * tests/test-func.c: Also test value of __func__.
59958 2009-11-05  Simon Josefsson  <simon@josefsson.org>
59960         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
59961         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
59963 2009-11-05  Bruno Haible  <bruno@clisp.org>
59965         Fix link error.
59966         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
59967         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59968         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
59970 2009-11-05  Bruno Haible  <bruno@clisp.org>
59972         Tests for module 'inet_pton'.
59973         * modules/inet_pton-tests: New file.
59974         * tests/test-inet_pton.c: New file.
59976 2009-11-05  Bruno Haible  <bruno@clisp.org>
59978         Tests for module 'inet_ntop'.
59979         * modules/inet_ntop-tests: New file.
59980         * tests/test-inet_ntop.c: New file.
59982 2009-11-04  Eric Blake  <ebb9@byu.net>
59984         stdlib-safer: wrap all mkstemp variants
59985         * modules/mkostemp (configure.ac): Set witness.
59986         * modules/mkostemps (configure.ac): Likewise.
59987         * modules/mkstemps (configure.ac): Likewise.
59988         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
59989         (mkstemps_safer): Wrap more functions.
59990         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
59991         wrapping.
59992         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
59993         (mkstemps_safer): Implement the wrappers.
59995         mkstemps, mkostemps: new modules
59996         * modules/mkostemps: New module.
59997         * modules/mkstemps: Likewise.
59998         * lib/mkostemps.c (mkostemps): New file.
59999         * lib/mkstemps.c (mkstemps): Likewise.
60000         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
60001         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
60002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
60003         * modules/stdlib (Makefile.am): Substitute them.
60004         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
60005         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
60006         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
60007         * doc/gnulib.texi (Glibc stdlib.h): Include them.
60008         * MODULES.html.sh (File system functions): Mention them.
60010         tempname: resync from glibc
60011         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
60012         same values for __GT_FILE as glibc.  Abort even when assertions
60013         are disabled.
60014         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
60015         match its value otherwise.  Allow idempotent inclusion.
60016         * lib/mkdtemp.c (mkdtemp): Adjust caller.
60017         * lib/mkostemp.c (mkostemp): Likewise.
60018         * lib/mkstemp.c (mkstemp): Likewise.
60019         * lib/tmpfile.c (tmpfile): Likewise.
60020         * NEWS: Document this.
60022         utimens: fix use of futimens on older Linux
60023         * lib/utimens.c (fdutimens): Use updated, rather than original,
60024         timespec to avoid bug in older Linux kernel.
60025         Reported by Simon Josefsson.
60027 2009-11-04  Bruno Haible  <bruno@clisp.org>
60029         Make num_processors more flexible and consistent.
60030         * lib/nproc.h (enum nproc_query): New type.
60031         (num_processors): Add a 'query' argument.
60032         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
60033         (num_processors): Add a 'query' argument. Test the value of the
60034         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
60035         mingw, count the number of CPUs available for the current process.
60036         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
60037         Check for sched_getaffinity and sched_getaffinity_np.
60038         * modules/nproc (Depends-on): Add c-ctype, extensions.
60039         * NEWS: Mention the change.
60041 2009-11-03  Bruno Haible  <bruno@clisp.org>
60043         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
60045 2009-11-03  Jim Meyering  <meyering@redhat.com>
60047         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
60048         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
60049         if it is defined.
60051 2009-11-02  Eric Blake  <ebb9@byu.net>
60053         mktime, timegm: share common declaration
60054         * lib/mktime-internal.h: New file.
60055         * lib/mktime.c: Use it rather than open-coding a declaration.
60056         * lib/timegm.c: Likewise.
60057         * modules/mktime (Files): Ship it.
60058         * modules/timegm (Files): Likewise.
60059         Suggested by Bruno Haible.
60061         test-update-copyright: update test to match script changes
60062         * tests/test-update-copyright.sh: Avoid hard-coding perl
60063         location.  Don't update *.bak created by earlier runs.
60065 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60066             Simon Josefsson  <simon@josefsson.org>
60067             Bruno Haible  <bruno@clisp.org>
60069         Fix link error on Solaris 8.
60070         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
60071         also in libnsl. Define also INET_PTON_LIB.
60072         * modules/inet_pton (Link): New section.
60074 2009-11-02  Simon Josefsson  <simon@josefsson.org>
60075             Bruno Haible  <bruno@clisp.org>
60077         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
60078         * modules/inet_ntop (Link): New section.
60079         Reported by Boyan Kasarov <bkasarov@gmail.com>.
60081 2009-11-02  Eric Blake  <ebb9@byu.net>
60083         maint: avoid compiler warnings in m4 macros
60084         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
60085         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
60087 2009-11-02  Simon Josefsson  <simon@josefsson.org>
60089         * m4/pmccabe2html.m4: Remove file.
60090         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
60091         function.  Change maintainer.
60092         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
60093         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
60094         Courtès).
60096 2009-10-31  Eric Blake  <ebb9@byu.net>
60098         fseeko: fix m4 regression
60099         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
60100         regression from 2009-10-27.
60101         Reported by Ralf Wildenhues.
60103 2009-10-31  Jim Meyering  <meyering@redhat.com>
60105         inttostr: aesthetics and improved (compile-time) safety
60106         Define inttype_is_signed rather than inttype_is_unsigned,
60107         since the sole use is via "#if inttype_is_signed".
60108         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
60109         inttype_is_unsigned.
60110         * lib/offtostr.c (inttype_is_signed): Likewise.
60111         * lib/uinttostr.c (inttype_is_signed): Likewise.
60112         * lib/umaxtostr.c (inttype_is_signed): Likewise.
60113         * lib/inttostr.c (inttostr): Use verify to cross-check the
60114         inttype_is_signed value and the signedness of the actual type.
60115         * modules/inttostr (Depends-on): Add verify.
60117 2009-10-30  Eric Blake  <ebb9@byu.net>
60119         build: avoid compiler warnings
60120         * lib/fchmodat.c (lchmod): Mark unused variables.
60121         * lib/getopt.c (_getopt_initialize): Likewise.
60122         * lib/mktime.c (__mktime_internal): Provide prototype.
60123         * lib/inttostr.c (inttostr): Avoid compiler warning even with
60124         older gcc that do not understand #pragma GCC diagnostic.
60125         * lib/uinttostr.c (inttype_is_unsigned): Define.
60126         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
60128 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
60130         stat: fix compilation on AIX
60131         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
60132         only see struct stat64.
60134 2009-10-30  Eric Blake  <ebb9@byu.net>
60136         exclude: make more robust
60137         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
60138         rather than masking a coding bug.
60139         Suggested by Bruno Haible.
60141 2009-10-30  Jim Meyering  <meyering@redhat.com>
60143         perl scripts: remove #!/usr/bin/perl in favor of more portable...
60144         Rather than putting #!/usr/bin/perl on the first line,
60145         start with a variant of what's recommended by "man perlrun" that
60146         invokes the first "perl" program from your shell's search path.
60147         * build-aux/gitlog-to-changelog: Replace #!... as above.
60148         Add a "Local Variables" perl mode setting.
60149         Prompted by a patch from Ludovic Courtès.
60150         Improved by Eric Blake.
60151         * build-aux/useless-if-before-free: Likewise.
60152         * build-aux/announce-gen: Likewise.
60153         * build-aux/update-copyright: Likewise.
60155 2009-10-29  Eric Blake  <ebb9@byu.net>
60157         filenamecat-lgpl: adjust clients
60158         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
60159         filenamecat.
60160         * modules/renameat (Depends-on): Likewise.
60162         filenamecat: split into filenamecat-lgpl
60163         * modules/filenamecat-lgpl: New module.
60164         * modules/filenamecat (Files): Move library-safe files into
60165         filenamecat-lgpl.
60166         (Depends-on): Add filenamecat-lgpl.
60167         (configure.ac): Declare witness.
60168         * lib/filenamecat.h (file_name_concat): Only declare when using
60169         GPL module.
60170         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
60171         Move...
60172         * lib/filenamecat-lgpl.c: ...into new file.
60173         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
60174         (gl_FILE_NAME_CONCAT): Use it.
60175         * MODULES.html.sh (File system functions): Mention new module.
60177         argp: avoid memory leak
60178         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
60179         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
60180         base_name, since the latter malloc()s and can call exit().
60181         Leak introduced 2006-07-03.
60183         dirname-lgpl: adjust clients that don't need full dirname
60184         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
60185         * modules/filenamecat (Depends-on): Likewise.
60186         * modules/linkat (Depends-on): Likewise.
60187         * modules/mkancesdirs (Depends-on): Likewise.
60188         * modules/mkdir (Depends-on): Likewise.
60189         * modules/openat (Depends-on): Likewise.
60190         * modules/savewd (Depends-on): Likewise.
60191         * modules/rename (Depends-on): Likewise.
60192         (License): Relax license.
60193         * modules/mkdir-tests (Depends-on): Drop progname.
60194         (Makefile.am): Delete unneeded LDADD.
60195         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
60197         dirname: split into dirname-lgpl
60198         * modules/dirname-lgpl: New module.
60199         * modules/dirname (Files): Move library-safe files into
60200         dirname-lgpl.
60201         (Depends-on): Add dirname-lgpl.
60202         (configure.ac): Declare witness.
60203         * modules/double-slash-root (License): Relax license.
60204         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
60205         module.
60206         * lib/dirname.c (dir_len, mdir_name): Move...
60207         * lib/dirname-lgpl.c: ...into new file.
60208         * lib/basename.c (last_component, base_len): Move...
60209         * lib/basename-lgpl.c: ...into new file.
60210         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
60211         (gl_DIRNAME): Use it.
60212         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
60213         Mention new module.
60214         * modules/dirname-tests (Depends-on): Add progname.
60215         * tests/test-dirname.c (program_name): Delete.
60217         mkdir: make safe for libraries
60218         * modules/mkdir (Depends-on): Drop xalloc.
60219         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
60220         exit.
60222         tests: avoid some compiler warnings
60223         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
60224         literals.
60225         * tests/test-memchr.c (main): Avoid type mismatch.
60226         * tests/test-arpa_inet.c (main): Avoid unused parameters.
60227         * tests/test-base64.c (main): Likewise.
60228         * tests/test-getdelim.c (main): Likewise.
60229         * tests/test-gethostname.c (main): Likewise.
60230         * tests/test-getline.c (main): Likewise.
60231         * tests/test-netinet_in.c (main): Likewise.
60232         * tests/test-select.c (open_server_socket, main): Likewise.
60233         * tests/test-select-stdin.c (main): Likewise.
60234         * tests/test-sockets.c (main): Likewise.
60235         * tests/test-strsignal.c (main): Likewise.
60236         * tests/test-sys_select.c (main): Likewise.
60237         * tests/test-sys_socket.c (main): Likewise.
60238         * tests/test-u64.c (main): Likewise.
60239         * tests/test-xfprintf-posix.c (main): Likewise.
60240         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
60242         sockets: avoid compiler warning
60243         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
60245         maint: detect usage(1) and other suspicious exits
60246         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
60248 2009-10-29  Jim Meyering  <meyering@redhat.com>
60250         timespec: long-to-int truncation could make timespec_cmp malfunction
60251         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
60252         a multiple of 2^32 nanoseconds as no difference.
60254 2009-10-28  Jim Meyering  <meyering@redhat.com>
60256         fprintftime: wrap macro code argument in "do {...} while(0)"
60257         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
60258         cpy macro must be a statement that can be followed by a semicolon.
60259         Now that the else clause contains a comment and is hence longer
60260         than one line, I require curly braces.  That in turn requires
60261         that we wrap this code block in the standard do...while(0).
60263         fprintftime: remove stray semicolon from previous change
60264         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
60266         fprintftime: avoid a warning about ignored fwrite return value
60267         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
60268         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
60269         that is unsafe.
60270         * modules/fprintftime (Depends-on): Add ignore-value.
60272         exclude: avoid an unwarranted warning
60273         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
60275 2009-10-27  Eric Blake  <ebb9@byu.net>
60277         fseek: avoid compilation failure when fflush is replaced
60278         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
60279         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
60280         module is in use.
60281         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
60282         module is not in use; since REPLACE_FSEEK worked otherwise.
60283         (GNULIB_FTELLO): Likewise for ftell.
60284         Reported by Ian Beckwith and others.
60286 2009-10-27  Bruno Haible  <bruno@clisp.org>
60288         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
60289         Reported by Jim Meyering.
60291 2009-10-27  Jim Meyering  <jim@meyering.net>
60292             Bruno Haible  <bruno@clisp.org>
60294         Avoid warning despite dropping the return value of fwrite.
60295         * lib/unicodeio.c: Include ignore-value.h.
60296         (fwrite_success_callback): Explicitly ignore fwrite's return value.
60297         * modules/unicodeio (Depends-on): Add ignore-value.
60299 2009-10-26  Eric Blake  <ebb9@byu.net>
60301         areadlinkat: fix fallback path
60302         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
60303         pointer and zero.
60305 2009-10-22  Pádraig Brady  <P@draigBrady.com>
60307         Use a better IO block size for modern systems
60308         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
60309         * lib/md2.c: Likewise.
60310         * lib/md4.c: Likewise.
60311         * lib/md5.c: Likewise.
60312         * lib/sha1.c: Likewise.
60313         * lib/sha256.c: Likewise.
60314         * lib/sha512.c: Likewise.
60316 2009-10-22  Eric Blake  <ebb9@byu.net>
60318         tests: avoid several compiler warnings
60319         * tests/test-getcwd.c (main): Avoid buffer underflow.
60320         * tests/test-getdate.c (main): String literals are not safe with
60321         putenv, so use setenv.  Declare unused argument.
60322         * modules/getdate-tests (Depends-on): Add setenv.
60323         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
60324         problems with string literals in char *.
60325         * tests/test-hash.c (main): Avoid shadowing declaration.
60326         (insert_new): Treat string literals as char const *.
60327         * tests/test-getopt.h (test_getopt): Likewise.
60328         (getopt_loop): Alter types to minimize casting elsewhere.
60329         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
60330         (test_getopt_long_posix): Likewise.
60331         (do_getopt_long): Add wrapper to minimize casting.
60332         * tests/test-atexit.c (clear_temp_file): Use void.
60333         * tests/test-areadlink-with-size.c (main): Declare unused
60334         arguments.
60335         * tests/test-areadlink.c (main): Likewise.
60336         * tests/test-areadlinkat-with-size.c (main): Likewise.
60337         * tests/test-areadlinkat.c (main): Likewise.
60338         * tests/test-canonicalize-lgpl.c (main): Likewise.
60339         * tests/test-canonicalize.c (main): Likewise.
60340         * tests/test-dirent-safer.c (main): Likewise.
60341         * tests/test-dirname.c (main): Likewise.
60342         * tests/test-dup2.c (main): Likewise.
60343         * tests/test-fchdir.c (main): Likewise.
60344         * tests/test-fcntl-h.c (main): Likewise.
60345         * tests/test-fcntl-safer.c (main): Likewise.
60346         * tests/test-fdopendir.c (main): Likewise.
60347         * tests/test-fdutimensat.c (main): Likewise.
60348         * tests/test-fflush.c (main): Likewise.
60349         * tests/test-filenamecat.c (main): Likewise.
60350         * tests/test-filevercmp.c (main): Likewise.
60351         * tests/test-fopen-safer.c (main): Likewise.
60352         * tests/test-fopen.c (main): Likewise.
60353         * tests/test-fpending.c (main): Likewise.
60354         * tests/test-fpurge.c (main): Likewise.
60355         * tests/test-freading.c (main): Likewise.
60356         * tests/test-fstatat.c (main): Likewise.
60357         * tests/test-fsync.c (main): Likewise.
60358         * tests/test-futimens.c (main): Likewise.
60359         * tests/test-getndelim2.c (main): Likewise.
60360         * tests/test-gettimeofday.c (main): Likewise.
60361         * tests/test-getopt.c (main): Likewise.
60362         * tests/test-i-ring.c (main): Likewise.
60363         * tests/test-inttypes.c (main): Likewise.
60364         * tests/test-link.c (main): Likewise.
60365         * tests/test-lstat.c (main): Likewise.
60366         * tests/test-math.c (main): Likewise.
60367         * tests/test-md5.c (main): Likewise.
60368         * tests/test-memchr2.c (main): Likewise.
60369         * tests/test-memrchr.c (main): Likewise.
60370         * tests/test-mkdir.c (main): Likewise.
60371         * tests/test-mkdirat.c (main): Likewise.
60372         * tests/test-mkfifoat.c (main): Likewise.
60373         * tests/test-open.c (main): Likewise.
60374         * tests/test-openat-safer.c (main): Likewise.
60375         * tests/test-openat.c (main): Likewise.
60376         * tests/test-quotearg.c (main): Likewise.
60377         * tests/test-rawmemchr.c (main): Likewise.
60378         * tests/test-readlink.c (main): Likewise.
60379         * tests/test-remove.c (main): Likewise.
60380         * tests/test-rename.c (main): Likewise.
60381         * tests/test-renameat.c (main): Likewise.
60382         * tests/test-rmdir.c (main): Likewise.
60383         * tests/test-sha1.c (main): Likewise.
60384         * tests/test-signal.c (main): Likewise.
60385         * tests/test-sigaction.c (main): Likewise.
60386         * tests/test-stat.c (main): Likewise.
60387         * tests/test-stat-time.c (main): Likewise.
60388         * tests/test-stddef.c (main): Likewise.
60389         * tests/test-stdint.c (main): Likewise.
60390         * tests/test-stdio.c (main): Likewise.
60391         * tests/test-stdlib.c (main): Likewise.
60392         * tests/test-strchrnul.c (main): Likewise.
60393         * tests/test-strerror.c (main): Likewise.
60394         * tests/test-string.c (main): Likewise.
60395         * tests/test-strtod.c (main): Likewise.
60396         * tests/test-strverscmp.c (main): Likewise.
60397         * tests/test-symlink.c (main): Likewise.
60398         * tests/test-symlinkat.c (main): Likewise.
60399         * tests/test-sys_stat.c (main): Likewise.
60400         * tests/test-sys_time.c (main): Likewise.
60401         * tests/test-time.c (main): Likewise.
60402         * tests/test-unistd.c (main): Likewise.
60403         * tests/test-unlink.c (main): Likewise.
60404         * tests/test-unlinkat.c (main): Likewise.
60405         * tests/test-utimens.c (main): Likewise.
60406         * tests/test-utimensat.c (main): Likewise.
60407         * tests/test-version-etc.c (main): Likewise.
60408         * tests/test-wchar.c (main): Likewise.
60409         * tests/test-wctype.c (main): Likewise.
60410         * tests/test-xprintf-posix.c (main): Likewise.
60411         * tests/test-posixtm.c (main): Likewise.
60412         (STREQ): Delete unused macro.
60413         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
60414         shadowed variables.
60415         * tests/test-memchr.c (main): Likewise.
60417 2009-10-21  Eric Blake  <ebb9@byu.net>
60419         areadlinkat: avoid failure on older glibc
60420         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
60421         rather than mis-comparing 0 against FUNC_RESULT of char*.
60423 2009-10-21  Bruno Haible  <bruno@clisp.org>
60425         * modules/stpncpy (License): Relicense under LGPLv2+.
60426         Reported by David Lutterkort <lutter@redhat.com>.
60428 2009-10-20  Eric Blake  <ebb9@byu.net>
60430         utimensat: work around Solaris 9 bug
60431         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
60432         has trailing slash bugs.
60433         * tests/test-lutimens.h (test_lutimens): Enhance test.
60434         * tests/test-utimens.h (test_utimens): Likewise.
60435         * doc/posix-functions/utime.texi (utime): Enhance documentation.
60436         * doc/posix-functions/utimes.texi (utimes): Likewise.
60437         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60438         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
60439         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
60440         * doc/posix-functions/futimens.texi (futimens): Likewise.
60442         fdutimensat: new module
60443         * modules/fdutimensat: New file.
60444         * lib/fdutimensat.c (fdutimensat): Likewise.
60445         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
60446         * MODULES.html.sh (File system functions): Mention module.
60447         * modules/fdutimensat-tests: New test.
60448         * tests/test-fdutimensat.c: Likewise.
60450         doc: regenerate INSTALL
60451         * doc/INSTALL: Reflect recent autoconf update.
60452         * doc/INSTALL.ISO: Likewise.
60453         * doc/INSTALL.UTF-8: Likewise.
60455 2009-10-20  Pádraig Brady  <P@draigBrady.com>
60457         acl: warn if ACL support is not detected
60458         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
60460 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
60462         * lib/nproc.h: Add extern "C" block for C++.
60464 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
60465             Bruno Haible  <bruno@clisp.org>
60467         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
60468         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
60469         * doc/posix-functions/isalpha.texi: Likewise.
60470         * doc/posix-functions/isblank.texi: Likewise.
60471         * doc/posix-functions/iscntrl.texi: Likewise.
60472         * doc/posix-functions/isdigit.texi: Likewise.
60473         * doc/posix-functions/isgraph.texi: Likewise.
60474         * doc/posix-functions/islower.texi: Likewise.
60475         * doc/posix-functions/isprint.texi: Likewise.
60476         * doc/posix-functions/ispunct.texi: Likewise.
60477         * doc/posix-functions/isspace.texi: Likewise.
60478         * doc/posix-functions/isupper.texi: Likewise.
60479         * doc/posix-functions/isxdigit.texi: Likewise.
60481 2009-10-18  Bruno Haible  <bruno@clisp.org>
60483         Tests for module 'isblank'.
60484         * modules/isblank-tests: New file.
60485         * tests/test-isblank.c: New file.
60487         New module 'isblank'.
60488         * lib/isblank.c: New file.
60489         * m4/isblank.m4: New file.
60490         * modules/isblank: New file.
60491         * doc/posix-functions/isblank.texi: Mention the new module.
60493 2009-10-18  Bruno Haible  <bruno@clisp.org>
60495         New module 'ctype'.
60496         * lib/ctype.in.h: New file.
60497         * m4/ctype.m4: New file.
60498         * modules/ctype: New file.
60499         * doc/posix-headers/ctype.texi: Mention the new module.
60501 2009-10-18  Jim Meyering  <meyering@redhat.com>
60503         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
60504         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
60505         right after its initialization, rather than farther down.
60506         Keeping these in close proximity makes it easier to ensure
60507         that each such variable is initialized.  E.g.,
60509             LIB_CLOCK_GETTIME=
60510             AC_SUBST([LIB_CLOCK_GETTIME])
60512         This change also increments these serial numbers.
60513         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
60514         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60517 2009-10-18  Bruno Haible  <bruno@clisp.org>
60519         Don't let environment variables perturb build.
60520         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
60521         (gl_PREREQ_GETHRXTIME): ... not here.
60523 2009-10-18  Bruno Haible  <bruno@clisp.org>
60525         Avoid symlink attack in localcharset module.
60526         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
60527         (O_NOFOLLOW): Define fallback.
60528         (get_charset_aliases): Don't open the file if it is a symbolic link.
60529         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
60530         gl_FCNTL_H.
60531         (gl_FCNTL_H): Require it.
60532         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
60533         * modules/localcharset (Files): Add m4/fcntl_h.m4.
60534         Reported by Fergal Glynn <fglynn@veracode.com>.
60536 2009-10-18  Bruno Haible  <bruno@clisp.org>
60538         Implement nproc for mingw.
60539         * lib/nproc.c: Include <windows.h>
60540         (num_processors): On native Windows platforms, try GetSystemInfo.
60542 2009-10-18  Bruno Haible  <bruno@clisp.org>
60544         Implement nproc for IRIX.
60545         * lib/nproc.c: Include <sys/sysmp.h>.
60546         (num_processors): On IRIX systems, try sysmp.
60547         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
60549 2009-10-18  Bruno Haible  <bruno@clisp.org>
60551         Implement nproc for HP-UX.
60552         * lib/nproc.c: Include <sys/pstat.h>
60553         (num_processors): On HP-UX systems, try pstat_getdynamic.
60554         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
60555         pstat_getdynamic.
60557 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
60558             Bruno Haible  <bruno@clisp.org>
60560         Implement nproc for NetBSD, OpenBSD.
60561         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
60562         (ARRAY_SIZE): New macro.
60563         (num_processors): On BSD systems, try sysctl of HW_NCPU.
60564         * m4/nproc.m4: New file.
60565         * modules/nproc (Files): Add m4/nproc.m4.
60566         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
60567         (Makefile.am): Instead, augment lib_SOURCES.
60569 2009-10-18  Bruno Haible  <bruno@clisp.org>
60571         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
60572         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
60573         sys/param.h.
60575 2009-10-16  Eric Blake  <ebb9@byu.net>
60577         utimensat: new module
60578         * modules/utimensat: New file.
60579         * lib/utimensat.c (utimensat): Likewise.
60580         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60581         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
60582         so we can work around Linux bugs.
60583         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60584         * modules/sys_stat (Makefile.am): Substitute them.
60585         * lib/sys_stat.in.h (utimensat): Declare it.
60586         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60587         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60588         * modules/utimensat-tests: New test.
60589         * tests/test-utimensat.c: Likewise.
60591         utimens: let lutimens work on non-symlinks
60592         * lib/utimens.c (lutimens): Fall back to utimens rather than
60593         failing with ENOSYS, when file is not a symlink.
60594         (utimens): Reduce redirection.
60595         * tests/test-lutimens.h (test_lutimens): Update test to cover
60596         non-symlinks.
60597         * tests/test-utimens.h (test_utimens): Update test to cover
60598         symlinks.
60599         * tests/test-utimens.c (main): Update caller.
60601         utimens: cache whether utimensat syscall works
60602         * lib/utimens.c (utimensat_works_really): New cache variable.
60603         (fdutimens, lutimens): Use it to avoid failing syscall.
60605         test-stat-time, test-utimens: improve portability
60606         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
60607         ext4 on alpha, and for cygwin.
60608         * tests/test-utimens-common.h: New file.
60609         (nap): Factor delays into single function.
60610         * tests/test-lutimens.h (test_lutimens): Use new header.
60611         * tests/test-futimens.h (test_futimens): Likewise.
60612         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
60613         timestamps to occur from same machine, as was done previously for
60614         test_utimens.
60615         * modules/utimens-tests (Files): Ship new file.
60616         * modules/futimens-tests (Files): Likewise.
60617         Reported in part by Jim Meyering.
60619         sys_stat: sort replacement declarations
60620         * lib/sys_stat.in.h: Sort declarations.
60621         * lib/futimens.c (futimens): Fix typo.
60623 2009-10-15  Jim Meyering  <meyering@redhat.com>
60625         don't let environment settings perturb build
60626         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
60627         could cause a configure-time and/or build-time malfunction.
60628         Typically, a configure-time function-in-library test is performed
60629         via code like this:
60631           LIB_VAR=
60632           AC_SUBST([LIB_VAR])
60633           prefix_saved_LIBS=$LIBS
60634             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
60635                        [test "$ac_cv_search_FUNC" = "none required" ||
60636                         LIB_VAR=$ac_cv_search_FUNC])
60637           LIBS=$prefix_saved_LIBS
60639         However, in each of the files affected by this change, the LIB_VAR=
60640         initialization was omitted.  Thus, when set in the environment, its
60641         value would propagate into generated Makefiles when FUNC is not found
60642         in LIB_NAME.
60643         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
60644         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60645         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60647 2009-10-14  Eric Blake  <ebb9@byu.net>
60649         fchdir: avoid infinite recursion in mingw
60650         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
60651         recursing.
60653         test-stat-time: port to mingw
60654         * tests/test-stat-time.c (force_unlink): Return a value.
60655         (test_ctime) [W32]: Fix compilation error.
60656         (nap): Don't call usleep with too large an argument.  Use
60657         force_unlink.
60658         * doc/pastposix-functions/usleep.texi (usleep): Document the
60659         portability issue.
60661 2009-10-13  Jim Meyering  <meyering@redhat.com>
60663         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
60664         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
60665         * modules/pipe-filter-ii: Likewise.
60666         * modules/sys_socket-tests: Likewise.
60667         * modules/tsearch-tests: Likewise.
60668         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
60669         (check): Depend on it.
60671 2009-10-12  Eric Blake  <ebb9@byu.net>
60673         utimens-tests: port to NFS file systems
60674         * tests/test-utimens.h (test_utimens): Refactor utimecmp
60675         comparisons to avoid spurious failures from timestamp drift
60676         between NFS machines.
60678 2009-10-12  Eric Blake  <ebb9@byu.net>
60680         stat-time-tests: minor cleanups
60681         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
60682         * tests/test-stat-time.c (nap): Separate assignment from call.
60683         Suggested by Paolo Bonzini and Bruno Haible.
60685         sys_stat: guarantee struct timespec
60686         * lib/sys_stat.in.h (includes): Always include <time.h>
60687         * modules/sys_stat (Depends-on): Add time.
60688         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
60689         mode_t permission values.
60690         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
60691         get at subsecond timestamps.
60693 2009-10-10  Eric Blake  <ebb9@byu.net>
60695         futimens: new module
60696         * modules/futimens: New file.
60697         * lib/futimens.c (futimens): Likewise.
60698         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
60699         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
60700         we can work around Linux bugs.
60701         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60702         * modules/sys_stat (Makefile.am): Substitute them.
60703         * lib/sys_stat.in.h (futimens): Declare it.
60704         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60705         * doc/posix-functions/futimens.texi (futimens): Likewise.
60706         * modules/futimens-tests: New test.
60707         * tests/test-futimens.c: Likewise.
60709         utimens: introduce fdutimens
60710         * lib/utimens.h (fdutimens): New prototype.
60711         * lib/utimens.c (gl_futimens): Move guts...
60712         (fdutimens): ...to new interface.
60713         * tests/test-utimens.c (do_fdutimens): Use it.
60715         utimens: add UTIME_NOW and UTIME_OMIT support
60716         * lib/utimens.c (validate_timespec, update_timespec): New helper
60717         functions.
60718         (gl_futimens, lutimens): Use them.
60719         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
60720         stdbool, sys_stat.
60721         (Link): Mention resulting library dependency.
60722         * modules/utimecmp (Link): Likewise.
60723         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
60724         (Makefile.am): Pick up library dependency.
60725         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
60726         definition.
60727         * tests/test-sys_stat.c: Test the definitions.
60728         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
60729         * NEWS: Document library dependency.
60731         utimecmp: support symlink timestamps
60732         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
60733         hashing when possible.  Use pathconf when available.
60734         (SYSCALL_RESOLUTION): Recognize tighter resolution.
60735         * modules/utimecmp (Depends-on): Add lstat.
60737         utimens: add lutimens interface
60738         * lib/utimens.c (lutimens): New function.
60739         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
60740         * lib/utimens.h (lutimens): Declare new interface.
60741         * tests/test-utimens.c (main): Enhance test.
60742         * tests/test-lutimens.h (test_lutimens): New file.
60743         * modules/utimens-tests (Files): Distribute it.
60744         (Depends-on): Add symlink.
60745         (configure.ac): Check for usleep.
60747         utimens: validate futimens usage
60748         * lib/utimens.c (gl_futimens): Require valid fd up front, using
60749         fewer syscalls on failure later on.  Avoid compiler warning on
60750         mingw.
60751         * modules/utimens (Depends-on): Add dup2.
60753         utimens: add test
60754         * modules/utimens-tests: New test.
60755         * tests/test-utimens.h: New file.
60756         * tests/test-futimens.h: Likewise.
60757         * tests/test-utimens.c: Likewise.
60759         doc: mention timestamp portability issues
60760         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
60761         instead.
60762         * doc/posix-functions/utime.texi (utime): Likewise.
60763         * doc/posix-functions/utimes.texi (utimes): Likewise.
60764         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
60765         instead.
60766         * doc/posix-functions/futimens.texi (futimens): Mention utimens
60767         module.
60768         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60769         Mention weakness with symlink timestamps.
60770         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
60771         to utimensat/futimens instead.
60772         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
60774         test-dup2: enhance test
60775         * tests/test-dup2.c (main): Also check AT_FDCWD.
60777         test-stat-time: avoid more spurious failures
60778         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
60779         xfs; and avoid race if the two timestamps cross quantization edge.
60781         relocatable: prefer 'file system' over 'filesystem'
60782         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
60783         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
60784         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
60785         * doc/relocatable.texi (Enabling Relocatability): Likewise.
60786         * lib/relocatable.c (compute_curr_prefix): Likewise.
60788 2009-10-10  Jim Meyering  <meyering@redhat.com>
60790         stat-time-tests: check for the usleep function
60791         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
60793 2009-10-10  Bruno Haible  <bruno@clisp.org>
60795         * modules/xnanosleep: Put the Link section after the Include section.
60797 2009-10-09  Eric Blake  <ebb9@byu.net>
60799         dup2: work around FreeBSD 6.1 bug
60800         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
60801         * doc/posix-functions/dup2.texi (dup2): Document it.
60802         Reported by Nelson H. F. Beebe and Jim Meyering.
60804         test-stat-time: port to buggy NFS clients
60805         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
60806         (test_ctime): Also skip test if mtime and ctime are skewed.
60808         maint: prefer 'file system' over 'filesystem'
60809         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
60810         * doc/posix-functions/lstat.texi (lstat): Likewise.
60811         * lib/file-has-acl.c (file_has_acl): Likewise.
60812         * lib/fwriteerror.c [TEST]: Likewise.
60813         * tests/test-areadlink.h (test_areadlink): Likewise.
60814         * tests/test-areadlinkat-with-size.c (main): Likewise.
60815         * tests/test-areadlinkat.c (main): Likewise.
60816         * tests/test-canonicalize-lgpl.c (main): Likewise.
60817         * tests/test-canonicalize.c (main): Likewise.
60818         * tests/test-fstatat.c (main): Likewise.
60819         * tests/test-linkat.c (main): Likewise.
60820         * tests/test-lstat.h (test_lstat_func): Likewise.
60821         * tests/test-mkdir.h (test_mkdir): Likewise.
60822         * tests/test-readlink.h (test_readlink): Likewise.
60823         * tests/test-remove.c (main): Likewise.
60824         * tests/test-rename.h (test_rename): Likewise.
60825         * tests/test-renameat.c (main): Likewise.
60826         * tests/test-rmdir.h (test_rmdir_func): Likewise.
60827         * tests/test-symlink.h (test_symlink): Likewise.
60828         * tests/test-symlinkat.c (main): Likewise.
60829         * tests/test-unlink.h (test_unlink_func): Likewise.
60830         * tests/test-unlinkat.c (main): Likewise.
60832         maint: make realtime library usage explicit
60833         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
60834         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
60835         * modules/settime (Link): Likewise.
60836         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
60838         test-stat-time: speed up execution
60839         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
60840         warning on mingw.
60841         (nap): New helper function.
60842         (prepare_test): Use it to reduce sleep time.
60843         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
60844         execution.
60845         * modules/stat-time-tests (configure.ac): Check for usleep.
60847 2009-10-09  Jim Meyering  <meyering@redhat.com>
60849         selinux-h: always use getfilecon wrappers
60850         * lib/getfilecon.c: New file.
60851         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
60852         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
60853         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
60854         (fgetfilecon): Provide a stub.
60855         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
60856         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
60857         file unconditionally.
60858         When <selinux/selinux.h> is found, arrange to use wrappers.
60859         * modules/selinux-h (Files): Add getfilecon.c.
60860         (Makefile.am): Substitute include-next-related bits
60861         into the now-always-generated selinux/selinux.h file.
60862         * doc/glibc-functions/lgetfilecon.texi: New file.
60863         * doc/glibc-functions/fgetfilecon.texi: New file.
60864         * doc/glibc-functions/getfilecon.texi: New file.
60865         * doc/glibc-functions/getfilecon-desc.texi: New file.
60866         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
60867         which to pull in the new files.
60868         * MODULES.html.sh (Misc): Add selinux-h.
60870 2009-10-08  Jim Meyering  <meyering@redhat.com>
60872         unistd: fix comment typo
60873         * lib/unistd.in.h (euidaccess): Fix a comment typo.
60875 2009-10-08  Eric Blake  <ebb9@byu.net>
60877         areadlink: use SIZE_MAX consistently
60878         * modules/areadlink (Depends-on): Add stdint.
60879         * modules/areadlink-with-size (Depends-on): Likewise.
60880         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
60881         gives NULL; drop sys/types, since unistd gives size_t; and add
60882         stdint for SIZE_MAX.
60883         (SIZE_MAX): Rely on headers.
60884         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
60885         and add stdint.
60886         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
60887         (SIZE_MAX): Likewise.
60888         (INITIAL_BUF_SIZE): Turn into enum.
60889         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
60891 2009-10-08  Jim Meyering  <meyering@redhat.com>
60893         areadlinkat: avoid compilation failure
60894         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
60895         Fix typo in comment.
60897 2009-10-07  Eric Blake  <ebb9@byu.net>
60899         areadlinkat-with-size: new module
60900         * modules/areadlinkat-with-size: New module.
60901         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
60902         * lib/areadlink.h (areadlinkat): Declare it.
60903         * MODULES.html.sh (File system functions): Mention it.
60904         * modules/areadlinkat-with-size-tests: New test.
60905         * tests/test-areadlinkat-with-size.c: New file.
60907         xreadlinkat: new module
60908         * modules/xreadlinkat: New module.
60909         * lib/xreadlinkat.c (xreadlinkat): New file.
60910         * lib/xreadlink.h (xreadlinkat): Declare it.
60911         * MODULES.html.sh (File system functions): Mention it.
60913         areadlinkat: new module
60914         * lib/at-func.c (FUNC_FAIL): New define.
60915         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
60916         * modules/areadlinkat: New module.
60917         * lib/linkat.c (areadlinkat): Move...
60918         * lib/areadlinkat.c (areadlinkat): ...to new file.
60919         * lib/areadlink.h (areadlinkat): Declare it.
60920         * modules/linkat (Depends-on): Add areadlinkat.
60921         * MODULES.html.sh (File system functions): Mention it.
60922         * modules/areadlinkat-tests: New test.
60923         * tests/test-areadlinkat.c: New file.
60925         areadlink, areadlink-with-size: add tests
60926         * modules/areadlink-tests: New test.
60927         * modules/areadlink-with-size-tests: Likewise.
60928         * tests/test-areadlink.h: New file.
60929         * tests/test-areadlink.c: Likewise.
60930         * tests/test-areadlink-with-size.c: Likewise.
60932         maint: minor cleanups
60933         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
60934         _UNUSED_PARAMETER_ instead.
60935         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
60936         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
60937         * modules/linkat-tests (Files): Distribute test-link.h.
60939         openat, utimens: whitespace cleanup
60940         * lib/openat.c: Prefer space throughout, rather than mix of 8
60941         spaces vs. tabs.
60942         * lib/at-func.c: Likewise.
60943         * lib/utimens.c: Likewise.
60945         openat: avoid using wrong fd
60946         * lib/openat.c (openat_permissive): Reject user's fd if saving the
60947         working directory chooses same fd.
60948         * lib/at-func.c (AT_FUNC_NAME): Likewise.
60950         mkdir, mkdirat: fix cygwin 1.5.x bug
60951         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
60952         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
60953         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
60954         bug.
60955         (gl_PREREQ_MKDIR): Delete unused macro.
60956         * modules/mkdir (Files): Track file rename.
60957         (configure.ac): Update macro name.
60958         * modules/openat (Depends-on): Add mkdir.
60959         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
60961         mkdir, mkdirat: add tests
60962         * modules/mkdir-tests: New test.
60963         * tests/test-mkdir.h: New file.
60964         * tests/test-mkdir.c: Likewise.
60965         * tests/test-mkdirat.c: Likewise.
60966         * modules/openat-tests (Files): Add new files.
60967         (Makefile.am): Run new test.
60969 2009-10-06  Eric Blake  <ebb9@byu.net>
60971         doc: tweak *at function documentation
60972         * doc/posix-functions/faccessat.texi (faccessat): Mention
60973         known issue with replacement.
60974         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
60975         * doc/posix-functions/linkat.texi (linkat): Likewise.
60976         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
60977         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
60978         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60979         * doc/posix-functions/renameat.texi (renameat): Likewise.
60980         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60982         openat: fix GNU/Hurd bug in unlinkat
60983         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
60984         broken.
60985         * doc/posix-functions/unlink.texi (unlink): Document this.
60986         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
60988         fdopendir: fix GNU/Hurd bug
60989         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
60990         allowing non-directory fds.
60991         * lib/fdopendir.c (rpl_fdopendir): Work around it.
60992         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
60993         * modules/dirent (Makefile.am): Substitute it.
60994         * lib/dirent.in.h (fdopendir): Declare replacement.
60995         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
60996         * tests/test-fdopendir.c (main): Test something other than
60997         /dev/null, since on Hurd that behaves like a directory.
60999         test-symlink: port to GNU/Hurd
61000         * tests/test-symlink.h (test_symlink): Relax expected errno.
61002         doc: tweak more cygwin information
61003         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
61004         now compatible with glibc.
61005         * doc/posix-functions/getopt.texi (getopt): Likewise.
61007         getopt-gnu: add another test
61008         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
61009         guarantee behavior relied on by m4.
61010         * tests/test-getopt.c (main): Use it.
61011         * modules/getopt-posix-tests (Depends-on): Add setenv.
61012         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
61014         getopt: fix compilation on darwin
61015         * lib/getopt.in.h (includes): Leave breadcrumbs during system
61016         include.
61017         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
61018         Reported by Ludovic Courtès.
61020 2009-10-06  Bruno Haible  <bruno@clisp.org>
61022         * modules/size_max (Description): Discourage its use.
61023         Reported by Simon Josefsson.
61025 2009-10-06  Jim Meyering  <meyering@redhat.com>
61027         linkat: avoid compilation failure
61028         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
61030 2009-10-05  Eric Blake  <ebb9@byu.net>
61032         linkat: support Linux 2.6.17
61033         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
61034         linkat on Linux, but allow cache variable override.
61035         * lib/linkat.c (rpl_linkat): Define override.
61036         * modules/linkat (Depends-on): Add symlinkat.
61037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
61038         * modules/unistd (Makefile.am): Substitute it.
61039         * lib/unistd.in.h (linkat): Declare replacement.
61040         Reported by Pádraig Brady.
61042         quotearg: port test to systems with C.UTF-8 locale
61043         * tests/test-quotearg.c (struct result_strings): Add another
61044         member, differentiating between C.ASCII and C.UTF-8 handling.
61045         (compare_strings): Add parameter.
61046         (main): Adjust all callers.
61048         getopt: avoid clash with FreeBSD _getopt_internal
61049         * lib/getopt.in.h (_getopt_internal): Override the name.
61050         * lib/getopt_int.h (includes): Pick up any overrides.
61051         Reported by Reuben Thomas.
61053         hash: allow C89 compilation
61054         * lib/hash.c (check_tuning): Move declaration before statement.
61055         Reported by Reuben Thomas.
61057 2009-10-05  Karl Berry  <karl@gnu.org>
61059         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
61061 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
61062             Bruno Haible  <bruno@clisp.org>
61064         * lib/uname.c (uname): Use a table-driven algorithm to compute
61065         Windows NT versions.
61067 2009-10-04  Bruno Haible  <bruno@clisp.org>
61069         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
61070         program_invocation_short_name.
61071         * modules/progname (configure.ac): Test for presence of
61072         program_invocation_short_name.
61073         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
61075 2009-10-04  Bruno Haible  <bruno@clisp.org>
61077         * lib/progname.c (set_program_name): Fix comment.
61078         Reported by Jim Meyering.
61080 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
61081             Bruno Haible  <bruno@clisp.org>
61083         * lib/uname.c: Include <string.h>.
61084         (uname): Do only one call to GetVersionEx in the common case.
61086 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
61087             Bruno Haible  <bruno@clisp.org>
61089         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
61090         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
61091         (uname): Add support for Windows CE and various non-x86 CPU types.
61093 2009-10-03  Bruno Haible  <bruno@clisp.org>
61095         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
61096         invocation to tests/configure.ac.
61097         Reported by Ian Beckwith <ianb@erislabs.net>.
61099 2009-10-02  Eric Blake  <ebb9@byu.net>
61101         fchdir: avoid compiler warning
61102         * lib/fchdir.c (canonicalize_file_name)
61103         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
61105         test-open: support mingw errno values
61106         * tests/test-open.h (test_open): Relax test.
61107         * tests/test-fopen.h (test_fopen): Likewise.
61108         * tests/test-openat-safer.c (main): Likewise.
61110         open: fix opening directory on mingw
61111         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
61113         test-open: on GNU/Hurd, /dev/null is a directory
61114         * tests/test-fopen.h (main): Rename...
61115         (test_fopen): ...to this.  Use a guaranteed non-directory when
61116         confirming open behavior on trailing slash.
61117         * tests/test-openat-safer.c (main): Likewise.
61118         * tests/test-open.h (main): Likewise....
61119         (test_open): ...to this.
61120         * tests/test-fopen.c (main): Adjust caller.
61121         * tests/test-fopen-safer.c (main): Likewise.
61122         * tests/test-open.c (main): Likewise.
61123         * tests/test-fcntl-safer.c (main): Likewise.
61124         Reported by Samuel Thibault.
61126         rename, fchdir: don't ignore chdir failure
61127         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
61128         * lib/rename.c (rpl_rename) [W32]: Likewise.
61129         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
61130         an empty destination directory if source cannot be renamed,
61131         although there is still possibility for failure.
61132         * doc/posix-functions/rename.texi (rename): Document the race.
61133         Reported by Jim Meyering.
61135         maint: cleanup whitespace in recent commits
61136         * lib/rename.c (rpl_rename): Remove tabs.
61137         * tests/test-link.h (test_link): Likewise.
61138         * lib/fchdir.c (get_name): Likewise.
61139         Reported by Jim Meyering.
61141 2009-10-02  Ben Pfaff  <blp@gnu.org>
61143         relocatable-prog-wrapper: Add missing dependency on
61144         double-slash-root.
61145         * modules/relocatable-prog-wrapper: Add dependency.
61146         Reported by Ian Beckwith <ianb@erislabs.net>.
61148 2009-10-02  Eric Blake  <ebb9@byu.net>
61150         renameat: fix Solaris bugs
61151         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
61152         needed fixing.
61153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
61154         * modules/stdio (Makefile.am): Substitute it.
61155         * lib/stdio.in.h (renameat): Declare replacement.
61156         * lib/renameat.c (rpl_renameat): Implement fix.
61158         renameat: new module
61159         * modules/renameat: New file.
61160         * lib/renameat.c (renameat): Likewise.
61161         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
61162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
61163         * modules/stdio (Makefile.am): Substitute them.
61164         * lib/stdio.in.h (renameat): Declare it.
61165         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61166         * doc/posix-functions/renameat.texi (renameat): Likewise.
61167         * modules/renameat-tests: New test.
61168         * tests/test-renameat.c: Likewise.
61170         rename: fix mingw bugs
61171         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
61172         directory overwrite bugs.
61174         rename: fix another cygwin 1.5 bug
61175         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
61176         checks.
61177         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
61178         unnecessary cygwin workarounds.  Also work around bug with moving
61179         full directory onto an empty one.
61180         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
61182         rename-dest-slash: merge into rename module
61183         * modules/rename-dest-slash (Status): Mark obsolete.
61184         (Depends-on): Add rename.
61185         (Files): Let rename do it all.
61186         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
61187         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
61188         * m4/rename-dest-slash.m4: ...so this file can be deleted.
61189         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
61190         * lib/rename.c (rpl_rename): Update comments.
61192         rename: fix cygwin 1.5.x bugs
61193         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
61194         * lib/rename.c (rpl_rename): Work around them.
61195         * modules/rename (Depends-on): Add same-inode.
61197         rename: fix Solaris 10 bug
61198         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
61199         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
61200         was the only bug.
61202         rename: fix Solaris 9 bug
61203         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
61204         on non-directory.  Avoid calling exit.
61205         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
61206         strdup.
61207         * modules/rename-tests (Depends-on): Drop lstat.
61208         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
61209         (gl_PREREQ_RENAME): Delete unused macro.
61211         rename-dest-slash: fix NetBSD bug
61212         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
61213         links.
61214         * modules/rename-dest-slash (Depends-on): Add same-inode.
61216         rename-tests: new test, exposes several platform bugs
61217         * modules/rename-tests: New file.
61218         * tests/test-rename.h: Likewise.
61219         * tests/test-rename.c: Likewise.
61220         * doc/posix-functions/rename.texi (rename): Improve documentation,
61221         including bugs that will eventually be fixed in gnulib.
61223 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
61225         * lib/uname.c: Include <stdlib.h>
61226         (uname): Assume version info is available.
61228 2009-10-02  Jim Meyering  <meyering@redhat.com>
61230         gnu-web-doc-update: correct --help output
61231         * build-aux/gnu-web-doc-update: Make --help output relevant.
61233         gnu-web-doc-update: add standard options
61234         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
61236         gnu-web-doc-update: New module.
61237         Use this script to automatically update the on-line web documentation
61238         for your GNU project at http://www.gnu.org/software/$pkg/manual/
61239         * modules/gnu-web-doc-update: New file, from coreutils.
61240         * build-aux/gnu-web-doc-update: New script.
61242 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
61244         link: LoadLibrary is not needed.
61245         * lib/link.c: Use GetModuleHandle.
61247 2009-10-01  Eric Blake  <ebb9@byu.net>
61249         getopt: bump serial number
61250         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
61251         change.
61253         tests: tighten link, rmdir, and remove tests
61254         * tests/test-link.h (includes): No need to use <config.h> here.
61255         Clean up if directory hard link was created, otherwise test for
61256         trailing '.'.
61257         * tests/test-linkat.c (main): Simplify.
61258         * tests/test-remove.c (main): Enhance test for trailing '.'.
61259         * tests/test-rmdir.h (test_rmdir_func): Likewise.
61261 2009-10-01  Jim Meyering  <meyering@redhat.com>
61263         maint.mk: requiring "make major" was annoying, for a "minor" release.
61264         What is intended is "stable", to contrast with alpha and beta,
61265         so require "make stable", not "make major".
61266         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
61267         (get_tool_versions): Likewise.
61268         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
61270 2009-09-30  Ben Pfaff  <blp@gnu.org>
61272         Fix broken build of replacement for Windows tmpfile().
61273         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
61274         flags argument added along with the 'mkostemp' module.
61276 2009-09-28  Bruno Haible  <bruno@clisp.org>
61278         Avoid identifier clash with POSIX function 'remove' defined as a macro.
61279         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
61280         to 'remove_elt'.
61281         (gl_list_remove): Update.
61282         * lib/gl_list.c (gl_list_remove): Update.
61283         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
61284         to 'remove_elt'.
61285         (gl_oset_remove): Update.
61286         * lib/gl_list.c (gl_oset_remove): Update.
61287         Reported by Eric Blake.
61289 2009-09-28  Eric Blake  <ebb9@byu.net>
61291         doc: mention yet more cygwin 1.7 status
61292         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
61293         cygwin.
61294         * doc/glibc-functions/execvpe.texi (execvpe): New file.
61295         * doc/gnulib.texi (Glibc unistd.h): Mention it.
61297         argp: fix test failure
61298         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
61299         that are not upper-case.  Pass correct range to tolower.
61301 2009-09-27  Jim Meyering  <meyering@redhat.com>
61303         test-yesno: work around sparc-dash here-document infelicity
61304         Without this change, the literal \177 byte in a here document
61305         would make dash 0.5.5.1-3 access uninitialized memory.
61306         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
61307         Instead, use a marker, "@", and filter through tr to create the desired
61308         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
61310 2009-09-27  Bruno Haible  <bruno@clisp.org>
61312         Disable untested support for new flavours of ACLs on AIX.
61313         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
61314         progress.
61315         * lib/set-mode-acl.c (qset_acl): Likewise.
61317 2008-12-07  Bruno Haible  <bruno@clisp.org>
61319         Add support for new flavours of ACLs on AIX. (Untested.)
61320         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
61321         (file_has_acl): Add support for newer AIX.
61322         * lib/set-mode-acl.c (qset_acl): Likewise.
61323         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
61324         Rainer Tammer <tammer@tammer.net>.
61326 2009-09-26  Eric Blake  <ebb9@byu.net>
61328         argp: fix compilation of getopt
61329         * lib/getopt.in.h (includes): Use different guard than glibc.
61330         Reported by Sergey Poznyakoff.
61332         doc: mention more cygwin 1.7 status
61333         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
61334         bug.
61335         * doc/posix-functions/execl.texi (execl): Likewise.
61336         * doc/posix-functions/execle.texi (execle): Likewise.
61337         * doc/posix-functions/execlp.texi (execlp): Likewise.
61338         * doc/posix-functions/execv.texi (execv): Likewise.
61339         * doc/posix-functions/execve.texi (execve): Likewise.
61340         * doc/posix-functions/execvp.texi (execvp): Likewise.
61341         * doc/glibc-functions/canonicalize_file_name.texi
61342         (canonicalize_file_name): Cygwin 1.7 now provides this.
61343         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
61344         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
61345         on AT_SYMLINK_NOFOLLOW.
61347 2009-09-24  Eric Blake  <ebb9@byu.net>
61349         test-linkat: make test more robust
61350         * tests/test-linkat.c (main): Avoid collision with EEXIST.
61352         getopt: fix inclusion guards for cygwin
61353         * modules/getopt-posix (Depends-on): Add include-next.
61354         (Makefile.am): Substitute more items in replacement header.
61355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
61356         <getopt.h>.
61357         * lib/getopt.in.h (includes): Use split inclusion guard, and
61358         prefer <getopt.h> over include <unistd.h> when one is present.
61359         (option): Also override name of 'struct option'.
61361         same-inode: revert prior change; it is not yet ready
61362         * NEWS: Undo mention of this change.
61363         * lib/same-inode.h (same-inode.h): Undo tri-state change.
61364         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61365         * lib/cycle-check.c (cycle_check): Likewise.
61366         * lib/same.c (same_name): Likewise.
61367         * lib/at-func2.c (at_func2): Likewise.
61369 2009-09-23  Eric Blake  <ebb9@byu.net>
61371         linkat: new module
61372         * modules/linkat: New file.
61373         * lib/at-func2.c (at_func2): Likewise.
61374         * lib/linkat.c (linkat): Likewise.
61375         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
61376         * lib/openat-priv.h (at_func2): Add declaration.
61377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61378         * modules/unistd (Makefile.am): Substitute them.
61379         * lib/unistd.in.h (linkat): Declare it.
61380         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61381         * doc/posix-functions/linkat.texi (linkat): Likewise.
61382         * doc/posix-functions/link.texi (link): Tweak wording.
61383         * tests/test-link.c (main): Move guts...
61384         * tests/test-link.h (test_link): ...into new file.
61385         * modules/linkat-tests: New test.
61386         * tests/test-linkat.c: Likewise.
61387         * modules/link-tests (Files): Ship new file.
61388         (Depends-on): Add stdbool.
61390         dirname: add library-safe mdir_name
61391         * lib/dirname.h (mdir_name): New prototype.
61392         * lib/dirname.c (dir_name): Move guts...
61393         (mdir_name): ...to new function that avoids xalloc_die.
61395         fchdir: another mingw fix
61396         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
61397         * lib/fchdir.c (get_name): New helper method; skips canonicalize
61398         on mingw (where it has not yet been ported), and make it optional
61399         elsewhere.
61400         (_gl_register_fd): Use it.
61402         same-inode: make SAME_INODE tri-state, to port to mingw
61403         * NEWS: Mention this change.
61404         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
61405         st_ino always being 0.
61406         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61407         * lib/cycle-check.c (cycle_check): Likewise.
61408         * lib/same.c (same_name): Likewise.
61410         lstat: avoid mingw compilation error
61411         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
61412         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
61413         lstat ourselves.
61414         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
61415         was adequate.
61416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
61417         the checks for lstat.
61418         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
61420         link: fix test failure on Solaris 9
61421         * lib/link.c (rpl_link): Don't assume link will catch bogus
61422         trailing slash on source.
61424         test-symlinkat: enhance test
61425         * tests/test-readlink.c (main): Move guts...
61426         * tests/test-readlink.h (test_readlink): ...into new file.
61427         * tests/test-symlink.c (main): Move guts...
61428         * tests/test-symlink.h (test_symlink): ...into new file.
61429         * tests/test-symlinkat.c (main): Use new files for further
61430         coverage.
61431         (do_symlink, do_readlink): New helper functions.
61432         * modules/symlink-tests (Files): Ship new file.
61433         (Depends-on): Add stdbool.
61434         * modules/readlink-tests (Files): Ship new file.
61435         (Depends-on): Add stdbool.
61436         * modules/symlinkat-tests (Files): Use new files.
61438 2009-09-23  Eric Blake  <ebb9@byu.net>
61440         readlink: document portability issue with symlink length
61441         * doc/posix-functions/lstat.texi (lstat): Mention that some file
61442         systems have bogus st_size on symlinks, and mention the
61443         areadlink-with-size module.
61444         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
61445         * doc/posix-functions/readlink.texi (readlink): Mention the
61446         areadlink module, and ERANGE failure.
61447         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61448         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
61450         readlink: fix Solaris 9 bug with trailing slash
61451         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
61452         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
61453         * doc/posix-functions/readlink.texi (readlink): Document this.
61454         * modules/readlink-tests: New test.
61455         * tests/test-readlink.c: Likewise.
61457         readlink: fix cygwin 1.5.x bug with return type
61458         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
61459         * lib/unistd.in.h (readlink): Use ssize_t.
61460         * lib/readlink.c (readlink): Likewise.
61461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61462         * modules/unistd (Makefile.am): Substitute it.
61463         * lib/unistd.in.h (readlink): Declare replacement.
61464         * doc/posix-functions/readlink.texi (readlink): Document this.
61466         symlink: use throughout gnulib
61467         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
61468         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
61469         symlink is not used.
61470         * modules/symlinkat (Depends-on): Add symlink.
61471         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61472         * modules/canonicalize-tests (Depends-on): Likewise.
61473         * modules/lstat-tests (Depends-on): Likewise.
61474         * modules/openat-tests (Depends-on): Likewise.
61475         * modules/remove-tests (Depends-on): Likewise.
61476         * modules/rmdir-tests (Depends-on): Likewise.
61477         * modules/unlink-tests (Depends-on): Likewise.
61478         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
61479         * tests/test-canonicalize.c (symlink): Likewise.
61480         * tests/test-fstatat.c (symlink): Likewise.
61481         * tests/test-lstat.c (symlink): Likewise.
61482         * tests/test-remove.c (symlink): Likewise.
61483         * tests/test-rmdir.c (symlink): Likewise.
61484         * tests/test-unlink.c (symlink): Likewise.
61485         * tests/test-unlinkat.c (symlink): Likewise.
61487         symlink: new module, for Solaris 9 bug
61488         * modules/symlink: New file.
61489         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
61490         * lib/symlink.c: Likewise.
61491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61492         * modules/unistd (Makefile.am): Substitute them.
61493         * lib/unistd.in.h (symlink): Declare replacement.
61494         * MODULES.html.sh (File system functions): Mention it.
61495         * doc/posix-functions/symlink.texi (symlink): Likewise.
61496         * modules/symlink-tests: New test.
61497         * tests/test-symlink.c: Likewise.
61499 2009-09-23  Bruno Haible  <bruno@clisp.org>
61501         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
61502         when needed.
61503         Test case: gnulib-tool --import --with-tests atexit inttypes.
61504         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
61506 2009-09-23  Bruno Haible  <bruno@clisp.org>
61508         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
61509         subcommand, not in a subshell.
61511 2009-09-22  Eric Blake  <ebb9@byu.net>
61513         unistd: sort replacement declarations
61514         * lib/unistd.in.h: Sort declarations.
61516         open, openat: minor optimization
61517         * lib/open.c (open): If open succeeded, len is non-zero.
61518         * lib/openat.c (rpl_openat): Likewise.
61520         link-follow: ensure correct result
61521         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
61522         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
61523         distinguish between possible failures.
61525 2009-09-21  Eric Blake  <ebb9@byu.net>
61527         fts: avoid compiler warning
61528         * lib/fts.c (dirent_inode_sort_may_be_useful)
61529         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
61531 2009-09-19  Bruno Haible  <bruno@clisp.org>
61533         * lib/progreloc.c (canonicalize_file_name): New declaration.
61535 2009-09-19  Eric Blake  <ebb9@byu.net>
61537         link: fix quoting
61538         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
61540         openat: fix openat bugs on Solaris 9
61541         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
61542         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
61543         * modules/openat (Depends-on): Add open.
61544         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
61545         * modules/fcntl-h (Makefile.am): Substitute it.
61546         * lib/fcntl.in.h (openat): Declare replacement.
61547         * doc/posix-functions/openat.texi (openat): Document this.
61549         openat: move fstatat and unlinkat into correct files
61550         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
61551         compiled.
61552         * lib/openat.c (fstatat, unlinkat): Move...
61553         * lib/fstatat.c (fstatat): ...into correct files.
61554         * lib/unlinkat.c (unlinkat): Likewise.
61556         openat: fix unlinkat bugs on Solaris 9
61557         * lib/unlinkat.c (unlinkat): New file.
61558         * modules/openat (Depends-on): Add unlink.
61559         (Files): Distribute it.
61560         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
61561         trailing slash behavior is broken.
61562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61563         * modules/unistd (Makefile.am): Substitute it.
61564         * lib/unistd.in.h (unlinkat): Declare replacement.
61565         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
61567         openat: fix fstatat bugs on Solaris 9
61568         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
61569         stat.
61570         * doc/posix-functions/fstatat.texi (fstatat): Document this.
61572         test-unlinkat: enhance test, to expose Solaris 9 bug
61573         * tests/test-unlink.c (main): Factor guts...
61574         * tests/test-unlink.h (test_rmdir_func): ...into new file.
61575         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
61576         * tests/test-rmdir.c (main): Adjust caller.
61577         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
61578         (unlinker): New helper function.
61579         (rmdirat): Enhance check.
61580         * modules/rmdir-tests (Depends-on): Add stdbool.
61581         * modules/unlink-tests (Depends-on): Likewise.
61582         (Files): Add test-unlink.h.
61583         * modules/openat-tests (Files): Likewise.
61584         (Depends-on): Add unlinkdir.
61586         test-fstatat: new test, to expose Solaris 9 bugs
61587         * tests/test-stat.c (main): Factor guts...
61588         * tests/test-stat.h (test_stat_func): ...into new file.
61589         * tests/test-lstat.c (main): Factor guts...
61590         * tests/test-lstat.h (test_lstat_func): ...into new file.
61591         * tests/test-fstatat.c: New file.
61592         * modules/stat-tests (Files): Add test-stat.h.
61593         * modules/lstat-tests (Files): Add test-lstat.h.
61594         (Depends-on): Add stdbool.
61595         * modules/openat-tests (Depends-on): Add pathmax.
61596         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
61597         (Makefile.am): Run new test.
61599         remove: new module, for mingw and Solaris 9 bugs
61600         * modules/remove: New file.
61601         * lib/remove.c: Likewise.
61602         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
61603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
61604         * modules/stdio (Makefile.am): Use them.
61605         * lib/stdio.in.h (remove): Declare replacement.
61606         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61607         * doc/posix-functions/remove.texi (remove): Likewise.
61608         * modules/remove-tests: New test.
61609         * tests/test-remove.c: Likewise.
61611         unlink: new module, for Solaris 9 bug
61612         * modules/unlink: New file.
61613         * lib/unlink.c: Likewise.
61614         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
61615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61616         * modules/unistd (Makefile.am): Use them.
61617         * lib/unistd.in.h (stat): Declare replacement.
61618         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61619         * doc/posix-functions/unlink.texi (unlink): Likewise.
61620         * modules/unlink-tests: New test.
61621         * tests/test-unlink.c: Likewise.
61623         lstat: fix Solaris 9 bug
61624         * lib/lstat.c (lstat): Also check for trailing slash on
61625         non-symlink, non-directories.  Use stat module to simplify logic.
61626         * doc/posix-functions/lstat.texi (lstat): Document it.
61627         * modules/lstat-tests (Depends-on): Add errno, same-inode.
61628         (configure.ac): Check for symlink.
61629         * tests/test-lstat.c (main): Add more tests.
61631         stat: add as dependency to other modules
61632         * modules/chown (Depends-on): Add stat.
61633         * modules/euidaccess (Depends-on): Likewise.
61634         * modules/fchdir (Depends-on): Likewise.
61635         * modules/isdir (Depends-on): Likewise.
61636         * modules/link (Depends-on): Likewise.
61637         * modules/lstat (Depends-on): Likewise.
61638         * modules/mkdir-p (Depends-on): Likewise.
61639         * modules/modechange (Depends-on): Likewise.
61640         * modules/open (Depends-on): Likewise.
61641         * modules/readlink (Depends-on): Likewise.
61642         * modules/same (Depends-on): Likewise.
61644         stat: fix Solaris 9 bug
61645         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
61646         slash.
61647         * lib/stat.c (rpl_stat): Work around it.
61648         * doc/posix-functions/stat.texi (stat): Update documentation.
61650         stat: new module, for mingw bug
61651         * modules/stat: New file.
61652         * lib/stat.c: Likewise.
61653         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
61654         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61655         * modules/sys_stat (Makefile.am): Use them.
61656         * lib/sys_stat.in.h (stat): Declare replacement.
61657         * lib/openat.c (fstatat): Deal with lstat and stat being function
61658         macros.
61659         * modules/openat (Depends-on): Add inline.
61660         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61661         * doc/posix-functions/stat.texi (stat): Likewise.
61662         * modules/stat-tests: New test.
61663         * tests/test-stat.c: Likewise.
61665 2009-09-19  Jim Meyering  <meyering@redhat.com>
61667         syntax-check: detect unnecessary inclusion of canonicalize.h
61668         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
61670 2009-09-19  Eric Blake  <ebb9@byu.net>
61672         canonicalize-lgpl: adjust clients to use correct header
61673         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
61674         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
61675         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
61676         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
61677         * lib/progreloc.c (includes): Likewise.
61679 2009-09-19  Jim Meyering  <meyering@redhat.com>
61681         test-posixtm.c: correct a comment
61682         * tests/test-posixtm.c: Correct first-line comment.
61683         Spotted by Eric Blake.
61685 2009-09-16  Jim Meyering  <meyering@redhat.com>
61687         posixtm-tests: make T const-correct; add a test case
61688         * tests/test-posixtm.c (T): Declare const.
61689         Add a test for -(2^31+1).
61690         Remove useless can-succeed-only-in-2002 test.
61692         posixtm-tests: adjust the sole failing test
61693         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
61694         expected output matches what mktime now produces.  Cross-checked via
61695         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
61697         posixtm: move #ifdef'd tests into a new module
61698         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
61699         * tests/test-posixtm.c: ... this new file.
61700         * modules/posixtm-tests: New module.
61702 2009-09-19  Eric Blake  <ebb9@byu.net>
61704         openat: simplify use of at-func.c
61705         * lib/at-func.c (includes): Include prerequisites here, to
61706         simplify requirements on client files.
61707         * lib/openat-priv.h: Add double-inclusion guard.
61708         * lib/faccessat.c (includes): Simplify.
61709         * lib/fchmodat.c (includes): Likewise.
61710         * lib/fchownat.c (includes): Likewise.
61711         * lib/mkdirat.c (includes): Likewise.
61712         * lib/mkfifoat.c (includes): Likewise.
61713         * lib/symlinkat.c (includes): Likewise.
61715         openat: allow return of fd 0
61716         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
61717         * modules/save-cwd (Depends-on): Replace fcntl-safer with
61718         unistd-safer.
61719         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
61720         <fcntl.h>; this module does not leak fds.
61721         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
61722         must be allowed to return 0, leaving openat_safer to add the
61723         safety.
61724         (openat_permissive): Avoid writing to just-opened fd 2 if
61725         restoring the current directory fails.
61726         * lib/openat-die.c (openat_restore_fail): Add comment.
61727         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
61728         (save_cwd): Guarantee safe fd, but without use of open_safer.
61729         * tests/test-openat.c: New test.
61730         * modules/openat-tests (Files, Makefile.am): Distribute and build
61731         new file.
61733         relocatable-prog-wrapper: fix build
61734         * modules/relocatable-prog-wrapper (Files): Update name of
61735         canonicalize m4 file, broken on 2009-09-17.
61736         Reported by emad hajjar <aleppos@hotmail.com>.
61738 2009-09-19  Bruno Haible  <bruno@clisp.org>
61740         * lib/safe-alloc.h: Use the standard header with GPL copyright.
61741         * lib/safe-alloc.c: Likewise.
61742         Reported by Ian Beckwith <ianb@erislabs.net>.
61744 2009-09-18  Bruno Haible  <bruno@clisp.org>
61746         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
61747         Reported by <erobles@sensacd.com.mx>.
61749 2009-09-17  Eric Blake  <ebb9@byu.net>
61751         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
61752         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
61753         slashes when checking if last component is missing.
61754         * tests/test-canonicalize.c (main): Test this.
61756         canonicalize, canonicalize-lgpl: honor // if distinct from /
61757         * modules/canonicalize (Files): Add double-slash-root.m4.
61758         * modules/canonicalize-lgpl (Files): Likewise.
61759         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
61760         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
61761         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
61762         fallback definition.
61763         (canonicalize_filename_mode): Use it to protect //.
61764         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
61765         (__realpath): Likewise.
61766         * tests/test-canonicalize.c (main): Test this.
61767         * tests/test-canonicalize-lgpl.c (main): Likewise.
61768         * modules/canonicalize-tests (Depends-on): Add same-inode.
61769         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61771         canonicalize-lgpl: fix glibc bug with trailing slash
61772         * m4/canonicalize-lgpl.m4: Move contents...
61773         * m4/canonicalize.m4: ...here.
61774         (gl_CANONICALIZE_LGPL): Factor realpath check...
61775         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
61776         glibc 2.3.5 bug, fixed 2005-04-27.
61777         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
61778         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
61779         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
61780         * modules/canonicalize-lgpl (Files): Manage file rename.
61781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
61782         * modules/stdlib (Makefile.am): Substitute witness.
61783         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
61784         is needed.
61785         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
61786         replacement is required.
61787         * lib/canonicalize.c (canonicalize_file_name): Likewise.
61788         * doc/glibc-functions/canonicalize_file_name.texi
61789         (canonicalize_file_name): Document this.
61790         * doc/posix-functions/realpath.texi (realpath): Likewise.
61792         canonicalize-lgpl: reject non-directory with trailing slash
61793         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
61794         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
61795         catches failures in glibc 2.3.5.
61796         * tests/test-canonicalize.c (main): Likewise.
61798         canonicalize-lgpl: use native realpath if it works
61799         * lib/canonicalize-lgpl.c (realpath): Guard with
61800         FUNC_REALPATH_WORKS.
61801         * lib/stdlib.in.h (realpath): Make declaration optional based on
61802         HAVE_REALPATH.
61803         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
61804         native realpath works.
61805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
61806         * modules/stdlib (Makefile.am): Substitute witness.
61808         canonicalize, canonicalize-lgpl: use <stdlib.h>
61809         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
61810         (Include): Mention <stdlib.h>.
61811         (configure.ac): Mention functions we provide.
61812         * modules/canonicalize (configure.ac): Likewise.
61813         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
61814         realpath if canonicalize_file_name is missing.
61815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
61816         * modules/stdlib (Makefile.am): Substitute witnesses.
61817         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
61818         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
61819         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
61820         * NEWS: Document this.
61821         * doc/glibc-functions/canonicalize_file_name.texi
61822         (canonicalize_file_name): Likewise.
61823         * doc/posix-functions/realpath.texi (realpath): Likewise.
61824         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
61826         test-canonicalize: consolidate into single C program
61827         * tests/test-canonicalize.sh: Delete; move setup into...
61828         * tests/test-canonicalize.c (main): ...the program, making it
61829         easier to run in debugger.  Add some tests.
61830         * modules/canonicalize-tests (Files): Remove unused file.
61831         (Depends-on): Add progname.
61832         (configure.ac, Makefile.am): Simplify.
61834         test-canonicalize-lgpl: consolidate into single C program
61835         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
61836         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
61837         easier to run in debugger.  Add some tests.
61838         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
61839         (configure.ac, Makefile.am): Simplify.
61841         canonicalize: avoid resolvepath
61842         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
61843         unnecessary checks.
61844         * lib/canonicalize.c (includes): Simplify.
61845         (canonicalize_file_name): Drop resolvepath implementation.
61846         * modules/canonicalize (Depends-on): Drop filenamecat.
61848         canonicalize: don't lose errno
61849         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
61850         over calls to free.
61852         canonicalize: simplify errno handling
61853         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
61854         assignment.
61856         canonicalize, canonicalize-lgpl: update module dependencies
61857         * modules/canonicalize (Depends-on): Add extensions, lstat,
61858         pathmax, stdlib.
61859         (Files): Drop pathmax.h.
61860         (configure.ac): Adjust macro name.
61861         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
61862         lstat, stdlib, sys_stat.
61863         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
61864         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
61865         extensions.
61866         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
61867         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
61868         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
61869         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
61870         declaration, if available.
61871         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
61872         we can rely on the readlink module.
61873         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
61874         (includes): Use <unistd.h> unconditionally.
61876 2009-09-17  Eric Blake  <ebb9@byu.net>
61878         maint: make Include sections of modules consistent
61879         * modules/alloca: Use only header name; no need to list #include.
61880         * modules/alloca-opt: Likewise.
61881         * modules/arpa_inet: Likewise.
61882         * modules/canon-host: Likewise.
61883         * modules/configmake: Likewise.
61884         * modules/dirent: Likewise.
61885         * modules/eealloc: Likewise.
61886         * modules/environ: Likewise.
61887         * modules/fchdir: Likewise.
61888         * modules/fcntl: Likewise.
61889         * modules/fcntl-h: Likewise.
61890         * modules/gethrxtime: Likewise.
61891         * modules/gettime: Likewise.
61892         * modules/ignore-value: Likewise.
61893         * modules/inet_ntop: Likewise.
61894         * modules/inet_pton: Likewise.
61895         * modules/inttypes: Likewise.
61896         * modules/isnand-nolibm: Likewise.
61897         * modules/isnanf-nolibm: Likewise.
61898         * modules/mbchar: Likewise.
61899         * modules/mbfile: Likewise.
61900         * modules/mbiter: Likewise.
61901         * modules/mbuiter: Likewise.
61902         * modules/netdb: Likewise.
61903         * modules/netinet_in: Likewise.
61904         * modules/nproc: Likewise.
61905         * modules/pagealign_alloc: Likewise.
61906         * modules/poll: Likewise.
61907         * modules/printf-frexp: Likewise.
61908         * modules/pthread: Likewise.
61909         * modules/putenv: Likewise.
61910         * modules/random_r: Likewise.
61911         * modules/relocatable-prog: Likewise.
61912         * modules/search: Likewise.
61913         * modules/select: Likewise.
61914         * modules/selinux-h: Likewise.
61915         * modules/settime: Likewise.
61916         * modules/signal: Likewise.
61917         * modules/size_max: Likewise.
61918         * modules/socklen: Likewise.
61919         * modules/ssize_t: Likewise.
61920         * modules/stdarg: Likewise.
61921         * modules/stdbool: Likewise.
61922         * modules/stddef: Likewise.
61923         * modules/stdint: Likewise.
61924         * modules/stdio: Likewise.
61925         * modules/stdlib: Likewise.
61926         * modules/string: Likewise.
61927         * modules/strings: Likewise.
61928         * modules/sys_file: Likewise.
61929         * modules/sys_ioctl: Likewise.
61930         * modules/sys_select: Likewise.
61931         * modules/sys_socket: Likewise.
61932         * modules/sys_stat: Likewise.
61933         * modules/sys_time: Likewise.
61934         * modules/sys_times: Likewise.
61935         * modules/sys_utsname: Likewise.
61936         * modules/sys_wait: Likewise.
61937         * modules/sysexits: Likewise.
61938         * modules/time: Likewise.
61939         * modules/times: Likewise.
61940         * modules/tmpfile: Likewise.
61941         * modules/trim: Likewise.
61942         * modules/unistd: Likewise.
61943         * modules/wchar: Likewise.
61944         * modules/wctype: Likewise.
61946 2009-09-17  Bruno Haible  <bruno@clisp.org>
61948         Make getdate.y compile on QNX and NetBSD 5 / i386.
61949         * m4/getdate.m4 (gl_GETDATE): Conditionally define
61950         TIME_T_FITS_IN_LONG_INT.
61951         * lib/getdate.y (long_time_t): New type.
61952         (relative_time): Change type of 'seconds' field to long_time_t.
61953         (get_date): Update types of local variables. Check against overflow
61954         during conversion from long_time_t to time_t.
61955         Reported by Matt Kraai <kraai@ftbfs.org>
61956         and Hasso Tepper <hasso@netbsd.org>.
61958 2009-09-17  Bruno Haible  <bruno@clisp.org>
61960         * modules/COPYING: Update copyright years.
61961         * modules/README: Likeiwse.
61962         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
61963         Reported by Ian Beckwith <ianb@erislabs.net>.
61965 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
61967         * users.txt: Update references for gnuit package.
61969 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
61971         * m4/getdelim.m4: Fix typo in copyright line.
61973 2009-09-17  Bruno Haible  <bruno@clisp.org>
61975         * lib/atoll.c: Use the standard header with GPL copyright.
61976         * lib/argz.in.h: Likewise.
61977         * lib/glob.c: Likewise.
61978         * lib/glob-libc.h: Likewise.
61979         * lib/random_r.c: Likewise.
61980         * lib/siglist.h: Likewise.
61981         * lib/strsignal.c: Likewise.
61982         Reported by Ian Beckwith <ianb@erislabs.net>.
61984 2009-09-17  Eric Blake  <ebb9@byu.net>
61986         rmdir: ensure correct dependency order
61987         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
61989 2009-09-17  Bruno Haible  <bruno@clisp.org>
61991         Disable assertion that fails on NetBSD 5 / i386.
61992         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
61993         Reported by Sam Steingold <sds@gnu.org>
61994         and Hasso Tepper <hasso@netbsd.org>.
61996 2009-09-16  Eric Blake  <ebb9@byu.net>
61998         unlinkdir: port to mingw
61999         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
62000         on which no one can unlink a directory.
62002         stdlib: sort witness names
62003         * modules/stdlib (Makefile.am): Sort replacements.
62004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62005         * lib/stdlib.in.h: Likewise.
62007         parse-duration-tests: avoid link failure
62008         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
62009         LIBINTL.
62010         Reported by Tom G. Christensen.
62012         openat-tests: ensure unlinkat behaves like rmdir
62013         * tests/test-rmdir.c (main): Factor guts...
62014         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
62015         * modules/rmdir-tests (Files): Ship new file.
62016         * modules/openat-tests: New test.
62017         * tests/test-unlinkat.c: Likewise.
62019         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
62020         * modules/rmdir-errno (Status, Notice): Now obsolete.
62022         rmdir: work around cygwin 1.5.x and mingw bugs
62023         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
62024         * lib/rmdir.c (rmdir): Work around it.
62025         * modules/rmdir (Status, Notice): No longer obsolete.
62026         (Files): Add dos.m4.
62027         (Depends-on): Add unistd.
62028         (configure.ac): Set witnesses.
62029         (License): Relax to LGPLv2+.
62030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
62031         * modules/unistd (Makefile.am): Substitute witnesses.
62032         * lib/unistd.in.h (rmdir): Declare replacement.
62033         * doc/posix-functions/rmdir.texi (rmdir): Document this.
62034         * modules/rmdir-tests: New tests.
62035         * tests/test-rmdir.c: Likewise.
62037 2009-09-15  Eric Blake  <ebb9@byu.net>
62039         fchdir: improve use of replacement functions
62040         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
62041         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
62042         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
62043         REPLACE_CLOSEDIR.
62044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
62045         * modules/sys_stat (Makefile.am): Substitute correct witness.
62046         * modules/dirent (Makefile.am): Likewise.
62047         * modules/unistd (Makefile.am): Likewise.
62048         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
62049         * lib/unistd.in.h (dup): Likewise.
62050         * lib/sys_stat.in.h (fstat): Likewise.
62052         maint: ignore gnulib-tool temp files
62053         * .gitignore: Ignore files created during gnulib-tool --test.
62055 2009-09-13  Jim Meyering  <meyering@redhat.com>
62057         posixtm: don't reject a time that specify "60" as the number of seconds
62058         * lib/posixtm.c (posixtime): The code to reject invalid dates
62059         would also reject a time specified with the .60 suffix.
62060         But POSIX allows that, in order to accommodate leap seconds.
62061         So don't reject it.
62062         (main): Adjust tests accordingly.
62063         * modules/posixtm (Depends-on): Add stpcpy.
62065 2009-09-11  Jim Meyering  <meyering@redhat.com>
62067         announce-gen: include [$release_type] in emitted Subject:
62068         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
62069         e.g., [stable] in the emitted Subject: line.
62071 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62073         Remove obsolete macros from several modules.
62074         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
62075         obsolete Autoconf macros with their modern counterparts.
62076         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
62077         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
62078         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
62079         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62080         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
62081         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62083         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62084         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
62085         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
62086         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
62087         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
62088         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
62089         * m4/sockets.m4 (gl_SOCKETS): Likewise.
62090         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
62091         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
62092         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
62093         * m4/time_r.m4 (gl_TIME_R): Likewise.
62094         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
62095         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
62096         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62098         Fix copyright header in build-aux scripts.
62099         * build-aux/git-version-gen: Fix copyright header to match GPLv3
62100         recommendation.
62101         * build-aux/ncftpput-ftp: Likewise.
62102         * build-aux/update-copyright: Likewise.
62104 2009-09-09  Eric Blake  <ebb9@byu.net>
62106         test-link: allow Linux choice of errno
62107         * tests/test-link.c (main): Relax test for alternate error.
62109         strndup: fix improper m4 caching
62110         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
62111         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
62112         (gl_PREREQ_STRNDUP): Delete.
62113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
62114         * modules/string (Makefile.am): Substitute it.
62115         * lib/string.in.h (strndup): Modernize prototype.
62117         getcwd: port to mingw
62118         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
62119         different from the POSIX assumptions made throughout the getcwd
62120         module; fortunately, the mingw getcwd does not need replacement.
62121         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
62122         * modules/getcwd-tests: New test.
62123         * tests/test-getcwd.c: Likewise.
62125         link: fix platform bugs
62126         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
62127         * lib/link.c (link): Work around them.  Fix related mingw bug.
62128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
62129         * modules/unistd (Makefile.am): Substitute it.
62130         * lib/unistd.in.h (link): Declare replacement.
62131         * doc/posix-functions/link.texi (link): Document this.
62132         * modules/link (Depends-on): Add strdup-posix, sys_stat.
62134         test-link: consolidate into single C program, test more cases
62135         * tests/test-link.sh: Delete.
62136         * tests/test-link.c: Test more error conditions.  Exposes bugs on
62137         at least Cygwin and Solaris.
62138         * modules/link-tests (Files): Remove unused file.
62139         (Depends-on): Add errno, sys_stat.
62140         (Makefile.am): Simplify.
62142 2009-09-08  Bruno Haible  <bruno@clisp.org>
62144         Work around towlower, towupper bug on mingw.
62145         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
62146         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
62147         * doc/posix-functions/towlower.texi: Mention the mingw bug.
62148         * doc/posix-functions/towupper.texi: Likewise.
62149         Reported by Eric Blake.
62151 2009-09-08  Jim Meyering  <meyering@redhat.com>
62153         build: don't try to run autoheader if we don't use it
62154         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
62155         is not used in configure.ac.
62157 2009-09-08  Eric Blake  <ebb9@byu.net>
62159         euidaccess: fix compilation error
62160         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
62162         rawmemchr: relax license
62163         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
62164         okay.
62165         Reported by Jim Meyering.
62167         mkfifoat: new module
62168         * modules/mkfifoat: New file.
62169         * lib/mkfifoat.c: Likewise.
62170         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
62171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62172         * modules/sys_stat (Makefile.am): Use them.
62173         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
62174         * MODULES.html.sh (File system functions): Mention module.
62175         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
62176         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
62177         * modules/mkfifoat-tests: New test.
62178         * tests/test-mkfifoat.c: Likewise.
62180         strchrnul: relax license
62181         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
62182         okay.
62183         Reported by Jim Meyering.
62185 2009-09-08  Eric Blake  <ebb9@byu.net>
62187         fstatat: fix compilation on Solaris
62188         * lib/fstatat.c (includes): Add fcntl.h.
62189         Reported by Pádraig Brady.
62191 2009-09-07  Eric Blake  <ebb9@byu.net>
62193         rename: modernize replacement
62194         * modules/rename (Depends-on): Add stdio.
62195         (configure.ac): Declare witness.
62196         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
62197         stdio take care of replacement.
62198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62199         * modules/stdio (Makefile.am): Substitute them.
62200         * lib/stdio.in.h (rename): Declare replacement.
62201         * lib/rename.c (includes): Allow cross-compilation to non-windows
62202         machines.
62203         * doc/posix-functions/rename.texi (rename): Improve
62204         documentation.
62206         stdio: sort witness names
62207         * modules/stdio (Makefile.am): Sort replacements.
62208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62209         * lib/stdio.in.h: Likewise.
62211         getcwd: minor cleanups
62212         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
62213         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
62215         openat: provide more convenience names
62216         * modules/faccessat (configure.ac): Add C witness.
62217         * lib/unistd.in.h (readlinkat): Fix typo.
62218         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
62219         convenience wrappers.
62220         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
62221         wrappers in syntax checks.
62223 2009-09-06  Eric Blake  <ebb9@byu.net>
62225         doc: fix comments in recent patches
62226         * lib/faccessat.c: Mention correct function.
62227         * lib/fchmodat.c: Likewise.
62228         * lib/fchownat.c: Likewise.
62229         * lib/symlinkat.c: Likewise.
62230         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
62231         constants.
62233         faccessat, symlinkat: continue cleanup of previous patch
62234         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
62235         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
62236         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
62237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
62238         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
62239         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
62240         set.
62242 2009-09-06  Bruno Haible  <bruno@clisp.org>
62244         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
62245         (fstatat): Declare if GNULIB_FSTATAT is set.
62246         (mkdirat): Declare if GNULIB_MKDIRAT is set.
62247         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
62248         (unlinkat): Declare if GNULIB_UNLINKAT is set.
62249         * modules/fcntl-h (Files): Remove m4/openat.m4.
62250         * modules/sys_stat (Files): Remove m4/openat.m4.
62251         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
62252         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
62253         * modules/unistd (Files): Remove m4/openat.m4.
62254         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
62255         GNULIB_OPENAT.
62256         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
62257         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
62258         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
62259         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
62260         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
62261         gl_OPENAT_DEFAULTS.
62262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
62263         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
62264         Don't require gl_OPENAT_DEFAULTS.
62265         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
62266         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
62267         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
62268         (gl_OPENAT_DEFAULTS): Remove macro.
62270 2009-09-06  Bruno Haible  <bruno@clisp.org>
62272         * modules/openat (configure.ac): Remove unneeded witness.
62274 2009-09-06  Bruno Haible  <bruno@clisp.org>
62276         Set errno to ENOSYS when a function is entirely unsupported.
62277         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
62278         EOPNOTSUPP.
62279         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
62280         * modules/chown (Depends-on): Remove errno.
62282 2009-09-06  Bruno Haible  <bruno@clisp.org>
62284         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
62286 2009-09-06  Bruno Haible  <bruno@clisp.org>
62288         * lib/sys_stat.in.h: Fix preprocessor command indentation.
62290 2009-09-06  Ben Pfaff  <blp@gnu.org>
62291             Bruno Haible  <bruno@clisp.org>
62293         Work around a glibc bug in strtok_r.
62294         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
62295         Undefine if UNDEFINE_STRTOK_R is set.
62296         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
62297         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62298         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
62299         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
62300         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
62301         UNDEFINE_STRTOK_R.
62302         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
62304 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
62306         exclude: minor fix
62307         * lib/exclude.c: Include wctype.h
62309 2009-09-06  Akim Demaille  <demaille@gostai.com>
62311         bootstrap: improve error message
62312         * build-aux/bootstrap (find_tool): Upon failure, report the list
62313         of candidates.
62314         Honor the initial value of the envvar.
62316 2009-09-05  Eric Blake  <ebb9@byu.net>
62318         symlinkat: new module
62319         * modules/symlinkat: New file.
62320         * lib/symlinkat.c: Likewise.
62321         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
62322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
62323         * modules/unistd (Makefile.am): Use them.
62324         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
62325         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
62326         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
62327         * MODULES.html.sh (File system functions): Mention module.
62328         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
62329         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62330         * modules/symlinkat-tests: New test.
62331         * tests/test-symlinkat.c: Likewise.
62333         test-openat-safer: add more checks
62334         * tests/test-openat-safer.c (main): Check more code paths.
62336 2009-09-05  Jim Meyering  <meyering@redhat.com>
62338         syntax-check: detect unnecessary inclusion of openat.h
62339         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
62341 2009-09-05  Bruno Haible  <bruno@clisp.org>
62343         Support towlower, towupper.
62344         * doc/posix-functions/towlower.texi: Mention module wctype.
62345         * doc/posix-functions/towupper.texi: Likewise.
62346         * lib/wctype.in.h (towlower, towupper): New functions.
62347         * tests/test-wctype.c: Include stdio.h, stdlib.h.
62348         (ASSERT): New macro.
62349         (e): New variable.
62350         (main): Test also towlower, towupper. Test WEOF argument.
62351         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62353 2009-09-05  Bruno Haible  <bruno@clisp.org>
62355         Fix conversion behaviour when the input is invalid.
62356         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
62357         mark occurring in first pass of indirect conversion.
62358         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
62359         input.
62360         Found by clang's static analyzer.
62362 2009-09-05  Bruno Haible  <bruno@clisp.org>
62364         * tests/test-striconveh.c (main): Test indirect conversion on platforms
62365         where direct conversion is possible.
62367 2009-09-04  Eric Blake  <ebb9@byu.net>
62369         openat: fail with ENOENT on empty name
62370         * lib/openat-proc.c (openat_proc_name): Special-case the empty
62371         buffer.
62373         link-follow: fix logic bug in prior patch
62374         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
62375         reversed sense of yes and no in prior patch.  Avoid confusing
62376         compilation failure with desired semantics.
62378         link-follow: accommodate mingw and cross-compilation
62379         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
62380         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
62381         cross-compilation results to -1, to make linkat easier to
62382         implement when cross-compiling.  Trivially support mingw.
62383         * modules/link-follow (configure.ac): Call new name.
62384         * NEWS: Mention this.
62386 2009-09-03  Eric Blake  <ebb9@byu.net>
62388         faccessat: compile replacement
62389         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
62390         needed.
62392         fts: fix compilation error
62393         * lib/fts.c (includes): Re-add "openat.h", for
62394         openat_needs_fchdir.
62396         faccessat: new module
62397         * modules/faccessat: New file.
62398         * lib/faccessat.c: Likewise.
62399         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
62400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62401         * modules/unistd (Makefile.am): Use it.
62402         * lib/unistd.in.h (faccessat): Declare it.
62403         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
62404         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
62405         * MODULES.html.sh (File system functions): Mention it.
62406         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
62407         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
62409         euidaccess: prefer POSIX over non-standard implementation
62410         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
62411         * lib/euidaccess.c (euidaccess): Use it if available.
62413         openat: make template easier to use
62414         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
62415         AT_FUNC_F2 to be undefined.
62416         (VALIDATE_FLAG): New macro; use it to reject bad flags.
62417         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
62418         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
62419         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
62420         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
62421         Likewise.
62422         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
62423         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
62424         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
62425         Likewise.
62427         openat: declare in POSIX headers
62428         * NEWS: Mention this.
62429         * modules/openat (configure.ac): Declare witnesses.
62430         (Depends-on): Add fcntl-h, sys_stat, unistd.
62431         (Include): Mention correct headers.
62432         * modules/fcntl-h (Depends-on): Add link-warning.
62433         (Files): Add openat.m4.
62434         (Makefile.am): Substitute witnesses.
62435         * modules/sys_stat (Files, Makefile.am): Likewise.
62436         * modules/unistd (Files, Makefile.am): Likewise.
62437         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
62438         (gl_OPENAT_DEFAULTS): New macro.
62439         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
62440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
62441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
62442         (SYS_STAT_H): Remove unused variable.
62443         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
62444         * lib/fcntl--.h (includes): Remove unneeded header.
62445         * lib/openat-safer.c (includes): Likewise.
62446         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
62447         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
62448         appropriate headers.
62449         (__OPENAT_PREFIX): Delete.
62450         * lib/fcntl.in.h (openat): Provide declaration.
62451         (AT_FDCWD): Fix Solaris bug.
62452         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
62453         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
62454         * lib/fchmodat.c (includes):  Adjust to find declaration.
62455         * lib/fchownat.c (includes): Likewise.
62456         * lib/mkdirat.c (includes): Likewise.
62457         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
62458         still visible.
62460 2009-09-02  Eric Blake  <ebb9@byu.net>
62462         errno: use consistently
62463         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
62464         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
62465         * lib/canonicalize.c (ELOOP): Likewise.
62466         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
62467         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
62468         * lib/lchown.c (EOPNOTSUPP): Likewise.
62469         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
62470         * lib/savewd.c (ESTALE): Likewise.
62471         * lib/settime.c (ENOSYS): Likewise.
62472         * lib/utimens.c (ENOSYS): Likewise.
62473         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
62474         * lib/chdir-safer.c (ELOOP): Likewise.
62475         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
62476         * modules/c-stack (Depends-on): Add errno.
62477         * modules/canonicalize (Depends-on): Likewise.
62478         * modules/chdir-safer (Depends-on): Likewise.
62479         * modules/fdopendir (Depends-on): Likewise.
62480         * modules/inet_ntop (Depends-on): Likewise.
62481         * modules/inet_pton (Depends-on): Likewise.
62482         * modules/lchown (Depends-on): Likewise.
62483         * modules/openat (Depends-on): Likewise.
62484         * modules/savewd (Depends-on): Likewise.
62485         * modules/settime (Depends-on): Likewise.
62486         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
62488         fts: avoid leaking fds
62489         * modules/fts (Depends-on): Add cloexec.
62490         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
62491         flag.
62493         fts: make directory fds more robust
62494         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
62495         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
62497         backupfile, chdir-long, fts, savedir: make safer
62498         * lib/backupfile.c (includes): Use "dirent--.h", since
62499         numbered_backup can write to stderr during readdir.
62500         * lib/savedir.c (includes): Likewise.
62501         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
62502         emulation can write to stderr on failure.
62503         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
62504         * lib/getcwd.c: Document why opendir_safer is unused.
62505         * lib/glob.c: Likewise.
62506         * lib/scandir.c: Likewise.
62507         * lib/openat-proc.c: Likewise, for open_safer.
62508         * modules/backupfile (Depends-on): Add dirent-safer.
62509         * modules/savedir (Depends-on): Likewise.
62510         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
62511         * modules/chdir-long (Depends-on): Add openat-safer.
62513         openat-safer: new module
62514         * modules/openat-safer: New file.
62515         * lib/openat-safer.c: Likewise.
62516         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
62517         * lib/fcntl-safer.h (openat_safer): Declare.
62518         * lib/fcntl--.h (openat): Override.
62519         * MODULES.html.sh (File descriptor based I/O): Mention it.
62520         * lib/openat.h: Add double-inclusion guards.
62521         * lib/openat.c (includes): Only include "fcntl-safer.h", not
62522         "fcntl--.h", so we can implement openat.
62523         * modules/openat-safer-tests: New test.
62524         * tests/test-openat-safer.c: New file.
62526         dirent-safer: new module
62527         * modules/dirent-safer: New file.
62528         * lib/dirent--.h: Likewise.
62529         * lib/dirent-safer.h: Likewise.
62530         * lib/opendir-safer.c: Likewise.
62531         * m4/dirent-safer.m4: Likewise.
62532         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
62533         * modules/dirent-safer-tests: New test.
62534         * tests/test-dirent-safer.c: New file.
62535         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
62537         fdopendir: optimize on mingw
62538         * lib/unistd.in.h (_gl_directory_name): New prototype.
62539         * lib/fchdir.c (_gl_directory_name): Implement it.
62540         (fchdir): Use it to simplify implementation.
62541         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
62542         fchdir, when available, to avoid calling [f]chdir().
62544         fdopendir: split into its own module
62545         * lib/openat.c (fdopendir): Move...
62546         * lib/fdopendir.c: ...into new file.
62547         * modules/fdopendir: New module.
62548         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
62549         * modules/openat (Depends-on): Add fdopendir.
62550         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
62551         fdopendir here.
62552         * modules/savedir (Depends-on): Only need fdopendir, not full
62553         openat.
62554         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
62555         * lib/openat.h (fdopendir): Drop prototype.
62556         * lib/dirent.in.h (fdopendir): Provide prototype.
62557         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
62558         * modules/dirent (Makefile.am): Substitute them.
62559         * MODULES.html.sh (File system functions): Mention it.
62560         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
62561         * modules/fdopendir-tests: New file.
62562         * tests/test-fdopendir.c: Likewise.
62564         fchdir: use more consistent macro convention
62565         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
62566         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
62567         REPLACE_FCHDIR, rather than relying on config.h macros.
62568         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
62569         inside a single make-time REPLACE_FCHDIR block, rather than using
62570         the config.h FCHDIR_REPLACEMENT.
62571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
62572         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
62573         Manage fstat replacement.
62574         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
62575         REPLACE_FCHDIR.
62576         * modules/sys_stat (Files): Add m4/unistd_h.m4.
62577         (Makefile.am): Substitute REPLACE_FCHDIR.
62578         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
62579         FCHDIR_REPLACEMENT.
62580         * lib/dup-safer.c (dup_safer): Likewise.
62581         * lib/dup2.c (rpl_dup2): Likewise.
62582         * lib/dup3.c (rpl_dup3): Likewise.
62583         * lib/open.c (rpl_open): Likewise.
62585         fchdir: simplify error handling, and support dup3
62586         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
62587         stdbool, malloc-posix, realloc-posix.
62588         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
62589         (ensure_dirs_slot): Return false on allocation failure.
62590         (rpl_dup2): Delete.
62591         (_gl_register_dup): New function.
62592         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
62593         (_gl_register_fd): Close fd on allocation failure.
62594         * lib/fcntl.in.h (_gl_register_fd): Update signature.
62595         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
62596         prototype.
62597         (rpl_dup2_fchdir): Delete prototype.
62598         * lib/open.c (open): Update caller.
62599         * lib/dup2.c (dup2): Track fchdir metadata.
62600         * lib/dup3.c (dup3): Likewise.
62601         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
62602         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
62604 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62606         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
62607         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
62608         don't pass arguments to AC_OUTPUT.
62610 2009-09-02  Bruno Haible  <bruno@clisp.org>
62612         * modules/mkdtemp (License): Relicense under LGPLv2+.
62613         Reported by Paolo Bonzini.
62615 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62617         Replace uses of obsolete autoconf macros in Jim's modules.
62618         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
62619         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
62620         can evoke a warning from autoconf when run with -Wobsolete
62621         enabled.  They were declared obsolete for good reasons (see
62622         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
62623         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
62624         should not continue using the deprecated macros.
62625         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
62626         obsolete Autoconf macros with modern counterparts.
62627         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62628         * m4/dos.m4 (gl_AC_DOS): Likewise.
62629         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
62630         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62631         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
62632         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
62633         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
62634         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
62635         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
62636         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
62637         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62638         Likewise.
62639         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62640         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62641         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
62642         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
62643         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62644         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62646 2009-09-01  Eric Blake  <ebb9@byu.net>
62648         fchdir: fix off-by-one bug in previous patch
62649         * lib/fchdir.c (rpl_fstat): Use correct bounds.
62650         (_gl_unregister_fd): Delete useless if.
62652 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
62654         maint.mk: sort the list of syntax-check rules
62655         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
62656         easier to get a sense of progress when the rules are run sequentially
62657         and take a long time.
62659 2009-09-01  Simon Josefsson  <simon@josefsson.org>
62661         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
62662         * modules/netinet_in: Likewise.
62663         * modules/sys_file: Likewise.
62664         * modules/sys_ioctl: Likewise.
62665         * modules/sys_select: Likewise.
62666         * modules/sys_socket: Likewise.
62667         * modules/sys_stat: Likewise.
62668         * modules/sys_time: Likewise.
62669         * modules/sys_times: Likewise.
62670         * modules/sys_utsname: Likewise.
62671         * modules/sys_wait: Likewise.
62673 2009-09-01  Jim Meyering  <meyering@redhat.com>
62675         fts: help ensure that return values are not ignored
62676         * lib/fts_.h (__GNUC_PREREQ): Define.
62677         (__attribute_warn_unused_result__): Define.
62678         (fts_children, fts_close, fts_open, fts_read): Declare with
62679         __attribute_warn_unused_result__.
62681         fts: fts_close now fails also when closing a dir file descriptor fails
62682         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
62683         and propagate to caller, along with errno.
62685         announce-gen: correct formatting in --help output
62686         * build-aux/announce-gen (usage): Move the one-line description in
62687         --help output "up", to where it belongs, just after Usage:.
62689 2009-08-31  Eric Blake  <ebb9@byu.net>
62691         fchdir: port to mingw
62692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
62693         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
62694         opened, then use a substitute.
62695         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
62696         replacement.
62697         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
62698         (_gl_register_fd): No need to check stat if open already filters
62699         all directories.
62700         (fchdir): Fix error condition to match POSIX.
62701         * modules/fchdir (Depends-on): Add sys_stat.
62702         * doc/posix-functions/open.texi (open): Document the limitation.
62703         * modules/fchdir-tests: New file.
62704         * tests/test-fchdir.c: Likewise.
62706         canonicalize: allow cross-testing from cygwin to mingw
62707         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
62708         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
62709         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
62710         Likewise.
62711         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
62712         target does not support symlinks.
62713         * tests/test-canonicalize-lgpl.sh: Likewise.
62715         chown: avoid compilation warning on mingw
62716         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
62717         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
62718         mingw.
62719         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
62720         * modules/chown (Depends-on): Add errno.
62722 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
62724         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
62725         command.
62727 2009-08-31  Jim Meyering  <meyering@redhat.com>
62729         canonicalize: remove useless initialization
62730         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
62731         initialization of local, "end".
62733 2009-08-30  Bruno Haible  <bruno@clisp.org>
62735         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
62736         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
62737         ENOSYS.
62739 2009-08-30  Bruno Haible  <bruno@clisp.org>
62741         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
62742         /usr/xpg4/bin/tr when it exists.
62743         * tests/test-pipe-filter-gi1.sh: Likewise.
62745 2009-08-30  Bruno Haible  <bruno@clisp.org>
62747         Work around deficient /usr/bin/id program on Solaris.
62748         * tests/test-file-has-acl.sh (ID): New variable.
62749         * tests/test-set-mode-acl.sh (ID): Likewise.
62750         * tests/test-copy-acl.sh (ID): Likewise.
62751         * tests/test-copy-file.sh (ID): Likewise.
62753 2009-08-30  Bruno Haible  <bruno@clisp.org>
62755         New module 'xstriconveh'.
62756         * lib/xstriconveh.h: New file.
62757         * lib/xstriconveh.c: New file.
62758         * modules/xstriconveh: New file.
62760 2009-08-30  Bruno Haible  <bruno@clisp.org>
62762         Make it easier to use mem_cd_iconveh.
62763         * lib/striconveh.h (iconveh_t): New type.
62764         (iconveh_open, iconveh_close): New declarations.
62765         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
62766         with a single 'const iconveh_t *' argument.
62767         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
62768         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
62769         with a single 'const iconveh_t *' argument.
62770         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
62771         * tests/test-striconveh.c (main): Update.
62772         * NEWS: Mention the change.
62774 2009-08-30  Bruno Haible  <bruno@clisp.org>
62776         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
62777         problem.
62779 2009-08-30  Bruno Haible  <bruno@clisp.org>
62781         Work around iconv_open problem on Solaris.
62782         * lib/iconv_open-solaris.gperf: New file.
62783         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
62784         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
62785         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
62786         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
62787         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
62788         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
62790 2009-08-29  Jim Meyering  <meyering@redhat.com>
62792         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
62793         * top/maint.mk (cvs-check): Remove target; it was just an alias
62794         to the better-named vc-diff-check.
62795         (maintainer-distcheck): Remove rule.  It was used only from
62796         the (alpha/beta/major) target, and all of its commands but one
62797         were coreutils-specific.
62798         (vc-dist): Remove rule.
62799         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
62800         Run vc-diff-check, not vc-dist.
62801         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
62803 2009-08-27  Bruno Haible  <bruno@clisp.org>
62805         * tests/test-bitrotate.c (main): Remove test that uses a shift count
62806         of 0.
62808 2009-08-27  Bruno Haible  <bruno@clisp.org>
62810         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
62811         compilers.
62812         * doc/func.texi: Document the SunPRO C bug.
62814 2009-08-27  Bruno Haible  <bruno@clisp.org>
62816         Fix link error on Solaris.
62817         * tests/test-parse-duration.c (xstrdup): Remove function.
62819 2009-08-26  Pádraig Brady  <P@draigbrady.com>
62821         ignore-value: handle pointer types, too
62822         * lib/ignore-value.h (__attribute__): Remove definition.
62823         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
62824         of a more concise and more-often effective "(void) i" statement.
62825         (ignore_ptr): New function to suppress warnings from functions that
62826         return pointers, and to make it explicit that one function doesn't
62827         handle all cases.
62829 2009-08-25  Bruno Haible  <bruno@clisp.org>
62831         dup2: work around a Linux bug.
62832         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
62833         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
62834         * doc/posix-functions/dup2.texi: Mention the Linux bug.
62835         Reported by Simon Josefsson.
62837 2009-08-25  Jim Meyering  <meyering@redhat.com>
62839         libguestfs uses gnulib
62840         * users.txt: Add libguestfs.
62842 2009-08-24  Eric Blake  <ebb9@byu.net>
62844         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
62845         * lib/pipe2.c (includes): Add binary-io.h.
62846         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
62848 2009-08-24  Bruno Haible  <bruno@clisp.org>
62850         Tolerate declared but missing accept4 syscall.
62851         * lib/accept4.c (accept4): Invoke original accept4 function first, if
62852         available.
62853         * lib/sys_socket.in.h (accept4): If the function is already present,
62854         override it.
62855         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
62856         * modules/accept4 (Makefile.am): Compile accept4.c always.
62857         Reported by Paolo Bonzini and Eric Blake.
62859 2009-08-23  Bruno Haible  <bruno@clisp.org>
62861         New module 'accept4'.
62862         * lib/sys_socket.in.h (accept4): New declaration.
62863         * lib/accept4.c: New file.
62864         * m4/accept4.m4: New file.
62865         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62866         GNULIB_ACCEPT4, HAVE_ACCEPT4.
62867         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
62868         HAVE_ACCEPT4.
62869         * modules/accept4: New file.
62870         * doc/glibc-functions/accept4.texi: Mention the new module.
62872 2009-08-24  Jim Meyering  <meyering@redhat.com>
62874         progname: also set global program_invocation_name, when possible
62875         Before this change, a libtool-enabled program that calls glibc's
62876         error function would report the program name as
62877         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
62878         * modules/progname (configure.ac): Check for a declaration of
62879         program_invocation_name.
62880         * lib/progname.c:  Include <errno.h>.
62881         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
62882         Set program_invocation_name.
62884 2009-08-23  Bruno Haible  <bruno@clisp.org>
62886         * lib/dup3.c: Include <string.h>.
62888 2009-08-23  Bruno Haible  <bruno@clisp.org>
62890         * lib/dup3.c (dup3): Test only once whether the system actually exists.
62891         * lib/pipe2.c (pipe2): Likewise.
62892         Suggested by Eric Blake.
62894 2009-08-23  Bruno Haible  <bruno@clisp.org>
62896         Tolerate declared but missing dup3 syscall.
62897         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
62898         * lib/unistd.in.h (dup3): If the function is already present,
62899         override it.
62900         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
62901         * modules/dup3 (Makefile.am): Compile dup3.c always.
62902         Reported by Paolo Bonzini.
62904 2009-08-23  Bruno Haible  <bruno@clisp.org>
62906         Tolerate declared but missing pipe2 syscall.
62907         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
62908         available.
62909         * lib/unistd.in.h (pipe2): If the function is already present,
62910         override it.
62911         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
62912         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
62913         Reported by Paolo Bonzini.
62915 2009-08-23  Bruno Haible  <bruno@clisp.org>
62917         * lib/pipe2.c (pipe2): Move #ifs inside function.
62919 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62921         quotearg: document limitations of quote_these_too
62922         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
62923         those limitations are created.
62924         * lib/quotearg.h (set_char_quoting): Document that digits and
62925         letters that are special after backslash are not permitted.
62926         (quotearg_char): Cross-reference set_char_quoting documentation.
62928 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
62930         quotearg: implement custom_quoting_style
62931         * lib/quotearg.c: (struct quoting_options): Add left_quote and
62932         right_quote fields.
62933         (set_custom_quoting): New public function.
62934         (quotearg_buffer_restyled): Add left_quote and right_quote
62935         arguments, handle them very much like locale quoting, and update
62936         all uses.
62937         (quotearg_n_custom): New public function.
62938         (quotearg_n_custom_mem): New public function.
62939         (quotearg_custom): New public function.
62940         (quotearg_custom_mem): New public function.
62941         * lib/quotearg.h: Prototype and document new public functions.
62942         (enum quoting_style): For escape_quoting_style and
62943         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
62944         ignored even though they're otherwise like c_quoting_style.
62945         Add custom_quoting_style member and document with comparison to
62946         clocale_quoting_style.
62947         * tests/test-quotearg.c (custom_quotes): New array.
62948         (custom_results): New array.
62949         (main): Extend to test custom quoting.
62951 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62953         quotearg: fix right quote escaping when it's in quote_these_too
62954         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
62955         quote, be sure to prepend only one backslash.
62956         * tests/test-quotearg.c (use_quote_double_quotes): New function.
62957         (main): Test it.
62959 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
62961         quotearg-tests: test escaping of embedded locale quotes
62962         * tests/test-quotearg.c (struct result_strings): Add member for
62963         new input.
62964         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
62965         (inputs): Add new input.
62966         (results_g): Add expected results.
62967         (flag_results): Likewise.
62968         (locale_results): Likewise.
62969         (compare_strings): Check those.
62971 2009-08-23  Bruno Haible  <bruno@clisp.org>
62973         Tests for module 'dup3'.
62974         * modules/dup3-tests: New file.
62975         * tests/test-dup3.c: New file.
62977         New module 'dup3'.
62978         * lib/unistd.in.h (dup3): New declaration.
62979         * lib/dup3.c: New file.
62980         * m4/dup3.m4: New file.
62981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
62982         HAVE_DUP3.
62983         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
62984         * modules/dup3: New file.
62985         * doc/glibc-functions/dup3.texi: Mention the new module.
62987 2009-08-23  Bruno Haible  <bruno@clisp.org>
62989         Tweak the dup2 test.
62990         * tests/test-dup2.c (main): Create the test file empty. Verify that an
62991         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
62992         the test file is still empty. Fix argument order of lseek.
62994 2009-08-23  Bruno Haible  <bruno@clisp.org>
62996         Avoid test link errors when the modules getopt-gnu, gettext are used.
62997         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
62998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63000 2009-08-23  Bruno Haible  <bruno@clisp.org>
63002         Fix getdtablesize() on mingw.
63003         * lib/getdtablesize.c (getdtablesize): Implement differently.
63004         * lib/unistd.in.h (getdtablesize): Improve comment.
63006 2009-08-23  Bruno Haible  <bruno@clisp.org>
63008         New module 'mkostemp'.
63009         Based on Ulrich Drepper's 2007-08-10 change in glibc.
63010         * lib/stdlib.in.h (mksotemp): New declaration.
63011         * lib/mkostemp.c: New file, from glibc with modifications.
63012         * lib/tempname.h (GT_FILE): Remove outdated comment.
63013         (gen_tempname): Add flags argument.
63014         * lib/tempname.c (__GT_BIGFILE): Remove macro.
63015         (__GT_FILE): Map to 1.
63016         (small_open, large_open): Remove macros.
63017         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
63018         * lib/mkstemp.c (mkstemp): Update.
63019         * lib/mkdtemp.c (mkdtemp): Likewise.
63020         * m4/mkostemp.m4: New file.
63021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
63022         HAVE_MKOSTEMP.
63023         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
63024         HAVE_MKOSTEMP.
63025         * modules/mkostemp: New file, based on modules/mkstemp.
63026         * doc/glibc-functions/mkostemp.texi: Mention the new module.
63027         * NEWS: Mention the change.
63029 2009-08-23  Bruno Haible  <bruno@clisp.org>
63031         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
63032         Reported by Eric Blake.
63034 2009-08-23  Bruno Haible  <bruno@clisp.org>
63036         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
63037         Reported by Eric Blake.
63039 2009-08-23  Bruno Haible  <bruno@clisp.org>
63041         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
63042         * modules/pipe2 (Depends-on): Likewise.
63044 2009-08-23  Eric Blake  <ebb9@byu.net>
63046         fcntl-h: add O_TTY_INIT support
63047         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
63048         * tests/test-fcntl-h.c (o): Test it.
63049         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
63051         fcntl-h: rename from fcntl, in preparation for fcntl(2)
63052         * modules/fcntl: Move <fcntl.h> header replacement...
63053         * modules/fcntl-h: ...to new name, so as not to collide with
63054         like-named function.
63055         * tests/test-fcntl.c: Rename...
63056         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
63057         * modules/fcntl-tests: Rename...
63058         * modules/fcntl-h-tests: ...to this.  Update test file name.
63059         * modules/chdir-long (Depends-on): Update clients.
63060         * modules/chdir-safer (Depends-on): Likewise.
63061         * modules/fcntl-safer (Depends-on): Likewise.
63062         * modules/fts (Depends-on): Likewise.
63063         * modules/mkancesdirs (Depends-on): Likewise.
63064         * modules/mkdir-p (Depends-on): Likewise.
63065         * modules/open (Depends-on): Likewise.
63066         * modules/savewd (Depends-on): Likewise.
63067         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
63068         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
63070 2009-08-22  Bruno Haible  <bruno@clisp.org>
63072         * modules/binary-io (License): Relicense under LGPL.
63073         * modules/pipe2 (License): Likewise.
63075 2009-08-22  Bruno Haible  <bruno@clisp.org>
63077         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
63078         return value.
63079         * lib/pipe-filter-gi.c (filter_init): Likewise.
63080         Reported by Eric Blake.
63082 2009-08-22  Bruno Haible  <bruno@clisp.org>
63084         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
63085         * modules/pipe (Depends-on): Add pipe2.
63087 2009-08-22  Bruno Haible  <bruno@clisp.org>
63089         Tests for module 'pipe2'.
63090         * modules/pipe2-tests: New file.
63091         * tests/test-pipe2.c: New file.
63093         New module 'pipe2'.
63094         * lib/unistd.in.h (pipe2): New declaration.
63095         * lib/pipe2.c: New file.
63096         * m4/pipe2.m4: New file.
63097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
63098         HAVE_PIPE2.
63099         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
63100         * modules/pipe2: New file.
63101         * doc/glibc-functions/pipe2.texi: Mention the new module.
63103 2009-08-22  Bruno Haible  <bruno@clisp.org>
63105         Reference some new glibc functions.
63106         * doc/glibc-functions/accept4.texi: New file.
63107         * doc/glibc-functions/dup3.texi: New file.
63108         * doc/glibc-functions/mkostemp.texi: New file.
63109         * doc/glibc-functions/pipe2.texi: New file.
63110         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
63111         (Glibc sys/socket.h): Refer to accept4.
63112         (Glibc unistd.h): Refer to dup3, pipe2.
63113         Reported by Eric Blake.
63115 2009-08-22  Jim Meyering  <meyering@redhat.com>
63116             Bruno Haible  <bruno@clisp.org>
63118         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
63119         This makes it so packages using automake-1.11's silent-rules option
63120         can print e.g., a single "GEN    configmake.h" line, rather than
63121         the 30+ statements that perform the job.  If you want to see the
63122         actual commands, you can still run "make V=1".
63123         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
63124         so that make output is abbreviated when those variables are defined
63125         appropriately.
63126         * modules/argz: Likewise.
63127         * modules/arpa_inet: Likewise.
63128         * modules/byteswap: Likewise.
63129         * modules/configmake: Likewise.
63130         * modules/dirent: Likewise.
63131         * modules/errno: Likewise.
63132         * modules/fcntl: Likewise.
63133         * modules/float: Likewise.
63134         * modules/fnmatch: Likewise.
63135         * modules/getopt-posix: Likewise.
63136         * modules/glob: Likewise.
63137         * modules/iconv_open: Likewise.
63138         * modules/inttypes: Likewise.
63139         * modules/localcharset: Likewise.
63140         * modules/locale: Likewise.
63141         * modules/math: Likewise.
63142         * modules/netdb: Likewise.
63143         * modules/netinet_in: Likewise.
63144         * modules/poll: Likewise.
63145         * modules/posix_spawnp-tests: Likewise.
63146         * modules/sched: Likewise.
63147         * modules/search: Likewise.
63148         * modules/selinux-h: Likewise.
63149         * modules/signal: Likewise.
63150         * modules/spawn: Likewise.
63151         * modules/stdarg: Likewise.
63152         * modules/stdbool: Likewise.
63153         * modules/stddef: Likewise.
63154         * modules/stdint: Likewise.
63155         * modules/stdio: Likewise.
63156         * modules/stdlib: Likewise.
63157         * modules/string: Likewise.
63158         * modules/strings: Likewise.
63159         * modules/sys_file: Likewise.
63160         * modules/sys_ioctl: Likewise.
63161         * modules/sys_select: Likewise.
63162         * modules/sys_socket: Likewise.
63163         * modules/sys_stat: Likewise.
63164         * modules/sys_time: Likewise.
63165         * modules/sys_times: Likewise.
63166         * modules/sys_utsname: Likewise.
63167         * modules/sys_wait: Likewise.
63168         * modules/sysexits: Likewise.
63169         * modules/time: Likewise.
63170         * modules/unistd: Likewise.
63171         * modules/wchar: Likewise.
63172         * modules/wctype: Likewise.
63174 2009-08-22  Jim Meyering  <meyering@redhat.com>
63176         announce-gen: detect write failure
63177         * build-aux/announce-gen: Add Coda at end.
63178         Remove equivalent-but-more-verbose block at top.
63180 2009-08-19  Akim Demaille  <demaille@gostai.com>
63182         bootstrap: --help to stdout.
63183         * bootstrap (usage): Don't send --help to stderr.
63184         Use a here doc instead of a long string.
63186 2009-08-21  Eric Blake  <ebb9@byu.net>
63188         test-popen-safer: split from test-popen
63189         * tests/test-popen.c (main): Move...
63190         * tests/test-popen.h: ...into new file.
63191         * tests/test-popen-safer2.c: New file.
63192         * modules/popen-tests (Files): Add test-popen.h.
63193         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
63194         Suggested by Bruno Haible.
63196         test-fcntl-safer: split from test-open
63197         * tests/test-open.c (main): Move...
63198         * tests/test-open.h: ...into new file.
63199         * tests/test-fcntl-safer.c: New file.
63200         * modules/open-tests (Files): Add test-open.h.
63201         * modules/fcntl-safer-tests: New file.
63202         Suggested by Bruno Haible.
63204         test-fopen-safer: split from test-fopen
63205         * tests/test-fopen.c (main): Move...
63206         * tests/test-fopen.h: ...into new file.
63207         * tests/test-fopen-safer.c: New file.
63208         * modules/fopen-tests (Files): Add test-fopen.h.
63209         * modules/fopen-safer-tests: New file.
63210         Suggested by Bruno Haible.
63212 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
63214         popen-safer: test O_CLOEXEC at run-time.
63215         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
63217 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
63219         fcntl: move more flags to the header
63220         * lib/cloexec.c: Do not define FD_CLOEXEC here.
63221         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
63222         * lib/fcntl.in.h: Do both things here.
63224 2009-08-21  Jim Meyering  <meyering@redhat.com>
63226         consistently remove $@-t before redirecting to it
63227         * modules/argz: Remove $@-t and $@ before redirecting to the former.
63228         * modules/alloca-opt: Likewise.
63229         * modules/byteswap: Likewise.
63230         * modules/fnmatch: Likewise.
63231         * modules/getopt-posix: Likewise.
63232         * modules/glob: Likewise.
63233         * modules/poll: Likewise.
63234         * modules/posix_spawnp-tests: Likewise.
63235         * modules/sys_socket: Likewise.
63236         * modules/sysexits: Likewise.
63238 2009-08-21  Eric Blake  <ebb9@byu.net>
63240         popen: simplify access to original popen
63241         * lib/popen.c (rpl_popen): No need to worry about popen being a
63242         macro.
63243         Reported by Bruno Haible.
63245 2009-08-20  Eric Blake  <ebb9@byu.net>
63247         build: avoid some compiler warnings
63248         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
63249         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
63250         type.
63251         (new_exclude_segment, excluded_file_pattern_p)
63252         (excluded_file_name_p): Reduce scope.
63253         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
63254         old-style declaration.
63256 2009-08-20  Simon Josefsson  <simon@josefsson.org>
63258         * tests/test-exclude1.sh: Handle Windows EOL.
63259         * tests/test-exclude2.sh: Likewise.
63260         * tests/test-exclude3.sh: Likewise.
63261         * tests/test-exclude4.sh: Likewise.
63262         * tests/test-exclude5.sh: Likewise.
63263         * tests/test-exclude6.sh: Likewise.
63264         * tests/test-exclude7.sh: Likewise.
63266 2009-08-19  Akim Demaille  <demaille@gostai.com>
63268         bootstrap: find sha1sum when named gsha1sum.
63269         * bootstrap (find_tool): New.
63270         ($SHA1SUM): New.
63271         Use it.
63273 2009-08-20  Jim Meyering  <meyering@redhat.com>
63275         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
63276         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
63277         expression that converts "." in a file name to "\." in the resulting
63278         regexp.  Start with a dummy statement, so that prior shell variable
63279         definitions are expanded portably.  Reported by Simon Josefsson.
63281 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
63283         Fix polling for writeability of a screen buffer.
63284         * lib/poll.c: Distinguish input and screen buffers for the
63285         Win32 implementation.
63286         * lib/select.c: Likewise.
63288 2009-08-19  Eric Blake  <ebb9@byu.net>
63290         popen-safer: prevent popen from clobbering std descriptors
63291         * modules/popen-safer: New file.
63292         * lib/popen-safer.c: Likewise.
63293         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
63294         * lib/stdio--.h (popen): Provide override.
63295         * lib/stdio-safer.h (popen_safer): Provide declaration.
63296         * tests/test-popen.c (includes): Partially test this.
63297         * modules/popen-safer-tests: New file, for more tests.
63298         * tests/test-popen-safer.c: Likewise.
63299         * MODULES.html.sh (file stream based Input/Output): Mention it.
63301         tests: test some of the *-safer modules
63302         * modules/fopen-safer (Depends-on): Add fopen.
63303         * modules/fcntl-safer (Depends-on): Add fcntl.
63304         * modules/stdlib-safer (Depends-on): Add stdlib.
63305         (configure.ac): Set indicator.
63306         * modules/unistd-safer (configure.ac): Likewise.
63307         * modules/tmpfile-safer (configure.ac): Likewise.
63308         (Depends-on): Add tmpfile.
63309         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
63310         active.
63311         * tests/test-fopen.c (includes): Test safer versions when they are
63312         in use.
63313         * tests/test-open.c (includes): Likewise.
63315         popen: fix cygwin 1.5 bug when stdin closed
63316         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
63317         * modules/popen: New file.
63318         * modules/popen-tests: Likewise.
63319         * tests/test-popen.c: Likewise.
63320         * m4/popen.m4: Likewise.
63321         * lib/popen.c: Likewise.
63322         * lib/stdio.in.h (popen): New declaration.
63323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
63324         * modules/stdio (Makefile.am): Likewise.
63325         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
63327 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
63329         maint.mk: give full control over update-copyright exclusions
63330         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
63331         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
63332         (update-copyright): Don't force inclusion of top-level
63333         ChangeLog.  Don't force exclusion of all COPYING files, but make
63334         them the default exclusion instead.
63336 2009-08-16  Bruno Haible  <bruno@clisp.org>
63338         Fix test failures on Solaris 10.
63339         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
63340         tests when Solaris iconv() is used.
63341         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63342         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63343         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63344         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63345         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63347 2009-08-16  Bruno Haible  <bruno@clisp.org>
63349         Fix test failures on Solaris 10.
63350         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
63351         'tr' program and pass it as first argument.
63352         * tests/test-pipe-filter-gi1.sh: Likewise.
63353         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
63354         program as first argument.
63355         * tests/test-pipe-filter-gi1.c (main): Likewise.
63357 2009-08-16  Eric Blake  <ebb9@byu.net>
63359         fpurge: fix previous commits
63360         * modules/fpurge (Makefile.am): Make replacement conditional,
63361         partially reverting 2007-04-29 change; missed in previous
63362         attempt.
63363         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
63364         is missing.
63366 2009-08-16  Bruno Haible  <bruno@clisp.org>
63368         Clarify fpurge's effect on the file position.
63369         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
63370         * tests/test-fpurge.c (main): Make a second pass for checking the file
63371         position.
63373 2009-08-16  Bruno Haible  <bruno@clisp.org>
63375         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
63376         declaration of fpurge is missing.
63377         * tests/test-fpurge.c (main): Check that the file has not more contents
63378         than expected. Close the file before removing it.
63380 2009-08-15  Eric Blake  <ebb9@byu.net>
63382         fpurge: don't wrap working cygwin implementation
63383         * lib/fpurge.c (fpurge): Fix comment typo.
63384         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
63385         1.7 to avoid replacement.
63386         * tests/test-fpurge.c (main): Enhance test.
63388 2009-08-15  Eric Blake  <ebb9@byu.net>
63389         and Jim Meyering  <meyering@redhat.com>
63391         test-update-copyright: skip if perl is insufficient
63392         * tests/test-update-copyright.sh: Failure to run maintainer tool
63393         should not cause testsuite failure on cygwin 1.5.
63395 2009-08-14  Eric Blake  <ebb9@byu.net>
63397         doc: mention more functions added in cygwin 1.7.0
63398         * doc/posix-headers/limits.texi (limits.h): Update for recent
63399         cygwin additions.
63400         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
63401         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
63402         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
63403         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
63404         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
63406 2009-08-14  Eric Blake  <ebb9@byu.net>
63408         maint.mk: simplify update-copyright rule
63409         * top/maint.mk (update-copyright-local): Delete, and document how
63410         to do it in cfg.mk instead.
63411         (update-copyright-exclude-regexp): Delete, and document how to do
63412         it in .x-update-copyright instead.
63413         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
63414         exclude ChangeLog.
63416 2009-08-14  Bruno Haible  <bruno@clisp.org>
63418         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
63420 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63422         maint.mk: support update-copyright-env
63423         * top/maint.mk (update-copyright-env): Define place-holder.
63424         (update-copyright): Expand $(update-copyright-env) before
63425         invoking update-copyright.
63427 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63429         update-copyright: implement forced reformatting
63430         * build-aux/update-copyright: Implement and document
63431         UPDATE_COPYRIGHT_FORCE.
63432         * tests/test-update-copyright.sh: Test it.
63434 2009-08-14  Eric Blake  <ebb9@byu.net>
63435         and Bruno Haible  <bruno@clisp.org>
63437         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
63438         * tests/test-locale.c: Revert previous patch related to NULL.
63439         * tests/test-stdio.c: Likewise.
63440         * tests/test-stdlib.c: Likewise.
63441         * tests/test-string.c: Likewise.
63442         * tests/test-unistd.c: Likewise.
63443         * modules/time-tests (Depends-on): Add verify.
63444         * modules/wchar-tests (Depends-on): Likewise.
63445         * tests/test-time.c: Test for NULL compliance.
63446         * tests/test-wchar.c: Likewise.
63447         * modules/locale (Depends-on): Add stddef.
63448         * modules/stdio (Depends-on): Likewise.
63449         * modules/stdlib (Depends-on): Likewise.
63450         * modules/string (Depends-on): Likewise.
63451         * modules/time (Depends-on): Likewise.
63452         * modules/unistd (Depends-on): Likewise.
63453         * modules/wchar (Depends-on): Likewise.
63454         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
63455         * lib/stdlib.in.h (includes): Likewise.
63456         * lib/string.in.h (includes): Likewise.
63457         * lib/time.in.h (includes): Likewise.
63458         * lib/unistd.in.h (includes): Likewise.
63459         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
63460         replaced.
63461         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63462         * m4/stddef_h.m4: New file.
63463         * modules/stddef: Likewise.
63464         * lib/stddef.in.h: Likewise.
63465         * modules/stddef-tests: Likewise.
63466         * tests/test-stddef.c: Likewise.
63467         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
63468         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
63469         * doc/posix-headers/locale.texi (locale.h): Likewise.
63470         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
63471         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63472         * doc/posix-headers/string.texi (string.h): Likewise.
63473         * doc/posix-headers/time.texi (time.h): Likewise.
63474         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
63475         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
63477 2009-08-14  Eric Blake  <ebb9@byu.net>
63479         doc: improve git diff of texinfo files
63480         * .gitattributes: Add rule for *.texi files, with hint on how to
63481         use it.
63482         Copied from m4, and based on a report by Bruno Haible.
63484 2009-08-14  Bruno Haible  <bruno@clisp.org>
63486         Disable multithread support by default on Cygwin 1.5.x for real.
63487         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
63489 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63491         update-copyright: much ado about intervals
63492         * build-aux/update-copyright: Implement and document
63493         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
63494         of copyright year intervals.
63495         Also, document UPDATE_COPYRIGHT_YEAR.
63496         * tests/test-update-copyright.sh: Test it.
63498         update-copyright: convert 2-digit to 4-digit years
63499         * build-aux/update-copyright: Implement and document.
63500         * tests/test-update-copyright.sh: Update.
63502 2009-08-14  Jim Meyering  <meyering@redhat.com>
63504         test-exclude: avoid coreutils "make check" failure
63505         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
63506         just as in test-argmatch.c.
63508 2009-08-13  Eric Blake  <ebb9@byu.net>
63510         test-dup2: fix bad assumption
63511         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
63512         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
63514         test-version-etc: fix CRLF portability issue
63515         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
63516         recognize \r.
63517         * tests/test-argp-version-etc-1.sh: Likewise.
63519         getopt: update client modules
63520         * modules/argp (Depends-on): Use getopt-gnu.
63521         * modules/git-merge-changelog (Depends-on): Likewise.
63522         * modules/long-options (Depends-on): Likewise.
63523         * modules/xstrtol (Depends-on): Likewise.
63525 2009-08-13  Simon Josefsson  <simon@josefsson.org>
63527         * tests/test-version-etc.sh: Don't fail on different
63528         project/version.  Don't fail on CRLF differences.  Rewrite to use
63529         multiple -e instead of multiple sed forks, suggested by Eric Blake
63530         <ebb9@byu.net>.
63531         * tests/test-argp-version-etc-1.sh: Likewise.
63533 2009-08-13  Simon Josefsson  <simon@josefsson.org>
63535         * tests/test-version-etc.sh: Don't fail on different
63536         project/version.
63538 2009-08-12  Bruno Haible  <bruno@clisp.org>
63540         Tests for modules 'getopt-posix', 'getopt-gnu'.
63541         * modules/getopt-posix-tests: New file.
63542         * tests/test-getopt.c: New file.
63543         * tests/test-getopt.h: New file.
63544         * tests/test-getopt_long.h: New file.
63546         New modules 'getopt-posix', 'getopt-gnu'.
63547         * modules/getopt-gnu: New file, renamed from modules/getopt.
63548         * modules/getopt-posix: New file.
63549         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
63550         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
63551         (gl_GETOPT): Remove macro.
63552         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
63553         Disable the test against BSD systems that declare optreset. Test
63554         against mingw bug. Test against lack of support of optional arguments
63555         on many platforms.
63556         * doc/glibc-headers/getopt.texi: Update module name and list of
63557         relevant platforms.
63558         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
63559         'getopt-gnu' and more portability problems.
63560         * NEWS: Mention the changes.
63562 2009-08-12  Bruno Haible  <bruno@clisp.org>
63564         Ensure that optarg etc. get declared by <unistd.h>.
63565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
63566         AC_USE_SYSTEM_EXTENSIONS.
63567         * modules/getopt (Depends-on): Add 'extensions'.
63569 2009-08-12  Bruno Haible  <bruno@clisp.org>
63571         Avoid test link errors.
63572         * modules/pipe-filter-ii-tests (Makefile.am): Define
63573         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
63574         * modules/pipe-filter-gi-tests (Makefile.am): Define
63575         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
63576         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63578 2009-08-12  Bruno Haible  <bruno@clisp.org>
63580         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
63581         gl_GETOPT_SUBSTITUTE before.
63582         (gl_GETOPT): Use it.
63583         * m4/argp.m4 (gl_ARGP): Update.
63584         Reported by Sergey Poznyakoff.
63586         * m4/getopt.m4: Reorder macros.
63587         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
63588         (gl_GETOPT_SUBSTITUTE): Remove macro.
63590 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63592         Minor improvement in gitlog-to-changelog
63594         * build-aux/gitlog-to-changelog: New option `--format' makes
63595         output format string configurable.
63597 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63599         Optimize exclude: use hash tables for non-wildcard patterns.
63601         * lib/exclude.c: Include hash.h and mbuiter.h
63602         (struct exclude_pattern, exclude_segment): New data types.
63603         (struct exclude): Rewrite.
63604         (fnmatch_pattern_has_wildcards): New function.
63605         (new_exclude_segment, free_exclude_segment): New functions.
63606         (excluded_file_pattern_p, excluded_file_name_p): New functions.
63607         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
63608         * lib/exclude.h (is_fnmatch_pattern): New prototype.
63609         * modules/exclude: Depend on hash and mbuiter.
63611         * modules/exclude-tests: New file.
63612         * tests/test-exclude.c: New file.
63613         * tests/test-exclude1.sh: New file.
63614         * tests/test-exclude2.sh: New file.
63615         * tests/test-exclude3.sh: New file.
63616         * tests/test-exclude4.sh: New file.
63617         * tests/test-exclude5.sh: New file.
63618         * tests/test-exclude6.sh: New file.
63619         * tests/test-exclude7.sh: New file.
63621 2009-08-12  Bruno Haible  <bruno@clisp.org>
63623         Ensure that getopt() gets declared by <unistd.h>.
63624         * lib/unistd.in.h: Conditionally include getopt.h.
63625         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
63626         Set GNULIB_UNISTD_H_GETOPT.
63627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63628         GNULIB_UNISTD_H_GETOPT.
63629         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
63631 2009-08-12  Bruno Haible  <bruno@clisp.org>
63633         Clarify logic.
63634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
63635         gl_replace_getopt instead of GETOPT_H.
63637 2009-08-12  Bruno Haible  <bruno@clisp.org>
63639         * m4/getopt.m4: Add comments.
63641 2009-08-12  Bruno Haible  <bruno@clisp.org>
63643         Disable multithread support by default on Cygwin 1.5.x.
63644         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
63645         set gl_use_threads=no if not specified otherwise.
63647 2009-08-11  Bruno Haible  <bruno@clisp.org>
63649         Avoid compilation error on NetBSD 5.0.
63650         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
63651         * tests/test-stdio.c: Likewise.
63652         * tests/test-stdlib.c: Likewise.
63653         * tests/test-string.c: Likewise.
63654         * tests/test-unistd.c: Likewise.
63655         Reported by Greg Troxel <gdt@ir.bbn.com>
63656         at <https://savannah.gnu.org/support/?106973>.
63658 2009-08-11  Bruno Haible  <bruno@clisp.org>
63660         * modules/dup2-tests (Depends-on): Remove close.
63662         Undo 2009-07-19 commit.
63663         * modules/acl-tests (Depends-on): Remove close.
63664         * modules/binary-io-tests (Depends-on): Likewise.
63665         * modules/closein-tests (Depends-on): Likewise.
63666         * modules/flock-tests (Depends-on): Likewise.
63667         * modules/fsync-tests (Depends-on): Likewise.
63668         * modules/lseek-tests (Depends-on): Likewise.
63669         * modules/pipe-tests (Depends-on): Likewise.
63670         * modules/posix_spawn-tests (Depends-on): Likewise.
63671         * modules/posix_spawnp-tests (Depends-on): Likewise.
63672         * modules/stat-time-tests (Depends-on): Likewise.
63673         * modules/yesno-tests (Depends-on): Likewise.
63675 2009-08-10  Bruno Haible  <bruno@clisp.org>
63677         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
63679 2009-08-10  Bruno Haible  <bruno@clisp.org>
63681         Fix a gcc warning.
63682         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
63684 2009-08-10  Bruno Haible  <bruno@clisp.org>
63686         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
63687         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
63688         not only the first time.
63689         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
63690         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
63691         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
63692         is 1, not only the first time.
63694 2009-08-10  Bruno Haible  <bruno@clisp.org>
63696         Make it possible to use module 'gethostname' without module 'close'.
63697         * lib/unistd.in.h (close): Evoke a link error only if
63698         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
63699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63700         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63701         * modules/unistd (Makefile.am): Substitute
63702         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63703         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
63704         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
63705         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
63706         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63707         * modules/sys_ioctl (Makefile.am): Substitute
63708         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63709         * modules/socket (configure.ac): On native Windows, set
63710         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
63711         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
63712         Reported by Sam Steingold <sds@gnu.org>.
63714 2009-08-10  Bruno Haible  <bruno@clisp.org>
63716         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
63717         * modules/ioctl (configure.ac): Likewise.
63719 2009-08-10  Bruno Haible  <bruno@clisp.org>
63721         Avoid collision between gnulib wrapper and libintl wrapper.
63722         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
63723         already defined in intl/printf.c.
63724         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
63725         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
63727 2009-08-09  Bruno Haible  <bruno@clisp.org>
63729         Make <sys/select.h> really self-contained, also on Solaris 10.
63730         * lib/sys_select.in.h: Include <string.h>.
63731         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
63732         Solaris 10 problem.
63733         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
63734         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
63735         Reported by Jim Meyering.
63737 2009-08-09  Bruno Haible  <bruno@clisp.org>
63739         Avoid warnings from 'aclocal' that are due to a use of macro name
63740         AM_XGETTEXT_OPTION that is not defined in automake.
63741         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
63742         automake.
63743         * modules/error (configure.ac): Likewise.
63744         * modules/propername (configure.ac): Likewise.
63745         * modules/vasprintf (configure.ac): Likewise.
63746         * modules/verror (configure.ac): Likewise.
63747         * modules/xprintf (configure.ac): Likewise.
63748         * modules/xvasprintf (configure.ac): Likewise.
63750 2009-08-08  Bruno Haible  <bruno@clisp.org>
63752         Avoid compilation error in C++ mode.
63753         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
63754         Reported by Sam Steingold <sds@gnu.org>.
63756 2009-08-08  Bruno Haible  <bruno@clisp.org>
63758         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
63759         for the various Unix platforms.
63760         * doc/posix-headers/limits.texi: Update platforms list regarding
63761         HOST_NAME_MAX.
63762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63764 2009-08-07  Jim Meyering  <meyering@redhat.com>
63766         selinux-at: fix typo in a comment
63767         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
63768         Spotted by Paolo Bonzini.
63770         selinux-at: remove redundant m4 code, add documentation
63771         * modules/selinux-at (configure.ac): Remove redundant code.
63772         LIB_SELINUX is already set via the dependent module, selinux-h.
63773         (Include): Add quotes around selinux-at.h.
63774         * lib/selinux-at.h: Add documentation.
63775         Reported by Bruno Haible in
63776         http://marc.info/?l=gnulib-bug&m=124958988300749
63778 2009-08-07  Bruno Haible  <bruno@clisp.org>
63780         Avoid link error on MacOS X 10.3 and 10.4.
63781         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
63782         on non-ELF systems.
63783         * lib/argp-pv.c (argp_program_version): Likewise.
63784         Reported by Simon Josefsson.
63786 2009-08-07  Simon Josefsson  <simon@josefsson.org>
63788         * tests/test-version-etc.sh: Use $EXEEXT.
63790 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
63792         update-copyright: update documentation to point to maint.mk
63793         * build-aux/update-copyright: Here.
63795 2009-08-06  Jim Meyering  <meyering@redhat.com>
63797         maint.mk: support update-copyright-local
63798         * top/maint.mk (update-copyright-local): Define place-holder.
63799         (update-copyright): Depend on $(update-copyright-local).
63801 2009-08-06  Jim Meyering  <meyering@redhat.com>
63803         selinux-at: new module
63804         Initially written for coreutils, this module will soon be
63805         used by findutils, too.
63806         * MODULES.html.sh [Misc]: Add selinux-at.
63807         * lib/selinux-at.h: New file, from coreutils.
63808         * lib/selinux-at.c: Likewise.
63809         * modules/selinux-at: Likewise.
63810         (License): Change from LGPL to GPL, since it depends
63811         on the GPL'd openat module.
63813         doc: update README
63814         * README: Remove references to cogito.
63815         Remove cvs-repo-updating instructions from 2007.
63816         Don't imply that CVS is better if you have limited disk space.
63818 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63820         update-copyright: support C-style comments
63821         * build-aux/update-copyright: Implement and document.
63822         * tests/test-update-copyright.sh: Test.
63824 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63826         update-copyright: support omitted "(C)"
63827         * build-aux/update-copyright: Implement and document.  Also,
63828         allow variable whitespace before "(C)".
63829         * tests/test-update-copyright.sh: Test.
63831 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63833         update-copyright: don't trip on non-FSF copyright statements
63834         * build-aux/update-copyright: Fix so that the first correctly
63835         formatted FSF copyright statement is recognized no matter what
63836         appears before it.  Update documentation.
63837         * tests/test-update-copyright.sh: Test that.
63839 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63841         update-copyright: clean up code a little
63842         * build-aux/update-copyright: Append "_re" to the name of any
63843         variable holding a regular expression.
63844         Replace "old" and "new" with "stmt" in variable names.
63845         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
63846         handled correctly.
63847         Format code more consistently.
63849 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
63851         update-copyright-tests: improve portability
63852         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
63853         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
63855 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
63857         update-copyright: support @copyright{} and &copy;
63858         * build-aux/update-copyright: Implement and document.
63859         * tests/test-update-copyright.sh: Test.
63861 2009-08-04  Jim Meyering  <meyering@redhat.com>
63863         update-copyright-tests: correctly test EOL=\r\n handling
63864         * tests/test-update-copyright.sh: Put \r at the end of some lines
63865         for the dos-eol tests.  Based on a patch by Joel E. Denny.
63867         maint.mk: make update-copyright exclusion list more configurable
63868         * top/maint.mk (update-copyright): Default to excluding COPYING,
63869         but allow an override, in case someone does want to update that file.
63871         maint.mk: don't update copyright date in COPYING
63872         * top/maint.mk (update-copyright): Exclude COPYING.
63874         maint.mk: add a copyright-updating rule
63875         * top/maint.mk (update-copyright): New rule.
63876         Derived from coreutils/Makefile.am.
63878         update-copyright: rename some variables
63879         * build-aux/update-copyright: Rename a few variables for clarity.
63880         Tweak syntax.  List Joel E. Denny as coauthor.
63882 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
63884         update-copyright: fix bug for 2-digit last year and add tests
63885         * build-aux/update-copyright: Fix bug.
63886         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
63887         specified.
63888         * modules/update-copyright-tests: New
63889         * tests/test-update-copyright.sh: New.
63891 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63893         update-copyright: handle leading tabs in line prefix
63894         * build-aux/update-copyright: Count leading tabs as 8 spaces
63895         when computing margin.  This helps with the formatting of
63896         ChangeLogs, for example.
63897         Fix documentation a little.
63899 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63901         update-copyright: support EOL=\r\n
63902         * build-aux/update-copyright: Implement that.
63904 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
63906         update-copyright: automatically format copyright statements
63907         * build-aux/update-copyright: Implement that.
63908         Also, be a little more predictable and safer by always failing
63909         when the full copyright format is not perfectly recognized as an
63910         unbroken whole.  Discussed at
63911         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
63912         Rewrite documentation.
63914 2009-08-03  Bruno Haible  <bruno@clisp.org>
63916         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
63918 2009-08-02  Bruno Haible  <bruno@clisp.org>
63920         Tests for module 'uname'.
63921         * modules/uname-tests: New file.
63922         * tests/test-uname.c: New file.
63924         New module 'uname'.
63925         * lib/uname.c: New file.
63926         * m4/uname.m4: New file.
63927         * modules/uname: New file.
63928         * doc/posix-functions/uname.texi: Mention the new module.
63930 2009-08-02  Bruno Haible  <bruno@clisp.org>
63932         Tests for module 'sys_utsname'.
63933         * modules/sys_utsname-tests: New file.
63934         * tests/test-sys_utsname.c: New file.
63936         New module 'sys_utsname'.
63937         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
63938         * m4/sys_utsname_h.m4: New file.
63939         * modules/sys_utsname: New file.
63940         * doc/posix-headers/sys_utsname.texi: Mention the new module.
63942 2009-08-02  Bruno Haible  <bruno@clisp.org>
63944         Implicitly initialize the sockets library.
63945         * lib/gethostname.c: Include sockets.h.
63946         (rpl_gethostname): Invoke gl_sockets_startup.
63947         * lib/socket.c: Include sockets.h.
63948         (rpl_socket): Invoke gl_sockets_startup.
63949         * modules/gethostname (Depends-on): Add sockets.
63950         * modules/socket (Depends-on): Likewise.
63951         * tests/test-poll.c: Don't include sockets.h.
63952         (main): Don't invoke gl_sockets_startup.
63953         * tests/test-select.c: Don't include sockets.h.
63954         (main): Don't invoke gl_sockets_startup.
63956 2009-08-02  Bruno Haible  <bruno@clisp.org>
63958         Allow multiple calls to gl_sockets_startup.
63959         * lib/sockets.c (initialized_sockets_version): New variable.
63960         (gl_sockets_startup): Do nothing if already called for this or a higher
63961         version.
63962         (gl_sockets_cleanup): Reset initialized_sockets_version.
63964 2009-08-03  Simon Josefsson  <simon@josefsson.org>
63966         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
63967         different project/version.
63969 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
63970             Bruno Haible  <bruno@clisp.org>
63972         Tests for module 'pipe-filter-gi'.
63973         * modules/pipe-filter-gi-tests: New file.
63974         * tests/test-pipe-filter-gi1.sh: New file.
63975         * tests/test-pipe-filter-gi1.c: New file.
63976         * tests/test-pipe-filter-gi2.sh: New file.
63977         * tests/test-pipe-filter-gi2-main.c: New file.
63978         * tests/test-pipe-filter-gi2-child.c: New file.
63980         New module 'pipe-filter-gi'.
63981         * lib/pipe-filter-gi.c: New file.
63982         * modules/pipe-filter-gi: New file.
63984 2009-08-02  Bruno Haible  <bruno@clisp.org>
63985             Paolo Bonzini  <bonzini@gnu.org>
63987         Tests for module 'pipe-filter-ii'.
63988         * modules/pipe-filter-ii-tests: New file.
63989         * tests/test-pipe-filter-ii1.sh: New file.
63990         * tests/test-pipe-filter-ii1.c: New file.
63991         * tests/test-pipe-filter-ii2.sh: New file.
63992         * tests/test-pipe-filter-ii2-main.c: New file.
63993         * tests/test-pipe-filter-ii2-child.c: New file.
63995         New module 'pipe-filter-ii'.
63996         * lib/pipe-filter.h: New file.
63997         * lib/pipe-filter-ii.c: New file.
63998         * lib/pipe-filter-aux.h: New file.
63999         * modules/pipe-filter-ii: New file.
64001 2009-08-02  Simon Josefsson  <simon@josefsson.org>
64003         * lib/gc-libgcrypt.c: Change copyright to FSF.
64004         * lib/gc-gnulib.c: Likewise.
64006 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
64008         * lib/gethostname.c: Include limits.h.
64010 2009-08-02  Simon Josefsson  <simon@josefsson.org>
64011             Bruno Haible  <bruno@clisp.org>
64013         Ensure HOST_NAME_MAX as part of the gethostname module.
64014         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
64015         define also HOST_NAME_MAX.
64016         * tests/test-gethostname.c: Include <limits.h>.
64017         (main): Check also HOST_NAME_MAX.
64018         * doc/posix-headers/limits.texi: Document the mingw problem.
64020 2009-08-02  Bruno Haible  <bruno@clisp.org>
64022         * lib/gethostname.c (gethostname): Fix handling of large len argument.
64023         Add comments.
64025 2009-03-31  Simon Josefsson  <simon@josefsson.org>
64027         * lib/gethostname.c: Add Windows wrapper.
64028         * m4/gethostname.m4: Look for gethostname in -lws2_32.
64029         * modules/gethostname: Depend on sys_socket & errno, for also
64030         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
64031         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
64033 2009-07-31  Jim Meyering  <meyering@redhat.com>
64035         getloadavg: fix symbol name in comment
64036         * lib/getloadavg.c: Correct a typo I introduced when adding
64037         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
64038         Matt Kraai spotted the problem.
64040 2009-07-29  Matt Kraai  <mkraai@beckman.com>
64042         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
64043         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
64044         code also if ! defined N_NAME_POINTER.
64045         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
64046         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
64047         but the n_name member is a 12-byte array.
64049 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
64051         update-copyright: generalize comment handling
64052         * build-aux/update-copyright: Handle copyright statements
64053         within more comment styles.
64054         Document usage.
64055         Report any file with an external copyright holder or parse failure.
64057 2009-07-29  Jim Meyering  <meyering@redhat.com>
64059         mktime: correct setting of REPLACE_MKTIME
64060         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
64062         update-copyright: new module
64063         * modules/update-copyright: New file.
64064         * build-aux/update-copyright: New file.
64065         * MODULES.html.sh (maint+release support): Add update-copyright.
64067 2009-07-27  Bruno Haible  <bruno@clisp.org>
64069         Fix compilation error when <ctime> is used and mktime is replaced.
64070         * lib/time.in.h (mktime): New declaration.
64071         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
64072         REPLACE_MKTIME instead of defining mktime in config.h.
64073         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
64074         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
64075         Reported by Ross McFarland <rwmcfa1@neces.com>.
64077 2009-07-27  Bruno Haible  <bruno@clisp.org>
64079         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
64080         Reported by Matt Kraai <mkraai@beckman.com>.
64082 2009-07-25  Jim Meyering  <meyering@redhat.com>
64084         maint.mk: avoid warnings about missing files
64085         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
64086         diagnostic when .prev-version does not exist.
64087         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
64088         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
64089         nonexistent cfg.mk.
64090         Suggestions from Simon Josefsson.
64092 2009-07-25  Bruno Haible  <bruno@clisp.org>
64094         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
64095         defined as macros. Needed on QNX 6.4.1.
64096         Reported by Matt Kraai <mkraai@beckman.com>.
64098 2009-07-23  Jim Meyering  <meyering@redhat.com>
64100         maint.mk: invoke "make dist" with a working value of XZ_OPT
64101         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
64103 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
64105         Make fseeko.c compile on QNX.
64106         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
64108 2009-07-22  Peter Simons  <simons@cryp.to>
64110         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
64111         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
64112         * lib/md4.h: Likewise.
64113         * lib/md5.h: Likewise.
64114         * lib/sha1.h: Likewise.
64115         * lib/sha256.h: Likewise.
64116         * lib/sha512.h: Likewise.
64118         tests-sha1: don't assign literal string to 'char *' variable
64119         * tests/test-sha1.c (main): Declare locals with "const" to match
64120         attributes of the right hand side.
64122 2009-07-21  Eric Blake  <ebb9@byu.net>
64124         dup2: fix more mingw problems
64125         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
64126         fd to itself.
64127         * doc/posix-functions/dup2.texi (dup2): Document the bug.
64128         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
64129         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
64130         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
64131         care of mingw bugs.
64133 2009-07-21  Jim Meyering  <meyering@redhat.com>
64135         vc-list-files: avoid failure when /bin/sh is dash
64136         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
64137         On some Debian based systems, /bin/sh is a symlink to dash, and running
64138         this command would omit the "/" following each 'tests' prefix:
64139           dash -x build-aux/vc-list-files -C . tests
64140         That is because bash and dash work differently:
64141           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
64142           bash ok
64143           dash odd
64145 2009-07-21  Eric Blake  <ebb9@byu.net>
64147         dup2-tests: test previous patch
64148         * modules/dup2-tests: New file.
64149         * tests/test-dup2.c: Likewise.
64150         * tests/test-open.c (main): Avoid unspecified behavior.
64151         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
64152         test.
64154         dup2: work around mingw and cygwin 1.5 bug
64155         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
64156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64157         * modules/unistd (Makefile.am): Substitute it.
64158         * lib/unistd.in.h (dup2): Declare the replacement.
64159         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
64160         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
64161         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
64162         * modules/execute (Depends-on): Add dup2.
64163         * modules/fseterr (Depends-on): Likewise.
64164         * modules/pipe (Depends-on): Likewise.
64165         * modules/posix_spawn-internal (Depends-on): Likewise.
64167 2009-07-21  Bruno Haible  <bruno@clisp.org>
64169         * modules/.gitattributes: New file.
64171 2009-07-20  Bruno Haible  <bruno@clisp.org>
64173         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
64174         (main): Use it.
64176 2009-07-20  Eric Blake  <ebb9@byu.net>
64178         test-pipe: make a bit more robust.
64179         * tests/test-pipe.c (myerr): Allow error messages regardless of
64180         what we do to stderr.
64181         (test_pipe): Rearrange to avoid deadlock.
64182         (child_main): Try a larger read, to ensure we avoided deadlock.
64183         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
64184         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
64185         if misused.
64187 2009-07-19  Jim Meyering  <meyering@redhat.com>
64189         fts: avoid false-positive cycle-detection
64190         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
64191         for each new command line argument.
64193 2009-07-19  Bruno Haible  <bruno@clisp.org>
64195         Fix build error on mingw with the modules sys_select and unistd.
64196         * modules/acl-tests (Depends-on): Add close.
64197         * modules/binary-io-tests (Depends-on): Likewise.
64198         * modules/closein-tests (Depends-on): Likewise.
64199         * modules/flock-tests (Depends-on): Likewise.
64200         * modules/fsync-tests (Depends-on): Likewise.
64201         * modules/lseek-tests (Depends-on): Likewise.
64202         * modules/pipe-tests (Depends-on): Likewise.
64203         * modules/posix_spawn-tests (Depends-on): Likewise.
64204         * modules/posix_spawnp-tests (Depends-on): Likewise.
64205         * modules/stat-time-tests (Depends-on): Likewise.
64206         * modules/yesno-tests (Depends-on): Likewise.
64208 2009-07-19  Bruno Haible  <bruno@clisp.org>
64210         Unify conditionals.
64211         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
64212         macros, not at the compiler macros.
64213         * lib/pipe.c: Likewise.
64214         * lib/execute.c: Likewise.
64215         * lib/spawni.c: Likewise.
64217 2009-07-19  Bruno Haible  <bruno@clisp.org>
64219         Fix handling of closed stdin/stdout/stderr on mingw.
64220         * lib/w32spawn.h: Include unistd.h.
64221         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
64222         file descriptor with O_NOINHERIT flag.
64223         (fd_safer_noinherit): New function, based on fd-safer.c.
64224         (dup_safer_noinherit): New function, based on dup-safer.c.
64225         (undup_safer_noinherit): New function.
64226         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
64227         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
64228         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
64229         instead of fd_safer.
64230         * tests/test-pipe.c: Include <windows.h>.
64231         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
64232         result.
64234         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
64235         from main.
64236         (test_pipe): Pass an extra argument for disambiguation.
64237         (main): Invoke parent_main or child_main.
64239         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
64240         consistently.
64242 2009-07-18  Eric Blake  <ebb9@byu.net>
64244         test-pipe: fix mingw build
64245         * tests/test-pipe.c (main): Avoid fcntl on mingw.
64247 2009-07-18  Bruno Haible  <bruno@clisp.org>
64249         * modules/pipe-tests (Makefile.am): Fix typo.
64251 2009-07-18  Eric Blake  <ebb9@byu.net>
64253         error: fix mingw build
64254         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
64255         Reported by Bruno Haible.
64257         error: avoid undefined use of stdout
64258         * lib/error.c (error, error_at_line): Check that fd 1 is open
64259         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
64260         is handling faults and the close_stdout module wants to report the
64261         detection of closed stdout as an error.
64263 2009-07-17  Eric Blake  <ebb9@byu.net>
64265         pipe: be robust in face of closed fds
64266         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
64267         should cause child to misbehave.
64268         * modules/pipe-tests: New module.
64269         * tests/test-pipe.c: New file.
64270         * tests/test-pipe.sh: New file.
64271         Reported by Akim Demaille.
64273 2009-07-14  Bruno Haible  <bruno@clisp.org>
64275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
64276         Reported by anonymous kc.
64278 2009-07-07  Jim Meyering  <meyering@redhat.com>
64280         maint.mk: don't look for translatable strings in *.m4 or *.mk
64281         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
64282         when searching for translatable strings.
64284 2009-07-05  Jim Meyering  <meyering@redhat.com>
64286         remove superfluous parentheses in STREQ definition
64287         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
64288         * lib/getugroups.c (STREQ): Likewise.
64289         * lib/fnmatch.c (STREQ): Likewise.
64290         Spotted by Bruno Haible.
64292 2009-07-04  Jim Meyering  <meyering@redhat.com>
64294         argv-iter: new module
64295         * MODULES.html.sh: Add argv-iter.
64296         * lib/argv-iter.c, lib/argv-iter.h: New files.
64297         * modules/argv-iter: New file.
64298         * modules/argv-iter-tests: New file.
64299         * tests/test-argv-iter.c: Test it.
64301 2009-07-04  Bruno Haible  <bruno@clisp.org>
64303         Fix assertion.
64304         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
64305         contains more exact copies of a given entry than file2, leave the extra
64306         copies unpaired rather than aborting.
64307         Reported by Eric Blake.
64309 2009-07-02  Bruno Haible  <bruno@clisp.org>
64311         Speedup git-merge-changelog for git cherry-pick.
64312         * lib/git-merge-changelog.c (struct entries_mapping): New type.
64313         (entries_mapping_get): New function, extracted from compute_mapping.
64314         (entries_mapping_reverse_get): New function.
64315         (compute_mapping): Add a 'full' argument. Return the result in a
64316         'struct entries_mapping'.
64317         (main): Update. Access the mappings through entries_mapping_get.
64318         Reported by Eric Blake.
64320 2009-07-02  Bruno Haible  <bruno@clisp.org>
64322         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
64323         best_i.
64325 2009-07-02  Bruno Haible  <bruno@clisp.org>
64327         Speed up approximate search for matching ChangeLog entries.
64328         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
64329         argument. Call fstrcmp_bounded instead of fstrcmp.
64330         (compute_mapping, try_split_merged_entry, main): Update callers.
64332 2009-07-02  Bruno Haible  <bruno@clisp.org>
64334         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
64336 2009-06-30  Bruno Haible  <bruno@clisp.org>
64338         Reduce the number of uc_is_cased calls.
64339         * lib/unicase.h (casing_suffix_context_t): Add
64340         'first_char_except_ignorable' field.
64341         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
64342         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
64343         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
64344         Update initializer.
64345         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
64346         case-ignorable characters.
64347         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
64348         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
64349         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
64350         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
64351         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
64353 2009-06-30  Bruno Haible  <bruno@clisp.org>
64355         Tests for module 'unicase/ignorable'.
64356         * modules/unicase/ignorable-tests: New file.
64357         * tests/unicase/test-ignorable.c: New file, generated by
64358         gen-uni-tables.
64360         Tests for module 'unicase/cased'.
64361         * modules/unicase/cased-tests: New file.
64362         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
64363         * tests/unicase/test-predicate-part1.h: New file, derived from
64364         tests/unictype/test-predicate-part1.h.
64365         * tests/unicase/test-predicate-part2.h: New file, same as
64366         tests/unictype/test-predicate-part2.h.
64368         Fix evaluation of "Before C" condition of FINAL_SIGMA.
64369         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
64370         (output_casing_properties): New function.
64371         (main): Call it.
64372         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
64373         * lib/unicase/cased.c: Include unictype/bitmap.h.
64374         (uc_is_cased): Define through a bitmap lookup.
64375         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
64376         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
64377         (uc_is_case_ignorable): Define through a bitmap lookup.
64378         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
64379         lib/unictype/bitmap.h.
64380         (Depends-on): Add inline. Clean up.
64381         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
64382         lib/unictype/bitmap.h.
64383         (Depends-on): Add inline. Clean up.
64384         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
64385         recognition.
64386         * tests/unicase/test-u16-tolower.c (main): Likewise.
64387         * tests/unicase/test-u32-tolower.c (main): Likewise.
64389 2009-06-30  Bruno Haible  <bruno@clisp.org>
64391         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
64392         * lib/unicase/u16-casemap.c: Likewise.
64393         * lib/unicase/u32-casemap.c: Likewise.
64395 2009-06-29  Bruno Haible  <bruno@clisp.org>
64397         Define u32_casefold as a wrapper around u32_ct_casefold.
64398         * lib/unicase/u32-casefold.c: Update.
64399         * modules/unicase/u32-casefold (Depends-on): Add
64400         unicase/u32-ct-casefold, unicase/empty-prefix-context,
64401         unicase/empty-suffix-context. Clean up.
64403         Define u16_casefold as a wrapper around u16_ct_casefold.
64404         * lib/unicase/u16-casefold.c: Update.
64405         * modules/unicase/u16-casefold (Depends-on): Add
64406         unicase/u16-ct-casefold, unicase/empty-prefix-context,
64407         unicase/empty-suffix-context. Clean up.
64409         Define u8_casefold as a wrapper around u8_ct_casefold.
64410         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
64411         * lib/unicase/u8-casefold.c: Update.
64412         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
64413         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64415         Define u32_totitle as a wrapper around u32_ct_totitle.
64416         * lib/unicase/u32-totitle.c: Update.
64417         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
64418         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64420         Define u16_totitle as a wrapper around u16_ct_totitle.
64421         * lib/unicase/u16-totitle.c: Update.
64422         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
64423         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64425         Define u8_totitle as a wrapper around u8_ct_totitle.
64426         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
64427         functions.
64428         (FUNC): Delegate to U_CT_TOTITLE.
64429         * lib/unicase/u8-totitle.c: Update.
64430         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
64431         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64433         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
64434         invocation.
64435         * modules/unicase/u32-tolower (Depends-on): Add
64436         unicase/empty-prefix-context, unicase/empty-suffix-context.
64438         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
64439         invocation.
64440         * modules/unicase/u16-tolower (Depends-on): Add
64441         unicase/empty-prefix-context, unicase/empty-suffix-context.
64443         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
64444         * modules/unicase/u8-tolower (Depends-on): Add
64445         unicase/empty-prefix-context, unicase/empty-suffix-context.
64447         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
64448         invocation.
64449         * modules/unicase/u32-toupper (Depends-on): Add
64450         unicase/empty-prefix-context, unicase/empty-suffix-context.
64452         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
64453         invocation.
64454         * modules/unicase/u16-toupper (Depends-on): Add
64455         unicase/empty-prefix-context, unicase/empty-suffix-context.
64457         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
64458         * modules/unicase/u8-toupper (Depends-on): Add
64459         unicase/empty-prefix-context, unicase/empty-suffix-context.
64461         New module 'unicase/u32-ct-casefold'.
64462         * lib/unicase/u32-ct-casefold.c: New file.
64463         * modules/unicase/u32-ct-casefold: New file.
64465         New module 'unicase/u16-ct-casefold'.
64466         * lib/unicase/u16-ct-casefold.c: New file.
64467         * modules/unicase/u16-ct-casefold: New file.
64469         New module 'unicase/u8-ct-casefold'.
64470         * lib/unicase/u8-ct-casefold.c: New file.
64471         * lib/unicase/u-ct-casefold.h: New file, derived from
64472         lib/unicase/u-casefold.h.
64473         * modules/unicase/u8-ct-casefold: New file.
64475         New module 'unicase/u32-ct-totitle'.
64476         * lib/unicase/u32-ct-totitle.c: New file.
64477         * modules/unicase/u32-ct-totitle: New file.
64479         New module 'unicase/u16-ct-totitle'.
64480         * lib/unicase/u16-ct-totitle.c: New file.
64481         * modules/unicase/u16-ct-totitle: New file.
64483         New module 'unicase/u8-ct-totitle'.
64484         * lib/unicase/u8-ct-totitle.c: New file.
64485         * lib/unicase/u-ct-totitle.h: New file, derived from
64486         lib/unicase/u-totitle.h.
64487         * modules/unicase/u8-ct-totitle: New file.
64489         New module 'unicase/u32-ct-tolower'.
64490         * lib/unicase/u32-ct-tolower.c: New file.
64491         * modules/unicase/u32-ct-tolower: New file.
64493         New module 'unicase/u16-ct-tolower'.
64494         * lib/unicase/u16-ct-tolower.c: New file.
64495         * modules/unicase/u16-ct-tolower: New file.
64497         New module 'unicase/u8-ct-tolower'.
64498         * lib/unicase/u8-ct-tolower.c: New file.
64499         * modules/unicase/u8-ct-tolower: New file.
64501         New module 'unicase/u32-ct-toupper'.
64502         * lib/unicase/u32-ct-toupper.c: New file.
64503         * modules/unicase/u32-ct-toupper: New file.
64505         New module 'unicase/u16-ct-toupper'.
64506         * lib/unicase/u16-ct-toupper.c: New file.
64507         * modules/unicase/u16-ct-toupper: New file.
64509         New module 'unicase/u8-ct-toupper'.
64510         * lib/unicase/u8-ct-toupper.c: New file.
64511         * modules/unicase/u8-ct-toupper: New file.
64513         Add context arguments to u*_casemap functions.
64514         * lib/unicase/unicasemap.h: Include unicase.h.
64515         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
64516         suffix_context arguments.
64517         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
64518         functions.
64519         (FUNC): Add prefix_context and suffix_context arguments. Use
64520         uc_is_cased and uc_is_case_ignorable.
64521         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
64522         * lib/unicase/u16-casemap.c: Likewise.
64523         * lib/unicase/u32-casemap.c: Likewise.
64524         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
64525         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64526         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
64527         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64528         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
64529         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64531         New module 'unicase/u32-suffix-context'.
64532         * lib/unicase/u32-suffix-context.c: New file.
64533         * modules/unicase/u32-suffix-context: New file.
64535         New module 'unicase/u16-suffix-context'.
64536         * lib/unicase/u16-suffix-context.c: New file.
64537         * modules/unicase/u16-suffix-context: New file.
64539         New module 'unicase/u8-suffix-context'.
64540         * lib/unicase/u8-suffix-context.c: New file.
64541         * lib/unicase/u-suffix-context.h: New file.
64542         * modules/unicase/u8-suffix-context: New file.
64544         New module 'unicase/empty-suffix-context'.
64545         * lib/unicase/empty-suffix-context.c: New file.
64546         * modules/unicase/empty-suffix-context: New file.
64548         New module 'unicase/u32-prefix-context'.
64549         * lib/unicase/u32-prefix-context.c: New file.
64550         * modules/unicase/u32-prefix-context: New file.
64552         New module 'unicase/u16-prefix-context'.
64553         * lib/unicase/u16-prefix-context.c: New file.
64554         * modules/unicase/u16-prefix-context: New file.
64556         New module 'unicase/u8-prefix-context'.
64557         * lib/unicase/u8-prefix-context.c: New file.
64558         * lib/unicase/u-prefix-context.h: New file.
64559         * lib/unicase/context.h: New file.
64560         * modules/unicase/u8-prefix-context: New file.
64562         New module 'unicase/empty-prefix-context'.
64563         * lib/unicase/empty-prefix-context.c: New file.
64564         * modules/unicase/empty-prefix-context: New file.
64566         New module 'unicase/ignorable'.
64567         * lib/unicase/ignorable.c: New file.
64568         * modules/unicase/ignorable: New file.
64570         New module 'unicase/cased'.
64571         * lib/unicase/caseprop.h: New file.
64572         * lib/unicase/cased.c: New file.
64573         * modules/unicase/cased: New file.
64575         New functions for case mapping of substrings.
64576         * lib/unicase.h (casing_prefix_context_t): New type.
64577         (unicase_empty_prefix_context): New variable.
64578         (u8_casing_prefix_context, u16_casing_prefix_context,
64579         u32_casing_prefix_context, u8_casing_prefixes_context,
64580         u16_casing_prefixes_context, u32_casing_prefixes_context): New
64581         declarations.
64582         (casing_suffix_context_t): New type.
64583         (unicase_empty_suffix_context): New variable.
64584         (u8_casing_suffix_context, u16_casing_suffix_context,
64585         u32_casing_suffix_context, u8_casing_suffixes_context,
64586         u16_casing_suffixes_context, u32_casing_suffixes_context,
64587         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
64588         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
64589         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
64590         declarations.
64592 2009-06-28  Jim Meyering  <meyering@redhat.com>
64594         boostrap: indent only with spaces
64595         * build-aux/bootstrap: Indent only with spaces, never TABs.
64597         bootstrap: split long lines
64598         * build-aux/bootstrap: Keep line length < 80.
64600         bootstrap: sync from coreutils
64601         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
64602         just as autoreconf does.  Verify a list of prerequisite
64603         package-name,version-number pairs if defined in bootstrap.conf.
64604         Refer to README-prereq, if prerequisites are not satisfied.
64606 2009-06-27  Eric Blake  <ebb9@byu.net>
64608         tests: add test for bogus NULL definition
64609         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
64610         * tests/test-stdlib.c: Likewise.
64611         * tests/test-string.c: Likewise.
64612         * tests/test-locale.c: Likewise.
64613         * tests/test-unistd.c: Likewise.
64614         * modules/stdio-tests (Depends-on): Add verify.
64615         * modules/stdlib-tests (Depends-on): Likewise.
64616         * modules/string-tests (Depends-on): Likewise.
64617         * modules/locale-tests (Depends-on): Likewise.
64618         * modules/unistd-tests (Depends-on): Likewise.
64620 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
64622         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
64623         self-explaining comment.
64624         * m4/selinux-selinux-h: Update serial.
64625         (gl_LIBSELINUX): New macro, adding a warning for missing development
64626         packages to code extracted from...
64627         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
64628         Add warning for missing development packages here, too.
64630 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
64632         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
64634 2009-06-25  Eric Blake  <ebb9@byu.net>
64636         version-etc: fix regression
64637         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
64638         gcc.
64639         (version_etc): Use it, to catch bugs with trailing NULL.
64640         * lib/version-etc.c (version_etc_arn): Delete unused argument.
64641         (version_etc_va): Fix logic bug.
64642         * modules/version-etc-tests: Add test.
64643         * tests/test-version-etc.c: New file.
64644         * tests/test-version-etc.sh: Likewise.
64646 2009-06-25  Sam Steingold  <sds@gnu.org>
64648         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
64649         mbtowc declaration.
64651 2009-06-25  Eric Blake  <ebb9@byu.net>
64653         fpurge: migrate into <stdio.h>
64654         * lib/fpurge.h: Delete...
64655         * lib/stdio.in.h (fpurge): ...and declare here, instead.
64656         * lib/fpurge.c (fpurge): Change declaring header.
64657         * modules/fpurge (Files): Drop deleted file.
64658         (Depends-on): Add stdio.
64659         (configure.ac): Set witness.
64660         * modules/stdio (Makefile.am): Support fpurge macros.
64661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64662         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
64663         * lib/fflush.c: Update client.
64664         * tests/test-fpurge.c: Likewise.
64665         * NEWS: Mention the change.
64667 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64669         * lib/argp-version-etc.c (program_authors): Add const
64670         qualifier.
64671         * lib/version-etc.c: Fix typos in the comments.
64672         * modules/argp-version-etc: Depends on version-etc.
64674 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64676         argp-version-etc: new module.
64678         * lib/argp-version-etc.c: New file.
64679         * lib/argp-version-etc.h: New file.
64680         * modules/argp-version-etc: New file.
64681         * modules/argp-version-etc-tests: New file.
64682         * tests/test-argp-version-etc.c: New test.
64683         * tests/test-argp-version-etc-1.sh: New test.
64685 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64687         Provide additional interfaces and documentation for version-etc
64688         module.
64690         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
64691         interfaces.
64692         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
64693         prototypes.
64695 2009-06-24  Bruno Haible  <bruno@clisp.org>
64697         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
64698         HAVE_LIB${NAME} macro.
64699         Reported by Sam Steingold <sds@gnu.org>.
64701 2009-06-23  Simon Josefsson  <simon@josefsson.org>
64703         * modules/hash-tests (test_hash_LDADD): Link to libintl when
64704         needed.
64706 2009-06-21  Bruno Haible  <bruno@clisp.org>
64708         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
64709         work.
64710         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
64711         together with LIB${NAME}, LTLIB${NAME}.
64712         Reported by Sam Steingold <sds@gnu.org>.
64714 2009-06-20  Jim Meyering  <meyering@redhat.com>
64716         tests: make sc_require_test_exit_idiom more generic
64717         * top/maint.mk (Exit_witness_file): New overridable variable.
64718         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
64719         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
64721 2009-06-19  Jim Meyering  <meyering@redhat.com>
64723         hash: reverse order of src/dst parameters in an internal interface
64724         * lib/hash.c (transfer_entries): Reverse order of parameters to
64725         put DST before SRC.  Adjust callers.
64727         tests: test-hash: avoid wholesale duplication
64728         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
64729         Instead, use a loop and add a single conditional.
64731         tests: test-hash: allow seed selection via a command line argument
64732         * tests/test-hash.c (get_seed): New function.
64733         (main): Use it.
64735 2009-06-19  Eric Blake  <ebb9@byu.net>
64737         hash: avoid memory leak on allocation failure
64738         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
64739         failure.  Factor repeated algorithm...
64740         (transfer_entries): ...into new helper routine.
64741         (hash_delete): React to hash_rehash return value.
64743         hash: reduce memory pressure in hash_rehash no-op case
64744         * lib/hash.c (next_prime): Avoid overflow.
64745         (hash_initialize): Factor bucket size computation...
64746         (compute_bucket_size): ...into new helper function.
64747         (hash_rehash): Use new function and open coding to reduce memory
64748         pressure, and avoid a memory leak in USE_OBSTACK code.
64749         Reported by Jim Meyering.
64751 2009-06-18  Eric Blake  <ebb9@byu.net>
64753         hash: make rotation more obvious
64754         * modules/hash (Depends-on): Add bitrotate and stdint.
64755         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
64756         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
64757         (SIZE_MAX): Rely on headers for definition.
64758         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
64759         (raw_hasher): Use rotr_sz.
64760         Suggested by Jim Meyering.
64762         hash: fix memory leak in last patch
64763         * lib/hash.c (hash_rehash): Avoid memory leak.
64765         hash: avoid no-op rehashing
64766         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
64768         hash: provide default callback functions
64769         * lib/hash.c (raw_hasher, raw_comparator): New functions.
64770         (hash_initialize): Use them as defaults.
64771         * tests/test-hash.c (main): Test this.
64773         hash: minor optimization
64774         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
64775         when possible.
64776         (hash_initialize): Document this promise.
64777         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
64778         * tests/test-hash.c (hash_compare_strings): Test this.
64780 2009-06-18  Bruno Haible  <bruno@clisp.org>
64782         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
64783         going to be replaced anyway.
64785 2009-06-18  Bruno Haible  <bruno@clisp.org>
64787         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
64788         in one place.
64789         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
64790         be replaced anyway.
64792 2009-06-18  Eric Blake  <ebb9@byu.net>
64794         hash: check for resize before insertion
64795         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
64796         threshold before insertion, so that a pathological hash_rehash
64797         that fills every bucket can still trigger another rehash.
64799 2009-06-18  Jim Meyering  <meyering@redhat.com>
64801         hash-tests: add a loop around the small tests
64802         * tests/test-hash.c (main): Repeat small tests with selected
64803         small initial table sizes.
64805 2009-06-17  Eric Blake  <ebb9@byu.net>
64807         hash: minor cleanups
64808         * lib/hash.h (hash_entry): Make opaque, by moving...
64809         * lib/hash.c (hash_entry): ...here.
64810         (hash_insert): Clarify restrictions on what can be inserted.
64811         (hash_get_next): Clarify when it is safe to remove an element
64812         during traversal.
64813         (check_tuning): Skip verification when tuning is known safe.
64814         (hash_initialize): Clarify restrictions on tuning.
64816 2009-06-17  Jim Meyering  <jim@meyering.net>
64817         and Eric Blake  <ebb9@byu.net>
64819         hash-tests: new module
64820         * modules/hash-tests: New file.
64821         * tests/test-hash.c: New file.
64823 2009-06-17  Eric Blake  <ebb9@byu.net>
64825         strstr-simple: document new module
64826         * MODULES.html.sh: Document new module.
64828         strstr, strcasestr: replace on platforms with broken memchr
64829         * modules/strstr: Split into...
64830         * modules/strstr-simple: ...new module that does not care about
64831         performance, but does care about glibc bug.
64832         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
64833         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
64834         if platform memchr is broken, per Debian bug 521737.
64835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
64836         memchr.
64837         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
64838         * doc/posix-functions/strstr.texi (strstr): Document the fix.
64839         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
64840         * modules/mountlist (Depends-on): Add strstr-simple.
64841         * modules/gen-uni-tables (Depends-on): Likewise.
64842         * modules/argz (Depends-on): Add strstr.
64844 2009-06-17  Bruno Haible  <bruno@clisp.org>
64846         * modules/posix_spawn-internal (Depends-on): Add errno.
64848 2009-06-17  Bruno Haible  <bruno@clisp.org>
64850         Define missing ESTALE on Interix 3.5.
64851         * lib/errno.in.h (ESTALE): Assign a value if missing.
64852         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
64853         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
64854         missing.
64855         * doc/posix-headers/errno.texi: Mention the Interix bug.
64856         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
64858 2009-06-15  Eric Blake  <ebb9@byu.net>
64860         memchr, memchr2: add valgrind exception
64861         * lib/memchr.valgrind: New file.
64862         * lib/memchr2.valgrind: New file.
64863         * modules/memchr (Files): Distribute valgrind file.
64864         * modules/memchr2 (Files): Likewise.
64866         docs: memchr is no longer obsolete
64867         * MODULES.html.sh: Move memchr from obsolete to string.h section.
64868         * lib/string.in.h (memchr): Simplify logic.
64870 2009-06-14  Jim Meyering  <meyering@redhat.com>
64872         link-follow: fix the "checking..." message to not mention trailing slash
64873         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
64874         never considered trailing slashes.
64876 2009-06-14  Bruno Haible  <bruno@clisp.org>
64878         * m4/memchr.m4: Mention also the bug on IA-64.
64879         * doc/posix-functions/memchr.texi: Likewise.
64881 2009-06-12  Eric Blake  <ebb9@byu.net>
64883         memchr: detect broken x86_64 and alpha implementations
64884         * modules/memchr-tests (Depends-on): Move mmap detection...
64885         * modules/memchr (Depends-on): ...here.
64886         (configure.ac): Set indicator.
64887         * lib/string.in.h (memchr): Declare replacement.
64888         * modules/string (Makefile.am): Trigger replacement.
64889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
64890         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
64891         bugs.
64892         * doc/posix-functions/memchr.texi (memchr): Document the bug.
64893         * modules/getpagesize (License): Relax license.
64895 2009-06-11  Bruno Haible  <bruno@clisp.org>
64897         * lib/idpriv.h: Add more references.
64899 2009-06-08  Bruno Haible  <bruno@clisp.org>
64901         Tests for module 'idpriv-droptemp'.
64902         * modules/idpriv-droptemp-tests: New file.
64903         * tests/test-idpriv-droptemp.sh: New file.
64904         * tests/test-idpriv-droptemp.su.sh: New file.
64905         * tests/test-idpriv-droptemp.c: New file.
64907         New module 'idpriv-droptemp'.
64908         * lib/idpriv-droptemp.c: New file.
64909         * modules/idpriv-droptemp: New file.
64911 2009-06-08  Bruno Haible  <bruno@clisp.org>
64913         Tests for module 'idpriv-drop'.
64914         * modules/idpriv-drop-tests: New file.
64915         * tests/test-idpriv-drop.sh: New file.
64916         * tests/test-idpriv-drop.su.sh: New file.
64917         * tests/test-idpriv-drop.c: New file.
64919         New module 'idpriv-drop'.
64920         * lib/idpriv.h: New file.
64921         * lib-idpriv-drop.c: New file.
64922         * m4/idpriv.m4: New file.
64923         * modules/idpriv-drop: New file.
64925 2009-06-08  Bruno Haible  <bruno@clisp.org>
64927         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
64928         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64929         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64930         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64931         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64932         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64933         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64935 2009-06-08  Eric Blake  <ebb9@byu.net>
64937         test-strstr: use memory fence, when possible
64938         * tests/test-strstr.c (main): Use memory fence, in order to be
64939         more likely to trigger Debian bug 521737.
64940         * modules/strstr-tests (Files): Pull in additional files.
64942         memchr: no longer obsolete, for wider field testing
64943         * modules/memchr (Status, Notice): Delete, this module is no
64944         longer obsolete.
64945         * modules/vasnprintf (Depends-on): Add memchr.
64947 2009-06-07  Jim Meyering  <meyering@redhat.com>
64949         hash: declare some functions with the warn_unused_result attribute
64950         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
64952 2009-06-07  Bruno Haible  <bruno@clisp.org>
64954         * tests/test-alignof.c: Don't test int64_t if it does not exist.
64955         Reported by Eric Blake.
64957 2009-06-06  Eric Blake  <ebb9@byu.net>
64959         test-alignof: fix typo with long double
64960         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
64961         compiler error.
64963 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
64965         Escape non-texinfo { and }s.
64966         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
64967         markup error.
64969 2009-06-04  Jim Meyering  <meyering@redhat.com>
64971         gitlog-to-changelog: don't infloop on an empty commit log
64972         * build-aux/gitlog-to-changelog: Warn about an empty log message.
64973         Reported by Boris Petersen <transacid@centerim.org>.
64975 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
64977         version-etc: extend for packagers
64978         Add three new configure options, intended for packagers:
64979           --with-packager="packager name"
64980           --with-packager-version="packager-specific version"
64981           --with-packager-bug-reports="packager bug reporting"
64982         An example with coreutils:
64983           $ ./configure \
64984             --with-packager=Gentoo \
64985             --with-packager-bug-report=http://bugs.gentoo.org/ \
64986             --with-packager-version="patchset 1.6"
64987           $ ./src/ls --version | head -n2
64988           ls (GNU coreutils) 7.1-dirty
64989           Packaged by Gentoo (patchset 1.6)
64990         Note that the bug reporting info via --help doesn't show up because
64991         coreutils uses its own custom emit_bug_reporting_address() implementation
64992         in src/system.h.  If it didn't, it'd look like:
64993           $ ./src/ls --help | tail -n4
64994           Report bugs to <bug-coreutils@gnu.org>.
64995           Report Gentoo bugs to <http://bugs.gentoo.org/>.
64996           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
64997           General help using GNU software: <http://www.gnu.org/gethelp/>.
64998         * lib/version-etc.c: Print new information, if provided.
64999         * m4/version-etc.m4: New file.
65000         * modules/version-etc (Files): Add m4/version-etc.m4.
65001         (configure.ac): Add gl_VERSION_ETC.
65003 2009-05-31  Bruno Haible  <bruno@clisp.org>
65005         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
65006         and 'int64_t'.
65007         * modules/alignof-tests (Dependencies): Add stdint.
65008         Reported by Eric Blake.
65010 2009-05-31  Bruno Haible  <bruno@clisp.org>
65012         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
65013         restriction due to compiler bugs.
65014         Reported by Eric Blake.
65016 2009-05-31  Simon Josefsson  <simon@josefsson.org>
65017             Bruno Haible  <bruno@clisp.org>
65019         Fix test-alignof failure.
65020         * lib/alignof.h (alignof_slot): New macro.
65021         (alignof_type): New macro, with the same semantics as the previous
65022         'alignof'.
65023         (alignof): Alias to alignof_slot.
65024         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
65025         check that the results are usable as constant expressions.
65027 2009-05-31  Bruno Haible  <bruno@clisp.org>
65029         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
65030         * tests/test-memchr.c (main): Check that memchr does not read past the
65031         first occurrence of the byte.
65032         * tests/test-strstr.c (main): Update comment.
65033         Suggested by Eric Blake.
65035 2009-05-30  Bruno Haible  <bruno@clisp.org>
65037         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
65038         detail how to use dumpbin.
65039         Reported by David Byron <dbyron@dbyron.com>.
65041 2009-06-02  Simon Josefsson  <simon@josefsson.org>
65043         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
65045 2009-06-02  Simon Josefsson  <simon@josefsson.org>
65047         * m4/manywarnings.m4: Add GCC 4.4 warnings.
65049 2009-05-28  Bruno Haible  <bruno@clisp.org>
65051         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
65052         build-aux/ files.
65054 2009-05-28  Simon Josefsson  <simon@josefsson.org>
65056         * gnulib-tool (func_import): Transform license on build-aux/ files too.
65058 2009-05-27  Simon Josefsson  <simon@josefsson.org>
65060         * gnulib-tool (sed_transform_main_lib_file)
65061         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
65062         regexps.
65064 2009-05-26  Simon Josefsson  <simon@josefsson.org>
65066         * tests/test-strstr.c: Add another self-test.
65067         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
65068         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
65070 2009-05-23  Bruno Haible  <bruno@clisp.org>
65072         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
65073         change.
65075 2009-05-21  Bruno Haible  <bruno@clisp.org>
65077         Simplify use of mode_t varargs.
65078         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
65079         uses 'mode_t' or 'int'.
65080         * lib/openat.c (openat): Likewise.
65081         * lib/open-safer.c (open_safer): Likewise.
65082         * m4/mode_t.m4: New file.
65083         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
65084         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
65085         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
65086         * modules/open (Files): Add m4/mode_t.m4.
65087         * modules/openat (Files): Likewise.
65088         * modules/fcntl-safer (Files): Likewise.
65089         Suggested by Eric Blake.
65091 2009-05-21  Pádraig Brady  <P@draigbrady.com>
65093         * doc/glibc-functions/fallocate.texi: New file.
65094         * doc/gnulib.texi: Include it.
65096 2009-05-21  Eric Blake  <ebb9@byu.net>
65097             Bruno Haible  <bruno@clisp.org>
65099         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
65100         invocations.
65101         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
65103 2009-05-21  Eric Blake  <ebb9@byu.net>
65104             Bruno Haible  <bruno@clisp.org>
65106         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
65107         include_next. Fix of 2008-11-20 commit.
65108         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
65109         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
65110         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
65111         NEXT_MATH_H.
65112         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
65113         instead of NEXT_MATH_H.
65115 2009-05-21  Bruno Haible  <bruno@clisp.org>
65117         Avoid redefinition warnings for SIZE_MAX.
65118         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
65119         Reported by Simon Josefsson.
65121 2009-05-21  Bruno Haible  <bruno@clisp.org>
65123         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
65124         AC_CACHE_VAL.
65126 2009-05-20  Bruno Haible  <bruno@clisp.org>
65128         Make zeroptr.h work on mingw.
65129         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
65130         mprotect.
65131         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
65132         * modules/memchr2-tests (configure.ac): Likewise.
65133         * modules/memcmp-tests (configure.ac): Likewise.
65134         * modules/memmem-tests (configure.ac): Likewise.
65135         * modules/memrchr-tests (configure.ac): Likewise.
65136         Reported by Simon Josefsson.
65138 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65140         * tests/test-glob.c: Include string.h for strcmp prototype.
65142 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65144         * modules/getdelim (Depends-on): Add explicit stdint, although it
65145         was implicitly already pulled in via realloc-posix.
65146         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
65148 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65150         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
65151         G. Christensen" <tgc@jupiterrise.com>.
65152         * m4/sys_socket_h.m4: Check for sa_family_t.
65153         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
65154         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
65155         * tests/test-sys_socket.c: Check that sa_family_t works.
65157 2009-05-18  Eric Blake  <ebb9@byu.net>
65159         maint.mk: allow gnulib_dir in VPATH build
65160         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
65162 2009-05-15  Jim Meyering  <meyering@redhat.com>
65164         maint.mk: Give gnulib_dir a default definition.
65165         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
65166         Thus, most packages no longer need to specify this variable in cfg.mk
65168 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
65170         rename.m4: fix typos that would make non-mingw cross-configure fail
65171         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
65173 2009-05-13  Eric Blake  <ebb9@byu.net>
65175         mmap-anon: avoid out-of-order autoconf expansion
65176         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
65177         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
65178         * modules/memchr-tests (Depends-on): Add extensions.
65179         * modules/memchr2-tests (Depends-on): Add extensions.
65180         * modules/memcmp-tests (Depends-on): Add extensions.
65181         * modules/memmem-tests (Depends-on): Add extensions.
65182         * modules/memrchr-tests (Depends-on): Add extensions.
65184 2009-05-13  Bruno Haible  <bruno@clisp.org>
65186         Make some tests ISO C 99 compliant.
65187         * tests/zerosize-ptr.h: New file.
65188         * tests/test-memchr.c: Include zerosize-ptr.h.
65189         (main): Use a zero-size object pointer instead of NULL.
65190         * tests/test-memchr2.c: Include zerosize-ptr.h.
65191         (main): Use a zero-size object pointer instead of NULL.
65192         * tests/test-memcmp.c: Include zerosize-ptr.h.
65193         (main): Use a zero-size object pointer instead of NULL.
65194         * tests/test-memmem.c: Include zerosize-ptr.h.
65195         (main): Use a zero-size object pointer instead of NULL.
65196         * tests/test-memrchr.c: Include zerosize-ptr.h.
65197         (main): Use a zero-size object pointer instead of NULL.
65198         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
65199         m4/mmap-anon.m4.
65200         (Depends-on): Add getpagesize.
65201         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65202         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
65203         m4/mmap-anon.m4.
65204         (Depends-on): Add getpagesize.
65205         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65206         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
65207         m4/mmap-anon.m4.
65208         (Depends-on): Add getpagesize.
65209         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65210         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
65211         m4/mmap-anon.m4.
65212         (Depends-on): Add getpagesize.
65213         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65214         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
65215         m4/mmap-anon.m4.
65216         (Depends-on): Add getpagesize.
65217         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65219 2009-05-12  Bruno Haible  <bruno@clisp.org>
65221         Tests for module 'alignof'.
65222         * modules/alignof-tests: New file.
65223         * tests/test-alignof.c: New file.
65225 2009-05-12  Bruno Haible  <bruno@clisp.org>
65227         Fix alignof macro.
65228         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
65229         vendor compilers that are always correct.
65231 2009-05-12  Bruno Haible  <bruno@clisp.org>
65233         Make the MAP_ANONYMOUS detection work on HP-UX 11.
65234         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
65235         not whether its fully works.
65237 2009-05-12  Bruno Haible  <bruno@clisp.org>
65239         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
65241 2009-05-12  Jim Meyering  <meyering@redhat.com>
65243         * top/maint.mk: Adjust backslash alignment.
65245 2009-05-11  Simon Josefsson  <simon@josefsson.org>
65247         * top/maint.mk: Make $(srcdir)/build-aux configurable.
65249 2009-05-11  Eric Blake  <ebb9@byu.net>
65251         argp: avoid undefined behavior
65252         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
65253         macros.
65255 2009-05-08  Simon Josefsson  <simon@josefsson.org>
65257         * tests/test-vc-list-files-git.sh: Do git config of user.email and
65258         user.name to prevent git commit from complaining.
65260 2009-05-10  Bruno Haible  <bruno@clisp.org>
65262         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
65263         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
65264         it rewrites every file name only once.
65265         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
65267 2009-05-08  Bruno Haible  <bruno@clisp.org>
65269         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
65270         instead of 'max'.
65272 2009-05-08  Simon Josefsson  <simon@josefsson.org>
65274         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
65275         sockaddr_storage test.
65277 2009-05-07  Simon Josefsson  <simon@josefsson.org>
65279         * modules/sys_socket (Makefile.am): Substitute
65280         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
65281         * m4/sys_socket_h.m4: Check for sockaddr_storage.
65282         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
65283         * tests/test-sys_socket.c: Check sockaddr_storage.
65285 2009-05-08  Bruno Haible  <bruno@clisp.org>
65287         New module 'alignof'.
65288         * lib/alignof.h: New file.
65289         * modules/alignof: New file.
65291 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65292             Bruno Haible  <bruno@clisp.org>
65294         Fix test-file-has-acl on FreeBSD.
65295         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
65296         mask is implicitly added.
65297         * tests/test-file-has-acl.c: Include <signal.h>.
65298         (main): Terminate the test after 5 seconds.
65299         * modules/acl-tests (configure.ac): Check for alarm function.
65301 2009-05-04  Bruno Haible  <bruno@clisp.org>
65303         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
65304         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
65305         * modules/errno (configure.ac): Drop AC_REQUIRE.
65306         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
65307         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
65309 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65311         * modules/glob-tests: New module.
65312         * tests/test-glob.c: Add.
65314 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65316         * modules/fnmatch-tests: New module.
65317         * tests/test-fnmatch.c: Add.
65319 2009-05-04  Eric Blake  <ebb9@byu.net>
65321         maint: make the new no-submodule-changes rule VPATH-safe
65322         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
65324 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65325             Bruno Haible  <bruno@clisp.org>
65327         acl: Fix infinite loop on FreeBSD.
65328         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
65329         of return value from acl_get_entry.
65330         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
65331         Likewise.
65333 2009-05-03  Bruno Haible  <bruno@clisp.org>
65335         * lib/acl-internal.h (acl_entries): Clarify return value.
65336         * lib/acl_entries.c (acl_entries): Likewise.
65338 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65340         Bug fix in acl module.
65341         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
65343 2009-05-03  Bruno Haible  <bruno@clisp.org>
65345         Create gperf-generated file in the source dir, not in the build dir.
65346         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
65347         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
65348         * modules/unicase/locale-language (unicase/locale-languages.h):
65349         Likewise.
65350         * modules/unicase/special-casing (unicase/special-casing-table.h):
65351         Likewise.
65352         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
65353         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
65354         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
65355         Reported by Ralf Wildenhues.
65357 2009-05-03  Bruno Haible  <bruno@clisp.org>
65359         * modules/fnmatch (Description, configure.ac): Taken from
65360         fnmatch-posix.
65361         * modules/fnmatch-posix: Turn into a symbolic reference to the
65362         'fnmatch' module, and deprecate.
65363         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
65365 2009-05-03  Bruno Haible  <bruno@clisp.org>
65367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
65368         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
65369         Reported by Ralf Wildenhues.
65371 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65373         * m4/fnmatch.m4: Fix fnmatch re-define.
65375 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65377         priv-set: new module and tests; adapt write-any-file
65378         * lib/priv-set.c: New file.
65379         * lib/priv-set.h: New file.
65380         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
65381         * lib/write-any-file.c: Simplify by using priv-set module.
65382         * m4/priv-set.m4: New file.
65383         * modules/priv-set: New file.
65384         * modules/unlinkdir: Add dependency on priv-set module.
65385         * modules/write-any-file: Likewise.
65387         Tests for module 'priv-set'.
65388         * modules/priv-set-tests: New file.
65389         * tests/test-priv-set.c: New file.
65391 2009-05-03  Jim Meyering  <meyering@redhat.com>
65392             Bruno Haible  <bruno@clisp.org>
65394         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
65395         use the converted UTF-8 variant of the name instead.
65397 2009-05-03  Jim Meyering  <meyering@redhat.com>
65399         tests: tighten some getdate tests
65400         * tests/test-getdate.c (main): Tighten tests: require equality,
65401         not just greater than.  Set TZ envvar to UTC0.
65403 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65405         getdate: correctly interpret "next monday" when run on a Monday
65406         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
65407         that e.g., "next tues" (when run on a tuesday) results in a date
65408         that is one week in the future, and not today's date.
65409         I.e., add a week when the wday is the same as the current one.
65410         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
65411         and earlier by Martin Bernreuther and Jan Minář.
65412         * tests/test-getdate.c (main): Check that "next DAY" is always in
65413         the future and that "last DAY" is always in the past.
65415 2009-05-02  Jim Meyering  <meyering@redhat.com>
65417         build: ensure that a release build fails when a submodule is unclean
65418         * top/maint.mk (no-submodule-changes): New rule.
65419         (alpha beta major): Depend on it.
65421 2009-05-02  Bruno Haible  <bruno@clisp.org>
65423         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
65424         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
65425         shell variable gl_fnmatch_required to detect which variant is
65426         requested.
65427         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
65428         gl_FUNC_FNMATCH_POSIX.
65429         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
65430         exclude fnmatch-posix.
65432 2009-05-02  Bruno Haible  <bruno@clisp.org>
65434         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
65435         * modules/mbsrtowcs (License): Change to LGPLv2+.
65436         * modules/strnlen1 (License): Likewise.
65437         Reported by Simon Josefsson.
65439 2009-05-02  Bruno Haible  <bruno@clisp.org>
65441         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
65442         "cross".
65443         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
65444         gnulib-tool was called with option --source-base=lib.
65446 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65448         Use automake *-local hooks without commands, for extensibility.
65449         * modules/localcharset (Makefile.am): Rename install-exec-local
65450         rule to install-exec-localcharset, and make it a prerequisite of
65451         install-exec-local.  Likewise, rename the uninstall-local rule to
65452         uninstall-localcharset, and make it a prerequisite of the former.
65454 2009-05-01  Bruno Haible  <bruno@clisp.org>
65456         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
65457         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65458         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
65459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
65460         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
65461         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65462         m4/locale-zh.m4, m4/codeset.m4.
65464         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65465         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
65466         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65467         m4/locale-zh.m4.
65469         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
65470         REPLACE_WCRTOMB if mbstate_t must be replaced.
65471         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
65472         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
65474 2009-05-01  Bruno Haible  <bruno@clisp.org>
65476         Avoid compiler warnings when redefining macros defined by <libintl.h>.
65477         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
65478         dngettext, dcngettext, textdomain, bindtextdomain,
65479         bind_textdomain_codeset): Undefine before redefining.
65481 2009-04-30  Bruno Haible  <bruno@clisp.org>
65483         Fix bug introduced on 2009-04-25.
65484         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
65485         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
65486         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
65487         is defined.
65488         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
65489         is defined.
65490         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
65491         is defined.
65492         Reported by Elbert_Pol <elbert.pol@gmail.com>.
65494 2009-04-28  Bruno Haible  <bruno@clisp.org>
65496         Comment tweaks.
65497         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
65498         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
65499         * lib/unicase.h (u*_casexfrm): Likewise.
65500         Reported by Paolo Bonzini.
65502 2009-04-28  Bruno Haible  <bruno@clisp.org>
65504         Fix a compilation error.
65505         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
65506         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
65507         Reported by Jim Meyering.
65509 2009-04-27  Bruno Haible  <bruno@clisp.org>
65511         New module 'libunistring'.
65512         * modules/libunistring: New file.
65513         * m4/libunistring.m4: New file.
65514         * MODULES.html.sh (Unicode string functions): Add it.
65516 2009-04-27  Eric Blake  <ebb9@byu.net>
65518         maint.mk: allow package-specific header to provide <config.h>
65519         * top/maint.mk (sc_require_config_h): New variable.
65520         (sc_require_config_h, sc_require_config_h_first): Use it.
65522 2009-04-27  Simon Josefsson  <simon@josefsson.org>
65524         * top/maint.mk (sc_avoid_if_before_free): Except
65525         useless-if-before-free script.
65527 2009-04-27  Eric Blake  <ebb9@byu.net>
65529         maintainer-makefile: depend on all required helper scripts
65530         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
65531         useless-if-before-free.
65532         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
65533         version, rather than assuming gnulib checkout is available.
65534         Reported by Simen Josefsson.
65536 2009-04-26  Bruno Haible  <bruno@clisp.org>
65538         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
65539         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
65540         "../" or "..".
65542 2009-04-26  Bruno Haible  <bruno@clisp.org>
65544         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
65545         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
65546         AC_LIB_HAVE_LINKFLAGS.
65548 2009-04-26  Bruno Haible  <bruno@clisp.org>
65550         Simplify calling convention of u*_conv_from_encoding.
65551         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
65552         u32_conv_from_encoding): Expect a resultbuf argument and return the
65553         result directly as a pointer.
65554         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
65555         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
65556         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
65557         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
65558         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
65559         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
65560         Update.
65561         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
65562         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
65563         * lib/vasnprintf.c (VASNPRINTF): Update.
65564         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
65565         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
65566         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
65567         * NEWS: Mention the change.
65569 2009-04-26  Bruno Haible  <bruno@clisp.org>
65571         Simplify calling convention of u*_conv_to_encoding.
65572         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65573         u32_conv_to_encoding): Expect a resultbuf argument and return the
65574         result directly as a pointer.
65575         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
65576         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
65577         freeing scaled_offsets if mem_iconveha failed.
65578         * lib/unicase/u-casexfrm.h (FUNC): Update.
65579         * lib/uninorm/u-normxfrm.h (FUNC): Update.
65580         * lib/vasnprintf.c (VASNPRINTF): Update.
65581         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
65582         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
65583         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
65584         * NEWS: Mention the change.
65586 2009-04-26  Bruno Haible  <bruno@clisp.org>
65588         Avoid test failures on AIX and OSF/1.
65589         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
65590         malloc(0).
65591         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
65592         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
65593         Likewise.
65594         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
65595         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
65596         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
65597         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
65598         * doc/posix-functions/malloc.texi: Document the portability problem
65599         related to malloc(0).
65601 2009-04-26  Bruno Haible  <bruno@clisp.org>
65603         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
65604         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
65605         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
65607 2009-04-25  Bruno Haible  <bruno@clisp.org>
65609         Avoid link error when creating a namespace clean library.
65610         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
65611         as macro with arguments if already defined as an alias.
65612         * lib/signbitf.c (gl_signbitf): Don't undefine.
65613         * lib/signbitd.c (gl_signbitd): Don't undefine.
65614         * lib/signbitl.c (gl_signbitl): Don't undefine.
65616 2009-04-25  Jim Meyering  <meyering@redhat.com>
65618         vc-list-files: fix another quoting bug
65619         * build-aux/vc-list-files: Avoid sed backslash expansion
65620         of pathological directory names.
65622 2009-04-25  Eric Blake  <ebb9@byu.net>
65624         vc-list-files: fix shell quoting error
65625         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
65626         timestamp.
65628 2009-04-25  Jim Meyering  <meyering@redhat.com>
65630         vc-list-files: restore lost functionality with subdir argument
65631         * build-aux/vc-list-files: When given a non-"." sub-directory
65632         argument, substitute the $dir/ prefix back onto each resulting name.
65633         Otherwise, coreutils' root_tests check would fail.
65635 2009-04-24  Eric Blake  <ebb9@byu.net>
65637         vc-list-files: ignore git symlinks
65638         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
65639         than ls-files, to ignore git symlinks.
65641         maint.mk: import improvements from m4
65642         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
65643         (move_if_change): Delete unused macro.
65644         (news-date-check, vc-diff-check): Support VPATH builds.
65645         (announcement): Likewise.  Split --bootstrap-tools list...
65646         (boostrap-tools): ...into separate list, which can be overridden
65647         in cfg.mk.
65648         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
65649         requiring dependency on useless-if-before-free module.
65650         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
65651         Support VPATH builds.
65653 2009-04-24  Jim Meyering  <meyering@redhat.com>
65655         maint.mk: remove coreutils-specific rules and variables
65656         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
65657         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
65658         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
65660         maint.mk: remove obsolete rule
65661         * top/maint.mk (rel-check): Remove rule.
65662         (WGET, WGETFLAGS): Remove now-unused variables.
65664 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65666         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
65667         consistency.
65669         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
65670         '$(PATH_SEPARATOR)' instead of ':'.
65672 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65674         * lib/getopt1.c (main): Use 'const' for static array.
65676 2009-04-24  Simon Josefsson  <simon@josefsson.org>
65678         * top/maint.mk: Sync with coreutils.
65679         * NEWS: Explain incompatibilities.
65681 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65682             Bruno Haible  <bruno@clisp.org>
65684         Fix cross-compilation results.
65685         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
65686         statement, as third argument of AC_TRY_RUN.
65687         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65688         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65689         Likewise.
65690         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65691         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
65692         Likewise.
65693         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65694         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
65695         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
65697 2009-04-20  Bruno Haible  <bruno@clisp.org>
65699         Avoid test failure on mingw.
65700         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
65702 2009-04-20  Bruno Haible  <bruno@clisp.org>
65704         Avoid compilation error on mingw.
65705         * modules/localename-tests (Depends-on): Add locale.
65707 2009-04-19  Bruno Haible  <bruno@clisp.org>
65709         Support for building a shared library on Windows platforms.
65710         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
65711         (main): Test the presence of UNINORM_NFC here.
65712         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
65713         (main): Test the presence of UNINORM_NFD here.
65714         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
65715         (main): Test the presence of UNINORM_NFKC here.
65716         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
65717         (main): Test the presence of UNINORM_NFKD here.
65719 2009-04-19  Bruno Haible  <bruno@clisp.org>
65721         Avoid a compiler warning.
65722         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
65723         Change type of variable 'sequence'.
65725 2009-04-19  Bruno Haible  <bruno@clisp.org>
65727         * modules/configmake (Makefile.am): When the contents of configmake.h
65728         does not change, arrange to preserve its modification time.
65730 2009-04-17  Simon Josefsson  <simon@josefsson.org>
65732         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
65733         gettext domain.
65735 2009-04-16  Jim Meyering  <meyering@redhat.com>
65737         useless-if-before-free: improve conversion code
65738         * build-aux/useless-if-before-free: Adjust code-in-comment to match
65739         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
65741 2009-04-14  Bruno Haible  <bruno@clisp.org>
65743         * modules/fcntl (Depends-on): Add extensions.
65744         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
65746 2009-04-12  Ben Pfaff  <blp@gnu.org>
65748         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
65749         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
65751 2009-03-20  Ben Pfaff  <blp@gnu.org>
65753         Make rename replace existing destinations on Windows.
65754         * m4/rename.m4: Add test for Mingw.
65755         * lib/rename.c: Add rename replacement that uses MoveFileEx with
65756         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
65757         * doc/posix-functions/rename.texi: Document.
65759 2009-04-10  Bruno Haible  <bruno@clisp.org>
65761         New include file "iconveh.h".
65762         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
65763         * lib/striconveh.h: Include it.
65764         (enum iconv_ilseq_handler): Remove definition.
65765         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
65766         striconveh.h.
65767         * lib/striconveha.c: Include striconveh.h.
65768         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
65769         * modules/striconveh (Files): Add lib/iconveh.h.
65770         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
65771         lib/striconveh.h.
65773 2009-04-10  Bruno Haible  <bruno@clisp.org>
65775         * lib/uniconv.h: Update comment.
65777 2009-04-10  Bruno Haible  <bruno@clisp.org>
65779         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
65780         always.
65781         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65782         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65783         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65784         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
65785         "unistring-notinline.h", so that the function gets defined always.
65786         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65787         * lib/unistr/u8-uctomb.c: Likewise.
65788         * lib/unistr/u16-mbtouc.c: Likewise.
65789         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65790         * lib/unistr/u16-uctomb.c: Likewise.
65791         * lib/unistr/u32-mbtouc.c: Likewise.
65792         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65793         * lib/unistr/u32-uctomb.c: Likewise.
65795 2009-04-10  Bruno Haible  <bruno@clisp.org>
65797         Mark 'utime' obsolete.
65798         * modules/utime (Status, Notice): New sections.
65799         Suggested by Jim Meyering.
65801         Fix cross-compile guess for utime test.
65802         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
65803         autoconf.
65804         * doc/posix-functions/utime.texi: Give more precisions.
65805         Reported by Jan <ipif@ymail.com>.
65807 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
65809         filevercmp: correct today's change
65810         * lib/filevercmp.c: Also handle coreutils' test inputs.
65811         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
65813         Fix regression in 'filevercmp' module. Thanks Sven Joachim
65814         for reporting it.
65815         * lib/filevercmp.c: Special handle for "", "." and "..".
65816         * tests/test-filevercmp.c: Enlarge the set suite.
65818 2009-04-07  Jim Meyering  <meyering@redhat.com>
65820         useless-if-before-free: show how to remove braced useless free, too
65821         * build-aux/useless-if-before-free: still only in a comment, though.
65823 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
65825         maint.mk: import changes to syntax-check macros from coreutils
65826         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
65827         Use them in the relevant macros.
65829 2009-04-06  Bruno Haible  <bruno@clisp.org>
65831         Fix unportable use of bit-fields.
65832         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
65833         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
65834         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
65836 2009-04-06  Bruno Haible  <bruno@clisp.org>
65838         Avoid test failures on AIX and OSF/1.
65839         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
65840         that malloc(0) = NULL.
65841         * tests/unicase/test-u8-tolower.c (check): Likewise.
65842         * tests/unicase/test-u8-totitle.c (check): Likewise.
65843         * tests/unicase/test-u8-toupper.c (check): Likewise.
65844         * tests/unicase/test-u16-casefold.c (check): Likewise.
65845         * tests/unicase/test-u16-tolower.c (check): Likewise.
65846         * tests/unicase/test-u16-totitle.c (check): Likewise.
65847         * tests/unicase/test-u16-toupper.c (check): Likewise.
65848         * tests/unicase/test-u32-casefold.c (check): Likewise.
65849         * tests/unicase/test-u32-tolower.c (check): Likewise.
65850         * tests/unicase/test-u32-totitle.c (check): Likewise.
65851         * tests/unicase/test-u32-toupper.c (check): Likewise.
65852         * tests/uninorm/test-u8-nfc.c (check): Likewise.
65853         * tests/uninorm/test-u8-nfd.c (check): Likewise.
65854         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
65855         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
65856         * tests/uninorm/test-u16-nfc.c (check): Likewise.
65857         * tests/uninorm/test-u16-nfd.c (check): Likewise.
65858         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
65859         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
65860         * tests/uninorm/test-u32-nfc.c (check): Likewise.
65861         * tests/uninorm/test-u32-nfd.c (check): Likewise.
65862         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
65863         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
65865 2009-04-05  Bruno Haible  <bruno@clisp.org>
65867         Work around an autoconf limitation.
65868         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
65869         comment line if it would be longer than 3 KB.
65871 2009-04-05  Bruno Haible  <bruno@clisp.org>
65873         Avoid test failure with libiconv-1.13.
65874         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
65875         of the expected test results.
65877 2009-04-05  Bruno Haible  <bruno@clisp.org>
65879         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
65880         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
65881         that it should be installed.
65883 2009-04-05  Bruno Haible  <bruno@clisp.org>
65885         * gnulib-tool: New option --copy-file.
65886         (func_usage): Document it.
65887         (func_dest_tmpfilename): Moved out of func_import.
65888         (func_add_file, func_update_file): New functions, extracted from
65889         func_import.
65890         (func_import): Update.
65892 2009-04-05  Karl Berry  <karl@gnu.org>
65894         * README: prominently mention gnulib-tool.
65895         Rearrange sections so getting the code is near the top.
65897 2009-04-05  Bruno Haible  <bruno@clisp.org>
65899         * lib/unicase.h: Mention u*_cmp2.
65900         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
65901         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
65902         * lib/unicase/ulc-casecmp.c: Likewise.
65903         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
65904         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
65905         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
65906         unistr/u8-cmp.
65907         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
65908         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
65909         unistr/u16-cmp.
65910         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
65911         unistr/u32-cmp.
65913         * lib/uninorm.h: Mention u*_cmp2.
65914         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
65915         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
65916         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
65917         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
65918         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
65919         unistr/u8-cmp.
65920         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
65921         unistr/u16-cmp.
65922         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
65923         unistr/u32-cmp.
65925         New module 'unistr/u32-cmp2'.
65926         * lib/unistr/u32-cmp2.c: New file.
65927         * modules/unistr/u32-cmp2: New file.
65929         New module 'unistr/u16-cmp2'.
65930         * lib/unistr/u16-cmp2.c: New file.
65931         * modules/unistr/u16-cmp2: New file.
65933         New module 'unistr/u8-cmp2'.
65934         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
65935         * lib/unistr/u8-cmp2.c: New file.
65936         * lib/unistr/u-cmp2.h: New file.
65937         * modules/unistr/u8-cmp2: New file.
65939 2009-04-05  Bruno Haible  <bruno@clisp.org>
65941         * lib/unictype.h (uc_property_is_valid): New macro.
65942         * tests/unictype/test-pr_byname.c (main): Use it.
65944         * lib/unistr.h: Doc fixes.
65945         * lib/uniconv.h: Doc fixes.
65946         * lib/unictype.h: Doc fixes.
65948 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
65950         Port coreutils 7.2 to Solaris 8.
65952         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
65953         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
65954         for Solaris 8.  This is a bit of a hack, as it means it's the
65955         caller's responsibility to add -lnsl if needed, but most likely it
65956         won't be needed since only getaddrinfo uses this and getaddrinfo
65957         isn't needed on Solaris 8.
65959         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
65960         problem to Solaris 8 encountered with coreutils 7.2, which
65961         resulted in a message "fnmatch.c:292: warning: passing argument 4
65962         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
65963         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
65965 2009-04-03  Simon Josefsson  <simon@josefsson.org>
65967         * m4/ld-version-script.m4: Add FIXME comment.
65969 2009-04-02  Simon Josefsson  <simon@josefsson.org>
65971         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
65972         SOVERSION variable.
65974 2009-04-02  Bruno Haible  <bruno@clisp.org>
65976         * Makefile (info, html, dvi, pdf): Combine the rules.
65977         Suggested by Jim Meyering.
65979 2009-04-01  Bruno Haible  <bruno@clisp.org>
65981         * Makefile (info, html, dvi, pdf): New targets.
65982         Reported by Reuben Thomas <rrt@sc3d.org>.
65984 2009-04-01  Bruno Haible  <bruno@clisp.org>
65986         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
65987         can be put into PATH.
65988         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
65990 2009-04-01  Bruno Haible  <bruno@clisp.org>
65992         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
65994 2009-04-01  Bruno Haible  <bruno@clisp.org>
65996         Rename module 'visibility'.
65997         * modules/lib-symbol-visibility: Renamed from modules/visibility.
65998         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
65999         * doc/gnulib.texi: Update.
66000         * MODULES.html.sh (Misc): Update.
66001         * NEWS: Mention the change.
66003 2009-04-01  Simon Josefsson  <simon@josefsson.org>
66005         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
66006         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
66007         Eric Blake <ebb9@byu.net> for review.
66008         * MODULES.html.sh: Add lib-msvc-compat.
66009         * doc/gnulib.texi: Link to new section.
66010         * m4/ld-output-def.m4: New file.
66011         * doc/ld-output-def.texi: New file.
66013 2009-04-01  Simon Josefsson  <simon@josefsson.org>
66015         Rename ld-version-script to lib-symbol-versions.  Suggested by
66016         Bruno Haible <bruno@clisp.org>.
66017         * modules/ld-version-script: Renamed to lib-symbol-versions.
66018         * doc/ld-version-script.texi: Fix module name.
66019         * MODULES.html.sh: Add lib-symbol-versions.
66021 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66023         * modules/u64-tests: New file.
66024         * tests/test-u64.c: New file.
66026 2009-03-04  Simon Josefsson  <simon@josefsson.org>
66028         * MODULES.html.sh: Mention u64.
66029         * modules/u64: New module.
66030         * modules/crypto/sha512: Depend on u64 module instead of providing
66031         u64.h.
66033 2009-03-27  Eric Blake  <ebb9@byu.net>
66035         test-strerror: make debugging EAI_SYSTEM easier
66036         * modules/getaddrinfo-tests (Depends-on): Add strerror.
66037         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
66038         failure was EAI_SYSTEM.
66040 2009-03-25  Bruno Haible  <bruno@clisp.org>
66042         Fix a problem with --enable-relocatable on Solaris 7.
66043         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
66044         since 2008-02-24.
66046 2009-03-25  Eric Blake  <ebb9@byu.net>
66048         test-sockets: avoid gcc warning
66049         * tests/test-sockets.c (main): Silence compiler warning.
66051 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66053         New modules nproc, pthread, contributed by Glen Lenker.
66055         * MODULES.html.sh: Add pthread, nproc.
66056         * lib/nproc.c: New file.
66057         * lib/nproc.h: New file.
66058         * lib/pthread.in.h: New file.
66059         * m4/pthread.m4: New file.
66060         * modules/nproc: New file.
66061         * modules/pthread: New file.
66063 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66065         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
66066         New variable.
66068 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
66070         filevercmp: handle simple~ and numbered.~3~ backup suffixes
66071         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
66072         * tests/test-filevercmp.c: Add tests for backup suffixes.
66074 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66076         * modules/stdlib (Depends-on): Add stdint, needed when defining
66077         struct random_data on, for example, HP-UX 10.20.  Reported by
66078         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66080 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66082         * lib/readline.c (readline): Call fflush on stdout after printing
66083         prompt.
66085 2009-03-20  Bruno Haible  <bruno@clisp.org>
66087         Remove dependency from 'close' module to -lws2_32 on native Windows.
66088         * lib/close-hook.h: New file.
66089         * lib/close-hook.c: New file.
66090         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
66091         w32sock.h.
66092         (_gl_close_fd_maybe_socket): Remove function.
66093         (rpl_close): Invoke execute_all_close_hooks instead of
66094         _gl_close_fd_maybe_socket.
66095         * lib/sockets.c: Include close-hook.h, w32sock.h.
66096         (close_fd_maybe_socket): New function, essentially from lib/close.c.
66097         (close_sockets_hook): New variable.
66098         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
66099         (gl_sockets_cleanup): Unregister it.
66100         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
66101         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
66102         * modules/close-hook: New file.
66103         * modules/close (Files): Remove lib/w32sock.h.
66104         (Depends-on): Add close-hook.
66105         (Link): Remove section.
66106         * modules/sockets (Files): Add lib/w32sock.h.
66107         (Depends-on): Add close-hook.
66108         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
66109         invocation.
66110         * NEWS: Mention that LIB_CLOSE is gone.
66112 2009-03-23  Eric Blake  <ebb9@byu.net>
66114         signal-tests: test previous patch
66115         * tests/test-signal.c: New file.
66116         * modules/signal-tests: Likewise.
66118         signal.h: always support 'volatile sig_atomic_t'
66119         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
66120         (gl_SIGNAL_H_DEFAULTS): Add a default.
66121         * modules/signal (Makefile.am): Substitute if needed.
66122         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
66123         users can blindly add volatile.
66124         * doc/posix-headers/signal.texi (signal.h): Document it.
66125         Reported by Matthew Woehlke.
66127 2009-03-23  Jim Meyering  <meyering@redhat.com>
66129         pathmax: PATH_MAX: use pathconf only when available
66130         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
66131         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
66132         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
66133         This avoids a link failure in a PSP cross-compilation environment
66134         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
66136         * lib/vasnprintf.c (divide): Fix typo in comment.
66138 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66140         * gnulib-tool (func_filter_filelist): Fix comment.
66142 2009-03-20  Bruno Haible  <bruno@clisp.org>
66144         Make sockets.h self-contained.
66145         * lib/sockets.c: Include sockets.h first.
66146         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
66148 2009-03-19  Eric Blake  <ebb9@byu.net>
66150         doc: mention more functions added in cygwin 1.7.0
66151         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
66152         addition.
66153         * doc/posix-functions/log2f.texi: Likewise.
66155 2009-03-19  Jim Meyering  <meyering@redhat.com>
66157         fsusage: avoid syntax error due to statement-before-declaration
66158         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
66159         after all declarations.  Reported by Matthew Woehlke in
66160         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
66162 2009-03-18  Eric Blake  <ebb9@byu.net>
66164         build-aux/compile: sync from automake
66165         * build-aux/compile: New file, from automake.
66166         * config/srclist.txt: Mention build-aux/compile.
66168 2009-03-17  Bruno Haible  <bruno@clisp.org>
66170         * lib/git-merge-changelog.c: Fix typo in comment.
66171         Reported by Reuben Thomas <rrt@sc3d.org>.
66173 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
66175         * m4/regex.m4: update and improve help for
66176         --without-included-regex.
66178 2009-03-17  Simon Josefsson  <simon@josefsson.org>
66180         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
66181         failure on missing include files.
66183 2009-03-17  Eric Blake  <ebb9@byu.net>
66185         doc: mention more functions added in cygwin 1.7.0
66186         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
66187         addition.
66188         * doc/posix-functions/fwscanf.texi: Likewise.
66189         * doc/posix-functions/swprintf.texi: Likewise.
66190         * doc/posix-functions/swscanf.texi: Likewise.
66191         * doc/posix-functions/vfwprintf.texi: Likewise.
66192         * doc/posix-functions/vfwscanf.texi: Likewise.
66193         * doc/posix-functions/vswprintf.texi: Likewise.
66194         * doc/posix-functions/vswscanf.texi: Likewise.
66195         * doc/posix-functions/vwprintf.texi: Likewise.
66196         * doc/posix-functions/vwscanf.texi: Likewise.
66197         * doc/posix-functions/wcscasecmp.texi: Likewise.
66198         * doc/posix-functions/wcsdup.texi: Likewise.
66199         * doc/posix-functions/wcsftime.texi: Likewise.
66200         * doc/posix-functions/wcsncasecmp.texi: Likewise.
66201         * doc/posix-functions/wprintf.texi: Likewise.
66202         * doc/posix-functions/wscanf.texi: Likewise.
66203         * doc/glibc-functions/gethostbyname2.texi: Likewise.
66205 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66207         maint.mk: really add $(AM_MAKEFLAGS)
66208         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
66209         was inadvertently omitted in the last commit.
66210         Spotted by Bruno Haible.
66212         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
66213         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
66214         $(AM_MAKEFLAGS)' rather than plain `make'.
66216         gnulib-tool: execute $MAKE not make
66217         * gnulib-tool: Default $MAKE to 'make'.
66218         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
66219         than make.  Initialize $MAKE in the do-autobuild script.
66221         gnulib-tool: use $MAKE not make in generated files
66222         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
66223         make, in generated files.  Initialize $MAKE in the do-autobuild
66224         script.
66226         * top/GNUmakefile (_have-git-version-gen): Fix typo.
66228         GNUmakefile: disable parallelism only for multiple, recursive targets
66229         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
66230         additions in the Makefile.
66231         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
66232         by Automake.
66233         (.NOTPARALLEL): Only disable parallel builds if multiple targets
66234         are listed on the command line and at least one of them is
66235         listed in $(ALL_RECURSIVE_TARGETS).
66237 2009-03-14  Bruno Haible  <bruno@clisp.org>
66239         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
66240         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
66241         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
66242         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
66243         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
66244         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
66245         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
66246         unistr/u8-uctomb.
66247         * modules/unistr/u8-strchr (Depends-on): Likewise.
66248         * modules/unistr/u8-strrchr (Depends-on): Likewise.
66249         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
66250         unistr/u16-uctomb.
66251         * modules/unistr/u16-strchr (Depends-on): Likewise.
66252         * modules/unistr/u16-strrchr (Depends-on): Likewise.
66254 2009-03-12  Bruno Haible  <bruno@clisp.org>
66256         Work around select() bug on Interix 3.5.
66257         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
66258         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
66259         * m4/select.m4: New file.
66260         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
66261         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
66262         * modules/select (Files): Add m4/select.m4.
66263         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
66264         * modules/nanosleep (Depends-on): Add select.
66265         * modules/poll (Depends-on): Likewise.
66266         * doc/posix-functions/select.texi: Mention the Interix bug.
66267         Reported by Markus Duft <mduft@gentoo.org>.
66269         * lib/select.c: Renamed from lib/winsock-select.c.
66270         * modules/select (Files): Add lib/select.c, remove
66271         lib/winsock-select.c.
66272         (configure.ac): Update.
66274 2009-03-12  Jim Meyering  <meyering@redhat.com>
66276         avoid gcc warnings about unused macro definitions
66277         * lib/readtokens.c (STREQ): Remove unused definition.
66278         * lib/xmalloc.c (SIZE_MAX): Likewise.
66279         * lib/openat-die.c (N_): Likewise.
66280         * lib/mountlist.c (SIZE_MAX): Remove definition.
66281         Instead, include <stdint.h>.
66282         * lib/readutmp.c: Likewise.
66283         * modules/readutmp (Depends-on): Add stdint.
66284         * modules/mountlist (Depends-on): Add stdint.
66285         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
66287 2009-03-10  Bruno Haible  <bruno@clisp.org>
66289         Tests for module 'mbmemcasecoll'.
66290         * modules/mbmemcasecoll-tests: New file.
66291         * tests/test-mbmemcasecoll1.sh: New file.
66292         * tests/test-mbmemcasecoll2.sh: New file.
66293         * tests/test-mbmemcasecoll3.sh: New file.
66294         * tests/test-mbmemcasecoll.c: New file.
66296         New module 'mbmemcasecoll'.
66297         * lib/mbmemcasecoll.h: New file.
66298         * lib/mbmemcasecoll.c: New file.
66299         * modules/mbmemcasecoll: New file.
66301         * tests/test-mbmemcasecmp.h: New file, extracted from
66302         tests/test-mbmemcasecmp.c.
66303         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
66304         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
66305         (main): Update.
66306         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
66308 2009-03-09  Bruno Haible  <bruno@clisp.org>
66310         Tests for module 'mbmemcasecmp'.
66311         * modules/mbmemcasecmp-tests: New file.
66312         * tests/test-mbmemcasecmp1.sh: New file.
66313         * tests/test-mbmemcasecmp2.sh: New file.
66314         * tests/test-mbmemcasecmp3.sh: New file.
66315         * tests/test-mbmemcasecmp.c: New file.
66317         New module 'mbmemcasecmp'.
66318         * lib/mbmemcasecmp.h: New file.
66319         * lib/mbmemcasecmp.c: New file.
66320         * modules/mbmemcasecmp: New file.
66322 2009-03-09  Bruno Haible  <bruno@clisp.org>
66324         Tests for module 'unicase/ulc-casecoll'.
66325         * modules/unicase/ulc-casecoll-tests: New file.
66326         * tests/unicase/test-ulc-casecoll1.sh: New file.
66327         * tests/unicase/test-ulc-casecoll2.sh: New file.
66328         * tests/unicase/test-ulc-casecoll.c: New file.
66330         New module 'unicase/ulc-casecoll'.
66331         * lib/unicase.h (ulc_casecoll): New declaration.
66332         * lib/unicase/ulc-casecoll.c: New file.
66333         * modules/unicase/ulc-casecoll: New file.
66335         New module 'unicase/ulc-casexfrm'.
66336         * lib/unicase.h (ulc_casexfrm): New declaration.
66337         * lib/unicase/ulc-casexfrm.c: New file.
66338         * modules/unicase/ulc-casexfrm: New file.
66340 2009-03-09  Bruno Haible  <bruno@clisp.org>
66342         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
66343         invocations.
66345         * m4/mbscasecmp.m4: Remove file.
66346         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
66347         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
66349         * m4/mbscasestr.m4: Remove file.
66350         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
66351         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
66353         * m4/mbschr.m4: Remove file.
66354         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
66355         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
66357         * m4/mbscspn.m4: Remove file.
66358         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
66359         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
66361         * m4/mbslen.m4: Remove file.
66362         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
66363         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
66365         * m4/mbsncasecmp.m4: Remove file.
66366         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
66367         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
66369         * m4/mbsnlen.m4: Remove file.
66370         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
66371         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
66373         * m4/mbspbrk.m4: Remove file.
66374         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
66375         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
66377         * m4/mbspcasecmp.m4: Remove file.
66378         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
66379         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
66381         * m4/mbsrchr.m4: Remove file.
66382         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
66383         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
66385         * m4/mbssep.m4: Remove file.
66386         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
66387         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
66389         * m4/mbsspn.m4: Remove file.
66390         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
66391         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
66393         * m4/mbsstr.m4: Remove file.
66394         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
66395         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
66397         * m4/mbstok_r.m4: Remove file.
66398         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
66399         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
66401         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
66403         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
66404         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
66406         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
66408 2009-03-08  Bruno Haible  <bruno@clisp.org>
66410         Tests for module 'unicase/ulc-casecmp'.
66411         * modules/unicase/ulc-casecmp-tests: New file.
66412         * tests/unicase/test-ulc-casecmp1.sh: New file.
66413         * tests/unicase/test-ulc-casecmp2.sh: New file.
66414         * tests/unicase/test-ulc-casecmp.c: New file.
66416         New module 'unicase/ulc-casecmp'.
66417         * lib/unicase.h (ulc_casecmp): New declaration.
66418         * lib/unicase/ulc-casecmp.c: New file.
66419         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
66420         'const SRC_UNIT *'.
66421         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
66422         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
66423         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
66424         * modules/unicase/ulc-casecmp: New file.
66426         Tests for module 'unicase/u32-is-cased'.
66427         * modules/unicase/u32-is-cased-tests: New file.
66428         * tests/unicase/test-u32-is-cased.c: New file.
66430         Tests for module 'unicase/u16-is-cased'.
66431         * modules/unicase/u16-is-cased-tests: New file.
66432         * tests/unicase/test-u16-is-cased.c: New file.
66434         Tests for module 'unicase/u8-is-cased'.
66435         * modules/unicase/u8-is-cased-tests: New file.
66436         * tests/unicase/test-u8-is-cased.c: New file.
66437         * tests/unicase/test-is-cased.h: New file.
66439         New module 'unicase/u32-is-cased'.
66440         * lib/unicase/u32-is-cased.c: New file.
66441         * modules/unicase/u32-is-cased: New file.
66443         New module 'unicase/u16-is-cased'.
66444         * lib/unicase/u16-is-cased.c: New file.
66445         * modules/unicase/u16-is-cased: New file.
66447         New module 'unicase/u8-is-cased'.
66448         * lib/unicase/u8-is-cased.c: New file.
66449         * lib/unicase/u-is-cased.h: New file.
66450         * modules/unicase/u8-is-cased: New file.
66452         Tests for module 'unicase/u32-is-casefolded'.
66453         * modules/unicase/u32-is-casefolded-tests: New file.
66454         * tests/unicase/test-u32-is-casefolded.c: New file.
66456         Tests for module 'unicase/u16-is-casefolded'.
66457         * modules/unicase/u16-is-casefolded-tests: New file.
66458         * tests/unicase/test-u16-is-casefolded.c: New file.
66460         Tests for module 'unicase/u8-is-casefolded'.
66461         * modules/unicase/u8-is-casefolded-tests: New file.
66462         * tests/unicase/test-u8-is-casefolded.c: New file.
66463         * tests/unicase/test-is-casefolded.h: New file.
66465         New module 'unicase/u32-is-casefolded'.
66466         * lib/unicase/u32-is-casefolded.c: New file.
66467         * modules/unicase/u32-is-casefolded: New file.
66469         New module 'unicase/u16-is-casefolded'.
66470         * lib/unicase/u16-is-casefolded.c: New file.
66471         * modules/unicase/u16-is-casefolded: New file.
66473         New module 'unicase/u8-is-casefolded'.
66474         * lib/unicase/u8-is-casefolded.c: New file.
66475         * modules/unicase/u8-is-casefolded: New file.
66477         Tests for module 'unicase/u32-is-titlecase'.
66478         * modules/unicase/u32-is-titlecase-tests: New file.
66479         * tests/unicase/test-u32-is-titlecase.c: New file.
66481         Tests for module 'unicase/u16-is-titlecase'.
66482         * modules/unicase/u16-is-titlecase-tests: New file.
66483         * tests/unicase/test-u16-is-titlecase.c: New file.
66485         Tests for module 'unicase/u8-is-titlecase'.
66486         * modules/unicase/u8-is-titlecase-tests: New file.
66487         * tests/unicase/test-u8-is-titlecase.c: New file.
66488         * tests/unicase/test-is-titlecase.h: New file.
66490         New module 'unicase/u32-is-titlecase'.
66491         * lib/unicase/u32-is-titlecase.c: New file.
66492         * modules/unicase/u32-is-titlecase: New file.
66494         New module 'unicase/u16-is-titlecase'.
66495         * lib/unicase/u16-is-titlecase.c: New file.
66496         * modules/unicase/u16-is-titlecase: New file.
66498         New module 'unicase/u8-is-titlecase'.
66499         * lib/unicase/u8-is-titlecase.c: New file.
66500         * modules/unicase/u8-is-titlecase: New file.
66502         Tests for module 'unicase/u32-is-lowercase'.
66503         * modules/unicase/u32-is-lowercase-tests: New file.
66504         * tests/unicase/test-u32-is-lowercase.c: New file.
66506         Tests for module 'unicase/u16-is-lowercase'.
66507         * modules/unicase/u16-is-lowercase-tests: New file.
66508         * tests/unicase/test-u16-is-lowercase.c: New file.
66510         Tests for module 'unicase/u8-is-lowercase'.
66511         * modules/unicase/u8-is-lowercase-tests: New file.
66512         * tests/unicase/test-u8-is-lowercase.c: New file.
66513         * tests/unicase/test-is-lowercase.h: New file.
66515         New module 'unicase/u32-is-lowercase'.
66516         * lib/unicase/u32-is-lowercase.c: New file.
66517         * modules/unicase/u32-is-lowercase: New file.
66519         New module 'unicase/u16-is-lowercase'.
66520         * lib/unicase/u16-is-lowercase.c: New file.
66521         * modules/unicase/u16-is-lowercase: New file.
66523         New module 'unicase/u8-is-lowercase'.
66524         * lib/unicase/u8-is-lowercase.c: New file.
66525         * modules/unicase/u8-is-lowercase: New file.
66527         Tests for module 'unicase/u32-is-uppercase'.
66528         * modules/unicase/u32-is-uppercase-tests: New file.
66529         * tests/unicase/test-u32-is-uppercase.c: New file.
66531         Tests for module 'unicase/u16-is-uppercase'.
66532         * modules/unicase/u16-is-uppercase-tests: New file.
66533         * tests/unicase/test-u16-is-uppercase.c: New file.
66535         Tests for module 'unicase/u8-is-uppercase'.
66536         * modules/unicase/u8-is-uppercase-tests: New file.
66537         * tests/unicase/test-u8-is-uppercase.c: New file.
66538         * tests/unicase/test-is-uppercase.h: New file.
66540         New module 'unicase/u32-is-uppercase'.
66541         * lib/unicase/u32-is-uppercase.c: New file.
66542         * modules/unicase/u32-is-uppercase: New file.
66544         New module 'unicase/u16-is-uppercase'.
66545         * lib/unicase/u16-is-uppercase.c: New file.
66546         * modules/unicase/u16-is-uppercase: New file.
66548         New module 'unicase/u8-is-uppercase'.
66549         * lib/unicase/u8-is-uppercase.c: New file.
66550         * modules/unicase/u8-is-uppercase: New file.
66552         New module 'unicase/u32-is-invariant'.
66553         * lib/unicase/u32-is-invariant.c: New file.
66554         * modules/unicase/u32-is-invariant: New file.
66556         New module 'unicase/u16-is-invariant'.
66557         * lib/unicase/u16-is-invariant.c: New file.
66558         * modules/unicase/u16-is-invariant: New file.
66560         New module 'unicase/u8-is-invariant'.
66561         * lib/unicase/u8-is-invariant.c: New file.
66562         * lib/unicase/invariant.h: New file.
66563         * lib/unicase/u-is-invariant.h: New file.
66564         * modules/unicase/u8-is-invariant: New file.
66566         Tests for module 'unicase/u32-casecoll'.
66567         * modules/unicase/u32-casecoll-tests: New file.
66568         * tests/unicase/test-u32-casecoll.c: New file.
66570         Tests for module 'unicase/u16-casecoll'.
66571         * modules/unicase/u16-casecoll-tests: New file.
66572         * tests/unicase/test-u16-casecoll.c: New file.
66574         Tests for module 'unicase/u8-casecoll'.
66575         * modules/unicase/u8-casecoll-tests: New file.
66576         * tests/unicase/test-u8-casecoll.c: New file.
66578         New module 'unicase/u32-casecoll'.
66579         * lib/unicase/u32-casecoll.c: New file.
66580         * modules/unicase/u32-casecoll: New file.
66582         New module 'unicase/u16-casecoll'.
66583         * lib/unicase/u16-casecoll.c: New file.
66584         * modules/unicase/u16-casecoll: New file.
66586         New module 'unicase/u8-casecoll'.
66587         * lib/unicase/u8-casecoll.c: New file.
66588         * lib/unicase/u-casecoll.h: New file.
66589         * modules/unicase/u8-casecoll: New file.
66591         New module 'unicase/u32-casexfrm'.
66592         * lib/unicase/u32-casexfrm.c: New file.
66593         * modules/unicase/u32-casexfrm: New file.
66595         New module 'unicase/u16-casexfrm'.
66596         * lib/unicase/u16-casexfrm.c: New file.
66597         * modules/unicase/u16-casexfrm: New file.
66599         New module 'unicase/u8-casexfrm'.
66600         * lib/unicase/u8-casexfrm.c: New file.
66601         * lib/unicase/u-casexfrm.h: New file.
66602         * modules/unicase/u8-casexfrm: New file.
66604         Tests for module 'unicase/u32-casecmp'.
66605         * modules/unicase/u32-casecmp-tests: New file.
66606         * tests/unicase/test-u32-casecmp.c: New file.
66608         Tests for module 'unicase/u16-casecmp'.
66609         * modules/unicase/u16-casecmp-tests: New file.
66610         * tests/unicase/test-u16-casecmp.c: New file.
66612         Tests for module 'unicase/u8-casecmp'.
66613         * modules/unicase/u8-casecmp-tests: New file.
66614         * tests/unicase/test-u8-casecmp.c: New file.
66615         * tests/unicase/test-casecmp.h: New file.
66617         New module 'unicase/u32-casecmp'.
66618         * lib/unicase/u32-casecmp.c: New file.
66619         * modules/unicase/u32-casecmp: New file.
66621         New module 'unicase/u16-casecmp'.
66622         * lib/unicase/u16-casecmp.c: New file.
66623         * modules/unicase/u16-casecmp: New file.
66625         New module 'unicase/u8-casecmp'.
66626         * lib/unicase/u8-casecmp.c: New file.
66627         * lib/unicase/u-casecmp.h: New file.
66628         * modules/unicase/u8-casecmp: New file.
66630         Tests for module 'unicase/u32-casefold'.
66631         * modules/unicase/u32-casefold-tests: New file.
66632         * tests/unicase/test-u32-casefold.c: New file.
66634         Tests for module 'unicase/u16-casefold'.
66635         * modules/unicase/u16-casefold-tests: New file.
66636         * tests/unicase/test-u16-casefold.c: New file.
66638         Tests for module 'unicase/u8-casefold'.
66639         * modules/unicase/u8-casefold-tests: New file.
66640         * tests/unicase/test-u8-casefold.c: New file.
66642         New module 'unicase/u32-casefold'.
66643         * lib/unicase/u32-casefold.c: New file.
66644         * modules/unicase/u32-casefold: New file.
66646         New module 'unicase/u16-casefold'.
66647         * lib/unicase/u16-casefold.c: New file.
66648         * modules/unicase/u16-casefold: New file.
66650         New module 'unicase/u8-casefold'.
66651         * lib/unicase/u8-casefold.c: New file.
66652         * lib/unicase/u-casefold.h: New file.
66653         * modules/unicase/u8-casefold: New file.
66655         New module 'unicase/tocasefold'.
66656         * lib/unicase/casefold.h: New file.
66657         * lib/unicase/tocasefold.c: New file.
66658         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
66659         * modules/unicase/tocasefold: New file.
66661         Tests for module 'unicase/u32-totitle'.
66662         * modules/unicase/u32-totitle-tests: New file.
66663         * tests/unicase/test-u32-totitle.c: New file.
66665         Tests for module 'unicase/u16-totitle'.
66666         * modules/unicase/u16-totitle-tests: New file.
66667         * tests/unicase/test-u16-totitle.c: New file.
66669         Tests for module 'unicase/u8-totitle'.
66670         * modules/unicase/u8-totitle-tests: New file.
66671         * tests/unicase/test-u8-totitle.c: New file.
66673         New module 'unicase/u32-totitle'.
66674         * lib/unicase/u32-totitle.c: New file.
66675         * modules/unicase/u32-totitle: New file.
66677         New module 'unicase/u16-totitle'.
66678         * lib/unicase/u16-totitle.c: New file.
66679         * modules/unicase/u16-totitle: New file.
66681         New module 'unicase/u8-totitle'.
66682         * lib/unicase/u8-totitle.c: New file.
66683         * lib/unicase/u-totitle.h: New file.
66684         * modules/unicase/u8-totitle: New file.
66686         Tests for module 'unicase/u32-tolower'.
66687         * modules/unicase/u32-tolower-tests: New file.
66688         * tests/unicase/test-u32-tolower.c: New file.
66690         Tests for module 'unicase/u16-tolower'.
66691         * modules/unicase/u16-tolower-tests: New file.
66692         * tests/unicase/test-u16-tolower.c: New file.
66694         Tests for module 'unicase/u8-tolower'.
66695         * modules/unicase/u8-tolower-tests: New file.
66696         * tests/unicase/test-u8-tolower.c: New file.
66698         New module 'unicase/u32-tolower'.
66699         * lib/unicase/u32-tolower.c: New file.
66700         * modules/unicase/u32-tolower: New file.
66702         New module 'unicase/u16-tolower'.
66703         * lib/unicase/u16-tolower.c: New file.
66704         * modules/unicase/u16-tolower: New file.
66706         New module 'unicase/u8-tolower'.
66707         * lib/unicase/u8-tolower.c: New file.
66708         * modules/unicase/u8-tolower: New file.
66710         Tests for module 'unicase/u32-toupper'.
66711         * modules/unicase/u32-toupper-tests: New file.
66712         * tests/unicase/test-u32-toupper.c: New file.
66714         Tests for module 'unicase/u16-toupper'.
66715         * modules/unicase/u16-toupper-tests: New file.
66716         * tests/unicase/test-u16-toupper.c: New file.
66718         Tests for module 'unicase/u8-toupper'.
66719         * modules/unicase/u8-toupper-tests: New file.
66720         * tests/unicase/test-u8-toupper.c: New file.
66722         New module 'unicase/u32-toupper'.
66723         * lib/unicase/u32-toupper.c: New file.
66724         * modules/unicase/u32-toupper: New file.
66726         New module 'unicase/u16-toupper'.
66727         * lib/unicase/u16-toupper.c: New file.
66728         * modules/unicase/u16-toupper: New file.
66730         New module 'unicase/u8-toupper'.
66731         * lib/unicase/u8-toupper.c: New file.
66732         * modules/unicase/u8-toupper: New file.
66734         New module 'unicase/u32-casemap'.
66735         * lib/unicase/u32-casemap.c: New file.
66736         * modules/unicase/u32-casemap: New file.
66738         New module 'unicase/u16-casemap'.
66739         * lib/unicase/u16-casemap.c: New file.
66740         * modules/unicase/u16-casemap: New file.
66742         New module 'unicase/u8-casemap'.
66743         * lib/unicase/unicasemap.h: New file.
66744         * lib/unicase/u8-casemap.c: New file.
66745         * lib/unicase/u-casemap.h: New file.
66746         * modules/unicase/u8-casemap: New file.
66748         New module 'unicase/special-casing'.
66749         * lib/unicase/special-casing.h: New file.
66750         * lib/unicase/special-casing.c: New file.
66751         * lib/unicase/special-casing-table.gperf: New file, generated by
66752         gen-uni-tables.c.
66753         * modules/unicase/special-casing: New file.
66755         Tests for module 'unicase/locale-language'.
66756         * modules/unicase/locale-language-tests: New file.
66757         * tests/unicase/test-locale-language.sh: New file.
66758         * tests/unicase/test-locale-language.c: New file.
66760         New module 'unicase/locale-language'.
66761         * lib/unicase/locale-language.c: New file.
66762         * lib/unicase/locale-languages.gperf: New file.
66763         * modules/unicase/locale-language: New file.
66765         Generate more tables for case conversion and case folding.
66766         * lib/gen-uni-tables.c (SCC_*): New enum items.
66767         (struct special_casing_rule): New type.
66768         (casing_rules, num_casing_rules, allocated_casing_rules): New
66769         variables.
66770         (add_casing_rule, fill_casing_rules): New functions.
66771         (struct casefold_rule): New type.
66772         (casefolding_rules, num_casefolding_rules,
66773         allocated_casefolding_rules): New variables.
66774         (fill_casefolding_rules): New function.
66775         (unicode_casefold): New variable.
66776         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
66777         sort_casing_rules, output_casing_rules): New functions.
66778         (main): Accept to more arguments: SpecialCasing.txt and
66779         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
66780         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
66781         Output mapping for casefolding.
66783         * lib/unicase.h: Include stdbool.h, uninorm.h.
66784         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
66785         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
66786         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
66787         arguments.
66788         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
66789         resultp arguments.
66790         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
66791         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
66792         resultp arguments.
66793         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
66794         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
66795         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
66796         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
66797         declarations.
66798         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
66800 2009-03-08  Bruno Haible  <bruno@clisp.org>
66802         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
66803         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
66804         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
66805         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
66807 2009-03-07  Bruno Haible  <bruno@clisp.org>
66809         Adjust u*_normcmp, u*_normcoll API.
66810         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
66811         u16_normcoll, u32_normcoll): Change failure conventions.
66812         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
66813         errno and return -1.
66814         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
66816 2009-03-07  Bruno Haible  <bruno@clisp.org>
66818         Tests for module 'uninorm/u32-normcoll'.
66819         * modules/uninorm/u32-normcoll-tests: New file.
66820         * tests/uninorm/test-u32-normcoll.c: New file.
66822         Tests for module 'uninorm/u16-normcoll'.
66823         * modules/uninorm/u16-normcoll-tests: New file.
66824         * tests/uninorm/test-u16-normcoll.c: New file.
66826         Tests for module 'uninorm/u8-normcoll'.
66827         * modules/uninorm/u8-normcoll-tests: New file.
66828         * tests/uninorm/test-u8-normcoll.c: New file.
66830 2009-03-07  Bruno Haible  <bruno@clisp.org>
66832         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
66833         tests/uninorm/test-u32-normcmp.c.
66834         * tests/uninorm/test-u32-normcmp.c: Include it.
66835         (test_nonascii): New function, extracted from main. Add some more
66836         tests.
66837         (main): Invoke test_ascii and test_nonascii.
66838         * modules/uninorm/u32-normcmp-tests (Files): Add
66839         tests/uninorm/test-u32-normcmp.h.
66840         (Depends-on): Remove uninorm/u32-normcmp.
66842         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
66843         tests/uninorm/test-u16-normcmp.c.
66844         * tests/uninorm/test-u16-normcmp.c: Include it.
66845         (test_nonascii): New function, extracted from main. Add some more
66846         tests.
66847         (main): Invoke test_ascii and test_nonascii.
66848         * modules/uninorm/u16-normcmp-tests (Files): Add
66849         tests/uninorm/test-u16-normcmp.h.
66850         (Depends-on): Remove uninorm/u16-normcmp.
66852         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
66853         tests/uninorm/test-u8-normcmp.c.
66854         * tests/uninorm/test-u8-normcmp.c: Include it.
66855         (test_nonascii): New function, extracted from main. Add some more
66856         tests.
66857         (main): Invoke test_ascii and test_nonascii.
66858         * modules/uninorm/u8-normcmp-tests (Files): Add
66859         tests/uninorm/test-u8-normcmp.h.
66860         (Depends-on): Remove uninorm/u8-normcmp.
66862 2009-03-07  Bruno Haible  <bruno@clisp.org>
66864         New module 'uninorm/u32-normcoll'.
66865         * lib/uninorm/u32-normcoll.c: New file.
66866         * modules/uninorm/u32-normcoll: New file.
66868         New module 'uninorm/u16-normcoll'.
66869         * lib/uninorm/u16-normcoll.c: New file.
66870         * modules/uninorm/u16-normcoll: New file.
66872         New module 'uninorm/u8-normcoll'.
66873         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
66874         declarations.
66875         * lib/uninorm/u8-normcoll.c: New file.
66876         * lib/uninorm/u-normcoll.h: New file.
66877         * modules/uninorm/u8-normcoll: New file.
66879         New module 'uninorm/u32-normxfrm'.
66880         * lib/uninorm/u32-normxfrm.c: New file.
66881         * modules/uninorm/u32-normxfrm: New file.
66883         New module 'uninorm/u16-normxfrm'.
66884         * lib/uninorm/u16-normxfrm.c: New file.
66885         * modules/uninorm/u16-normxfrm: New file.
66887         New module 'uninorm/u8-normxfrm'.
66888         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
66889         declarations.
66890         * lib/uninorm/u8-normxfrm.c: New file.
66891         * lib/uninorm/u-normxfrm.h: New file.
66892         * modules/uninorm/u8-normxfrm: New file.
66894 2009-03-07  Bruno Haible  <bruno@clisp.org>
66896         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
66897         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
66898         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
66900 2009-03-07  Bruno Haible  <bruno@clisp.org>
66902         New module 'memxfrm'.
66903         * lib/memxfrm.h: New file.
66904         * lib/memxfrm.c: New file.
66905         * modules/memxfrm: New file.
66907 2009-03-07  Bruno Haible  <bruno@clisp.org>
66909         New module 'memcmp2'.
66910         * lib/memcmp2.h: New file.
66911         * lib/memcmp2.c: New file.
66912         * modules/memcmp2: New file.
66914 2009-03-07  Bruno Haible  <bruno@clisp.org>
66916         Tests for module 'uninorm/decomposing-form'.
66917         * modules/uninorm/decomposing-form-tests: New file.
66918         * tests/uninorm/test-decomposing-form.c: New file.
66920         New module 'uninorm/decomposing-form'.
66921         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
66922         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
66923         Add 'decomposing_variant' field.
66924         * lib/uninorm/decomposing-form.c: New file.
66925         * lib/uninorm/nfc.c (uninorm_nfc): Update.
66926         * lib/uninorm/nfd.c (uninorm_nfd): Update.
66927         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
66928         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
66929         * modules/uninorm/decomposing-form: New file.
66930         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
66931         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
66933 2009-03-07  Bruno Haible  <bruno@clisp.org>
66935         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
66936         strings.
66938 2009-03-06  Bruno Haible  <bruno@clisp.org>
66940         Tests for module 'uninorm/u32-normcmp'.
66941         * tests/uninorm/test-u32-normcmp.c: New file.
66942         * modules/uninorm/u32-normcmp-tests: New file.
66944         Tests for module 'uninorm/u16-normcmp'.
66945         * tests/uninorm/test-u16-normcmp.c: New file.
66946         * modules/uninorm/u16-normcmp-tests: New file.
66948         Tests for module 'uninorm/u8-normcmp'.
66949         * tests/uninorm/test-u8-normcmp.c: New file.
66950         * modules/uninorm/u8-normcmp-tests: New file.
66952         New module 'uninorm/u32-normcmp'.
66953         * lib/uninorm/u32-normcmp.c: New file.
66954         * modules/uninorm/u32-normcmp: New file.
66956         New module 'uninorm/u16-normcmp'.
66957         * lib/uninorm/u16-normcmp.c: New file.
66958         * modules/uninorm/u16-normcmp: New file.
66960         New module 'uninorm/u8-normcmp'.
66961         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
66962         declarations.
66963         * lib/uninorm/u8-normcmp.c: New file.
66964         * lib/uninorm/u-normcmp.h: New file.
66965         * modules/uninorm/u8-normcmp: New file.
66967 2009-03-06  Bruno Haible  <bruno@clisp.org>
66969         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
66970         Reported by Eric Blake.
66972 2009-03-06  Eric Blake  <ebb9@byu.net>
66973             Bruno Haible  <bruno@clisp.org>
66975         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
66976         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
66977         condition.
66978         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
66979         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
66980         condition.
66981         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
66983 2009-03-06  Eric Blake  <ebb9@byu.net>
66985         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
66986         to avoid compiler warnings.
66987         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
66989 2009-03-05  Bruno Haible  <bruno@clisp.org>
66991         * tests/test-ftell.c (main): Disable test beyond end of file on
66992         FreeMiNT.
66993         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
66995 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
66997         * lib/filevercmp.c: Move hidden files up in ordering.
66998         * tests/test-filevercmp.c: Add tests for hidden files.
67000 2009-03-04  Bruno Haible  <bruno@clisp.org>
67002         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
67003         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
67004         AM_CFLAGS.
67005         Reported by Simon Josefsson.
67007 2009-03-03  Bruno Haible  <bruno@clisp.org>
67009         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
67010         Reported by Simon Josefsson.
67012         * doc/ld-version-script.texi: Update node reference.
67014 2009-03-03  Bruno Haible  <bruno@clisp.org>
67016         * modules/visibility (License): Change to 'unlimited'.
67017         Suggested by Simon Josefsson.
67019 2009-03-03  Jim Meyering  <meyering@redhat.com>
67021         unlinkdir: cannot_unlink_dir may modify process state
67022         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
67023         it's neither thread-safe nor appropriate for use in a library.
67025 2009-03-03  Eric Blake  <ebb9@byu.net>
67027         test-closein: silence test under Darwin
67028         * tests/test-closein.sh: Ignore stderr from cat, since we don't
67029         care if it dies from EPIPE or EBADF.
67031 2009-03-03  Bruno Haible  <bruno@clisp.org>
67033         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
67034         earlier.
67035         * doc/visibility.texi: Fix @node and @section.
67037 2009-03-03  Simon Josefsson  <simon@josefsson.org>
67039         * doc/gnulib.texi: Link to sections for ld version script and
67040         visibility.
67041         * doc/visibility.texi: Add @node and @section.
67042         * modules/ld-version-script: New module.
67043         * m4/ld-version-script.m4: New file.
67044         * doc/ld-version-script.texi: New file.
67046 2009-03-02  David Lutterkort  <lutter@redhat.com>
67048         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
67049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67051 2009-03-02  Bruno Haible  <bruno@clisp.org>
67053         * doc/visibility.texi: Mention libtool's -export-symbols option.
67055 2009-03-02  Jim Meyering  <meyering@redhat.com>
67057         announce-gen: new option: --no-print-checksums
67058         * build-aux/announce-gen (usage): Describe it.
67059         (print_checksums): Print a newline here, not in the [*] footnote.
67060         (main): Honor it.
67062 2009-03-01  Bruno Haible  <bruno@clisp.org>
67064         Use socklen_t in the native Windows replacements prototypes.
67065         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
67066         instead of 'int'.
67067         * lib/getsockopt.c (rpl_getsockopt): Likewise.
67068         * lib/setsockopt.c (rpl_setsockopt): Likewise.
67069         * modules/getsockopt (Depends-on): Add socklen.
67070         * modules/setsockopt (Depends-on): Add socklen.
67072 2009-03-01  Bruno Haible  <bruno@clisp.org>
67074         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
67075         least 4.2.
67077 2009-03-01  Eric Blake  <ebb9@byu.net>
67078             Bruno Haible  <bruno@clisp.org>
67080         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
67081         error messages.
67082         * lib/wait-process.c (wait_subprocess): Omit error message about
67083         deadly signal sent to the child of termsigp != NULL.
67085 2009-03-01  Eric Blake  <ebb9@byu.net>
67087         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
67089 2009-03-01  Bruno Haible  <bruno@clisp.org>
67091         Avoid a gcc warning.
67092         * tests/test-sched.c (b): Make global.
67093         Reported by Eric Blake.
67095 2009-01-19  Martin Lambers  <marlam@marlam.de>
67097         Provide POSIX semantics for socket timeout options on W32.
67098         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
67099         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
67100         * modules/setsockopt: Depend on sys_time module for struct timeval.
67101         * modules/getsockopt: Depend on sys_time module for struct timeval.
67103 2009-03-01  Simon Josefsson  <simon@josefsson.org>
67105         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
67106         __USE_GNU, for consistency with netdb.in.h.
67107         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67109 2009-03-01  Bruno Haible  <bruno@clisp.org>
67111         More support for FreeMiNT.
67112         * lib/fseeko.c (rpl_fseeko): Complete last commit.
67113         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67115 2009-03-01  Bruno Haible  <bruno@clisp.org>
67117         More support for FreeMiNT.
67118         * lib/fpurge.c (fpurge): Correct last commit.
67119         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67121 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67123         Fix unportable awk script in vc-list-files.
67124         * build-aux/vc-list-files: In the replacement awk script, use
67125         substr with a second argument of 1, not zero.
67126         Report by Simon Josefsson.
67128 2009-02-28  Bruno Haible  <bruno@clisp.org>
67130         More support for FreeMiNT.
67131         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
67132         to FreeMiNT today.
67133         * lib/fwriting.c (fwriting): Likewise.
67134         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
67136 2009-02-28  Bruno Haible  <bruno@clisp.org>
67138         * tests/test-freadseek.c (main): Disable test beyond end of file on
67139         FreeMiNT.
67140         * tests/test-ftello.c (main): Likewise.
67141         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
67143 2009-02-28  Bruno Haible  <bruno@clisp.org>
67145         Add tentative support for FreeMiNT.
67146         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
67147         * lib/fpurge.c (fpurge): Likewise.
67148         * lib/freadable.c (freadable): Likewise.
67149         * lib/freading.c (freading): Likewise.
67150         * lib/freadptr.c (freadptr): Likewise.
67151         * lib/freadseek.c (freadptrinc): Likewise.
67152         * lib/fseeko.c (rpl_fseeko): Likewise.
67153         * lib/fseterr.c (fseterr): Likewise.
67154         * lib/fwritable.c (fwritable): Likewise.
67155         * lib/fwriting.c (fwriting): Likewise.
67156         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
67157         Hourihane.
67158         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67160 2009-02-28  Bruno Haible  <bruno@clisp.org>
67162         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
67163         SIGCHLD.
67164         Reported by Jim Meyering.
67166 2009-02-28  Bruno Haible  <bruno@clisp.org>
67168         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
67169         Mention the results of these tests on various platforms.
67170         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
67171         order.
67172         * doc/posix-functions/printf.texi: Likewise.
67173         * doc/posix-functions/snprintf.texi: Likewise.
67174         * doc/posix-functions/sprintf.texi: Likewise.
67175         * doc/posix-functions/vfprintf.texi: Likewise.
67176         * doc/posix-functions/vprintf.texi: Likewise.
67177         * doc/posix-functions/vsnprintf.texi: Likewise.
67178         * doc/posix-functions/vsprintf.texi: Likewise.
67179         * doc/glibc-functions/obstack_printf.texi: Likewise.
67180         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
67182 2009-02-28  Bruno Haible  <bruno@clisp.org>
67184         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
67185         Reported by Loïc Minier <lool@dooz.org>.
67187 2009-02-27  Bruno Haible  <bruno@clisp.org>
67189         * gnulib-tool (func_import): Make the sed expression used to create the
67190         sed script for updating the .gitignore file POSIX compliant.
67191         Reported by Eric Blake.
67193 2009-02-27  Bruno Haible  <bruno@clisp.org>
67195         * gnulib-tool (sed): Don't alias as "sed --posix".
67196         Reported by Eric Blake.
67198 2009-02-27  Bruno Haible  <bruno@clisp.org>
67200         Avoid test link errors.
67201         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
67202         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
67203         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
67204         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
67205         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67207 2009-02-27  Bruno Haible  <bruno@clisp.org>
67209         Avoid spurious "(cached)" in configure output.
67210         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
67211         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
67212         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
67213         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
67214         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
67215         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
67216         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
67217         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
67218         Reported by Eric Blake.
67220 2009-02-27  Eric Blake  <ebb9@byu.net>
67222         printf: fix regression in previous patch
67223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
67225 2009-02-27  Bruno Haible  <bruno@clisp.org>
67227         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
67228         value.
67229         * lib/stdint.in.h: Likewise.
67230         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
67232 2009-02-27  Eric Blake  <ebb9@byu.net>
67234         doc: mention more functions added in cygwin 1.7.0
67235         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
67236         addition.
67237         * doc/posix-functions/open_wmemstream.texi: Likewise.
67238         * doc/posix-functions/wcsnlen.texi: Likewise.
67239         * doc/posix-functions/wcsnrtombs.texi: Likewise.
67240         * doc/posix-functions/wcstod.texi: Likewise.
67241         * doc/posix-functions/wcstof.texi: Likewise.
67242         * doc/posix-functions/wcstoimax.texi: Likewise.
67243         * doc/posix-functions/wcstok.texi: Likewise.
67244         * doc/posix-functions/wcstoumax.texi: Likewise.
67246         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
67247         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
67248         * doc/posix-functions/fprintf.texi: Update.
67249         * doc/posix-functions/printf.texi: Update.
67250         * doc/posix-functions/snprintf.texi: Update.
67251         * doc/posix-functions/sprintf.texi: Update.
67252         * doc/posix-functions/vfprintf.texi: Update.
67253         * doc/posix-functions/vprintf.texi: Update.
67254         * doc/posix-functions/vsnprintf.texi: Update.
67255         * doc/posix-functions/vsprintf.texi: Update.
67256         * doc/glibc-functions/obstack_printf.texi: Update.
67257         * doc/glibc-functions/obstack_vprintf.texi: Update.
67259 2009-02-26  Eric Blake  <ebb9@byu.net>
67261         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
67262         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
67263         compilation bug by using runtime conversion.
67264         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
67265         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
67266         * modules/ceill-tests (Files): Use nan.h.
67267         * modules/floorl-tests (Files): Likewise.
67268         * modules/frexpl-tests (Files): Likewise.
67269         * modules/isnanl-tests (Files): Likewise.
67270         * modules/ldexpl-tests (Files): Likewise.
67271         * modules/roundl-tests (Files): Likewise.
67272         * modules/truncl-tests (Files): Likewise.
67273         * tests/test-ceill.c (main): Use a working NaN.
67274         * tests/test-floorl.c (main): Likewise.
67275         * tests/test-frexpl.c (main): Likewise.
67276         * tests/test-isnan.c (test_long_double): Likewise.
67277         * tests/test-isnanl.h (main): Likewise.
67278         * tests/test-ldexpl.h (main): Likewise.
67279         * tests/test-roundl.h (main): Likewise.
67280         * tests/test-truncl.h (main): Likewise.
67281         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
67283 2009-02-26  Eric Blake  <ebb9@byu.net>
67284             Bruno Haible  <bruno@clisp.org>
67286         Work around a *printf bug with %ls on Solaris.
67287         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
67288         precision is specified, sprintf stops converting the wide string
67289         argument when the number of bytes that have been produced by this
67290         conversion equals or exceeds the precision.
67291         * doc/posix-functions/fprintf.texi: Update.
67292         * doc/posix-functions/printf.texi: Update.
67293         * doc/posix-functions/snprintf.texi: Update.
67294         * doc/posix-functions/sprintf.texi: Update.
67295         * doc/posix-functions/vfprintf.texi: Update.
67296         * doc/posix-functions/vprintf.texi: Update.
67297         * doc/posix-functions/vsnprintf.texi: Update.
67298         * doc/posix-functions/vsprintf.texi: Update.
67299         * doc/glibc-functions/obstack_printf.texi: Update.
67300         * doc/glibc-functions/obstack_vprintf.texi: Update.
67302 2009-02-26  Eric Blake  <ebb9@byu.net>
67304         stdlib: favor compiler check of random.h
67305         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
67306         to avoid an ObjC random.h installed by Swarm.
67308 2009-02-26  Bruno Haible  <bruno@clisp.org>
67310         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
67311         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
67312         Reported by Gary V. Vaughan <gary@gnu.org>.
67314 2009-02-26  Bruno Haible  <bruno@clisp.org>
67316         Fix *printf behaviour regarding the %ls directive.
67317         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
67318         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
67319         NEED_PRINTF_DIRECTIVE_LS.
67320         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
67321         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
67322         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67323         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
67324         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
67325         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
67326         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
67327         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67328         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67329         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67330         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67331         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
67332         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67333         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67334         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67335         * doc/posix-functions/fprintf.texi: Update.
67336         * doc/posix-functions/printf.texi: Update.
67337         * doc/posix-functions/snprintf.texi: Update.
67338         * doc/posix-functions/sprintf.texi: Update.
67339         * doc/posix-functions/vfprintf.texi: Update.
67340         * doc/posix-functions/vprintf.texi: Update.
67341         * doc/posix-functions/vsnprintf.texi: Update.
67342         * doc/posix-functions/vsprintf.texi: Update.
67343         * doc/glibc-functions/obstack_printf.texi: Update.
67344         * doc/glibc-functions/obstack_vprintf.texi: Update.
67345         Reported by Eric Blake.
67347 2009-02-25  Bruno Haible  <bruno@clisp.org>
67349         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
67350         with known value.
67351         Reported by Gary V. Vaughan <gary@gnu.org>.
67353 2009-02-25  Bruno Haible  <bruno@clisp.org>
67355         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
67356         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
67357         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
67358         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
67359         Reported by Gary V. Vaughan <gary@gnu.org>.
67361 2009-02-25  Bruno Haible  <bruno@clisp.org>
67363         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
67364         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
67365         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
67366         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
67367         Reported by Gary V. Vaughan <gary@gnu.org>.
67369 2009-02-25  Eric Blake  <ebb9@byu.net>
67371         tests: skip fseek/ftell tests if ungetc is broken
67372         * m4/ungetc.m4: New file.
67373         * modules/fseek-tests: Split test, so ungetc dependency is
67374         separate from rest of test.
67375         * modules/fseeko-tests: Likewise.
67376         * modules/ftell-tests: Likewise.
67377         * modules/ftello-tests: Likewise.
67378         * tests/test-fseek.c (main): Isolate ungetc dependency.
67379         * tests/test-fseeko.c (main): Likewise.
67380         * tests/test-ftell.c (main): Likewise.
67381         * tests/test-ftello.c (main): Likewise.
67382         * tests/test-fseek2.sh: New file.
67383         * tests/test-fseeko2.sh: Likewise.
67384         * tests/test-ftell2.sh: Likewise.
67385         * tests/test-ftello2.sh: Likewise.
67387 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
67389         test-getaddrinfo: fix usage of skip return code 77
67390         * tests/test-gettaddrinfo.c: Return skip code 77 only
67391         for first occurrence of skip (4x77 is not 77)
67393 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
67395         strtod: avoid C99 decl-after-statement
67396         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
67398 2009-02-24  Eric Blake  <ebb9@byu.net>
67400         strtod: detect HP-UX 11.31 bug
67401         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
67402         Reported by Gary V. Vaughan.
67404 2009-02-23  Bruno Haible  <bruno@clisp.org>
67406         Fix invalid read past end of memory block.
67407         * lib/vasnprintf.c (DCHAR_SET): Define.
67408         (local_wcslen): Define only when needed.
67409         (local_strnlen, local_wcsnlen): New functions.
67410         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
67411         directives that involve a conversion ourselves.
67412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
67413         wcsnlen, mbrtowc, wcrtomb.
67414         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
67415         * tests/test-vasprintf-posix.c (test_function): Likewise.
67416         * tests/test-snprintf-posix.h (test_function): Likewise.
67417         * tests/test-sprintf-posix.h (test_function): Likewise.
67418         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67420 2009-02-22  Bruno Haible  <bruno@clisp.org>
67422         Implement new clarified decomposition of Hangul syllables.
67423         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
67424         of type LTV, return only a pairwise decomposition.
67425         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
67426         Likewise.
67427         * tests/uninorm/test-decomposition.c (main): Updated expected result.
67428         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
67429         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
67431 2009-02-22  Bruno Haible  <bruno@clisp.org>
67433         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
67434         zero-length results and shrink excess allocated memory.
67435         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
67436         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
67437         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
67438         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
67439         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
67440         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
67441         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
67442         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
67443         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
67444         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
67445         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
67446         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
67448 2009-02-21  Bruno Haible  <bruno@clisp.org>
67450         * doc/gnulib.texi: Include safe-alloc.texi earlier.
67451         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
67452         spaces after a period. Put a space between a macro name and its
67453         argument list. Trivial rewordings.
67454         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
67455         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
67456         (main): Return 0 explicitly.
67458 2009-02-21  Bruno Haible  <bruno@clisp.org>
67460         Tests for module 'uninorm/filter'.
67461         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
67462         * modules/uninorm/filter-tests: New file.
67464         New module 'uninorm/filter'.
67465         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
67466         uninorm_filter_flush, uninorm_filter_free): New declarations.
67467         * lib/uninorm/uninorm-filter.c: New file.
67468         * modules/uninorm/filter: New file.
67470 2009-02-21  Bruno Haible  <bruno@clisp.org>
67472         Tests for module 'uninorm/nfkc'.
67473         * tests/uninorm/test-nfkc.c: New file.
67474         * tests/uninorm/test-u8-nfkc.c: New file.
67475         * tests/uninorm/test-u16-nfkc.c: New file.
67476         * tests/uninorm/test-u32-nfkc.c: New file.
67477         * tests/uninorm/test-u32-nfkc-big.sh: New file.
67478         * tests/uninorm/test-u32-nfkc-big.c: New file.
67479         * modules/uninorm/nfkc-tests: New file.
67481         New module 'uninorm/nfkc'.
67482         * lib/uninorm/nfkc.c: New file.
67483         * modules/uninorm/nfkc: New file.
67485         Tests for module 'uninorm/nfkd'.
67486         * tests/uninorm/test-nfkd.c: New file.
67487         * tests/uninorm/test-u8-nfkd.c: New file.
67488         * tests/uninorm/test-u16-nfkd.c: New file.
67489         * tests/uninorm/test-u32-nfkd.c: New file.
67490         * tests/uninorm/test-u32-nfkd-big.sh: New file.
67491         * tests/uninorm/test-u32-nfkd-big.c: New file.
67492         * modules/uninorm/nfkd-tests: New file.
67494         New module 'uninorm/nfkd'.
67495         * lib/uninorm/nfkd.c: New file.
67496         * modules/uninorm/nfkd: New file.
67498         Tests for module 'uninorm/nfc'.
67499         * tests/uninorm/test-nfc.c: New file.
67500         * tests/uninorm/test-u8-nfc.c: New file.
67501         * tests/uninorm/test-u16-nfc.c: New file.
67502         * tests/uninorm/test-u32-nfc.c: New file.
67503         * tests/uninorm/test-u32-nfc-big.sh: New file.
67504         * tests/uninorm/test-u32-nfc-big.c: New file.
67505         * modules/uninorm/nfc-tests: New file.
67507         New module 'uninorm/nfc'.
67508         * lib/uninorm/nfc.c: New file.
67509         * modules/uninorm/nfc: New file.
67511         Tests for module 'uninorm/nfd'.
67512         * tests/uninorm/test-nfd.c: New file.
67513         * tests/uninorm/test-u8-nfd.c: New file.
67514         * tests/uninorm/test-u16-nfd.c: New file.
67515         * tests/uninorm/test-u32-nfd.c: New file.
67516         * tests/uninorm/test-u32-nfd-big.sh: New file.
67517         * tests/uninorm/test-u32-nfd-big.c: New file.
67518         * tests/uninorm/test-u32-normalize-big.h: New file.
67519         * tests/uninorm/test-u32-normalize-big.c: New file.
67520         * tests/uninorm/NormalizationTest.txt: New file, created from
67521         Unicode 5.1.0 NormalizationTest.txt.
67522         * modules/uninorm/nfd-tests: New file.
67524         New module 'uninorm/nfd'.
67525         * lib/uninorm/nfd.c: New file.
67526         * modules/uninorm/nfd: New file.
67528         New module 'uninorm/u32-normalize'.
67529         * lib/uninorm/u32-normalize.c: New file.
67530         * modules/uninorm/u32-normalize: New file.
67532         New module 'uninorm/u16-normalize'.
67533         * lib/uninorm/u16-normalize.c: New file.
67534         * modules/uninorm/u16-normalize: New file.
67536         New module 'uninorm/u8-normalize'.
67537         * lib/uninorm/u8-normalize.c: New file.
67538         * lib/uninorm/normalize-internal.h: New file.
67539         * lib/uninorm/u-normalize-internal.h: New file.
67540         * modules/uninorm/u8-normalize: New file.
67542         New module 'uninorm/decompose-internal'.
67543         * lib/uninorm/decompose-internal.c: New file.
67544         * modules/uninorm/decompose-internal: New file.
67546         Tests for module 'uninorm/composition'.
67547         * tests/uninorm/test-composition.c: New file.
67548         * modules/uninorm/composition-tests: New file.
67550         New module 'uninorm/composition'.
67551         * lib/uninorm/composition.c: New file.
67552         * lib/uninorm/composition-table.gperf: New file, generated by
67553         gen-uni-tables.
67554         * modules/uninorm/composition: New file.
67556         Tests for module 'uninorm/compat-decomposition'.
67557         * tests/uninorm/test-compat-decomposition.c: New file.
67558         * modules/uninorm/compat-decomposition-tests: New file.
67560         New module 'uninorm/compat-decomposition'.
67561         * lib/uninorm/decompose-internal.h: New file.
67562         * lib/uninorm/compat-decomposition.c: New file.
67563         * modules/uninorm/compat-decomposition: New file.
67565         Tests for module 'uninorm/canonical-decomposition'.
67566         * tests/uninorm/test-canonical-decomposition.c: New file.
67567         * modules/uninorm/canonical-decomposition-tests: New file.
67569         New module 'uninorm/canonical-decomposition'.
67570         * lib/uninorm/canonical-decomposition.c: New file.
67571         * modules/uninorm/canonical-decomposition: New file.
67573         Tests for module 'uninorm/decomposition'.
67574         * tests/uninorm/test-decomposition.c: New file.
67575         * modules/uninorm/decomposition-tests: New file.
67577         New module 'uninorm/decomposition'.
67578         * lib/uninorm/decomposition.c: New file.
67579         * modules/uninorm/decomposition: New file.
67581         New module 'uninorm/decomposition-table'.
67582         * lib/uninorm/decomposition-table.h: New file.
67583         * lib/uninorm/decomposition-table.c: New file.
67584         * lib/uninorm/decomposition-table1.h: New file, generated by
67585         gen-uni-tables.
67586         * lib/uninorm/decomposition-table2.h: New file, generated by
67587         gen-uni-tables.
67588         * modules/uninorm/decomposition-table: New file.
67590         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
67591         (UC_DECOMP_*): New enumeration items.
67592         (get_decomposition): New function.
67593         (struct decomp_table): New type.
67594         (output_decomposition, output_decomposition_tables): New functions.
67595         (unicode_composition_exclusions): New variable.
67596         (fill_composition_exclusions, debug_output_composition_tables): New
67597         functions.
67598         (main): Accept one more argument. Invoke fill_composition_exclusions.
67599         Output decomposition and composition tables.
67601         New module 'uninorm/base'.
67602         * lib/uninorm.h: New file.
67603         * lib/unictype.h: Update comment.
67604         * modules/uninorm/base: New file.
67606 2009-02-21  David Lutterkort  <lutter@redhat.com>
67608         Tests for module 'safe-alloc'.
67609         * tests/test-safe-alloc.c: New file.
67610         * modules/safe-alloc-tests: New file.
67612         New module 'safe-alloc'.
67613         * lib/safe-alloc.h: New file.
67614         * lib/safe-alloc.c: New file.
67615         * m4/safe-alloc.m4: New file.
67616         * modules/safe-alloc: New file.
67617         * doc/safe-alloc.texi: New file.
67618         * doc/gnulib.texi: Include it.
67619         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
67620         safe-alloc.
67622 2009-02-18  Bruno Haible  <bruno@clisp.org>
67624         Fix link error on non-glibc systems.
67625         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
67626         variable.
67627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67629 2009-02-18  Jim Meyering  <meyering@redhat.com>
67631         fts: avoid used-uninitialized error due to recent change
67632         * lib/fts.c (fts_read): Guard uses of the new member,
67633         parent->fts_n_dirs_remaining, since it's not relevant for
67634         the parent of a directory specified on the command-line.
67636 2009-02-17  James Youngman  <jay@gnu.org>
67637             Bruno Haible  <bruno@clisp.org>
67639         * m4/include_next.m4: Reformulate comment.
67641 2009-02-16  Jim Meyering  <meyering@redhat.com>
67643         fts: add #if guards so that the fts_lgpl module still builds
67644         * lib/fts.c: Guard just-added hash-table-using parts with
67645         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
67646         Reported by Simon Josefsson.
67648 2009-02-15  Bruno Haible  <bruno@clisp.org>
67650         * modules/array-mergesort-tests: New file.
67651         * tests/test-array-mergesort.c: New file.
67653         New module 'array-mergesort'.
67654         * modules/array-mergesort: New file.
67655         * lib/array-mergesort.h: New file.
67657 2009-02-15  Bruno Haible  <bruno@clisp.org>
67659         Fix 2009-02-07 commit.
67660         * lib/gen-uni-tables.c (output_predicate, output_category,
67661         output_combclass, output_bidi_category, output_decimal_digit,
67662         output_digit, output_numeric, output_mirror, output_scripts,
67663         output_ident_category, output_simple_mapping): Fix format directives.
67664         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
67666 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
67668         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
67669         fixes are available from IBM.
67671 2009-02-13  Jim Meyering  <meyering@redhat.com>
67673         fts: arrange not to stat non-directories in more cases
67674         This makes GNU find (when it doesn't need to stat each file)
67675         *much* more efficient at traversing reiserfs file systems.
67676         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
67677         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
67678         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
67679         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
67680         (leaf_optimization_applies): New function.
67681         (LCO_hash, LCO_compare): New helper functions.
67682         (link_count_optimize_ok): New function.
67683         (fts_stat): Initialize new member (if dir).
67684         (fts_read): Decrement parent's fts_n_dirs_remaining count if
67685         we've just stat'ed a directory.  Skip the stat call when possible.
67686         ---
67687         Note this AFS-related exchange:
67688         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
67689         and note find's pioctl call in find/fstype.c.
67690         But that is necessary only if you want to enable the
67691         optimization for AFS, and for now, I don't.
67693         fts: move a function definition "up" (no semantic change)
67694         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
67695         "up" to precede upcoming use of a related function.
67697 2009-02-11  Jim Meyering  <meyering@redhat.com>
67699         fts: correct internal computation of nlinks (optimization-related)
67700         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
67701         whether the current entry is a directory, so don't test it.
67703 2009-02-10  Bruno Haible  <bruno@clisp.org>
67705         Tests for module 'uniwbrk/ulc-wordbreaks'.
67706         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
67707         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
67708         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
67710         Tests for module 'uniwbrk/u32-wordbreaks'.
67711         * modules/uniwbrk/u32-wordbreaks-tests: New file.
67712         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
67714         Tests for module 'uniwbrk/u16-wordbreaks'.
67715         * modules/uniwbrk/u16-wordbreaks-tests: New file.
67716         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
67718         Tests for module 'uniwbrk/u8-wordbreaks'.
67719         * modules/uniwbrk/u8-wordbreaks-tests: New file.
67720         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
67722 2009-02-10  Bruno Haible  <bruno@clisp.org>
67724         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
67725         property.
67726         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
67727         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
67728         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
67730 2009-02-10  Simon Josefsson  <simon@josefsson.org>
67732         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
67733         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
67735 2009-02-10  Bruno Haible  <bruno@clisp.org>
67737         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
67738         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
67739         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
67740         * lib/unilbrk/u8-possible-linebreaks.c: Update.
67741         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
67742         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
67744 2009-02-09  Simon Josefsson  <simon@josefsson.org>
67746         * lib/sockets.h (gl_fd_to_handle): New function.
67748         * tests/test-sockets.c: Call gl_fd_to_handle.
67750 2009-02-09  Bruno Haible  <bruno@clisp.org>
67752         * doc/havelib.texi: Document the conventions on bi-arch systems.
67754 2009-02-08  Bruno Haible  <bruno@clisp.org>
67756         Document the AC_LIB_LINKFLAGS macro.
67757         * doc/havelib.texi: New file, mostly written on 2005-05-24.
67758         * doc/gnulib.texi: Include it.
67760 2009-02-08  Bruno Haible  <bruno@clisp.org>
67762         Fix wrong order of sections, compared to TOC.
67763         * doc/gnulib.texi: Include relocatable-maint.texi after the
67764         "Regular expressions" node, not before.
67766 2009-02-08  Bruno Haible  <bruno@clisp.org>
67768         Tests for module 'unicase/totitle'.
67769         * modules/unicase/totitle-tests: New file.
67771         Tests for module 'unicase/tolower'.
67772         * modules/unicase/tolower-tests: New file.
67774         Tests for module 'unicase/toupper'.
67775         * modules/unicase/toupper-tests: New file.
67776         * tests/unicase/test-mapping-part1.h: New file.
67777         * tests/unicase/test-mapping-part2.h: New file.
67779         New module 'unicase/totitle'.
67780         * modules/unicase/totitle: New file.
67781         * lib/unicase/totitle.c: New file.
67783         New module 'unicase/tolower'.
67784         * modules/unicase/tolower: New file.
67785         * lib/unicase/tolower.c: New file.
67787         New module 'unicase/toupper'.
67788         * modules/unicase/toupper: New file.
67789         * lib/unicase/toupper.c: New file.
67790         * lib/unicase/simple-mapping.h: New file.
67792         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
67793         (mapping_table): New structure.
67794         (output_simple_mapping): New function.
67795         (main): Invoke output_simple_mapping_test and output_simple_mapping.
67796         * modules/gen-uni-tables (Description): Update.
67797         * lib/unicase/toupper.h: New file, automatically generated by
67798         gen-uni-tables.
67799         * lib/unicase/tolower.h: New file, automatically generated by
67800         gen-uni-tables.
67801         * lib/unicase/totitle.h: New file, automatically generated by
67802         gen-uni-tables.
67803         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
67804         gen-uni-tables.
67805         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
67806         gen-uni-tables.
67807         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
67808         gen-uni-tables.
67810         New module 'unicase/base'.
67811         * modules/unicase/base: New file.
67812         * lib/unicase.h: New file.
67814 2009-02-08  Bruno Haible  <bruno@clisp.org>
67816         New module 'uniwbrk/ulc-wordbreaks'.
67817         * modules/uniwbrk/ulc-wordbreaks: New file.
67818         * lib/uniwbrk/ulc-wordbreaks.c: New file.
67820         New module 'uniwbrk/u32-wordbreaks'.
67821         * modules/uniwbrk/u32-wordbreaks: New file.
67822         * lib/uniwbrk/u32-wordbreaks.c: New file.
67824         New module 'uniwbrk/u16-wordbreaks'.
67825         * modules/uniwbrk/u16-wordbreaks: New file.
67826         * lib/uniwbrk/u16-wordbreaks.c: New file.
67828         New module 'uniwbrk/u8-wordbreaks'.
67829         * modules/uniwbrk/u8-wordbreaks: New file.
67830         * lib/uniwbrk/u8-wordbreaks.c: New file.
67831         * lib/uniwbrk/u-wordbreaks.h: New file.
67833         New module 'uniwbrk/table'.
67834         * modules/uniwbrk/table: New file.
67835         * lib/uniwbrk/wbrktable.h: New file.
67836         * lib/uniwbrk/wbrktable.c: New file.
67838         New module 'uniwbrk/wordbreak-property'.
67839         * modules/uniwbrk/wordbreak-property: New file.
67840         * lib/uniwbrk/wordbreak-property.c: New file.
67842         * lib/gen-uni-tables.c (WBP_*): New enum items.
67843         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
67844         (unicode_org_wbp): New variable.
67845         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
67846         New functions.
67847         (wbp_table): New structure.
67848         (output_wbp, output_wbrk_tables): New functions.
67849         (main): Accept additional argument. Invoke fill_org_wbp,
67850         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
67851         output_wbrk_tables.
67852         * modules/gen-uni-tables (Description): Update.
67853         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
67854         gen-uni-tables.
67856         New module 'uniwbrk/base'.
67857         * modules/uniwbrk/base: New file.
67858         * lib/uniwbrk.h: New file.
67860 2009-02-08  Bruno Haible  <bruno@clisp.org>
67862         Update to Unicode 5.1.0.
67863         * lib/gen-uni-tables.c (is_property_alphabetic): Include
67864         U+2185..U+2188.
67865         (is_property_default_ignorable_code_point): Don't include characters
67866         of category Cc or Cs and not-a-characters.
67867         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
67868         U+0D79, U+109E, U+109F, U+A60C.
67869         * lib/unictype/bidi_of.h: Regenerated.
67870         * lib/unictype/blocks.h: Regenerated.
67871         * lib/unictype/categ_C.h: Regenerated.
67872         * lib/unictype/categ_Cf.h: Regenerated.
67873         * lib/unictype/categ_Cn.h: Regenerated.
67874         * lib/unictype/categ_L.h: Regenerated.
67875         * lib/unictype/categ_Ll.h: Regenerated.
67876         * lib/unictype/categ_Lm.h: Regenerated.
67877         * lib/unictype/categ_Lo.h: Regenerated.
67878         * lib/unictype/categ_Lu.h: Regenerated.
67879         * lib/unictype/categ_M.h: Regenerated.
67880         * lib/unictype/categ_Mc.h: Regenerated.
67881         * lib/unictype/categ_Me.h: Regenerated.
67882         * lib/unictype/categ_Mn.h: Regenerated.
67883         * lib/unictype/categ_N.h: Regenerated.
67884         * lib/unictype/categ_Nd.h: Regenerated.
67885         * lib/unictype/categ_Nl.h: Regenerated.
67886         * lib/unictype/categ_No.h: Regenerated.
67887         * lib/unictype/categ_P.h: Regenerated.
67888         * lib/unictype/categ_Pd.h: Regenerated.
67889         * lib/unictype/categ_Pe.h: Regenerated.
67890         * lib/unictype/categ_Pf.h: Regenerated.
67891         * lib/unictype/categ_Pi.h: Regenerated.
67892         * lib/unictype/categ_Po.h: Regenerated.
67893         * lib/unictype/categ_Ps.h: Regenerated.
67894         * lib/unictype/categ_S.h: Regenerated.
67895         * lib/unictype/categ_Sk.h: Regenerated.
67896         * lib/unictype/categ_Sm.h: Regenerated.
67897         * lib/unictype/categ_So.h: Regenerated.
67898         * lib/unictype/categ_of.h: Regenerated.
67899         * lib/unictype/combining.h: Regenerated.
67900         * lib/unictype/ctype_alnum.h: Regenerated.
67901         * lib/unictype/ctype_alpha.h: Regenerated.
67902         * lib/unictype/ctype_graph.h: Regenerated.
67903         * lib/unictype/ctype_lower.h: Regenerated.
67904         * lib/unictype/ctype_print.h: Regenerated.
67905         * lib/unictype/ctype_punct.h: Regenerated.
67906         * lib/unictype/ctype_upper.h: Regenerated.
67907         * lib/unictype/decdigit.h: Regenerated.
67908         * lib/unictype/digit.h: Regenerated.
67909         * lib/unictype/mirror.h: Regenerated.
67910         * lib/unictype/numeric.h: Regenerated.
67911         * lib/unictype/pr_alphabetic.h: Regenerated.
67912         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
67913         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
67914         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
67915         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
67916         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
67917         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
67918         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
67919         * lib/unictype/pr_combining.h: Regenerated.
67920         * lib/unictype/pr_dash.h: Regenerated.
67921         * lib/unictype/pr_decimal_digit.h: Regenerated.
67922         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
67923         * lib/unictype/pr_deprecated.h: Regenerated.
67924         * lib/unictype/pr_diacritic.h: Regenerated.
67925         * lib/unictype/pr_extender.h: Regenerated.
67926         * lib/unictype/pr_format_control.h: Regenerated.
67927         * lib/unictype/pr_grapheme_base.h: Regenerated.
67928         * lib/unictype/pr_grapheme_extend.h: Regenerated.
67929         * lib/unictype/pr_grapheme_link.h: Regenerated.
67930         * lib/unictype/pr_id_continue.h: Regenerated.
67931         * lib/unictype/pr_id_start.h: Regenerated.
67932         * lib/unictype/pr_ideographic.h: Regenerated.
67933         * lib/unictype/pr_ignorable_control.h: Regenerated.
67934         * lib/unictype/pr_lowercase.h: Regenerated.
67935         * lib/unictype/pr_math.h: Regenerated.
67936         * lib/unictype/pr_numeric.h: Regenerated.
67937         * lib/unictype/pr_other_alphabetic.h: Regenerated.
67938         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
67939         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
67940         * lib/unictype/pr_other_id_continue.h: Regenerated.
67941         * lib/unictype/pr_other_lowercase.h: Regenerated.
67942         * lib/unictype/pr_other_math.h: Regenerated.
67943         * lib/unictype/pr_punctuation.h: Regenerated.
67944         * lib/unictype/pr_sentence_terminal.h: Regenerated.
67945         * lib/unictype/pr_soft_dotted.h: Regenerated.
67946         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
67947         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
67948         * lib/unictype/pr_unified_ideograph.h: Regenerated.
67949         * lib/unictype/pr_uppercase.h: Regenerated.
67950         * lib/unictype/pr_xid_continue.h: Regenerated.
67951         * lib/unictype/pr_xid_start.h: Regenerated.
67952         * lib/unictype/pr_zero_width.h: Regenerated.
67953         * lib/unictype/scripts.h: Regenerated.
67954         * lib/unictype/scripts_byname.gperf: Regenerated.
67955         * lib/unictype/sy_java_ident.h: Regenerated.
67956         * lib/unilbrk/lbrkprop1.h: Regenerated.
67957         * lib/unilbrk/lbrkprop2.h: Regenerated.
67958         * tests/unictype/test-categ_C.c: Regenerated.
67959         * tests/unictype/test-categ_Cf.c: Regenerated.
67960         * tests/unictype/test-categ_Cn.c: Regenerated.
67961         * tests/unictype/test-categ_L.c: Regenerated.
67962         * tests/unictype/test-categ_Ll.c: Regenerated.
67963         * tests/unictype/test-categ_Lm.c: Regenerated.
67964         * tests/unictype/test-categ_Lo.c: Regenerated.
67965         * tests/unictype/test-categ_Lu.c: Regenerated.
67966         * tests/unictype/test-categ_M.c: Regenerated.
67967         * tests/unictype/test-categ_Mc.c: Regenerated.
67968         * tests/unictype/test-categ_Me.c: Regenerated.
67969         * tests/unictype/test-categ_Mn.c: Regenerated.
67970         * tests/unictype/test-categ_N.c: Regenerated.
67971         * tests/unictype/test-categ_Nd.c: Regenerated.
67972         * tests/unictype/test-categ_Nl.c: Regenerated.
67973         * tests/unictype/test-categ_No.c: Regenerated.
67974         * tests/unictype/test-categ_P.c: Regenerated.
67975         * tests/unictype/test-categ_Pd.c: Regenerated.
67976         * tests/unictype/test-categ_Pe.c: Regenerated.
67977         * tests/unictype/test-categ_Pf.c: Regenerated.
67978         * tests/unictype/test-categ_Pi.c: Regenerated.
67979         * tests/unictype/test-categ_Po.c: Regenerated.
67980         * tests/unictype/test-categ_Ps.c: Regenerated.
67981         * tests/unictype/test-categ_S.c: Regenerated.
67982         * tests/unictype/test-categ_Sk.c: Regenerated.
67983         * tests/unictype/test-categ_Sm.c: Regenerated.
67984         * tests/unictype/test-categ_So.c: Regenerated.
67985         * tests/unictype/test-ctype_alnum.c: Regenerated.
67986         * tests/unictype/test-ctype_alpha.c: Regenerated.
67987         * tests/unictype/test-ctype_graph.c: Regenerated.
67988         * tests/unictype/test-ctype_lower.c: Regenerated.
67989         * tests/unictype/test-ctype_print.c: Regenerated.
67990         * tests/unictype/test-ctype_punct.c: Regenerated.
67991         * tests/unictype/test-ctype_upper.c: Regenerated.
67992         * tests/unictype/test-decdigit.h: Regenerated.
67993         * tests/unictype/test-digit.h: Regenerated.
67994         * tests/unictype/test-numeric.h: Regenerated.
67995         * tests/unictype/test-pr_alphabetic.c: Regenerated.
67996         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
67997         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
67998         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
67999         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
68000         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
68001         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
68002         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
68003         * tests/unictype/test-pr_combining.c: Regenerated.
68004         * tests/unictype/test-pr_dash.c: Regenerated.
68005         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
68006         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
68007         * tests/unictype/test-pr_deprecated.c: Regenerated.
68008         * tests/unictype/test-pr_diacritic.c: Regenerated.
68009         * tests/unictype/test-pr_extender.c: Regenerated.
68010         * tests/unictype/test-pr_format_control.c: Regenerated.
68011         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
68012         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
68013         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
68014         * tests/unictype/test-pr_id_continue.c: Regenerated.
68015         * tests/unictype/test-pr_id_start.c: Regenerated.
68016         * tests/unictype/test-pr_ideographic.c: Regenerated.
68017         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
68018         * tests/unictype/test-pr_lowercase.c: Regenerated.
68019         * tests/unictype/test-pr_math.c: Regenerated.
68020         * tests/unictype/test-pr_numeric.c: Regenerated.
68021         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
68022         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
68023         Regenerated.
68024         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
68025         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
68026         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
68027         * tests/unictype/test-pr_other_math.c: Regenerated.
68028         * tests/unictype/test-pr_punctuation.c: Regenerated.
68029         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
68030         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
68031         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
68032         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
68033         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
68034         * tests/unictype/test-pr_uppercase.c: Regenerated.
68035         * tests/unictype/test-pr_xid_continue.c: Regenerated.
68036         * tests/unictype/test-pr_xid_start.c: Regenerated.
68037         * tests/unictype/test-pr_zero_width.c: Regenerated.
68039         Update to Unicode 5.1.0.
68040         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
68041         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
68042         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
68043         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
68044         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
68045         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
68046         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
68047         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
68048         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
68049         (nonspacing_table_ind): Update.
68050         * tests/uniwidth/test-uc_width2.sh: Update expected result.
68052         Update to Unicode 5.1.0.
68053         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
68054         code transform.
68055         * lib/uniname/uniname.c (unicode_character_name,
68056         unicode_name_character): Add the range 0x1Fxxx to the code transform.
68057         * lib/uniname/uninames.h: Regenerated.
68058         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
68060 2009-02-07  Bruno Haible  <bruno@clisp.org>
68062         Merge gen-ctype and gen-lbrk into a single program.
68063         * lib/gen-uni-tables.c: New file, incorporating
68064         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
68065         Add directory prefixes to the names of the generated files.
68066         * lib/unictype/gen-ctype.c: Remove file.
68067         * lib/unilbrk/gen-lbrk.c: Remove file.
68068         * modules/gen-uni-tables: New file.
68069         * modules/unictype/gen-ctype: Remove file.
68070         * modules/unilbrk/gen-lbrk: Remove file.
68072 2009-02-07  Bruno Haible  <bruno@clisp.org>
68074         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
68076         New module 'unistr/u32-strcoll'.
68077         * modules/unistr/u32-strcoll: New file.
68078         * lib/unistr/u32-strcoll.c: New file.
68080         New module 'unistr/u16-strcoll'.
68081         * modules/unistr/u16-strcoll: New file.
68082         * lib/unistr/u16-strcoll.c: New file.
68084         New module 'unistr/u8-strcoll'.
68085         * modules/unistr/u8-strcoll: New file.
68086         * lib/unistr/u8-strcoll.c: New file.
68087         * lib/unistr/u-strcoll.h: New file.
68089 2009-02-07  Bruno Haible  <bruno@clisp.org>
68091         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
68092         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
68093         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
68094         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
68095         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
68096         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
68098 2009-02-07  Bruno Haible  <bruno@clisp.org>
68100         Make 64-bit clean.
68101         * lib/unictype/gen-ctype.c (output_predicate, output_category,
68102         output_combclass, output_bidi_category, output_decimal_digit,
68103         output_digit, output_numeric, output_mirror, output_scripts,
68104         output_ident_category): Use proper width specifier in format strings.
68106 2009-02-07  Bruno Haible  <bruno@clisp.org>
68108         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
68109         failure behaviour.
68111 2009-02-07  Jim Meyering  <meyering@redhat.com>
68113         regex: avoid compilation failure with upcoming gcc-4.4
68114         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
68115         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
68116         "... error: integer overflow in preprocessor expression".
68118 2009-02-05  Ben Pfaff  <blp@gnu.org>
68120         Fix link errors on Windows when close module is used.
68121         * modules/close: Add $(LIB_CLOSE) to Link section.
68122         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
68123         $(LIB_CLOSE) on Windows.
68125 2009-02-05  Jim Meyering  <meyering@redhat.com>
68127         still avoid unused-parameter warnings, but do it cleanly
68128         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
68129         (get_fs_usage): Cast to void instead.
68130         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
68131         (dev_from_mount_options, read_file_system_list): Cast to void.
68132         Prompted by Bruno Haible.
68134 2009-02-04  Jim Meyering  <meyering@redhat.com>
68136         fsusage.c: correct copyright year
68137         * lib/fsusage.c: Reflect year in which the change is pushed into
68139         avoid misc. warnings
68140         * lib/fsusage.c (UNUSED_PARAM): Define.
68141         (get_fs_usage): Mark parameter "disk" as unused.
68142         * lib/getugroups.c (getgrent): Use "void" in prototype.
68143         * lib/mountlist.c: Mark unused parameters.
68144         (read_file_system_list): Declare a local with "const".
68145         * lib/nanosleep.c (getnow): Declare static.
68146         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
68148         dirfd: set errno upon failure
68149         * lib/dirfd.c: Include <errno.h>.
68150         Set errno to ENOTSUP when returning -1.
68151         * modules/dirfd (Depends-on): Add errno.
68152         Suggested by John Kodis <kodis@comcast.net>.
68154 2009-02-01  Bruno Haible  <bruno@clisp.org>
68156         Don't assume sizeof (long) >= sizeof (void *).
68157         * lib/memcmp.c: Include stdint.h.
68158         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
68159         srcp2 to 'const byte *'.
68160         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
68161         types to uintptr_t.
68162         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
68163         * modules/memcmp (Depends-on): Add stdint.
68164         Reported by Ozkan Sezer <sezeroz@gmail.com>.
68166 2009-01-30  Eric Blake  <ebb9@byu.net>
68168         fix more require-before-expand issues
68169         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
68170         expand, AC_PROG_AWK.
68171         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
68173 2009-01-28  Eric Blake  <ebb9@byu.net>
68175         version-etc: use consistent URL formatting
68176         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
68177         Improve formatting.  Use fputs for string without %.
68179 2009-01-28  Jim Meyering  <meyering@redhat.com>
68181         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
68182         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
68183         "underquoted definition of NAME" from autoconf-2.59.
68185 2009-01-28  Bruno Haible  <bruno@clisp.org>
68187         * doc/gnulib.texi: Add "Obsolete modules" to index.
68189 2009-01-28  Jim Meyering  <meyering@redhat.com>
68191         useless-if-before-free: recognize more variants
68192         * build-aux/useless-if-before-free: Also recognize e.g.,
68193         if (NULL != p) free (p);
68195 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
68197         test-getaddrinfo: skip (don't fail) this test when there's no network
68198         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
68199         on the presumption that it means you lack network access.
68201 2009-01-26  Jim Meyering  <meyering@redhat.com>
68203         fflush: avoid warnings on modern systems
68204         * lib/fflush.c (rpl_fflush): Move declarations of locals,
68205         pos and result, into scopes where they're used.
68207 2009-01-26  Eric Blake  <ebb9@byu.net>
68209         Silence warning reintroduced by recent extensions patch.
68210         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
68211         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
68212         autoconf.
68214         Backport improved autoconf semantics of AC_DEFUN_ONCE.
68215         * m4/00gnulib.m4: New file.
68216         * gnulib-tool (func_get_filelist): Always use it.
68217         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
68218         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
68220 2009-01-25  Bruno Haible  <bruno@clisp.org>
68222         Make test-quotearg work on MacOS X and AIX.
68223         * tests/test-quotearg.sh: New file.
68224         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
68225         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
68226         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
68227         include <libintl.h>.
68228         (fake_locale): Remove variable.
68229         (gettext, dgettext, dcgettext): Remove functions.
68230         (main): Instead of setting a fake locale, set a real locale. Call
68231         textdomain and bindtextdomain.
68232         * modules/quotearg-tests (Files): Add the new files.
68233         (Depends-on): Add gettext, setenv, unsetenv.
68234         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68235         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
68236         Augment TESTS_ENVIRONMENT.
68238 2009-01-25  Bruno Haible  <bruno@clisp.org>
68240         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
68241         fr_FR.ISO8859-1 locale on MacOS X.
68242         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
68243         ja_JP.eucJP locale on MacOS X.
68244         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
68245         zh_CN.GB18030 locale on MacOS X.
68247 2009-01-25  Bruno Haible  <bruno@clisp.org>
68249         Avoid link errors on MacOS X 10.3.
68250         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
68251         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
68253 2009-01-25  Bruno Haible  <bruno@clisp.org>
68255         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
68256         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
68257         * modules/pipe (Files): Remove m4/posix_spawn.m4.
68258         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
68259         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
68260         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
68261         posix_spawnattr_init, posix_spawnattr_setsigmask,
68262         posix_spawnattr_setflags, posix_spawnattr_destroy.
68264         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
68265         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
68266         * modules/execute (Files): Remove m4/posix_spawn.m4.
68267         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
68268         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
68269         posix_spawnattr_init, posix_spawnattr_setsigmask,
68270         posix_spawnattr_setflags, posix_spawnattr_destroy.
68272 2009-01-25  Bruno Haible  <bruno@clisp.org>
68274         * lib/glthread/threadlib.c: Include <stdlib.h>.
68276 2009-01-25  Bruno Haible  <bruno@clisp.org>
68278         * lib/glthread/threadlib.c (dummy): New declaration.
68280 2009-01-25  Bruno Haible  <bruno@clisp.org>
68282         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
68283         multibyte characters also for the GB18030 encoding. Don't crash when
68284         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
68286 2009-01-25  Bruno Haible  <bruno@clisp.org>
68288         Avoid redefining 'struct random_data' on OSF/1 5.1.
68289         * lib/stdlib.in.h: Include <random.h> if it exists.
68290         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
68291         HAVE_RANDOM_H. Include <random.h> when testing whether
68292         'struct random_data' exists.
68293         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
68295 2009-01-25  Bruno Haible  <bruno@clisp.org>
68297         Don't install charset.alias on MacOS X >= 10.3.
68298         * lib/localcharset.c (DARWIN7): New macro.
68299         (get_charset_aliases): Hardcode the result for Darwin7.
68300         * modules/localcharset (install-exec-local): Don't install
68301         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
68303 2009-01-25  Bruno Haible  <bruno@clisp.org>
68305         Don't install charset.alias on mingw and Cygwin.
68306         * modules/localcharset (install-exec-local): Don't install
68307         charset.alias on mingw and Cygwin, if the file does not yet exist.
68308         The result for these platforms is hardcoded in localcharset.c.
68310 2009-01-25  Bruno Haible  <bruno@clisp.org>
68312         Make it possible again to use AC_GNU_SOURCE together with gnulib.
68313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
68314         before requiring AC_USE_SYSTEM_EXTENSIONS.
68316 2009-01-25  Jim Meyering  <meyering@redhat.com>
68318         c-strtod: avoid warnings
68319         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
68320         "assignment discards qualifiers from pointer target type" warnings.
68322 2009-01-24  Bruno Haible  <bruno@clisp.org>
68324         Add support for non-UTF-8 locales on MacOS X.
68325         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
68326         canonical encodings. For Darwin 7 and newer, don't map traditional
68327         encodings to UTF-8.
68328         Reported by Vincent Lefevre <vincent@vinc17.org>
68329         at <http://savannah.gnu.org/bugs/?25235>.
68331 2009-01-24  Bruno Haible  <bruno@clisp.org>
68333         * doc/gnulib.texi (Obsolete modules): New section.
68334         Reported by Mike Frysinger <vapier@gentoo.org>.
68336 2009-01-24  Bruno Haible  <bruno@clisp.org>
68338         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
68339         (%.dvi): New rule.
68341 2009-01-24  Bruno Haible  <bruno@clisp.org>
68343         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
68344         Reported by Eric Blake.
68346 2009-01-24  Bruno Haible  <bruno@clisp.org>
68348         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
68349         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
68350         Reported by Gary V. Vaughan <gary@gnu.org>.
68352 2009-01-24  Bruno Haible  <bruno@clisp.org>
68354         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
68356 2009-01-23  Bruno Haible  <bruno@clisp.org>
68358         Make c-strtod, c-strtold usable in libraries.
68359         * lib/c-strtod.c: Include string.h instead of xalloc.h.
68360         (C_STRTOD): Call strdup instead of xstrdup.
68361         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
68362         * modules/c-strtold (Depends-on): Likewise.
68363         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
68364         * NEWS: Mention the change.
68365         Reported by Michael Gold <mgold@ncf.ca>.
68367 2009-01-23  Jim Meyering  <meyering@redhat.com>
68369         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
68370         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
68371         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
68373 2009-01-23  Simon Josefsson  <simon@josefsson.org>
68375         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
68376         GNU CoreUtils.
68377         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
68378         * modules/version-etc (Description): Update.
68380 2009-01-22  Bruno Haible  <bruno@clisp.org>
68382         Cache the C locale object.
68383         * lib/c-strtod.c (c_locale_cache): New variable.
68384         (c_locale): New function.
68385         (C_STRTOD): Use it, and don't call freelocale.
68386         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
68387         Suggested by Paolo Bonzini.
68389 2009-01-21  Bruno Haible  <bruno@clisp.org>
68391         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
68392         conditions other than overflow.
68394 2009-01-21  Bruno Haible  <bruno@clisp.org>
68396         * lib/c-strtod.c: Include errno.h.
68397         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
68398         value from STRTOD_L and STRTOD.
68400 2009-01-21  Bruno Haible  <bruno@clisp.org>
68401         and Jim Meyering  <meyering@redhat.com>
68403         nanosleep: skip configure test (fail it) for apple universal builds
68404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
68405         universal builds, assume that nanosleep does not work.
68406         * modules/nanosleep (Depends-on): Add multiarch.
68408         mktime: skip configure test (fail it) for apple universal builds
68409         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
68410         universal builds, assume that mktime does not work.
68411         * modules/mktime (Depends-on): Add multiarch.
68413 2009-01-21  Eric Blake  <ebb9@byu.net>
68415         multiarch: avoid expand-before-require warning
68416         * modules/multiarch (configure.ac): Require, rather than expand,
68417         gl_MULTIARCH.
68418         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
68419         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
68420         enforce that all clients require it.  Partial reversion of
68421         2008-12-29 patch.
68423         error: avoid expand-before-require warning
68424         * modules/errno (configure.ac): Require, rather than expand,
68425         gl_HEADER_ERRNO_H.
68426         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
68427         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
68428         enforce that all clients require it.
68430         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
68431         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
68432         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
68433         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
68435 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
68437         Revert:
68438         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68440         regex: do not depend on obsolete modules.
68441         * modules/regex: Remove memcmp and memmove.
68443 2009-01-20  Bruno Haible  <bruno@clisp.org>
68445         Make the 'link' module link on Windows NT 4.
68446         * lib/link.c (_WIN32_WINNT): Don't define.
68447         (CreateHardLinkFuncType): New type.
68448         (CreateHardLinkFunc, initialized): New variables.
68449         (initialize): New function.
68450         (link): Invoke CreateHardLink indirectly through the function pointer.
68452 2009-01-20  Bruno Haible  <bruno@clisp.org>
68454         Fix compilation failure on mingw.
68455         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
68457 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
68459         * doc/c-strtod.texi: Mention a couple of restrictions.
68461 2009-01-20  Jim Meyering  <meyering@redhat.com>
68463         gettimeofday: move more declarations out of functions
68464         * lib/gettimeofday.c: Move extern declarations of tzset and
68465         gmtime out of containing functions.  Prompted by Bruno Haible.
68467 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68469         regex: do not depend on obsolete modules.
68470         * modules/regex: Remove memcmp and memmove.
68472 2009-01-19  Bruno Haible  <bruno@clisp.org>
68474         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
68475         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
68476         gl_BIGENDIAN, not AC_C_BIGENDIAN.
68477         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
68478         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
68480 2009-01-19  Bruno Haible  <bruno@clisp.org>
68482         * tests/test-link.c: Include <errno.h>.
68483         (main): Exit with code 77 when a hard link cannot be created due to
68484         the file system.
68485         * tests/test-link.sh: Skip test when a hard link cannot be created due
68486         to the file system.
68487         Suggested by Eric Blake.
68489 2009-01-19  Martin Lambers  <marlam@marlam.de>
68491         * modules/link-tests: New file.
68492         * tests/test-link.sh: New file.
68493         * tests/test-link.c: New file.
68495 2009-01-19  Eric Blake  <ebb9@byu.net>
68497         doc: mention another function added in cygwin 1.7.0
68498         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
68499         Another new function in cygwin 1.7.
68501 2009-01-19  Bruno Haible  <bruno@clisp.org>
68503         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
68504         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
68505         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
68506         gl_BIGENDIAN, not AC_C_BIGENDIAN.
68507         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
68508         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
68509         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
68510         * m4/md4.m4 (gl_MD4): Likewise.
68511         * m4/md5.m4 (gl_MD5): Likewise.
68512         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
68513         * m4/sha1.m4 (gl_SHA1): Likewise.
68514         * m4/sha256.m4 (gl_SHA256): Likewise.
68515         * m4/sha512.m4 (gl_SHA512): Likewise.
68517 2009-01-19  Bruno Haible  <bruno@clisp.org>
68519         * modules/uniname/uniname-tests (Depends-on): Add progname.
68520         * tests/uniname/test-uninames.c: Include progname.h.
68521         (main): Call set_program_name.
68523         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
68524         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
68525         (main): Call set_program_name.
68527         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
68528         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
68529         (main): Call set_program_name.
68531         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
68532         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
68533         (main): Call set_program_name.
68535         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
68536         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
68537         (main): Call set_program_name.
68539         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
68540         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
68541         (main): Call set_program_name.
68543         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
68544         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
68545         (main): Call set_program_name.
68547         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
68548         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
68549         (main): Call set_program_name.
68551         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
68552         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
68553         (main): Call set_program_name.
68555 2009-01-19  Eric Blake  <ebb9@byu.net>
68557         test-unistd: test previous patch
68558         * tests/test-unistd.c: Test *_FILENO macros.
68560         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
68561         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68562         Guarantee a definition.
68563         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
68564         * modules/unistd-safer (Depends-on): Add dependency on unistd.
68565         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
68566         * lib/dup-safer.c (STDERR_FILENO): Likewise.
68567         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68568         Likewise.
68569         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
68570         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
68571         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68572         Likewise.
68573         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
68574         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
68575         (STDERR_FILENO): Likewise.
68576         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
68577         (STDERR_FILENO): Likewise.
68578         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
68579         (STDERR_FILENO): Likewise.
68580         Reported by Elbert Pol.
68582 2009-01-19  Eric Blake  <ebb9@byu.net>
68584         doc: mention more functions added in cygwin 1.7.0
68585         * doc/posix-functions/abort.texi (abort): Update wording related
68586         to cygwin.
68587         * doc/posix-functions/daylight.texi (daylight): Likewise.
68588         * doc/posix-functions/optarg.texi (optarg): Likewise.
68589         * doc/posix-functions/optarg.texi (opterr): Likewise.
68590         * doc/posix-functions/optarg.texi (optind): Likewise.
68591         * doc/posix-functions/optarg.texi (optopt): Likewise.
68592         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
68593         worked in 1.5.x, and was withdrawn in 1.7.
68594         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
68595         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
68596         cygwin versions.
68597         * doc/posix-functions/perror.texi (perror): Likewise.
68598         * doc/posix-functions/printf.texi (printf): Likewise.
68599         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
68600         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
68601         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
68602         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
68603         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
68604         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
68605         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
68606         Likewise.
68607         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
68608         Likewise.
68609         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
68610         this function.
68611         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
68612         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
68613         Likewise.
68614         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
68615         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
68616         * doc/posix-functions/confstr.texi (confstr): Likewise.
68617         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
68618         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
68619         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
68620         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
68621         * doc/posix-functions/fputws.texi (fputws): Likewise.
68622         * doc/posix-functions/fwide.texi (fwide): Likewise.
68623         * doc/posix-functions/getwc.texi (getwc): Likewise.
68624         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
68625         * doc/posix-functions/putwc.texi (putwc): Likewise.
68626         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
68627         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
68628         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
68629         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
68630         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
68631         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
68632         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
68633         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
68634         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
68635         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
68636         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
68638 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
68640         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
68641         * lib/ioctl.c: Include <sys/ioctl.h>.
68643 2009-01-19  Simon Josefsson  <simon@josefsson.org>
68645         * modules/getdate-tests (Depends-on): Add progname.
68646         * tests/test-getdate.c: Use progname module, to avoid link errors
68647         on non-glibc systems.
68649 2009-01-18  Simon Josefsson  <simon@josefsson.org>
68651         * modules/filenamecat-tests (Depends-on): Add progname.
68652         * modules/fstrcmp-tests (Depends-on): Likewise.
68654         * tests/test-filenamecat.c: Use progname module, to avoid link
68655         errors on non-glibc systems.
68656         * tests/test-fstrcmp.c: Likewise.
68658 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
68660         gettimeofday: avoid warning: nested extern declaration of 'localtime'
68661         * lib/gettimeofday.c: Move extern declaration out of function.
68663 2009-01-18  Bruno Haible  <bruno@clisp.org>
68665         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
68666         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
68667         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
68669 2009-01-18  Bruno Haible  <bruno@clisp.org>
68671         * lib/strftime.c (MEMPCPY): Remove unused macro.
68672         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
68674 2009-01-18  Martin Lambers  <marlam@marlam.de>
68676         New module 'link'.
68677         * lib/unistd.in.h (link): New declaration.
68678         * lib/link.c: New file.
68679         * m4/link.m4: New file.
68680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
68681         HAVE_LINK.
68682         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
68683         * modules/link: New file.
68684         * doc/posix-functions/link.texi: Mention the new module.
68686 2009-01-18  Bruno Haible  <bruno@clisp.org>
68688         * tests/test-avltree_list.c (main): Call set_program_name.
68689         * tests/test-avltree_oset.c (main): Likewise.
68690         * tests/test-obstack-printf.c: Include progname.h.
68691         (main): Call set_program_name.
68692         * tests/test-quotearg.c: Include progname.h.
68693         (main): Call set_program_name.
68694         * tests/test-xmemdup0.c: Include progname.h.
68695         (main): Call set_program_name.
68697 2009-01-18  Bruno Haible  <bruno@clisp.org>
68699         New module 'alphasort'.
68700         * lib/dirent.in.h (alphasort): New declaration.
68701         * lib/alphasort.c: New file, from glibc with modifications.
68702         * m4/alphasort.m4: New file.
68703         * modules/alphasort: New file.
68704         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
68705         HAVE_ALPHASORT.
68706         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
68707         HAVE_ALPHASORT.
68708         * doc/posix-functions/alphasort.texi: Mention the new module and the
68709         portability problems.
68711 2009-01-18  Bruno Haible  <bruno@clisp.org>
68713         New module 'scandir'.
68714         * lib/dirent.in.h (scandir): New declaration.
68715         * lib/scandir.c: New file, from glibc with modifications.
68716         * m4/scandir.m4: New file.
68717         * modules/scandir: New file.
68718         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
68719         HAVE_SCANDIR.
68720         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
68721         HAVE_SCANDIR.
68722         * doc/posix-functions/scandir.texi: Mention the new module and the
68723         portability problems.
68725 2009-01-17  Bruno Haible  <bruno@clisp.org>
68727         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
68728         Update documentation.
68729         (func_remove_suffix): Escape all dots in the suffix. Update
68730         documentation.
68731         (func_filter_filelist): Update documentation.
68732         Reported by Ralf Wildenhues.
68734 2009-01-17  Bruno Haible  <bruno@clisp.org>
68736         * modules/dprintf-posix-tests: New file.
68737         * tests/test-dprintf-posix.sh: New file.
68738         * tests/test-dprintf-posix.c: New file.
68740         New modules 'dprintf', 'dprintf-posix'.
68741         * lib/stdio.in.h (dprintf): New declaration.
68742         * lib/dprintf.c: New file.
68743         * m4/dprintf.m4: New file.
68744         * m4/dprintf-posix.m4: New file.
68745         * modules/dprintf: New file.
68746         * modules/dprintf-posix: New file.
68747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
68748         HAVE_DPRINTF, REPLACE_DPRINTF.
68749         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
68750         HAVE_DPRINTF, REPLACE_DPRINTF.
68751         * doc/posix-functions/dprintf.texi: Mention the new modules.
68753 2009-01-17  Bruno Haible  <bruno@clisp.org>
68755         * modules/vdprintf-posix-tests: New file.
68756         * tests/test-vdprintf-posix.sh: New file.
68757         * tests/test-vdprintf-posix.c: New file.
68759         New modules 'vdprintf', 'vdprintf-posix'.
68760         * lib/stdio.in.h (vdprintf): New declaration.
68761         * lib/vdprintf.c: New file.
68762         * m4/vdprintf.m4: New file.
68763         * m4/vdprintf-posix.m4: New file.
68764         * modules/vdprintf: New file.
68765         * modules/vdprintf-posix: New file.
68766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
68767         HAVE_VDPRINTF, REPLACE_VDPRINTF.
68768         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
68769         HAVE_VDPRINTF, REPLACE_VDPRINTF.
68770         * doc/posix-functions/vdprintf.texi: Mention the new modules.
68772 2009-01-17  Bruno Haible  <bruno@clisp.org>
68774         Fix replacement of fopen on mingw.
68775         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
68776         mingw.
68778 2009-01-17  Bruno Haible  <bruno@clisp.org>
68780         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
68781         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
68783 2009-01-17  Bruno Haible  <bruno@clisp.org>
68785         Avoid test-fflush2.sh failure on mingw.
68786         * tests/test-fflush2.c: Include binary-io.h.
68787         (main): Put standard input into binary mode.
68788         * modules/fflush-tests (Depends-on): Add binary-io.
68790 2009-01-17  Bruno Haible  <bruno@clisp.org>
68792         * lib/wchar.in.h: In another particular situation, include only the
68793         system's <wchar.h> file.
68794         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
68795         Reported by Albert Chin-A-Young <china@thewrittenword.com>
68796         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
68798 2009-01-17  Bruno Haible  <bruno@clisp.org>
68800         Support for stripping executables in --enable-relocatable.
68801         * build-aux/install-reloc: Expect one more argument, or an environment
68802         variable RELOC_STRIP_PROG. If set, strip the destination program and
68803         its wrapper.
68804         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
68805         RELOC_STRIP_PROG.
68806         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
68807         to set RELOCATABLE_STRIP.
68808         * NEWS: Mention the new Makefile requirement.
68810 2009-01-17  Bruno Haible  <bruno@clisp.org>
68812         * build-aux/install-reloc: Remove debugging information left over by
68813         C compiler on MacOS X.
68815 2009-01-17  Bruno Haible  <bruno@clisp.org>
68817         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
68818         * lib/progreloc.c (find_executable): Fix type of pointer passed to
68819         _NSGetExecutablePath.
68821 2009-01-16  Jim Meyering  <meyering@redhat.com>
68823         strerror: avoid warnings about discarding "const"
68824         * lib/strerror.c (rpl_strerror): Instead of returning a const
68825         string from each and every "case", use a variable, and add a single
68826         cast after the switch.
68828 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
68830         * lib/arpa_inet.in.h: Add extern "C" block for C++.
68832 2009-01-16  Bruno Haible  <bruno@clisp.org>
68834         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
68835         array initializer syntax that also works in C++ mode.
68836         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68838 2009-01-16  Jim Meyering  <meyering@redhat.com>
68840         poll: suppress a warning
68841         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
68842         to ignore "...unsigned expression < 0 is always false" warnings.
68844 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
68846         poll: remove declarations of unused variables
68847         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
68848         sockbuf and optlen.
68850 2009-01-15  Bruno Haible  <bruno@clisp.org>
68852         Make fflush-after-ungetc POSIX compliant on BSD systems.
68853         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
68854         (clear_ungetc_buffer): Implement also for other systems.
68855         (rpl_fflush): On glibc systems, invoke
68856         clear_ungetc_buffer_preserving_position. Otherwise, invoke
68857         clear_ungetc_buffer after fetching the stream's position, not before.
68859 2009-01-15  Bruno Haible  <bruno@clisp.org>
68861         Make fflush-after-ungetc POSIX compliant on glibc systems.
68862         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
68863         after ungetc.
68864         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
68865         (rpl_fflush): On glibc systems, simply call the system's fflush
68866         function after clearing the ungetc buffer.
68867         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
68868         Instead, lseek only to the end of file, then use the system's fseeko
68869         for the rest. On glibc systems, reset the EOF indicator bit.
68871 2009-01-15  Jim Meyering  <meyering@redhat.com>
68873         openmp.m4: revert quote-adding change, for portability to older autoconf
68874         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
68875         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
68876         Simon Josefsson noticed the problem when using autoconf-2.61.
68878 2009-01-15  Bruno Haible  <bruno@clisp.org>
68880         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
68881         * tests/test-fflush2.c (ASSERT): Always fail.
68882         (main): Add two tests for fflush() after ungetc(), taking into account
68883         the Austin Group's clarification.
68884         Suggested by Eric Blake.
68886 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
68888         mktime.m4: remove K&R-style function prototypes
68889         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
68890         for the Sun C++ compiler.
68892 2009-01-14  Bruno Haible  <bruno@clisp.org>
68894         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
68895         while including <wchar.h>.
68896         * lib/wchar.in.h: In two particular situations on HP-UX, include only
68897         the system's <wchar.h> file.
68898         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68900 2009-01-14  Bruno Haible  <bruno@clisp.org>
68902         * m4/csharp.m4: Don't mention gettext on the serial number line.
68903         * m4/csharpexec.m4: Likewise.
68904         * m4/eaccess.m4: Likewise.
68905         * m4/javaexec.m4: Likewise.
68906         * m4/sig_atomic_t.m4: Likewise.
68907         * m4/tmpdir.m4: Likewise.
68908         * m4/intldir.m4: Bump gettext version.
68909         * m4/lib-ld.m4: Likewise.
68911 2009-01-14  Bruno Haible  <bruno@clisp.org>
68913         * lib/progname.c (set_program_name): Add more comments.
68914         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
68916 2009-01-14  Simon Josefsson  <simon@josefsson.org>
68918         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
68919         were sys/stat.h does not define it.
68921 2009-01-14  Jim Meyering  <meyering@redhat.com>
68923         many *.m4 files: improve m4 quoting
68924         99% of this change was performed by running the following commands:
68925         git ls-files | grep '\.m4$' | xargs perl -pi \
68926           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
68927           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
68928           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
68929           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
68930         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
68931         The remainder were to add Copyright dates, increment serial numbers,
68932         undo some changes in comments, exclude m4/intl.m4, and add quotes
68933         around the "1" in ",1" where the unusual spacing prohibited the
68934         above regexps from doing the job.  For more details, see
68935         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
68936         * m4/acl.m4: Modified.
68937         * m4/afs.m4: Likewise.
68938         * m4/alloca.m4: Likewise.
68939         * m4/argp.m4: Likewise.
68940         * m4/argz.m4: Likewise.
68941         * m4/atexit.m4: Likewise.
68942         * m4/bison-i18n.m4: Likewise.
68943         * m4/bison.m4: Likewise.
68944         * m4/byteswap.m4: Likewise.
68945         * m4/c-stack.m4: Likewise.
68946         * m4/c-strtod.m4: Likewise.
68947         * m4/calloc.m4: Likewise.
68948         * m4/canonicalize-lgpl.m4: Likewise.
68949         * m4/chown.m4: Likewise.
68950         * m4/clock_time.m4: Likewise.
68951         * m4/codeset.m4: Likewise.
68952         * m4/copy-file.m4: Likewise.
68953         * m4/csharp.m4: Likewise.
68954         * m4/csharpcomp.m4: Likewise.
68955         * m4/csharpexec.m4: Likewise.
68956         * m4/d-ino.m4: Likewise.
68957         * m4/d-type.m4: Likewise.
68958         * m4/dirfd.m4: Likewise.
68959         * m4/double-slash-root.m4: Likewise.
68960         * m4/eaccess.m4: Likewise.
68961         * m4/eealloc.m4: Likewise.
68962         * m4/environ.m4: Likewise.
68963         * m4/errno_h.m4: Likewise.
68964         * m4/euidaccess.m4: Likewise.
68965         * m4/execute.m4: Likewise.
68966         * m4/fatal-signal.m4: Likewise.
68967         * m4/fchdir.m4: Likewise.
68968         * m4/fcntl_h.m4: Likewise.
68969         * m4/fileblocks.m4: Likewise.
68970         * m4/filenamecat.m4: Likewise.
68971         * m4/findprog.m4: Likewise.
68972         * m4/flexmember.m4: Likewise.
68973         * m4/fnmatch.m4: Likewise.
68974         * m4/fopen.m4: Likewise.
68975         * m4/fpending.m4: Likewise.
68976         * m4/fprintf-posix.m4: Likewise.
68977         * m4/free.m4: Likewise.
68978         * m4/frexp.m4: Likewise.
68979         * m4/frexpl.m4: Likewise.
68980         * m4/fsusage.m4: Likewise.
68981         * m4/ftruncate.m4: Likewise.
68982         * m4/gc-camellia.m4: Likewise.
68983         * m4/gc-random.m4: Likewise.
68984         * m4/gc.m4: Likewise.
68985         * m4/getaddrinfo.m4: Likewise.
68986         * m4/getcwd-abort-bug.m4: Likewise.
68987         * m4/getcwd-path-max.m4: Likewise.
68988         * m4/getdate.m4: Likewise.
68989         * m4/getdomainname.m4: Likewise.
68990         * m4/getgroups.m4: Likewise.
68991         * m4/gethostname.m4: Likewise.
68992         * m4/gethrxtime.m4: Likewise.
68993         * m4/getline.m4: Likewise.
68994         * m4/getloadavg.m4: Likewise.
68995         * m4/getndelim2.m4: Likewise.
68996         * m4/getpass.m4: Likewise.
68997         * m4/gettext.m4: Likewise.
68998         * m4/gettime.m4: Likewise.
68999         * m4/gettimeofday.m4: Likewise.
69000         * m4/gnulib-common.m4: Likewise.
69001         * m4/group-member.m4: Likewise.
69002         * m4/host-os.m4: Likewise.
69003         * m4/iconv.m4: Likewise.
69004         * m4/iconv_open.m4: Likewise.
69005         * m4/inet_ntop.m4: Likewise.
69006         * m4/inet_pton.m4: Likewise.
69007         * m4/inline.m4: Likewise.
69008         * m4/intldir.m4: Likewise.
69009         * m4/intlmacosx.m4: Likewise.
69010         * m4/intmax.m4: Likewise.
69011         * m4/intmax_t.m4: Likewise.
69012         * m4/inttypes.m4: Likewise.
69013         * m4/inttypes_h.m4: Likewise.
69014         * m4/inttypes-pri.m4: Likewise.
69015         * m4/isapipe.m4: Likewise.
69016         * m4/isnand.m4: Likewise.
69017         * m4/isnanf.m4: Likewise.
69018         * m4/isnanl.m4: Likewise.
69019         * m4/javacomp.m4: Likewise.
69020         * m4/javaexec.m4: Likewise.
69021         * m4/jm-winsz1.m4: Likewise.
69022         * m4/jm-winsz2.m4: Likewise.
69023         * m4/lchown.m4: Likewise.
69024         * m4/lcmessage.m4: Likewise.
69025         * m4/ldexpl.m4: Likewise.
69026         * m4/lib-ld.m4: Likewise.
69027         * m4/lib-link.m4: Likewise.
69028         * m4/libsigsegv.m4: Likewise.
69029         * m4/link-follow.m4: Likewise.
69030         * m4/localcharset.m4: Likewise.
69031         * m4/locale-fr.m4: Likewise.
69032         * m4/locale-ja.m4: Likewise.
69033         * m4/locale-tr.m4: Likewise.
69034         * m4/locale-zh.m4: Likewise.
69035         * m4/lock.m4: Likewise.
69036         * m4/longlong.m4: Likewise.
69037         * m4/ls-mntd-fs.m4: Likewise.
69038         * m4/lstat.m4: Likewise.
69039         * m4/malloc.m4: Likewise.
69040         * m4/mathl.m4: Likewise.
69041         * m4/mbrtowc.m4: Likewise.
69042         * m4/mbstate_t.m4: Likewise.
69043         * m4/mbswidth.m4: Likewise.
69044         * m4/memchr.m4: Likewise.
69045         * m4/memcmp.m4: Likewise.
69046         * m4/memcpy.m4: Likewise.
69047         * m4/memmem.m4: Likewise.
69048         * m4/memmove.m4: Likewise.
69049         * m4/mempcpy.m4: Likewise.
69050         * m4/memrchr.m4: Likewise.
69051         * m4/memset.m4: Likewise.
69052         * m4/minmax.m4: Likewise.
69053         * m4/mkdir-slash.m4: Likewise.
69054         * m4/mkdtemp.m4: Likewise.
69055         * m4/mktime.m4: Likewise.
69056         * m4/mmap-anon.m4: Likewise.
69057         * m4/mountlist.m4: Likewise.
69058         * m4/nanosleep.m4: Likewise.
69059         * m4/nls.m4: Likewise.
69060         * m4/nocrash.m4: Likewise.
69061         * m4/open.m4: Likewise.
69062         * m4/openat.m4: Likewise.
69063         * m4/openmp.m4: Likewise.
69064         * m4/pathmax.m4: Likewise.
69065         * m4/perl.m4: Likewise.
69066         * m4/physmem.m4: Likewise.
69067         * m4/pipe.m4: Likewise.
69068         * m4/po.m4: Likewise.
69069         * m4/poll.m4: Likewise.
69070         * m4/posixtm.m4: Likewise.
69071         * m4/posixver.m4: Likewise.
69072         * m4/printf-frexp.m4: Likewise.
69073         * m4/printf-frexpl.m4: Likewise.
69074         * m4/printf-posix.m4: Likewise.
69075         * m4/printf-posix-rpl.m4: Likewise.
69076         * m4/printf.m4: Likewise.
69077         * m4/progtest.m4: Likewise.
69078         * m4/putenv.m4: Likewise.
69079         * m4/readline.m4: Likewise.
69080         * m4/readlink.m4: Likewise.
69081         * m4/readutmp.m4: Likewise.
69082         * m4/realloc.m4: Likewise.
69083         * m4/regex.m4: Likewise.
69084         * m4/relocatable.m4: Likewise.
69085         * m4/relocatable-lib.m4: Likewise.
69086         * m4/rename-dest-slash.m4: Likewise.
69087         * m4/rename.m4: Likewise.
69088         * m4/rmdir-errno.m4: Likewise.
69089         * m4/rmdir.m4: Likewise.
69090         * m4/roundf.m4: Likewise.
69091         * m4/roundl.m4: Likewise.
69092         * m4/rpmatch.m4: Likewise.
69093         * m4/save-cwd.m4: Likewise.
69094         * m4/selinux-selinux-h.m4: Likewise.
69095         * m4/setenv.m4: Likewise.
69096         * m4/settime.m4: Likewise.
69097         * m4/sig2str.m4: Likewise.
69098         * m4/sig_atomic_t.m4: Likewise.
69099         * m4/signalblocking.m4: Likewise.
69100         * m4/signbit.m4: Likewise.
69101         * m4/sigpipe.m4: Likewise.
69102         * m4/sockets.m4: Likewise.
69103         * m4/sockpfaf.m4: Likewise.
69104         * m4/st_dm_mode.m4: Likewise.
69105         * m4/stat-time.m4: Likewise.
69106         * m4/stdbool.m4: Likewise.
69107         * m4/stdint.m4: Likewise.
69108         * m4/stdint_h.m4: Likewise.
69109         * m4/stpcpy.m4: Likewise.
69110         * m4/stpncpy.m4: Likewise.
69111         * m4/strcase.m4: Likewise.
69112         * m4/strchrnul.m4: Likewise.
69113         * m4/strcspn.m4: Likewise.
69114         * m4/strdup.m4: Likewise.
69115         * m4/strftime.m4: Likewise.
69116         * m4/strndup.m4: Likewise.
69117         * m4/strnlen.m4: Likewise.
69118         * m4/strpbrk.m4: Likewise.
69119         * m4/strptime.m4: Likewise.
69120         * m4/strsep.m4: Likewise.
69121         * m4/strtod.m4: Likewise.
69122         * m4/strtoimax.m4: Likewise.
69123         * m4/strtok_r.m4: Likewise.
69124         * m4/strtol.m4: Likewise.
69125         * m4/strtoll.m4: Likewise.
69126         * m4/strtoul.m4: Likewise.
69127         * m4/strtoull.m4: Likewise.
69128         * m4/strtoumax.m4: Likewise.
69129         * m4/strverscmp.m4: Likewise.
69130         * m4/threadlib.m4: Likewise.
69131         * m4/timegm.m4: Likewise.
69132         * m4/tm_gmtoff.m4: Likewise.
69133         * m4/tmpdir.m4: Likewise.
69134         * m4/tmpfile.m4: Likewise.
69135         * m4/tzset.m4: Likewise.
69136         * m4/uintmax_t.m4: Likewise.
69137         * m4/unlinkdir.m4: Likewise.
69138         * m4/unlocked-io.m4: Likewise.
69139         * m4/uptime.m4: Likewise.
69140         * m4/userspec.m4: Likewise.
69141         * m4/utimbuf.m4: Likewise.
69142         * m4/utime.m4: Likewise.
69143         * m4/utimes-null.m4: Likewise.
69144         * m4/utimes.m4: Likewise.
69145         * m4/vararrays.m4: Likewise.
69146         * m4/vasnprintf.m4: Likewise.
69147         * m4/vfprintf-posix.m4: Likewise.
69148         * m4/vprintf-posix.m4: Likewise.
69149         * m4/wait-process.m4: Likewise.
69150         * m4/wchar_t.m4: Likewise.
69151         * m4/wint_t.m4: Likewise.
69152         * m4/write-any-file.m4: Likewise.
69153         * m4/yield.m4: Likewise.
69155 2009-01-13  Bruno Haible  <bruno@clisp.org>
69157         Avoid test-copy-file.sh failures when ACL support insufficient.
69158         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
69159         TESTS_ENVIRONMENT.
69160         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
69161         Reported by Jim Meyering.
69163 2009-01-13  Bruno Haible  <bruno@clisp.org>
69165         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
69166         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
69167         * modules/unistdio/u8-printf-parse (Files): Likewise.
69168         * modules/unistdio/u32-printf-parse (Files): Likewise.
69169         * modules/unistdio/ulc-printf-parse (Files): Likewise.
69171 2009-01-13  Simon Josefsson  <simon@josefsson.org>
69173         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
69174         and m4/inttypes_h.m4 too.
69176 2009-01-12  Eric Blake  <ebb9@byu.net>
69178         tests: IRIX 6.2 cc can't compile -0.0 into .data
69179         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
69180         rather than at compile-time.
69181         * tests/test-floorl.c (minus_zero): Likewise.
69182         * tests/test-frexpl.c (minus_zero): Likewise.
69183         * tests/test-isnan.c (minus_zerol): Likewise.
69184         * tests/test-isnanl.h (minus_zero): Likewise.
69185         * tests/test-ldexpl.c (minus_zero): Likewise.
69186         * tests/test-roundl.c (minus_zero): Likewise.
69187         * tests/test-signbit.c (minus_zerol): Likewise.
69188         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
69189         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
69190         * tests/test-truncl.c (minus_zero): Likewise.
69191         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
69192         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
69193         Reported by Tom G. Christensen and Nelson H. F. Beebe.
69195 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69197         regex: fix glibc bug 9697
69198         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
69199         handling.
69201 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69203         regex: fix glibc bug 697
69204         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
69205         being NULL also if there are no backreferences.
69207 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69209         regex: merge glibc changes
69210         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
69211         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
69212         re_string_skip_chars, re_string_reconstruct): Likewise.
69213         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
69215 2009-01-07  Jim Meyering  <meyering@redhat.com>
69217         poll: filter through cppi
69218         * lib/poll.c: Indent cpp directives to reflect nesting.
69220 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
69222         poll: don't return uninitialized
69223         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
69225 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
69227         avoid compile failure on AIX 6.1
69228         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
69229         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
69231 2009-01-04  Jim Meyering  <meyering@redhat.com>
69233         remove duplicate inclusion of <stdio.h>
69234         * tests/test-fprintf-posix.c: Likewise.
69235         * tests/test-printf-posix.c: Likewise.
69236         * tests/test-snprintf-posix.c: Likewise.
69237         * tests/test-sprintf-posix.c: Likewise.
69238         * tests/test-vasprintf-posix.c: Likewise.
69239         * tests/test-vfprintf-posix.c: Likewise.
69240         * tests/test-vprintf-posix.c: Likewise.
69241         * tests/test-vsnprintf-posix.c: Likewise.
69242         * tests/test-vsprintf-posix.c: Likewise.
69244 2009-01-03  Jim Meyering  <meyering@redhat.com>
69246         gnulib-tool: fix sed-based filtering
69247         * gnulib-tool (func_filter_filelist): Remove extra backslash
69248         in sed_fff_filter definition.
69250 2009-01-02  Jim Meyering  <meyering@redhat.com>
69252         strftime: avoid compilation failure on Solaris 2.6
69253         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
69254         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
69255         Don't #define mbrlen or mbsinit, since now they're guaranteed to
69256         be available.  Reported by Tom G. Christensen.  Details in
69257         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
69259 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69260             Bruno Haible  <bruno@clisp.org>
69262         Speed up gnulib-tool by doing more string processing through shell
69263         built-ins.
69264         * gnulib-tool (fast_func_append): New variable.
69265         (func_remove_prefix, func_remove_suffix): New functions.
69266         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
69267         (func_filter_filelist): New function.
69268         (func_get_dependencies): Use func_remove_suffix instead of sed.
69269         (func_get_automake_snippet): Use func_filter_filelist instead of a
69270         subshell and sed invocation.
69272 2009-01-01  Bruno Haible  <bruno@clisp.org>
69274         Fix a security bug.
69275         * gnulib-tool (func_import, import, update): Don't allow the characters
69276         '"', '$', '`', '\' in macro arguments that become part of commands that
69277         are evaluated.
69279 2009-01-01  Bruno Haible  <bruno@clisp.org>
69281         * gnulib-tool (func_reset_sigpipe): Add more comments.
69283 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69285         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
69286         func_emit_tests_Makefile_am, func_import): Abort loops early if we
69287         already know the answer.
69289 2009-01-01  Jim Meyering  <meyering@redhat.com>
69291         * lib/version-etc.c (version_etc_va): Update copyright year.
69293 2008-12-30  Bruno Haible  <bruno@clisp.org>
69295         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
69296         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
69297         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
69299 2008-12-29  Eric Blake  <ebb9@byu.net>
69301         multiarch: avoid autoconf AC_REQUIRE bug
69302         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
69303         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
69304         2.63 and older.
69305         Reported by Bruno Haible, and analyzed in
69306         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
69308 2008-12-29  Bruno Haible  <bruno@clisp.org>
69310         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
69311         files in subdirectories correctly.
69312         Reported by Ralf Wildenhues.
69314 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69316         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
69317         rather than 'join FILE -', for Solaris join.
69319 2008-12-29  Bruno Haible  <bruno@clisp.org>
69321         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
69322         quoting.
69323         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69324         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
69325         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
69326         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
69327         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
69328         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
69329         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
69330         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
69331         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69332         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
69333         * m4/nls.m4 (AM_NLS): Likewise.
69334         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
69335         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
69336         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69337         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
69338         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
69339         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
69340         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
69341         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
69342         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
69343         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69344         * m4/xsize.m4 (gl_XSIZE): Likewise.
69345         Suggested by Jim Meyering.
69347 2008-11-17  Bruce Korb  <bkorb@gnu.org>
69349         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
69350         * lib/parse-duration.c: use a switch instead of cascading if's.
69352 2008-12-29  Eric Blake  <ebb9@byu.net>
69354         wchar.h: supply WEOF on Irix 5.3
69355         * lib/wchar.in.h (wint_t): Also supply WEOF.
69356         * lib/wctype.in.h (wint_t): Likewise.
69357         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
69358         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
69359         Reported by Tom G. Christensen.
69361 2008-12-26  Bruno Haible  <bruno@clisp.org>
69363         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
69364         i486, i586, i686.
69366 2008-12-26  Bruno Haible  <bruno@clisp.org>
69368         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
69370 2008-12-26  Bruno Haible  <bruno@clisp.org>
69372         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
69373         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
69374         not __STDC_CONSTANT_MACROS.
69375         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
69377 2008-12-25  Bruno Haible  <bruno@clisp.org>
69379         Add support for universal builds to vasnprintf.
69380         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
69381         universal builds, guess no.
69382         * modules/vasnprintf-posix (Depends-on): Add multiarch.
69383         * modules/vasprintf-posix (Depends-on): Likewise.
69384         * modules/fprintf-posix (Depends-on): Likewise.
69385         * modules/vfprintf-posix (Depends-on): Likewise.
69386         * modules/snprintf-posix (Depends-on): Likewise.
69387         * modules/vsnprintf-posix (Depends-on): Likewise.
69388         * modules/sprintf-posix (Depends-on): Likewise.
69389         * modules/vsprintf-posix (Depends-on): Likewise.
69390         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
69391         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
69392         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
69393         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
69394         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
69395         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
69396         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
69398         Add support for universal builds to <inttypes.h>.
69399         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
69400         _SCNu64_PREFIX): In Apple
69401         universal builds, define directly, using _LP64.
69402         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
69403         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
69404         * modules/inttypes (Depends-on): Add multiarch.
69405         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69407         Add support for universal builds to <stdint.h>.
69408         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
69409         universal builds, define directly, using _LP64.
69410         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
69411         Apple universal builds, don't test for the size and suffix of ptrdiff_t
69412         and size_t.
69413         * modules/stdint (Depends-on): Add multiarch.
69414         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69416         New module 'multiarch'.
69417         * modules/multiarch: New file.
69418         * m4/multiarch.m4: New file.
69420 2008-12-25  Bruno Haible  <bruno@clisp.org>
69422         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
69424 2008-12-25  Bruno Haible  <bruno@clisp.org>
69426         * modules/btowc (License): Relicense under LGPLv2+.
69427         * modules/mbsinit (License): Likewise.
69428         * modules/mbrtowc (License): Likewise.
69429         * modules/wcrtomb (License): Likewise.
69430         * modules/streq (License): Likewise.
69431         Reported by David Lutterkort <lutter@redhat.com>.
69433 2008-12-23  Bruno Haible  <bruno@clisp.org>
69435         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
69437 2008-12-23  Bruno Haible  <bruno@clisp.org>
69439         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
69440         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
69441         GETADDRINFO_LIB, not in LIBS.
69442         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
69443         * modules/canon-host (Link): Likewise.
69444         * NEWS: Mention the change.
69445         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
69446         GETADDRINFO_LIB.
69448 2008-12-22  Bruno Haible  <bruno@clisp.org>
69450         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
69451         * doc/posix-functions/iswalpha_l.texi: Likewise.
69452         * doc/posix-functions/iswblank_l.texi: Likewise.
69453         * doc/posix-functions/iswcntrl_l.texi: Likewise.
69454         * doc/posix-functions/iswctype_l.texi: Likewise.
69455         * doc/posix-functions/iswdigit_l.texi: Likewise.
69456         * doc/posix-functions/iswgraph_l.texi: Likewise.
69457         * doc/posix-functions/iswlower_l.texi: Likewise.
69458         * doc/posix-functions/iswprint_l.texi: Likewise.
69459         * doc/posix-functions/iswpunct_l.texi: Likewise.
69460         * doc/posix-functions/iswspace_l.texi: Likewise.
69461         * doc/posix-functions/iswupper_l.texi: Likewise.
69462         * doc/posix-functions/iswxdigit_l.texi: Likewise.
69463         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
69464         * doc/posix-functions/open_wmemstream.texi: Likewise.
69465         * doc/posix-functions/swscanf.texi: Likewise.
69466         * doc/posix-functions/towctrans_l.texi: Likewise.
69467         * doc/posix-functions/towlower.texi: Likewise.
69468         * doc/posix-functions/towlower_l.texi: Likewise.
69469         * doc/posix-functions/towupper.texi: Likewise.
69470         * doc/posix-functions/towupper_l.texi: Likewise.
69471         * doc/posix-functions/vfwprintf.texi: Likewise.
69472         * doc/posix-functions/vfwscanf.texi: Likewise.
69473         * doc/posix-functions/vswscanf.texi: Likewise.
69474         * doc/posix-functions/vwprintf.texi: Likewise.
69475         * doc/posix-functions/vwscanf.texi: Likewise.
69476         * doc/posix-functions/wcpcpy.texi: Likewise.
69477         * doc/posix-functions/wcpncpy.texi: Likewise.
69478         * doc/posix-functions/wcscasecmp.texi: Likewise.
69479         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
69480         * doc/posix-functions/wcscoll_l.texi: Likewise.
69481         * doc/posix-functions/wcsdup.texi: Likewise.
69482         * doc/posix-functions/wcsncasecmp.texi: Likewise.
69483         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
69484         * doc/posix-functions/wcsnlen.texi: Likewise.
69485         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69486         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
69487         * doc/posix-functions/wctrans_l.texi: Likewise.
69488         * doc/posix-functions/wctype_l.texi: Likewise.
69489         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
69490         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
69491         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
69492         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
69493         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
69494         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
69495         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
69496         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
69497         * doc/glibc-functions/wcschrnul.texi: Likewise.
69498         * doc/glibc-functions/wcsftime_l.texi: Likewise.
69499         * doc/glibc-functions/wcstod_l.texi: Likewise.
69500         * doc/glibc-functions/wcstof_l.texi: Likewise.
69501         * doc/glibc-functions/wcstol_l.texi: Likewise.
69502         * doc/glibc-functions/wcstold_l.texi: Likewise.
69503         * doc/glibc-functions/wcstoll_l.texi: Likewise.
69504         * doc/glibc-functions/wcstoq.texi: Likewise.
69505         * doc/glibc-functions/wcstoul_l.texi: Likewise.
69506         * doc/glibc-functions/wcstoull_l.texi: Likewise.
69507         * doc/glibc-functions/wcstouq.texi: Likewise.
69508         * doc/glibc-functions/wmempcpy.texi: Likewise.
69510 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
69511             Eric Blake  <ebb9@byu.net>
69512             Paolo Bonzini  <bonzini@gnu.org>
69513             Bruno Haible  <bruno@clisp.org>
69515         Make c-stack work on Haiku.
69516         * lib/c-stack.c (SA_ONSTACK): Define fallback.
69517         (c_stack_action): Use SA_ONSTACK flag.
69519 2008-12-22  Bruno Haible  <bruno@clisp.org>
69521         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
69523 2008-12-22  Bruno Haible  <bruno@clisp.org>
69525         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
69526         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
69527         being overridden.
69528         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
69529         New macros.
69530         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
69531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
69532         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
69533         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
69535 2008-12-22  Bruno Haible  <bruno@clisp.org>
69537         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
69538         from test code.
69540 2008-12-22  Eric Blake  <ebb9@byu.net>
69542         Avoid gcc warnings on cygwin.
69543         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
69544         Avoid unused variable.
69545         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
69546         Likewise.
69548 2008-12-22  Bruno Haible  <bruno@clisp.org>
69550         Remove HAVE_MBRTOWC conditionals.
69551         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
69552         (mbscasecmp): Assume mbrtowc function.
69553         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
69554         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
69555         * lib/mbschr.c: Include mbuiter.h unconditionally.
69556         (mbschr): Assume mbrtowc function.
69557         * lib/mbscspn.c: Include mbuiter.h unconditionally.
69558         (mbscspn): Assume mbrtowc function.
69559         * lib/mbslen.c: Include mbuiter.h unconditionally.
69560         (mbslen): Assume mbrtowc function.
69561         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
69562         (mbsncasecmp): Assume mbrtowc function.
69563         * lib/mbsnlen.c: Include mbiter.h unconditionally.
69564         (mbsnlen): Assume mbrtowc function.
69565         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
69566         (mbspbrk): Assume mbrtowc function.
69567         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
69568         (mbspcasecmp): Assume mbrtowc function.
69569         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
69570         (mbsrchr): Assume mbrtowc function.
69571         * lib/mbssep.c: Include mbuiter.h unconditionally.
69572         (mbssep): Assume mbrtowc function.
69573         * lib/mbsspn.c: Include mbuiter.h unconditionally.
69574         (mbsspn): Assume mbrtowc function.
69575         * lib/mbsstr.c: Include mbuiter.h unconditionally.
69576         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
69577         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
69578         (mbstok_r): Assume mbrtowc function.
69579         * lib/propername.c: Include mbuiter.h unconditionally.
69580         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
69581         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
69582         (trim2): Assume mbrtowc function.
69583         * lib/mbswidth.c (mbsinit): Remove fallback definition.
69584         (mbsnwidth): Assume mbrtowc function.
69585         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
69586         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
69587         fallback definitions.
69588         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
69590 2008-12-22  Bruno Haible  <bruno@clisp.org>
69592         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
69594 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
69596         * modules/regex: Request emulations for the mb*/wc* functions we need.
69597         * m4/regex.m4: Don't look for those functions here.
69598         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
69600 2008-12-22  Bruno Haible  <bruno@clisp.org>
69602         * modules/fnmatch (Depends-on): Remove duplicated dependency.
69604 2008-12-21  Bruno Haible  <bruno@clisp.org>
69606         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
69607         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
69608         (Include): Remove conditionalization.
69609         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
69610         (Include): Remove conditionalization.
69611         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
69612         (Include): Remove conditionalization.
69613         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
69614         * m4/mbfile.m4 (gl_MBFILE): Likewise.
69615         * NEWS: Mention the change.
69616         Reported by Alan Hourihane <alanh@fairlite.co.uk>
69617         via Sergey Poznyakoff <gray@gnu.org.ua>.
69619 2008-12-21  Bruno Haible  <bruno@clisp.org>
69621         * MODULES.html.sh (Extended multibyte and wide character utilities
69622         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
69623         wcrtomb, wcsrtombs.
69624         (Support for systems lacking POSIX:2008): Add accept, bind, close,
69625         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
69626         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
69627         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
69629 2008-12-21  Bruno Haible  <bruno@clisp.org>
69631         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
69633 2008-12-21  Bruno Haible  <bruno@clisp.org>
69635         * modules/wcsnrtombs-tests: New file.
69636         * tests/test-wcsnrtombs1.sh: New file.
69637         * tests/test-wcsnrtombs2.sh: New file.
69638         * tests/test-wcsnrtombs3.sh: New file.
69639         * tests/test-wcsnrtombs4.sh: New file.
69640         * tests/test-wcsnrtombs.c: New file.
69642         New module 'wcsnrtombs'.
69643         * lib/wchar.in.h (wcsnrtombs): New declaration.
69644         * lib/wcsnrtombs.c: New file.
69645         * lib/wcsrtombs-state.c: New file.
69646         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
69647         (internal_state): Remove variable.
69648         * m4/wcsnrtombs.m4: New file.
69649         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
69650         compilation units.
69651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
69652         HAVE_WCSNRTOMBS.
69653         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
69654         HAVE_WCSNRTOMBS.
69655         * modules/wcsnrtombs: New file.
69656         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
69657         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
69659 2008-12-21  Bruno Haible  <bruno@clisp.org>
69661         * modules/wcsrtombs-tests: New file.
69662         * tests/test-wcsrtombs1.sh: New file.
69663         * tests/test-wcsrtombs2.sh: New file.
69664         * tests/test-wcsrtombs3.sh: New file.
69665         * tests/test-wcsrtombs4.sh: New file.
69666         * tests/test-wcsrtombs.c: New file.
69668         New module 'wcsrtombs'.
69669         * lib/wchar.in.h (wcsrtombs): New declaration.
69670         * lib/wcsrtombs.c: New file.
69671         * m4/wcsrtombs.m4: New file.
69672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
69673         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
69674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
69675         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
69676         * modules/wcsrtombs: New file.
69677         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
69678         bugs.
69680 2008-12-21  Bruno Haible  <bruno@clisp.org>
69682         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
69683         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
69684         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
69685         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
69686         if not correct.
69687         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
69688         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
69689         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69690         m4/locale-zh.m4, m4/codeset.m4.
69691         * doc/posix-functions/wcrtomb.texi: Document the bug.
69693 2008-12-21  Bruno Haible  <bruno@clisp.org>
69695         Work around a btowc() bug on IRIX 6.5.
69696         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
69697         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
69698         REPLACE_WTOBC if not.
69699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
69700         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
69701         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
69703 2008-12-21  Bruno Haible  <bruno@clisp.org>
69705         * modules/wcrtomb-tests: New file.
69706         * tests/test-wcrtomb.sh: New file.
69707         * tests/test-wcrtomb.c: New file.
69709         New module 'wcrtomb'.
69710         * lib/wchar.in.h (wcrtomb): New declaration.
69711         * lib/wcrtomb.c: New file.
69712         * m4/wcrtomb.m4: New file.
69713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
69714         HAVE_WCRTOMB.
69715         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
69716         HAVE_WCRTOMB.
69717         * modules/wcrtomb: New file.
69718         * doc/posix-functions/wcrtomb.texi: Mention the new module.
69720 2008-12-21  Bruno Haible  <bruno@clisp.org>
69722         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
69723         * modules/mbsrtowcs (Files): Likewise.
69724         * modules/wctob (Files): Likewise.
69725         * modules/c-strcase-tests (Files): Likewise.
69726         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
69727         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
69728         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
69729         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
69730         * modules/vasnprintf-posix-tests (Files): Likewise.
69732 2008-12-21  William Pursell  <bill.pursell@gmail.com>
69734         gitlog-to-changelog: pass all command-line arguments to git-log
69735         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
69736         it is sometimes convenient to filter the commits in various ways.
69737         gitlog-to-changelog only allows --since to specify a start date,
69738         but git-log itself supports many other filtering mechanisms.
69739         At the moment, I want to filter by branch name.  Rather than
69740         adding a --branch option to gitlog-to-changelog, it seems more
69741         flexible to simply pass all options directly to git-log and let
69742         git do the work.  Notice that this effectively makes --since a
69743         redundant option for gitlog-to-changelog, but removing it would
69744         require current usage to change since calls would then require
69745         an additional '--'.
69747 2008-12-21  Bruno Haible  <bruno@clisp.org>
69749         * modules/mbsnrtowcs-tests: New file.
69750         * tests/test-mbsnrtowcs1.sh: New file.
69751         * tests/test-mbsnrtowcs2.sh: New file.
69752         * tests/test-mbsnrtowcs3.sh: New file.
69753         * tests/test-mbsnrtowcs4.sh: New file.
69754         * tests/test-mbsnrtowcs.c: New file.
69756         New module 'mbsnrtowcs'.
69757         * lib/wchar.in.h (mbsnrtowcs): New declaration.
69758         * lib/mbsnrtowcs.c: New file.
69759         * lib/mbsrtowcs-state.c: New file.
69760         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
69761         (internal_state): Remove variable.
69762         * m4/mbsnrtowcs.m4: New file.
69763         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
69764         compilation units.
69765         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
69766         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
69767         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
69768         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
69769         * modules/mbsnrtowcs: New file.
69770         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
69771         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
69772         portability problem.
69774 2008-12-21  Bruno Haible  <bruno@clisp.org>
69776         Work around mbsrtowcs bug.
69777         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
69778         (gl_FUNC_MBSRTOWCS): Invoke it.
69779         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69780         m4/locale-zh.m4.
69781         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
69783 2008-12-21  Bruno Haible  <bruno@clisp.org>
69785         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
69787 2008-12-21  Bruno Haible  <bruno@clisp.org>
69789         Update doc for AIX.
69790         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
69791         16-bit wchar_t type.
69792         * doc/posix-functions/btowc.texi: Likewise.
69793         * doc/posix-functions/fgetwc.texi: Likewise.
69794         * doc/posix-functions/fgetws.texi: Likewise.
69795         * doc/posix-functions/fputwc.texi: Likewise.
69796         * doc/posix-functions/fputws.texi: Likewise.
69797         * doc/posix-functions/fwide.texi: Likewise.
69798         * doc/posix-functions/fwprintf.texi: Likewise.
69799         * doc/posix-functions/fwscanf.texi: Likewise.
69800         * doc/posix-functions/getwchar.texi: Likewise.
69801         * doc/posix-functions/getwc.texi: Likewise.
69802         * doc/posix-functions/iswalnum.texi: Likewise.
69803         * doc/posix-functions/iswalpha.texi: Likewise.
69804         * doc/posix-functions/iswblank.texi: Likewise.
69805         * doc/posix-functions/iswcntrl.texi: Likewise.
69806         * doc/posix-functions/iswctype.texi: Likewise.
69807         * doc/posix-functions/iswdigit.texi: Likewise.
69808         * doc/posix-functions/iswgraph.texi: Likewise.
69809         * doc/posix-functions/iswlower.texi: Likewise.
69810         * doc/posix-functions/iswprint.texi: Likewise.
69811         * doc/posix-functions/iswpunct.texi: Likewise.
69812         * doc/posix-functions/iswspace.texi: Likewise.
69813         * doc/posix-functions/iswupper.texi: Likewise.
69814         * doc/posix-functions/iswxdigit.texi: Likewise.
69815         * doc/posix-functions/mbrtowc.texi: Likewise.
69816         * doc/posix-functions/mbsrtowcs.texi: Likewise.
69817         * doc/posix-functions/mbstowcs.texi: Likewise.
69818         * doc/posix-functions/mbtowc.texi: Likewise.
69819         * doc/posix-functions/putwchar.texi: Likewise.
69820         * doc/posix-functions/putwc.texi: Likewise.
69821         * doc/posix-functions/swprintf.texi: Likewise.
69822         * doc/posix-functions/tolower.texi: Likewise.
69823         * doc/posix-functions/toupper.texi: Likewise.
69824         * doc/posix-functions/towctrans.texi: Likewise.
69825         * doc/posix-functions/ungetwc.texi: Likewise.
69826         * doc/posix-functions/vswprintf.texi: Likewise.
69827         * doc/posix-functions/wcrtomb.texi: Likewise.
69828         * doc/posix-functions/wcscat.texi: Likewise.
69829         * doc/posix-functions/wcschr.texi: Likewise.
69830         * doc/posix-functions/wcscmp.texi: Likewise.
69831         * doc/posix-functions/wcscoll.texi: Likewise.
69832         * doc/posix-functions/wcscpy.texi: Likewise.
69833         * doc/posix-functions/wcscspn.texi: Likewise.
69834         * doc/posix-functions/wcsftime.texi: Likewise.
69835         * doc/posix-functions/wcslen.texi: Likewise.
69836         * doc/posix-functions/wcsncat.texi: Likewise.
69837         * doc/posix-functions/wcsncmp.texi: Likewise.
69838         * doc/posix-functions/wcsncpy.texi: Likewise.
69839         * doc/posix-functions/wcspbrk.texi: Likewise.
69840         * doc/posix-functions/wcsrchr.texi: Likewise.
69841         * doc/posix-functions/wcsrtombs.texi: Likewise.
69842         * doc/posix-functions/wcsspn.texi: Likewise.
69843         * doc/posix-functions/wcsstr.texi: Likewise.
69844         * doc/posix-functions/wcstod.texi: Likewise.
69845         * doc/posix-functions/wcstof.texi: Likewise.
69846         * doc/posix-functions/wcstoimax.texi: Likewise.
69847         * doc/posix-functions/wcstok.texi: Likewise.
69848         * doc/posix-functions/wcstold.texi: Likewise.
69849         * doc/posix-functions/wcstoll.texi: Likewise.
69850         * doc/posix-functions/wcstol.texi: Likewise.
69851         * doc/posix-functions/wcstombs.texi: Likewise.
69852         * doc/posix-functions/wcstoull.texi: Likewise.
69853         * doc/posix-functions/wcstoul.texi: Likewise.
69854         * doc/posix-functions/wcstoumax.texi: Likewise.
69855         * doc/posix-functions/wcswidth.texi: Likewise.
69856         * doc/posix-functions/wcsxfrm.texi: Likewise.
69857         * doc/posix-functions/wctob.texi: Likewise.
69858         * doc/posix-functions/wctomb.texi: Likewise.
69859         * doc/posix-functions/wctrans.texi: Likewise.
69860         * doc/posix-functions/wctype.texi: Likewise.
69861         * doc/posix-functions/wcwidth.texi: Likewise.
69862         * doc/posix-functions/wmemchr.texi: Likewise.
69863         * doc/posix-functions/wmemcmp.texi: Likewise.
69864         * doc/posix-functions/wmemcpy.texi: Likewise.
69865         * doc/posix-functions/wmemmove.texi: Likewise.
69866         * doc/posix-functions/wmemset.texi: Likewise.
69867         * doc/posix-functions/wprintf.texi: Likewise.
69868         * doc/posix-functions/wscanf.texi: Likewise.
69870 2008-12-21  Bruno Haible  <bruno@clisp.org>
69872         Update doc for HP-UX 11.11.
69873         * doc/posix-functions/btowc.texi: Clarify that the function is missing
69874         in HP-UX version 11.00, not in all versions of HP-UX 11.
69875         * doc/posix-functions/fwide.texi: Likewise.
69876         * doc/posix-functions/fwprintf.texi: Likewise.
69877         * doc/posix-functions/fwscanf.texi: Likewise.
69878         * doc/posix-functions/inet_ntop.texi: Likewise.
69879         * doc/posix-functions/inet_pton.texi: Likewise.
69880         * doc/posix-functions/mbrlen.texi: Likewise.
69881         * doc/posix-functions/mbrtowc.texi: Likewise.
69882         * doc/posix-functions/mbsinit.texi: Likewise.
69883         * doc/posix-functions/mbsrtowcs.texi: Likewise.
69884         * doc/posix-functions/swprintf.texi: Likewise.
69885         * doc/posix-functions/swscanf.texi: Likewise.
69886         * doc/posix-functions/towctrans.texi: Likewise.
69887         * doc/posix-functions/vfwprintf.texi: Likewise.
69888         * doc/posix-functions/vswprintf.texi: Likewise.
69889         * doc/posix-functions/vwprintf.texi: Likewise.
69890         * doc/posix-functions/wcrtomb.texi: Likewise.
69891         * doc/posix-functions/wcsrtombs.texi: Likewise.
69892         * doc/posix-functions/wcsstr.texi: Likewise.
69893         * doc/posix-functions/wctob.texi: Likewise.
69894         * doc/posix-functions/wctrans.texi: Likewise.
69895         * doc/posix-functions/wmemchr.texi: Likewise.
69896         * doc/posix-functions/wmemcmp.texi: Likewise.
69897         * doc/posix-functions/wmemcpy.texi: Likewise.
69898         * doc/posix-functions/wmemmove.texi: Likewise.
69899         * doc/posix-functions/wmemset.texi: Likewise.
69900         * doc/posix-functions/wprintf.texi: Likewise.
69901         * doc/posix-functions/wscanf.texi: Likewise.
69903 2008-12-21  Bruno Haible  <bruno@clisp.org>
69905         Work around a portability problem.
69906         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
69907         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
69909 2008-12-20  Bruno Haible  <bruno@clisp.org>
69911         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
69912         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
69913         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
69914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
69915         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
69917         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
69918         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
69919         set.
69920         (GNULIB_defined_mbstate_t): New macro.
69921         (mbsinit): Redefine if REPLACE_MBSINIT is set.
69922         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
69923         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
69924         reuses the system's mbrtowc function but works around the bugs.
69925         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
69926         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
69927         macros.
69928         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
69929         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
69930         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
69931         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
69932         REPLACE_MBSINIT if mbsinit needs to be overridden.
69933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
69934         REPLACE_MBSINIT, REPLACE_MBRTOWC.
69935         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
69936         REPLACE_MBSINIT, REPLACE_MBRTOWC.
69937         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
69938         m4/locale-zh.m4.
69939         (Depends): Add mbsinit.
69940         * modules/mbsinit (Depends): Add mbrtowc.
69941         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
69943 2008-12-20  Bruno Haible  <bruno@clisp.org>
69945         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
69946         so that there are no conversion errors on AIX.
69947         * tests/test-mbsrtowcs.c (main): LIkewise.
69949 2008-12-20  Bruno Haible  <bruno@clisp.org>
69951         Work around wctob bug on Solaris <= 9.
69952         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
69953         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
69954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
69955         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
69956         * modules/wctob (Files): Add m4/locale-fr.m4.
69957         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
69959 2008-12-20  Bruno Haible  <bruno@clisp.org>
69961         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
69962         /dev/null.
69963         * tests/test-select-in.sh: Likewise.
69964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69966 2008-12-20  Bruno Haible  <bruno@clisp.org>
69968         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
69969         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
69970         Cygwin 1.5.x.
69972 2008-12-20  Bruno Haible  <bruno@clisp.org>
69974         Ensure mbstate_t is defined on HP-UX 11.11.
69975         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
69976         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
69977         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
69978         AC_USE_SYSTEM_EXTENSIONS.
69979         * modules/fnmatch (Depends-on): Add extensions.
69980         * modules/mbrlen (Depends-on): Likewise.
69981         * modules/mbrtowc (Depends-on): Likewise.
69982         * modules/mbsinit (Depends-on): Likewise.
69983         * modules/mbsrtowcs (Depends-on): Likewise.
69984         * modules/mbswidth (Depends-on): Likewise.
69985         * modules/quotearg (Depends-on): Likewise.
69986         * modules/strftime (Depends-on): Likewise.
69988 2008-12-20  Bruno Haible  <bruno@clisp.org>
69990         Ensure wctob is declared on IRIX 6.5.
69991         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
69992         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
69993         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
69994         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
69995         of HAVE_WCTOB.
69996         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
69997         HAVE_WCTOB.
69998         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
70000 2008-12-19  Bruno Haible  <bruno@clisp.org>
70002         * modules/mbsrtowcs-tests: New file.
70003         * tests/test-mbsrtowcs1.sh: New file.
70004         * tests/test-mbsrtowcs2.sh: New file.
70005         * tests/test-mbsrtowcs3.sh: New file.
70006         * tests/test-mbsrtowcs4.sh: New file.
70007         * tests/test-mbsrtowcs.c: New file.
70009         New module 'mbsrtowcs'.
70010         * lib/wchar.in.h (mbsrtowcs): New declaration.
70011         * lib/mbsrtowcs.c: New file.
70012         * m4/mbsrtowcs.m4: New file.
70013         * modules/mbsrtowcs: New file.
70014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
70015         HAVE_MBSRTOWCS.
70016         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
70017         HAVE_MBSRTOWCS.
70018         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
70020 2008-12-19  Bruno Haible  <bruno@clisp.org>
70022         New module 'mbrlen'.
70023         * lib/wchar.in.h (mbrlen): New declaration.
70024         * lib/mbrlen.c: New file.
70025         * m4/mbrlen.m4: New file.
70026         * modules/mbrlen: New file.
70027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
70028         HAVE_MBRLEN.
70029         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
70030         HAVE_MBRLEN.
70031         * doc/posix-functions/mbrlen.texi: Document the new module.
70033 2008-12-19  Bruno Haible  <bruno@clisp.org>
70035         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
70036         * modules/mbrtowc (Depends-on): Add verify.
70037         Suggested by Paul Eggert.
70039 2008-12-18  Bruno Haible  <bruno@clisp.org>
70041         * modules/mbsinit-tests: New file.
70042         * tests/test-mbsinit.sh: New file.
70043         * tests/test-mbsinit.c: New file.
70045 2008-12-18  Bruno Haible  <bruno@clisp.org>
70047         * modules/mbrtowc-tests: New file.
70048         * tests/test-mbrtowc1.sh: New file.
70049         * tests/test-mbrtowc2.sh: New file.
70050         * tests/test-mbrtowc3.sh: New file.
70051         * tests/test-mbrtowc4.sh: New file.
70052         * tests/test-mbrtowc.c: New file.
70054         New module 'mbrtowc'.
70055         * lib/wchar.in.h (mbstate_t): Override when the system does not have
70056         mbsinit and mbrtowc.
70057         (mbrtowc): New declaration.
70058         * lib/mbrtowc.c: New file.
70059         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
70060         * modules/mbrtowc: New file.
70061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
70062         HAVE_MBRTOWC.
70063         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
70064         HAVE_MBRTOWC.
70065         * doc/posix-functions/mbrtowc.texi: Document the new module.
70067 2008-12-18  Bruno Haible  <bruno@clisp.org>
70069         New module 'wctob'.
70070         * lib/wchar.in.h (wctob): New declaration.
70071         * lib/wctob.c: New file.
70072         * m4/wctob.m4: New file.
70073         * modules/wctob: New file.
70074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
70075         HAVE_WCTOB.
70076         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
70077         * doc/posix-functions/wctob.texi: Document the new module.
70079 2008-12-18  Bruno Haible  <bruno@clisp.org>
70081         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
70082         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
70084 2008-12-18  Simon Josefsson  <simon@josefsson.org>
70086         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
70087         G. Christensen" <tgc@jupiterrise.com>.
70089         * lib/flock.c: Need to include errno.h.  Reported by "Tom
70090         G. Christensen" <tgc@jupiterrise.com>.
70092         * lib/flock.c: Need to include string.h.  Reported by "Tom
70093         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
70094         <ebb9@byu.net>.
70096 2008-12-18  Bruno Haible  <bruno@clisp.org>
70098         * m4/locale-ja.m4: New file, from GNU gettext.
70100 2008-12-17  Bruno Haible  <bruno@clisp.org>
70102         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
70103         Suggested by Eric Blake.
70105 2008-12-17  Bruno Haible  <bruno@clisp.org>
70107         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
70109 2008-12-17  Bruno Haible  <bruno@clisp.org>
70111         * lib/mbsinit.c: Include verify.h. Verify an assumption.
70112         * modules/mbsinit (Depends-on): Add verify.
70113         Suggested by Paul Eggert.
70115 2008-12-17  Bruno Haible  <bruno@clisp.org>
70117         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
70118         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
70119         gl_FUNC_MBRTOWC.
70120         * m4/mbiter.m4 (gl_MBITER): LIkewise.
70121         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
70122         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
70123         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
70124         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
70125         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
70126         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
70127         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
70128         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
70129         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
70130         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
70131         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
70132         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
70133         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
70134         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
70135         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70136         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
70137         * modules/trim (configure.ac): Likewise.
70139 2008-12-17  Bruno Haible  <bruno@clisp.org>
70141         * modules/btowc-tests: New file.
70142         * tests/test-btowc1.sh: New file.
70143         * tests/test-btowc2.sh: New file.
70144         * tests/test-btowc.c: New file.
70146         New module 'btowc'.
70147         * lib/wchar.in.h (btowc): New declaration.
70148         * lib/btowc.c: New file.
70149         * m4/btowc.m4: New file.
70150         * modules/btowc: New file.
70151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
70152         HAVE_BTOWC.
70153         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
70154         * doc/posix-functions/btowc.texi: Document the new module.
70156 2008-12-17  Bruno Haible  <bruno@clisp.org>
70158         New module 'mbsinit'.
70159         * lib/wchar.in.h (mbsinit): New declaration.
70160         * lib/mbsinit.c: New file.
70161         * m4/mbsinit.m4: New file.
70162         * modules/mbsinit: New file.
70163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
70164         HAVE_MBSINIT.
70165         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
70166         HAVE_MBSINIT.
70167         * doc/posix-functions/mbsinit.texi: Document the new module.
70169 2008-12-16  Bruno Haible  <bruno@clisp.org>
70171         * lib/unistd.in.h: Add comment.
70172         * tests/test-environ.c: Don't include <stdlib.h>.
70174 2008-12-16  Bruno Haible  <bruno@clisp.org>
70176         * lib/parse-duration.h (parse_duration): Document return value
70177         convention.
70178         * lib/parse-duration.c: Include specification header first. Add
70179         comments.
70180         (_): Remove macro.
70181         (parse_year_month_day, parse_hour_minute_second): Move side effects
70182         outside of strchr call.
70183         (parse_non_iso8601): Move side effects outside of isspace call.
70184         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
70185         call.
70187 2008-12-16  Bruno Haible  <bruno@clisp.org>
70189         * tests/test-parse-duration.sh: Produce no output when the test
70190         succeeds.
70192 2008-12-16  Bruno Haible  <bruno@clisp.org>
70194         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
70195         expressions.
70197 2008-12-15  Bruno Haible  <bruno@clisp.org>
70199         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
70200         * doc/glibc-functions/flistxattr.texi: Likewise.
70201         * doc/glibc-functions/fopencookie.texi: Likewise.
70202         * doc/glibc-functions/fremovexattr.texi: Likewise.
70203         * doc/glibc-functions/fsetxattr.texi: Likewise.
70204         * doc/glibc-functions/getxattr.texi: Likewise.
70205         * doc/glibc-functions/lgetxattr.texi: Likewise.
70206         * doc/glibc-functions/listxattr.texi: Likewise.
70207         * doc/glibc-functions/llistxattr.texi: Likewise.
70208         * doc/glibc-functions/lremovexattr.texi: Likewise.
70209         * doc/glibc-functions/lsetxattr.texi: Likewise.
70210         * doc/glibc-functions/removexattr.texi: Likewise.
70211         * doc/glibc-functions/setxattr.texi: Likewise.
70212         * doc/posix-functions/open_memstream.texi: Likewise.
70214 2008-12-15  Eric Blake  <ebb9@byu.net>
70216         Update doc for cygwin 1.7.
70217         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
70218         functions.
70219         * doc/posix-functions/fchmodat.texi: Likewise.
70220         * doc/posix-functions/fchownat.texi: Likewise.
70221         * doc/posix-functions/fdopendir.texi: Likewise.
70222         * doc/posix-functions/fmemopen.texi: Likewise.
70223         * doc/posix-functions/freeaddrinfo.texi: Likewise.
70224         * doc/posix-functions/fstatat.texi: Likewise.
70225         * doc/posix-functions/futimens.texi: Likewise.
70226         * doc/posix-functions/gai_strerror.texi: Likewise.
70227         * doc/posix-functions/getaddrinfo.texi: Likewise.
70228         * doc/posix-functions/getnameinfo.texi: Likewise.
70229         * doc/posix-functions/if_freenameindex.texi: Likewise.
70230         * doc/posix-functions/if_indextoname.texi: Likewise.
70231         * doc/posix-functions/if_nameindex.texi: Likewise.
70232         * doc/posix-functions/if_nametoindex.texi: Likewise.
70233         * doc/posix-functions/insque.texi: Likewise.
70234         * doc/posix-functions/linkat.texi: Likewise.
70235         * doc/posix-functions/llrint.texi: Likewise.
70236         * doc/posix-functions/llrintf.texi: Likewise.
70237         * doc/posix-functions/llrintl.texi: Likewise.
70238         * doc/posix-functions/lockf.texi: Likewise.
70239         * doc/posix-functions/lrintl.texi: Likewise.
70240         * doc/posix-functions/mkdirat.texi: Likewise.
70241         * doc/posix-functions/mkfifoat.texi: Likewise.
70242         * doc/posix-functions/mknodat.texi: Likewise.
70243         * doc/posix-functions/mq_close.texi: Likewise.
70244         * doc/posix-functions/mq_getattr.texi: Likewise.
70245         * doc/posix-functions/mq_notify.texi: Likewise.
70246         * doc/posix-functions/mq_open.texi: Likewise.
70247         * doc/posix-functions/mq_receive.texi: Likewise.
70248         * doc/posix-functions/mq_send.texi: Likewise.
70249         * doc/posix-functions/mq_setattr.texi: Likewise.
70250         * doc/posix-functions/mq_timedreceive.texi: Likewise.
70251         * doc/posix-functions/mq_timedsend.texi: Likewise.
70252         * doc/posix-functions/mq_unlink.texi: Likewise.
70253         * doc/posix-functions/open_memstream.texi: Likewise.
70254         * doc/posix-functions/openat.texi: Likewise.
70255         * doc/posix-functions/posix_fadvise.texi: Likewise.
70256         * doc/posix-functions/posix_fallocate.texi: Likewise.
70257         * doc/posix-functions/posix_madvise.texi: Likewise.
70258         * doc/posix-functions/posix_memalign.texi: Likewise.
70259         * doc/posix-functions/posix_openpt.texi: Likewise.
70260         * doc/posix-functions/readlinkat.texi: Likewise.
70261         * doc/posix-functions/remque.texi: Likewise.
70262         * doc/posix-functions/renameat.texi: Likewise.
70263         * doc/posix-functions/rintl.texi: Likewise.
70264         * doc/posix-functions/sem_unlink.texi: Likewise.
70265         * doc/posix-functions/shm_open.texi: Likewise.
70266         * doc/posix-functions/shm_unlink.texi: Likewise.
70267         * doc/posix-functions/signgam.texi: Likewise.
70268         * doc/posix-functions/sigset.texi: Likewise.
70269         * doc/posix-functions/stpcpy.texi: Likewise.
70270         * doc/posix-functions/stpncpy.texi: Likewise.
70271         * doc/posix-functions/strerror.texi: Likewise.
70272         * doc/posix-functions/strtod.texi: Likewise.
70273         * doc/posix-functions/symlinkat.texi: Likewise.
70274         * doc/posix-functions/unlinkat.texi: Likewise.
70275         * doc/posix-functions/utimensat.texi: Likewise.
70276         * doc/glibc-functions/bindresvport.texi: Likewise.
70277         * doc/glibc-functions/dn_expand.texi: Likewise.
70278         * doc/glibc-functions/exp10.texi: Likewise.
70279         * doc/glibc-functions/exp10f.texi: Likewise.
70280         * doc/glibc-functions/fgetxattr.texi: Likewise.
70281         * doc/glibc-functions/flistxattr.texi: Likewise.
70282         * doc/glibc-functions/fopencookie.texi: Likewise.
70283         * doc/glibc-functions/freeifaddrs.texi: Likewise.
70284         * doc/glibc-functions/fremovexattr.texi: Likewise.
70285         * doc/glibc-functions/fsetxattr.texi: Likewise.
70286         * doc/glibc-functions/getifaddrs.texi: Likewise.
70287         * doc/glibc-functions/getxattr.texi: Likewise.
70288         * doc/glibc-functions/lgetxattr.texi: Likewise.
70289         * doc/glibc-functions/listxattr.texi: Likewise.
70290         * doc/glibc-functions/llistxattr.texi: Likewise.
70291         * doc/glibc-functions/lremovexattr.texi: Likewise.
70292         * doc/glibc-functions/lsetxattr.texi: Likewise.
70293         * doc/glibc-functions/pow10.texi: Likewise.
70294         * doc/glibc-functions/pow10f.texi: Likewise.
70295         * doc/glibc-functions/rcmd_af.texi: Likewise.
70296         * doc/glibc-functions/removexattr.texi: Likewise.
70297         * doc/glibc-functions/res_init.texi: Likewise.
70298         * doc/glibc-functions/res_mkquery.texi: Likewise.
70299         * doc/glibc-functions/res_query.texi: Likewise.
70300         * doc/glibc-functions/res_querydomain.texi: Likewise.
70301         * doc/glibc-functions/res_send.texi: Likewise.
70302         * doc/glibc-functions/rresvport_af.texi: Likewise.
70303         * doc/glibc-functions/setxattr.texi: Likewise.
70304         * doc/glibc-functions/strcasestr.texi: Likewise.
70306 2008-12-15  Bruno Haible  <bruno@clisp.org>
70308         Fix compilation error on OSF/1 4.0.
70309         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
70310         <sys/time.h>, simply delegate to the system header.
70311         Reported by Daniel Richard G. <oss@teragram.com>.
70313 2008-12-15  Bruno Haible  <bruno@clisp.org>
70315         * doc/posix-functions/openat.texi: Mention the 'openat' module.
70316         * doc/posix-functions/fchmodat.texi: Likewise.
70317         * doc/posix-functions/fchownat.texi: Likewise.
70318         * doc/posix-functions/fdopendir.texi: Likewise.
70319         * doc/posix-functions/fstatat.texi: Likewise.
70320         * doc/posix-functions/mkdirat.texi: Likewise.
70321         * doc/posix-functions/unlinkat.texi: Likewise.
70323 2008-12-14  Bruno Haible  <bruno@clisp.org>
70325         Update doc for POSIX:2008.
70326         * doc/posix-functions/faccessat.texi: New file.
70327         * doc/posix-functions/fchmodat.texi: New file.
70328         * doc/posix-functions/fchownat.texi: New file.
70329         * doc/posix-functions/fdopendir.texi: New file.
70330         * doc/posix-functions/fstatat.texi: New file.
70331         * doc/posix-functions/futimens.texi: New file.
70332         * doc/posix-functions/linkat.texi: New file.
70333         * doc/posix-functions/mkdirat.texi: New file.
70334         * doc/posix-functions/mkfifoat.texi: New file.
70335         * doc/posix-functions/mknodat.texi: New file.
70336         * doc/posix-functions/open_wmemstream.texi: New file.
70337         * doc/posix-functions/openat.texi: New file.
70338         * doc/posix-functions/psiginfo.texi: New file.
70339         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
70340         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
70341         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
70342         * doc/posix-functions/readlinkat.texi: New file.
70343         * doc/posix-functions/renameat.texi: New file.
70344         * doc/posix-functions/strerror_l.texi: New file.
70345         * doc/posix-functions/symlinkat.texi: New file.
70346         * doc/posix-functions/unlinkat.texi: New file.
70347         * doc/posix-functions/utimensat.texi: New file.
70348         * doc/gnulib.texi (Function Substitutes): Add these subsections.
70350 2008-12-14  Bruno Haible  <bruno@clisp.org>
70352         Update doc for POSIX:2008.
70353         * doc/posix-functions/alphasort.texi: Renamed from
70354         doc/glibc-functions/alphasort.texi.
70355         * doc/posix-functions/dirfd.texi: Renamed from
70356         doc/glibc-functions/dirfd.texi.
70357         * doc/posix-functions/dprintf.texi: Renamed from
70358         doc/glibc-functions/dprintf.texi.
70359         * doc/posix-functions/duplocale.texi: Renamed from
70360         doc/glibc-functions/duplocale.texi.
70361         * doc/posix-functions/fexecve.texi: Renamed from
70362         doc/glibc-functions/fexecve.texi.
70363         * doc/posix-functions/fmemopen.texi: Renamed from
70364         doc/glibc-functions/fmemopen.texi.
70365         * doc/posix-functions/freelocale.texi: Renamed from
70366         doc/glibc-functions/freelocale.texi.
70367         * doc/posix-functions/getdate_err.texi: Renamed from
70368         doc/glibc-functions/getdate_err.texi.
70369         * doc/posix-functions/isalnum_l.texi: Renamed from
70370         doc/glibc-functions/isalnum_l.texi.
70371         * doc/posix-functions/isalpha_l.texi: Renamed from
70372         doc/glibc-functions/isalpha_l.texi.
70373         * doc/posix-functions/isblank_l.texi: Renamed from
70374         doc/glibc-functions/isblank_l.texi.
70375         * doc/posix-functions/iscntrl_l.texi: Renamed from
70376         doc/glibc-functions/iscntrl_l.texi.
70377         * doc/posix-functions/isdigit_l.texi: Renamed from
70378         doc/glibc-functions/isdigit_l.texi.
70379         * doc/posix-functions/isgraph_l.texi: Renamed from
70380         doc/glibc-functions/isgraph_l.texi.
70381         * doc/posix-functions/islower_l.texi: Renamed from
70382         doc/glibc-functions/islower_l.texi.
70383         * doc/posix-functions/isprint_l.texi: Renamed from
70384         doc/glibc-functions/isprint_l.texi.
70385         * doc/posix-functions/ispunct_l.texi: Renamed from
70386         doc/glibc-functions/ispunct_l.texi.
70387         * doc/posix-functions/isspace_l.texi: Renamed from
70388         doc/glibc-functions/isspace_l.texi.
70389         * doc/posix-functions/isupper_l.texi: Renamed from
70390         doc/glibc-functions/isupper_l.texi.
70391         * doc/posix-functions/iswalnum_l.texi: Renamed from
70392         doc/glibc-functions/iswalnum_l.texi.
70393         * doc/posix-functions/iswalpha_l.texi: Renamed from
70394         doc/glibc-functions/iswalpha_l.texi.
70395         * doc/posix-functions/iswblank_l.texi: Renamed from
70396         doc/glibc-functions/iswblank_l.texi.
70397         * doc/posix-functions/iswcntrl_l.texi: Renamed from
70398         doc/glibc-functions/iswcntrl_l.texi.
70399         * doc/posix-functions/iswctype_l.texi: Renamed from
70400         doc/glibc-functions/iswctype_l.texi.
70401         * doc/posix-functions/iswdigit_l.texi: Renamed from
70402         doc/glibc-functions/iswdigit_l.texi.
70403         * doc/posix-functions/iswgraph_l.texi: Renamed from
70404         doc/glibc-functions/iswgraph_l.texi.
70405         * doc/posix-functions/iswlower_l.texi: Renamed from
70406         doc/glibc-functions/iswlower_l.texi.
70407         * doc/posix-functions/iswprint_l.texi: Renamed from
70408         doc/glibc-functions/iswprint_l.texi.
70409         * doc/posix-functions/iswpunct_l.texi: Renamed from
70410         doc/glibc-functions/iswpunct_l.texi.
70411         * doc/posix-functions/iswspace_l.texi: Renamed from
70412         doc/glibc-functions/iswspace_l.texi.
70413         * doc/posix-functions/iswupper_l.texi: Renamed from
70414         doc/glibc-functions/iswupper_l.texi.
70415         * doc/posix-functions/iswxdigit_l.texi: Renamed from
70416         doc/glibc-functions/iswxdigit_l.texi.
70417         * doc/posix-functions/isxdigit_l.texi: Renamed from
70418         doc/glibc-functions/isxdigit_l.texi.
70419         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
70420         doc/glibc-functions/mbsnrtowcs.texi.
70421         * doc/posix-functions/mkdtemp.texi: Renamed from
70422         doc/glibc-functions/mkdtemp.texi.
70423         * doc/posix-functions/newlocale.texi: Renamed from
70424         doc/glibc-functions/newlocale.texi.
70425         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
70426         doc/glibc-functions/nl_langinfo_l.texi.
70427         * doc/posix-functions/open_memstream.texi: Renamed from
70428         doc/glibc-functions/open_memstream.texi.
70429         * doc/posix-functions/opterr.texi: Renamed from
70430         doc/glibc-functions/opterr.texi.
70431         * doc/posix-functions/optind.texi: Renamed from
70432         doc/glibc-functions/optind.texi.
70433         * doc/posix-functions/optopt.texi: Renamed from
70434         doc/glibc-functions/optopt.texi.
70435         * doc/posix-functions/psignal.texi: Renamed from
70436         doc/glibc-functions/psignal.texi.
70437         * doc/posix-functions/scandir.texi: Renamed from
70438         doc/glibc-functions/scandir.texi.
70439         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
70440         doc/glibc-functions/sched_get_priority_min.texi.
70441         * doc/posix-functions/signgam.texi: Renamed from
70442         doc/glibc-functions/signgam.texi.
70443         * doc/posix-functions/stpcpy.texi: Renamed from
70444         doc/glibc-functions/stpcpy.texi.
70445         * doc/posix-functions/stpncpy.texi: Renamed from
70446         doc/glibc-functions/stpncpy.texi.
70447         * doc/posix-functions/strcasecmp_l.texi: Renamed from
70448         doc/glibc-functions/strcasecmp_l.texi.
70449         * doc/posix-functions/strcoll_l.texi: Renamed from
70450         doc/glibc-functions/strcoll_l.texi.
70451         * doc/posix-functions/strfmon_l.texi: Renamed from
70452         doc/glibc-functions/strfmon_l.texi.
70453         * doc/posix-functions/strftime_l.texi: Renamed from
70454         doc/glibc-functions/strftime_l.texi.
70455         * doc/posix-functions/strncasecmp_l.texi: Renamed from
70456         doc/glibc-functions/strncasecmp_l.texi.
70457         * doc/posix-functions/strndup.texi: Renamed from
70458         doc/glibc-functions/strndup.texi.
70459         * doc/posix-functions/strnlen.texi: Renamed from
70460         doc/glibc-functions/strnlen.texi.
70461         * doc/posix-functions/strsignal.texi: Renamed from
70462         doc/glibc-functions/strsignal.texi.
70463         * doc/posix-functions/strxfrm_l.texi: Renamed from
70464         doc/glibc-functions/strxfrm_l.texi.
70465         * doc/posix-functions/timer_gettime.texi: Renamed from
70466         doc/glibc-functions/timer_gettime.texi.
70467         * doc/posix-functions/tolower_l.texi: Renamed from
70468         doc/glibc-functions/tolower_l.texi.
70469         * doc/posix-functions/toupper_l.texi: Renamed from
70470         doc/glibc-functions/toupper_l.texi.
70471         * doc/posix-functions/towctrans_l.texi: Renamed from
70472         doc/glibc-functions/towctrans_l.texi.
70473         * doc/posix-functions/towlower_l.texi: Renamed from
70474         doc/glibc-functions/towlower_l.texi.
70475         * doc/posix-functions/towupper_l.texi: Renamed from
70476         doc/glibc-functions/towupper_l.texi.
70477         * doc/posix-functions/uselocale.texi: Renamed from
70478         doc/glibc-functions/uselocale.texi.
70479         * doc/posix-functions/vdprintf.texi: Renamed from
70480         doc/glibc-functions/vdprintf.texi.
70481         * doc/posix-functions/wcpcpy.texi:
70482         Renamed from doc/glibc-functions/wcpcpy.texi.
70483         * doc/posix-functions/wcpncpy.texi: Renamed from
70484         doc/glibc-functions/wcpncpy.texi.
70485         * doc/posix-functions/wcscasecmp.texi: Renamed from
70486         doc/glibc-functions/wcscasecmp.texi.
70487         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
70488         doc/glibc-functions/wcscasecmp_l.texi.
70489         * doc/posix-functions/wcscoll_l.texi: Renamed from
70490         doc/glibc-functions/wcscoll_l.texi.
70491         * doc/posix-functions/wcsdup.texi: Renamed from
70492         doc/glibc-functions/wcsdup.texi.
70493         * doc/posix-functions/wcsncasecmp.texi: Renamed from
70494         doc/glibc-functions/wcsncasecmp.texi.
70495         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
70496         doc/glibc-functions/wcsncasecmp_l.texi.
70497         * doc/posix-functions/wcsnlen.texi: Renamed from
70498         doc/glibc-functions/wcsnlen.texi.
70499         * doc/posix-functions/wcsnrtombs.texi: Renamed from
70500         doc/glibc-functions/wcsnrtombs.texi.
70501         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
70502         doc/glibc-functions/wcsxfrm_l.texi.
70503         * doc/posix-functions/wctrans_l.texi: Renamed from
70504         doc/glibc-functions/wctrans_l.texi.
70505         * doc/posix-functions/wctype_l.texi: Renamed from
70506         doc/glibc-functions/wctype_l.texi.
70507         * doc/gnulib.texi (Function Substitutes): Add these subsections.
70508         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
70509         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
70510         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
70511         these subsections.
70512         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
70513         Remove sections.
70515 2008-12-14  Bruno Haible  <bruno@clisp.org>
70517         Update doc for POSIX:2008.
70518         * doc/posix-functions/*.texi: Update URL of POSIX specification.
70520 2008-12-14  Bruno Haible  <bruno@clisp.org>
70522         Update doc for POSIX:2008.
70523         * doc/pastposix-functions/bcmp.texi: Renamed from
70524         doc/posix-functions/bcmp.texi.
70525         * doc/pastposix-functions/bcopy.texi: Renamed from
70526         doc/posix-functions/bcopy.texi.
70527         * doc/pastposix-functions/bsd_signal.texi: Renamed from
70528         doc/posix-functions/bsd_signal.texi.
70529         * doc/pastposix-functions/bzero.texi: Renamed from
70530         doc/posix-functions/bzero.texi.
70531         * doc/pastposix-functions/ecvt.texi: Renamed from
70532         doc/posix-functions/ecvt.texi.
70533         * doc/pastposix-functions/fcvt.texi: Renamed from
70534         doc/posix-functions/fcvt.texi.
70535         * doc/pastposix-functions/ftime.texi: Renamed from
70536         doc/posix-functions/ftime.texi.
70537         * doc/pastposix-functions/gcvt.texi: Renamed from
70538         doc/posix-functions/gcvt.texi.
70539         * doc/pastposix-functions/getcontext.texi: Renamed from
70540         doc/posix-functions/getcontext.texi.
70541         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
70542         doc/posix-functions/gethostbyaddr.texi.
70543         * doc/pastposix-functions/gethostbyname.texi: Renamed from
70544         doc/posix-functions/gethostbyname.texi.
70545         * doc/pastposix-functions/getwd.texi: Renamed from
70546         doc/posix-functions/getwd.texi.
70547         * doc/pastposix-functions/h_errno.texi: Renamed from
70548         doc/posix-functions/h_errno.texi.
70549         * doc/pastposix-functions/index.texi: Renamed from
70550         doc/posix-functions/index.texi.
70551         * doc/pastposix-functions/makecontext.texi: Renamed from
70552         doc/posix-functions/makecontext.texi.
70553         * doc/pastposix-functions/mktemp.texi: Renamed from
70554         doc/posix-functions/mktemp.texi.
70555         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
70556         doc/posix-functions/pthread_attr_getstackaddr.texi.
70557         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
70558         doc/posix-functions/pthread_attr_setstackaddr.texi.
70559         * doc/pastposix-functions/rindex.texi: Renamed from
70560         doc/posix-functions/rindex.texi.
70561         * doc/pastposix-functions/scalb.texi: Renamed from
70562         doc/posix-functions/scalb.texi.
70563         * doc/pastposix-functions/setcontext.texi: Renamed from
70564         doc/posix-functions/setcontext.texi.
70565         * doc/pastposix-functions/swapcontext.texi: Renamed from
70566         doc/posix-functions/swapcontext.texi.
70567         * doc/pastposix-functions/ualarm.texi: Renamed from
70568         doc/posix-functions/ualarm.texi.
70569         * doc/pastposix-functions/usleep.texi: Renamed from
70570         doc/posix-functions/usleep.texi.
70571         * doc/pastposix-functions/vfork.texi: Renamed from
70572         doc/posix-functions/vfork.texi.
70573         * doc/pastposix-functions/wcswcs.texi: Renamed from
70574         doc/posix-functions/wcswcs.texi.
70575         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
70576         (Function Substitutes): Update.
70578 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70580         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
70581         m4/strerror.m4.
70583 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70584             Bruno Haible  <bruno@clisp.org>
70586         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
70588 2008-12-13  Bruno Haible  <bruno@clisp.org>
70590         * modules/strtoull (Depends-on): Remove unistd.
70592 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70594         * modules/strtoull (Depends-on): Add stdlib.
70596 2008-12-11  Simon Josefsson  <simon@josefsson.org>
70598         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
70600 2008-12-10  Jim Meyering  <meyering@redhat.com>
70602         gl_ASSERT: don't say assertions are disabled when they're not
70603         * m4/assert.m4 (gl_ASSERT): Do not make configure report
70604         "checking whether to enable assertions... no", when they are in
70605         fact enabled.  This is solely a bug in the output of configure.
70606         In spite of saying "no", NDEBUG was not defined in that case.
70607         Also, as noted by Eric Blake, leave assertions enabled upon
70608         --enable-assert=INVALID.
70610 2008-12-10  Bruno Haible  <bruno@clisp.org>
70612         Change MODULES.html to refer to POSIX:2008 where possible.
70613         * MODULES.html.sh (POSIX2008_URL): New variable.
70614         (posix_headers): Remove sys/timeb, ucontext.
70615         (posix2001_headers): New variable.
70616         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
70617         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
70618         index, makecontext, mktemp, pthread_attr_getstackaddr,
70619         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
70620         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
70621         (posix2001_functions): New variable.
70622         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
70623         otherwise.
70625 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70627         add missing include to parse-duration.c
70628         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
70629         * modules/parse-duration (Depends-on): Add xalloc.
70631         fix sed script reading maint.mk
70632         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
70633         (syntax-check-rules): Use it.
70635 2008-12-09  Bruno Haible  <bruno@clisp.org>
70637         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
70638         MacOS X 10.4/PowerPC.
70639         Reported by Simon Josefsson.
70641 2008-12-08  Jim Meyering  <meyering@redhat.com>
70643         work around mingw's lack of some S_IF definitions
70644         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
70645         Reported by Simon Josefsson.
70647 2008-12-08  Bruno Haible  <bruno@clisp.org>
70649         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
70650         applied to variables. Needed on MacOS X 10.4/PowerPC.
70651         Reported by Simon Josefsson.
70653 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
70654         and Eric Blake  <ebb9@byu.net>
70656         assert: honor --enable-assert
70657         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
70658         order to honor --enable-assert, rather than treating it as a
70659         synonym for --disable-assert.
70661 2008-12-08  Jim Meyering  <meyering@redhat.com>
70663         * lib/posixtm.c: Remove now-useless declaration of mktime.
70665         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
70667 2008-12-07  Bruno Haible  <bruno@clisp.org>
70669         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
70670         test_once): Mark functions as static.
70671         * tests/test-tls.c (test_tls): Likewise.
70673 2008-12-07  Bruno Haible  <bruno@clisp.org>
70675         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
70676         iconv_register_autodetect.
70678 2008-12-07  Jim Meyering  <meyering@redhat.com>
70680         posixtm.c: avoid a warning
70681         * lib/posixtm.c (posixtime): Don't initialize tm0.
70682         It's no longer needed to placate gcc4's -Wuninitialized,
70683         and the attempt to placate would elicit a new warning.
70685         unicodeio.c: mark unused parameters
70686         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
70687         (fallback_failure_callback): Likewise.
70689 2008-12-07  Bruno Haible  <bruno@clisp.org>
70691         * gnulib-tool (func_create_testdir): When building the tests
70692         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
70693         Reported by Simon Josefsson.
70695 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70697         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
70699 2008-12-06  Bruno Haible  <bruno@clisp.org>
70701         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
70702         Suggested by Eric Blake.
70704 2008-12-06  Bruno Haible  <bruno@clisp.org>
70706         Fix a c-stack test failure on MacOS X.
70707         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
70708         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
70709         handler for SIGBUS as well.
70710         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
70711         install a signal handler for SIGBUS as well.
70712         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
70714 2008-12-06  Bruno Haible  <bruno@clisp.org>
70716         Advocacy documentation.
70717         * doc/gnulib-intro.texi (Benefits): New section.
70718         * doc/gnulib.texi: Update.
70720 2008-12-06  Bruno Haible  <bruno@clisp.org>
70722         Document the 'manywarnings' module.
70723         * doc/manywarnings.texi: New file.
70724         * doc/gnulib.texi: Include it.
70726 2008-12-05  Eric Blake  <ebb9@byu.net>
70728         tests: silence some gcc warnings
70729         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
70730         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
70731         type mismatches.
70733 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70734             Bruno Haible  <bruno@clisp.org>
70736         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
70738 2008-11-29  Jim Meyering  <meyering@redhat.com>
70740         unicodeio.c: mark unused parameters
70741         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
70742         (fallback_failure_callback): Likewise.
70744         fts: fix a thinko
70745         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
70746         (set_stat_type): Return S_IF*-valued "type" directly.
70747         Prompted by James Youngman's spotting a related bug.
70748         Confirmed by further testing through find.
70750         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
70751         * lib/fts.c (D_TYPE): Define.
70752         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
70753         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
70754         (s_ifmt_shift_bits): New function.
70755         (set_stat_type): New function.
70756         (fts_build): When not calling fts_stat, call set_stat_type
70757         to propagate dirent.d_type info to fts_read caller.
70758         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
70759         fts_statp->st_mode type information may be valid.
70761 2008-11-28  Simon Josefsson  <simon@josefsson.org>
70763         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
70764         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
70765         <sds@gnu.org>.
70767 2008-11-20  Bruno Haible  <bruno@clisp.org>
70769         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
70770         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
70771         INCLUDE_NEXT.
70772         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
70773         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
70774         * modules/math (Makefile.am): Substitute
70775         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
70776         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70778 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
70779             Bruno Haible  <bruno@clisp.org>
70781         * lib/stdint.in.h: Define all type macros so that their expansion is
70782         a single typedef'ed token. Fixes a compilation failure in Boost which
70783         does "using ::int8_t;".
70785 2008-11-18  Simon Josefsson  <simon@josefsson.org>
70787         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
70788         gl_MANYWARN_ALL_GCC.
70789         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
70790         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
70791         * modules/manywarnings: New file.
70792         * MODULES.html.sh: Mention manywarnings module.
70794 2008-11-18  Bruno Haible  <bruno@clisp.org>
70796         * doc/gnulib-tool.texi (Unit tests): New section.
70798 2008-11-18  Simon Josefsson  <simon@josefsson.org>
70800         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
70801         paths like 'lib/po/foo.po'.
70803 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70805         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
70806         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
70808 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70810         * m4/warnings.m4: Use CPPFLAGS to really check whether the
70811         parameter works.
70813 2008-11-17  Simon Josefsson  <simon@josefsson.org>
70815         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
70817 2008-11-17  Bruce Korb  <bkorb@gnu.org>
70819         * modules/parse-duration-tests: New file.
70820         * tests/test-parse-duration.sh: New file.
70821         * tests/test-parse-duration.c: New file.
70823         New module 'parse-duration'.
70824         * lib/parse-duration.h: New file.
70825         * lib/parse-duration.c: New file.
70826         * modules/parse-duration: New file.
70828 2008-11-17  Bruno Haible  <bruno@clisp.org>
70830         * tests/test-select-out.sh: Comment out the first pipe test.
70831         Reported by Simon Josefsson.
70833 2008-11-17  Bruno Haible  <bruno@clisp.org>
70835         * modules/getaddrinfo (Depends-on): Add servent, hostent.
70836         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
70837         gl_HOSTENT.
70839 2008-11-17  Bruno Haible  <bruno@clisp.org>
70841         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
70842         -lnetwork and -lnet. Needed for Haiku and BeOS.
70844 2008-11-16  Bruno Haible  <bruno@clisp.org>
70846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
70848 2008-11-16  Bruno Haible  <bruno@clisp.org>
70850         Avoid test failure on Haiku.
70851         * tests/test-fsync.c: Include <errno.h>.
70852         (main): Don't require that fsync (0) fails.
70854 2008-11-15  Bruno Haible  <bruno@clisp.org>
70856         New module 'hostent'.
70857         * modules/hostent: New file.
70858         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
70860 2008-11-15  Bruno Haible  <bruno@clisp.org>
70862         New module 'servent'.
70863         * modules/servent: New file.
70864         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
70866 2008-11-15  Bruno Haible  <bruno@clisp.org>
70868         Avoid generating same test program with two different rules.
70869         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
70870         test-frexp to test-frexp-nolibm.
70871         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
70872         test-frexpl to test-frexpl-nolibm.
70874 2008-11-15  Bruno Haible  <bruno@clisp.org>
70876         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
70877         $(FREXPL_LIBM).
70879 2008-11-15  Bruno Haible  <bruno@clisp.org>
70881         * lib/netdb.in.h: Activate the definitions also when the system's
70882         <netdb.h> has 'struct addrinfo'.
70883         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
70884         EAI_OVERFLOW or AI_NUMERICSERV.
70885         * doc/posix-headers/netdb.texi: Document the problem.
70887 2008-11-15  Bruno Haible  <bruno@clisp.org>
70889         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
70891         Make the 'sched' module work on platforms where <sched.h> exists but
70892         is incomplete (such as Haiku).
70893         * lib/sched.in.h; Include the system's <sched.h> if it exists.
70894         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
70895         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
70896         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
70897         HAVE_STRUCT_SCHED_PARAM.
70898         * modules/sched (Depends-on): Add include_next.
70899         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
70900         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
70901         * doc/posix-headers/sched.texi: Document the issue.
70903 2008-11-13  Jim Meyering  <meyering@redhat.com>
70905         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
70906         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
70907         test would fail due to the difference in the Report bugs to ...
70908         line.  The expected address is empty, "<>", while the actual
70909         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
70911 2008-11-12  Bruno Haible  <bruno@clisp.org>
70913         lstat: don't compile lstat.c on systems lacking lstat
70914         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
70915         which don't have lstat; this is handled by lib/sys_stat.in.h already.
70916         Reported by Daniel P. Berrange via Jim Meyering.
70918 2008-11-12  Jim Meyering  <meyering@redhat.com>
70920         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
70922 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70924         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
70925         instead.
70927 2008-11-12  Bruno Haible  <bruno@clisp.org>
70929         * lib/unicodeio.c: Include unistr.h.
70930         (utf8_wctomb): Remove function.
70931         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
70933 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70935         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
70936         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
70937         <bruno@clisp.org>.
70938         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
70940 2008-11-12  Simon Josefsson  <simon@josefsson.org>
70942         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
70943         * doc/gnulib.texi: Add section for warnings.
70945 2008-11-11  Bruno Haible  <bruno@clisp.org>
70947         * lib/sockets.h: Add a comment.
70949 2008-11-11  Karl Berry  <karl@gnu.org>
70951         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
70953 2008-11-11  Eric Blake  <ebb9@byu.net>
70955         fdl.texi: avoid git symlinks
70956         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
70958 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70960         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
70962 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70964         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
70965         (gl_WARN_ADD): Substitute $2 if literal.
70967 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70969         * m4/warning.m4: Remove.
70971 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
70973         * m4/warnings.m4: Almost complete rewrite. :-)
70975 2008-11-10  Simon Josefsson  <simon@josefsson.org>
70977         * modules/warnings: New module.
70978         * m4/warnings.m4: New file.
70979         * MODULES.html.sh: Mention warnings module.
70980         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
70981         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70983 2008-11-10  Eric Blake  <ebb9@byu.net>
70985         fdl.texi: make a symlink to the latest version
70986         * doc/standards.texi: Revert today's earlier change.
70987         * doc/fdl-1.2.texi: Rename from old fdl.texi...
70988         * doc/fdl.texi: ...and replace this with a symlink to the newer
70989         fdl-1.3.texi.
70991 2008-11-10  Bruno Haible  <bruno@clisp.org>
70993         * tests/test-select-fd.c (main): Accept the result file name as fourth
70994         argument.
70995         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
70996         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
70998 2008-11-10  Bruno Haible  <bruno@clisp.org>
71000         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
71001         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
71002         as autoconf-substituted macros.
71003         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
71004         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
71005         gl_NETDB_H_DEFAULTS. Set these variables.
71006         * modules/netdb (Makefile.am): Substitute these variables.
71008 2008-11-10  Eric Blake  <ebb9@byu.net>
71010         standards.texi: include correct file for FDL 1.3
71011         * doc/standards.texi (GNU Free Documentation License): Change
71012         include file to pull in FDL 1.3, not 1.2.
71014         fdl.texi: revert accidental change to license
71015         * doc/fdl.texi: This is FDL 1.2, not 1.3.
71017 2008-11-10  Bruno Haible  <bruno@clisp.org>
71019         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
71020         cross-compiling guesses also when the native compile gives no result.
71022 2008-11-10  Bruno Haible  <bruno@clisp.org>
71024         * lib/spawni.c (__spawni): Force variable into the stack.
71026 2008-11-10  Bruno Haible  <bruno@clisp.org>
71028         Add support for Haiku.
71029         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
71030         glibc and BeOS, but also on Haiku.
71031         * lib/fpurge.c (fpurge): Likewise.
71032         * lib/freadable.c (freadable): Likewise.
71033         * lib/freadahead.c (freadahead): Likewise.
71034         * lib/freading.c (freading): Likewise.
71035         * lib/freadptr.c (freadptr): Likewise.
71036         * lib/freadseek.c (freadptrinc): Likewise.
71037         * lib/fseeko.c (rpl_fseeko): Likewise.
71038         * lib/fseterr.c (fseterr): Likewise.
71039         * lib/fwritable.c (fwritable): Likewise.
71040         * lib/fwriting.c (fwriting): Likewise.
71041         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
71043 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
71045         * lib/config.charset: Treat Haiku like BeOS.
71047 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
71049         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
71050         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
71052 2008-11-08  Bruno Haible  <bruno@clisp.org>
71054         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
71055         AC_CACHE_CHECK.
71057 2008-11-08  Bruno Haible  <bruno@clisp.org>
71059         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
71061 2008-11-08  Bruno Haible  <bruno@clisp.org>
71063         * tests/test-select-fd.c: New file.
71064         * tests/test-select-in.sh: New file.
71065         * tests/test-select-out.sh: New file.
71066         * tests/test-select-stdin.c: New file.
71067         * modules/select-tests (Files): Add the new files.
71068         (Depends-on): Add gettimeofday.
71069         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
71070         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
71071         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
71073 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
71074             Bruno Haible  <bruno@clisp.org>
71076         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
71078 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
71080         * build-aux/pmccabe2html: Added support for C++ source files.
71082 2008-11-05  Ben Pfaff  <blp@gnu.org>
71084         Fix lib/close.c build on Windows.
71085         * modules/close (Files): Add lib/w32sock.h.
71087 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
71089         Accept Bison's NEWS format.
71090         * build-aux/announce-gen (print_news_deltas): Tweak
71091         $re_prefix.
71093 2008-11-04  Bruno Haible  <bruno@clisp.org>
71095         * modules/random_r (Maintainer): Add glibc.
71097 2008-11-04  Simon Josefsson  <simon@josefsson.org>
71099         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
71100         by karl@freefriends.org (Karl Berry).
71101         * doc/alloca.texi: Likewise.
71102         * doc/c-ctype.texi: Likewise.
71103         * doc/c-strcase.texi: Likewise.
71104         * doc/c-strcaseeq.texi: Likewise.
71105         * doc/c-strcasestr.texi: Likewise.
71106         * doc/c-strstr.texi: Likewise.
71107         * doc/c-strtod.texi: Likewise.
71108         * doc/c-strtold.texi: Likewise.
71109         * doc/ctime.texi: Likewise.
71110         * doc/error.texi: Likewise.
71111         * doc/fdl.texi: Likewise.
71112         * doc/gcd.texi: Likewise.
71113         * doc/getdate.texi: Likewise.
71114         * doc/gnulib-intro.texi: Likewise.
71115         * doc/gnulib-tool.texi: Likewise.
71116         * doc/gnulib.texi: Likewise.
71117         * doc/inet_ntoa.texi: Likewise.
71118         * doc/maintain.texi: Likewise.
71119         * doc/make-stds.texi: Likewise.
71120         * doc/quote.texi: Likewise.
71121         * doc/regexprops-generic.texi: Likewise.
71122         * doc/standards.texi: Likewise.
71123         * doc/verify.texi: Likewise.
71124         * doc/visibility.texi: Likewise.
71125         * doc/gnulib.texi (GNU Free Documentation License): Include
71126         fdl-1.3.texi instead of fdl.texi.
71128 2008-11-04  Simon Josefsson  <simon@josefsson.org>
71130         * doc/fdl-1.3.texi: New file, from
71131         <http://www.gnu.org/licenses/fdl-1.3.texi>.
71132         * modules/fdl-1.3: Add.
71133         * MODULES.html.sh: Add fdl-1.3.
71135 2008-11-03  Bruno Haible  <bruno@clisp.org>
71137         Make determination of absolute name of header file work with AIX xlc.
71138         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
71139         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
71140         preprocessing.
71141         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
71142         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
71144 2008-11-03  Simon Josefsson  <simon@josefsson.org>
71146         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
71147         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
71148         <ludo@gnu.org>.
71150 2008-11-02  Bruno Haible  <bruno@clisp.org>
71152         Mark 'strpbrk' obsolete.
71153         * modules/strpbrk (Status, Notice): New sections.
71154         * modules/strtok_r (Depends-on): Add strpbrk.
71156 2008-11-02  Bruno Haible  <bruno@clisp.org>
71158         Mark 'strdup' obsolete.
71159         * modules/strdup (Status, Notice): New sections.
71160         * modules/findprog (Depends-on): Add strdup.
71161         * modules/getaddrinfo (Depends-on): Likewise.
71162         * modules/localename (Depends-on): Likewise.
71163         * modules/relocatable-lib (Depends-on): Likewise.
71164         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
71165         * modules/relocatable-prog (Depends-on): Likewise.
71166         * modules/trim (Depends-on): Likewise.
71167         * modules/unictype/gen-ctype (Depends-on): Likewise.
71168         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
71170 2008-11-02  Bruno Haible  <bruno@clisp.org>
71172         Mark 'strcspn' obsolete.
71173         * modules/strcspn (Status, Notice): New sections.
71175 2008-11-02  Bruno Haible  <bruno@clisp.org>
71177         Mark 'rmdir' obsolete.
71178         * modules/rmdir (Status, Notice): New sections.
71179         * modules/clean-temp (Depends-on): Add rmdir.
71180         * modules/openat (Depends-on): Likewise.
71182 2008-11-02  Bruno Haible  <bruno@clisp.org>
71184         Mark 'raise' obsolete.
71185         * modules/raise (Status, Notice): New sections.
71186         (Include): Specify <signal.h>.
71187         * modules/stdio (Depends-on): Add raise.
71188         * modules/write (Depends-on): Likewise.
71190 2008-11-02  Bruno Haible  <bruno@clisp.org>
71192         Mark 'memset' obsolete.
71193         * modules/memset (Status, Notice): New sections.
71195 2008-11-02  Bruno Haible  <bruno@clisp.org>
71197         Mark 'memmove' obsolete.
71198         * modules/memmove (Status, Notice): New sections.
71199         * modules/argp (Depends-on): Add memmove.
71200         * modules/argz (Depends-on): Likewise.
71201         * modules/canonicalize (Depends-on): Likewise.
71202         * modules/canonicalize-lgpl (Depends-on): Likewise.
71203         * modules/fts (Depends-on): Likewise.
71204         * modules/getcwd (Depends-on): Likewise.
71205         * modules/human (Depends-on): Likewise.
71206         * modules/regex (Depends-on): Likewise.
71207         * modules/striconveh (Depends-on): Likewise.
71208         * modules/trim (Depends-on): Likewise.
71209         * modules/unistr/u8-move (Depends-on): Likewise.
71210         * modules/unistr/u16-move (Depends-on): Likewise.
71211         * modules/unistr/u32-move (Depends-on): Likewise.
71213 2008-11-02  Bruno Haible  <bruno@clisp.org>
71215         Mark 'memcpy' obsolete.
71216         * modules/memcpy (Status, Notice): New sections.
71218 2008-11-02  Bruno Haible  <bruno@clisp.org>
71220         Mark 'memcmp' obsolete.
71221         * modules/memcmp (Status, Notice): New sections.
71222         * modules/argmatch (Depends-on): Add memchr.
71223         * modules/backupfile (Depends-on): Likewise.
71224         * modules/c-strcasestr (Depends-on): Likewise.
71225         * modules/crypto/des (Depends-on): Likewise.
71226         * modules/csharpcomp (Depends-on): Likewise.
71227         * modules/fnmatch (Depends-on): Likewise.
71228         * modules/git-merge-changelog (Depends-on): Likewise.
71229         * modules/isnand (Depends-on): Likewise.
71230         * modules/isnand-nolibm (Depends-on): Likewise.
71231         * modules/isnanf (Depends-on): Likewise.
71232         * modules/isnanf-nolibm (Depends-on): Likewise.
71233         * modules/isnanl (Depends-on): Likewise.
71234         * modules/isnanl-nolibm (Depends-on): Likewise.
71235         * modules/mbchar (Depends-on): Likewise.
71236         * modules/memcoll (Depends-on): Likewise.
71237         * modules/quotearg (Depends-on): Likewise.
71238         * modules/regex (Depends-on): Likewise.
71239         * modules/relocatable-prog (Depends-on): Likewise.
71240         * modules/same (Depends-on): Likewise.
71241         * modules/signbit (Depends-on): Likewise.
71242         * modules/strcasestr-simple (Depends-on): Likewise.
71243         * modules/unictype/gen-ctype (Depends-on): Likewise.
71244         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
71245         * modules/uniname/uniname (Depends-on): Likewise.
71246         * modules/unistr/u8-cmp (Depends-on): Likewise.
71248 2008-11-02  Bruno Haible  <bruno@clisp.org>
71250         Mark 'memchr' obsolete.
71251         * modules/memchr (Status, Notice): New sections.
71252         * modules/argp (Depends-on): Add memchr.
71253         * modules/base64 (Depends-on): Likewise.
71254         * modules/c-strcasestr (Depends-on): Likewise.
71255         * modules/chdir-long (Depends-on): Likewise.
71256         * modules/fnmatch (Depends-on): Likewise.
71257         * modules/getsubopt (Depends-on): Likewise.
71258         * modules/git-merge-changelog (Depends-on): Likewise.
71259         * modules/glob (Depends-on): Likewise.
71260         * modules/strcasestr-simple (Depends-on): Likewise.
71261         * modules/strnlen (Depends-on): Likewise.
71263 2008-11-02  Bruno Haible  <bruno@clisp.org>
71265         Mark 'atexit' obsolete.
71266         * modules/atexit (Status, Notice): New sections.
71267         * modules/chdir-long (Depends-on): Add atexit.
71268         * modules/wait-process (Depends-on): Likewise.
71270 2008-11-02  Bruno Haible  <bruno@clisp.org>
71272         * gnulib-tool: New option --with-obsolete.
71273         (func_usage): Document it.
71274         (func_modules_transitive_closure): Drop obsolete dependencies if
71275         incobsolete is not true.
71276         (func_import): Read and save the incobsolete variable to the cache.
71278 2008-11-02  Bruno Haible  <bruno@clisp.org>
71280         * modules/TEMPLATE-EXTENDED: New field 'Status'.
71281         * gnulib-tool: New option --extract-status.
71282         (func_usage): Document it.
71283         (sed_extract_prog): Recognize it.
71284         (func_get_status): New function.
71286 2008-10-30  Simon Josefsson  <simon@josefsson.org>
71288         * modules/sockets (License): Change from LGPL to LGPLv2+.
71290 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71292         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
71294 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71296         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71297         Mention times and sys_times.
71298         * modules/sys_times, modules/sys_times-tests: New modules.
71299         * modules/times, modules/times-tests: Likewise
71300         * m4/sys_times_h.m4: New file.
71301         * lib/sys_times.in.h: Likewise
71302         * lib/times.c: Likewise.
71303         * tests/test-sys_times.c: Likewise.
71304         * tests/test-times.c: Likewise.
71305         * doc/posix-headers/sys_times.texi: Update.
71306         * doc/posix-functions/times.texi: Update.
71308 2008-10-28  Jim Meyering  <meyering@redhat.com>
71310         * modules/tempname (Depends-on): Add lstat.
71312         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
71314 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71316         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
71317         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
71318         using idiom used elsewhere in gnulib.
71320 2008-10-27  Jim Meyering  <meyering@redhat.com>
71322         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
71324 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71326         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
71327         TESTS_ENVIRONMENT, for shell scripts that needs to call built
71328         programs.
71329         * tests/test-argp-2.sh: Use $EXEEXT when needed.
71331 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71333         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
71335 2008-10-27  Bruno Haible  <bruno@clisp.org>
71337         * tests/test-lstat.c: Include <stdio.h>.
71339 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71341         * modules/lstat-tests: New module.
71342         * tests/test-lstat.c: New file.
71344 2008-10-26  Jim Meyering  <meyering@redhat.com>
71346         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
71348 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71349             Bruno Haible  <bruno@clisp.org>
71351         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
71352         * modules/configmake (Include): Add a note that the include must come
71353         after all system headers.
71354         * lib/javaversion.c: Include configmake.h after all other includes.
71356 2008-10-26  Bruno Haible  <bruno@clisp.org>
71358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
71359         HAVE_STRUCT_RANDOM_DATA to 1.
71360         (gl_STDLIB_H): Simplify.
71362 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71364         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
71365         substitute HAVE_STRUCT_RANDOM_DATA.
71366         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
71367         random_data.
71368         * modules/stdlib (Makefile.am): Substitute
71369         HAVE_STRUCT_RANDOM_DATA.
71371 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71373         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
71374         * doc/gnulib-intro.texi (Copyright): Likewise.
71376 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71378         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
71379         findings.
71381 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
71382             Bruno Haible  <bruno@clisp.org>
71384         * lib/unistd.in.h: Include <winsock2.h>.
71385         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
71386         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
71387         Provide dummy declarations.
71388         (gethostname): Override.
71389         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
71390         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
71391         gl_PREREQ_SYS_H_WINSOCK2.
71392         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
71393         * doc/posix-functions/gethostname.texi: More details.
71395 2008-10-25  Bruno Haible  <bruno@clisp.org>
71397         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
71398         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
71399         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
71401         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
71402         here ...
71403         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
71404         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
71405         gl_UNISTD_H_DEFAULTS.
71407 2008-10-25  Eric Blake  <ebb9@byu.net>
71409         signbit: avoid spurious compiler failure
71410         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
71411         declarations inside function.
71413 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71414             Bruno Haible  <bruno@clisp.org>
71416         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
71417         * modules/random_r (Depends-on): Add stdint.
71419 2008-10-24  Bruno Haible  <bruno@clisp.org>
71421         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
71422         Eggert.
71423         * modules/strerror (License): Likewise.
71425 2008-10-24  Jim Meyering  <meyering@redhat.com>
71427         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
71428         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
71430 2008-10-24  Eric Blake  <ebb9@byu.net>
71432         getgroups: fix compilation when getgroups is available
71433         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
71434         but with <config.h> override of getgroups disabled.
71436 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71438         * doc/gnulib.texi (Header files): Add note about C++ problems.
71439         Explained by Bruno Haible <bruno@clisp.org>.
71441 2008-10-23  Bruno Haible  <bruno@clisp.org>
71443         Define a dummy SA_NODEFER macro on Interix.
71444         * lib/signal.in.h (SA_NODEFER): Define fallback.
71445         Reported by Aleksey Cheusov <cheusov@tut.by> via
71446         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
71448 2008-10-23  Bruno Haible  <bruno@clisp.org>
71450         * modules/freadahead (License): Change to LGPLv2+.
71451         Suggested by Simon Josefsson.
71453 2008-10-23  Jim Meyering  <meyering@redhat.com>
71455         random_r: new module
71456         * modules/random_r: New file.
71457         * m4/random_r.m4: New file.
71458         * lib/random_r.c: New file, from glibc.
71459         * modules/random_r-tests: New file.
71460         * tests/test-random_r.c: New file.
71461         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
71462          Declare.
71463         (RAND_MAX): Define.
71464         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
71465         * modules/stdlib: Substitute them, too.
71466         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
71467         * doc/glibc-functions/initstate_r.texi: Mention the new module.
71468         * doc/glibc-functions/random_r.texi: Likewise.
71469         * doc/glibc-functions/setstate_r.texi: Likewise.
71470         * doc/glibc-functions/srandom_r.texi: Likewise.
71471         * config/srclist.txt: Mention it.
71473 2008-10-23  David Lutterkort  <lutter@redhat.com>
71475         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
71476         link requirement
71478 2008-10-23  Jim Meyering  <meyering@redhat.com>
71480         selinux-h: mark parameters of stub functions as intentionally unused
71481         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
71482         * lib/se-context.in.h: Likewise.
71484 2008-10-22  Simon Josefsson  <simon@josefsson.org>
71486         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
71488 2008-10-22  Simon Josefsson  <simon@josefsson.org>
71490         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
71492 2008-10-22  Eric Blake  <ebb9@byu.net>
71494         glthread/thread: avoid compiler warning
71495         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
71496         Add unreachable abort to silence compiler.
71498 2008-10-22  Eric Blake  <ebb9@byu.net>
71500         netdb: also supply struct addrinfo for cygwin 1.5.x
71501         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
71502         older cygwin.
71503         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
71504         cygwin.
71505         * doc/posix-headers/netdb.texi (netdb.h): Document this.
71507 2008-10-22  Bruno Haible  <bruno@clisp.org>
71509         * users.txt: Update entry about pspp.
71511 2008-10-21  Bruno Haible  <bruno@clisp.org>
71513         Simplification.
71514         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
71515         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
71517         Simplification.
71518         * lib/ioctl.c (ioctl): Don't undefine.
71519         * lib/socket.c (socket): Don't undefine.
71521         Remove unused module indicator macros.
71522         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
71523         GNULIB_$1 as a C macro.
71525         * doc/posix-functions/close.texi: Undo last change.
71526         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
71527         Windows platforms.
71529 2008-10-21  Bruno Haible  <bruno@clisp.org>
71531         Add gethostname() declaration to <unistd.h>.
71532         * lib/unistd.in.h (gethostname): New declaration.
71533         * lib/gethostname.c: Include <unistd.h>.
71534         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
71535         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
71536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
71537         and HAVE_GETHOSTNAME.
71538         * modules/gethostname (Depends-on): Add unistd.
71539         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71540         (Include): Specify <unistd.h>.
71541         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
71542         HAVE_GETHOSTNAME.
71543         * tests/test-gethostname.c: Include <unistd.h> first.
71545 2008-10-21  Bruno Haible  <bruno@clisp.org>
71547         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
71548         * modules/select-tests (Depends-on): Likewise.
71549         Reported by Simon Josefsson.
71551 2008-10-21  Simon Josefsson  <simon@josefsson.org>
71553         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
71554         * lib/accept.c: New file, based on winsock.c.
71555         * lib/bind.c: New file, based on winsock.c.
71556         * lib/connect.c: New file, based on winsock.c.
71557         * lib/getpeername.c: New file, based on winsock.c.
71558         * lib/getsockname.c: New file, based on winsock.c.
71559         * lib/getsockopt.c: New file, based on winsock.c.
71560         * lib/ioctl.c: New file, based on winsock.c.
71561         * lib/listen.c: New file, based on winsock.c.
71562         * lib/recv.c: New file, based on winsock.c.
71563         * lib/recvfrom.c: New file, based on winsock.c.
71564         * lib/send.c: New file, based on winsock.c.
71565         * lib/sendto.c: New file, based on winsock.c.
71566         * lib/setsockopt.c: New file, based on winsock.c.
71567         * lib/shutdown.c: New file, based on winsock.c.
71568         * lib/socket.c: New file, based on winsock.c.
71569         * lib/w32sock.h: New file, based on winsock.c.
71570         * lib/winsock.c: Remove file.
71571         * modules/accept: Likewise.
71572         * modules/bind: Likewise.
71573         * modules/connect: Likewise.
71574         * modules/getpeername: Likewise.
71575         * modules/getsockname: Likewise.
71576         * modules/getsockopt: Likewise.
71577         * modules/ioctl: Likewise.
71578         * modules/listen: Likewise.
71579         * modules/recv: Likewise.
71580         * modules/recvfrom: Likewise.
71581         * modules/send: Likewise.
71582         * modules/sendto: Likewise.
71583         * modules/setsockopt: Likewise.
71584         * modules/shutdown: Likewise.
71585         * modules/socket: Use socket.c instead of winsock.c.
71586         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
71587         * doc/posix-functions/accept.texi: Doc fix.
71588         * doc/posix-functions/bind.texi: Doc fix.
71589         * doc/posix-functions/close.texi: Doc fix.
71590         * doc/posix-functions/connect.texi: Doc fix.
71591         * doc/posix-functions/getpeername.texi: Doc fix.
71592         * doc/posix-functions/getsockname.texi: Doc fix.
71593         * doc/posix-functions/getsockopt.texi: Doc fix.
71594         * doc/posix-functions/ioctl.texi: Doc fix.
71595         * doc/posix-functions/listen.texi: Doc fix.
71596         * doc/posix-functions/recv.texi: Doc fix.
71597         * doc/posix-functions/recvfrom.texi: Doc fix.
71598         * doc/posix-functions/send.texi: Doc fix.
71599         * doc/posix-functions/sendto.texi: Doc fix.
71600         * doc/posix-functions/setsockopt.texi: Doc fix.
71601         * doc/posix-functions/shutdown.texi: Doc fix.
71602         * doc/posix-functions/socket.texi: Doc fix.
71604 2008-10-20  Bruno Haible  <bruno@clisp.org>
71606         Take into account the role of SIGABRT_COMPAT on Windows 2008.
71607         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
71608         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
71609         as an alias for SIGABRT.
71610         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
71611         (sigaction): Map it to SIGABRT.
71612         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
71614 2008-10-20  Bruno Haible  <bruno@clisp.org>
71616         * lib/fts.c: Don't include lstat.h.
71617         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
71619         Move the lstat() declaration to <sys/stat.h>.
71620         * lib/lstat.h: Remove file.
71621         * lib/sys_stat.in.h: Add special invocation convention.
71622         (lstat): New declaration.
71623         * lib/lstat.c (orig_lstat): New function.
71624         (rpl_lstat): Use orig_lstat instead of lstat.
71625         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
71626         AC_C_INLINE. Set REPLACE_LSTAT.
71627         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
71628         and REPLACE_LSTAT.
71629         * modules/lstat (Files): Remove lib/lstat.h.
71630         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
71631         (Include): Specify <sys/stat.h> instead of lstat.h.
71632         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
71633         REPLACE_LSTAT.
71634         * NEWS: Mention the change.
71636 2008-10-20  Bruno Haible  <bruno@clisp.org>
71638         * modules/posix_spawn-tests: New file.
71639         * tests/test-posix_spawn3.c: New file.
71641 2008-10-20  Bruno Haible  <bruno@clisp.org>
71643         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
71644         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71645         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
71646         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71647         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
71649 2008-10-20  Bruno Haible  <bruno@clisp.org>
71651         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
71652         of posix_spawn on AIX 5.3.
71654 2008-10-20  Bruno Haible  <bruno@clisp.org>
71656         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
71658 2008-10-20  Bruno Haible  <bruno@clisp.org>
71660         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
71661         of AC_LANG_PROGRAM.
71663 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71665         * lib/netdb.in.h: Don't define GNU specific constants until they
71666         are supported or needed.  Reported by Bruno Haible
71667         <bruno@clisp.org>.
71669 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71671         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
71673 2008-10-20  Simon Josefsson  <simon@josefsson.org>
71675         * lib/getaddrinfo.h: Remove file.
71676         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
71677         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
71678         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
71679         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
71680         * modules/netdb: Substitute GNULIB_GETADDRINFO.
71681         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
71682         * tests/test-getaddrinfo.c: Likewise.
71683         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
71684         * NEWS: Mention change.
71686 2008-10-19  Bruno Haible  <bruno@clisp.org>
71688         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
71690 2008-10-19  Bruno Haible  <bruno@clisp.org>
71692         * lib/wait-process.c: Include simply <sys/wait.h>.
71693         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
71694         WIFSTOPPED): Remove fallback definitions.
71695         * modules/wait-process (Depends-on): Add sys_wait.
71697         New module 'sys_wait'.
71698         * modules/sys_wait: New file.
71699         * lib/sys_wait.in.h: New file, partially copied from
71700         lib/wait-process.c.
71701         * m4/sys_wait_h.m4: New file.
71702         * doc/posix-headers/sys_wait.texi: Mention the new module.
71704 2008-10-19  Bruno Haible  <bruno@clisp.org>
71706         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
71708 2008-10-19  Bruno Haible  <bruno@clisp.org>
71710         Assume that waitpid() fills an 'int' status, not a 'union wait'.
71711         * lib/wait-process.c (WAIT_T): Remove type.
71712         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
71713         (wait_subprocess): Update.
71715 2008-10-19  Bruno Haible  <bruno@clisp.org>
71717         New module 'atoll'.
71718         * modules/atoll: New file.
71719         * lib/stdlib.in.h (atoll): New declaration.
71720         * lib/atoll.c: New file, from glibc with modifications.
71721         * m4/atoll.m4: New file.
71722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
71723         HAVE_ATOLL.
71724         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
71725         * doc/posix-functions/atoll.texi: Mention the new module.
71727 2008-10-19  Bruno Haible  <bruno@clisp.org>
71729         Add strtoull() declaration to <stdlib.h>.
71730         * lib/stdlib.in.h (strtoull): New declaration.
71731         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
71732         Set HAVE_STRTOULL.
71733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
71734         HAVE_STRTOULL.
71735         * modules/strtoull (Depends-on): Add stdlib.
71736         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71737         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
71738         HAVE_STRTOULL.
71740 2008-10-19  Bruno Haible  <bruno@clisp.org>
71742         Add strtoll() declaration to <stdlib.h>.
71743         * lib/stdlib.in.h (strtoll): New declaration.
71744         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
71745         Set HAVE_STRTOLL.
71746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
71747         HAVE_STRTOLL.
71748         * modules/strtoll (Depends-on): Add stdlib.
71749         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71750         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
71752 2008-10-19  Bruno Haible  <bruno@clisp.org>
71754         * modules/bcopy (Depends-on): Add strings.
71755         (Include): Specify <strings.h>.
71757 2008-10-19  Bruno Haible  <bruno@clisp.org>
71759         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
71761 2008-10-19  Bruno Haible  <bruno@clisp.org>
71763         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
71764         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
71765         mingw.
71767 2008-10-19  Bruno Haible  <bruno@clisp.org>
71769         * lib/atanl.c: Don't include isnanl.h.
71770         * lib/cosl.c: Likewise.
71771         * lib/ldexpl.c: Likewise.
71772         * lib/logl.c: Likewise.
71773         * lib/sinl.c: Likewise.
71774         * lib/sqrtl.c: Likewise.
71775         * lib/tanl.c: Likewise.
71777         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
71778         * lib/isnanf.h: Remove file.
71779         * lib/isnand.h: Remove file.
71780         * lib/isnanl.h: Remove file.
71781         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
71782         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
71783         macros.
71784         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
71785         HAVE_ISNANF, don't define it as a C macro.
71786         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
71787         HAVE_ISNAND, don't define it as a C macro.
71788         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
71789         HAVE_ISNANL, don't define it as a C macro.
71790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
71791         HAVE_ISNAN[FDL].
71792         * modules/isnanf (Files): Remove lib/isnanf.h.
71793         (Depends-on): Add math.
71794         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71795         (Include): Specify <math.h> instead of isnanf.h.
71796         * modules/isnand (Files): Remove lib/isnand.h.
71797         (Depends-on): Add math.
71798         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71799         (Include): Specify <math.h> instead of isnand.h.
71800         * modules/isnanl (Files): Remove lib/isnanl.h.
71801         (Depends-on): Add math.
71802         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
71803         (Include): Specify <math.h> instead of isnanl.h.
71804         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
71805         HAVE_ISNAN[FDL].
71806         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
71807         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
71808         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
71809         * NEWS: Mention the change.
71811 2008-10-18  Bruno Haible  <bruno@clisp.org>
71813         Add getusershell(), setusershell(), endusershell() declarations to
71814         <unistd.h>.
71815         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
71816         declarations.
71817         * lib/getusershell.c: Include unistd.h.
71818         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
71819         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
71820         HAVE_GETUSERSHELL.
71821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
71822         and HAVE_GETUSERSHELL.
71823         * modules/getusershell (Depends-on): Add unistd, extensions.
71824         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71825         (Include): Specify <unistd.h>.
71826         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
71827         HAVE_GETUSERSHELL.
71829 2008-10-18  Bruno Haible  <bruno@clisp.org>
71831         Add a getloadavg() declaration to <stdlib.h>.
71832         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
71833         getloadavg declaration.
71834         (getloadavg): New declaration.
71835         * lib/getloadavg.c: Include <stdlib.h> first.
71836         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
71837         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
71838         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
71839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
71840         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
71841         * modules/getloadavg (Depends-on): Add stdlib, extensions.
71842         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71843         (Include): Specify <stdlib.h>.
71844         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
71845         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
71847 2008-10-18  Bruno Haible  <bruno@clisp.org>
71849         * lib/dirchownmod.c: Don't include lchmod.h.
71851         Move the lchmod() declaration to <sys/stat.h>.
71852         * lib/lchmod.h: Remove file.
71853         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
71854         (lchmod): New declaration, moved here from lib/lchown.h.
71855         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
71856         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
71857         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
71858         and HAVE_LCHMOD.
71859         * modules/lchmod (Files): Remove lib/lchmod.h.
71860         (Depends-on): Add sys_stat, extensions.
71861         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
71862         (Include): Specify <sys/stat.h> instead of lchmod.h.
71863         * modules/sys_stat (Depends-on): Add link-warning.
71864         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
71865         definition of GL_LINK_WARNING.
71866         * NEWS: Mention the change.
71868 2008-10-18  Bruno Haible  <bruno@clisp.org>
71870         * lib/fchdir.c: Don't include dirfd.h.
71871         * lib/fts.c: Likewise.
71872         * lib/getcwd.c: Likewise.
71873         * lib/glob.c: Likewise.
71875         Move the dirfd() declaration to <dirent.h>.
71876         * lib/dirfd.h: Remove file.
71877         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
71878         (dirfd): New declaration.
71879         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
71880         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
71881         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
71882         HAVE_DECL_DIRFD.
71883         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
71884         HAVE_DECL_DIRFD.
71885         * modules/dirfd (Files): Remove lib/dirfd.h.
71886         (Depends-on): Add dirent, extensions.
71887         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
71888         (Include): Specify <dirent.h> instead of dirfd.h.
71889         * modules/dirent (Depends-on): Add link-warning.
71890         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
71891         definition of GL_LINK_WARNING.
71892         * NEWS: Mention the change.
71894 2008-10-18  Bruno Haible  <bruno@clisp.org>
71896         Move the euidaccess() declaration to <unistd.h>.
71897         * lib/euidaccess.h: Remove file.
71898         * lib/unistd.in.h (euidaccess): New declaration.
71899         * lib/euidaccess.c: Don't include euidaccess.h.
71900         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
71901         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
71902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
71903         and HAVE_EUIDACCESS.
71904         * modules/euidaccess (Files): Remove lib/euidaccess.h.
71905         (Depends-on): Add unistd.
71906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71907         (Include): Specify <unistd.h> instead of euidaccess.h.
71908         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
71909         HAVE_EUIDACCESS.
71910         * NEWS: Mention the change.
71912 2008-10-18  Bruno Haible  <bruno@clisp.org>
71914         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
71916         Move the getdomainname() declaration to <unistd.h>.
71917         * lib/getdomainname.h: Remove file.
71918         * lib/unistd.in.h (getdomainname): New declaration.
71919         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
71920         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
71921         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
71922         HAVE_GETDOMAINNAME.
71923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71924         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
71925         * modules/getdomainname (Files): Remove lib/getdomainname.h.
71926         (Depends-on): Add unistd, extensions.
71927         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71928         (Includes): Specify <unistd.h> instead of getdomainname.h.
71929         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
71930         HAVE_GETDOMAINNAME.
71931         * NEWS: Mention the change.
71933 2008-10-18  Bruno Haible  <bruno@clisp.org>
71935         * modules/dirent: New file.
71936         * m4/dirent_h.m4: New file.
71937         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
71938         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
71939         * modules/fchdir (Files): Remove lib/dirent.in.h.
71940         (Depends-on): Add dirent.
71941         (Makefile.am): Move rules to modules/dirent.
71942         * doc/posix-headers/dirent.texi: Mention the new module.
71944 2008-10-18  Bruno Haible  <bruno@clisp.org>
71946         Avoid -Wunused-parameter warnings in public gnulib header files.
71947         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
71948         macro.
71949         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
71951 2008-10-18  Bruno Haible  <bruno@clisp.org>
71953         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
71954         * doc/glibc-functions/error.texi: Mention the module 'error'.
71955         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
71956         * doc/glibc-functions/getdomainname.texi: Mention the module
71957         'getdomainname'.
71958         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
71959         * doc/glibc-functions/getpagesize.texi: Mention the module
71960         'getpagesize'.
71961         * doc/glibc-functions/getusershell.texi: Mention the module
71962         'getusershell'.
71963         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
71964         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
71965         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
71966         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
71967         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
71968         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
71969         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
71970         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
71971         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
71972         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
71973         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
71974         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
71975         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
71976         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
71978 2008-10-17  Bruno Haible  <bruno@clisp.org>
71980         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
71981         HP-UX and IRIX, use -0.0L.
71982         * tests/test-ceill.c (minus_zero): Likewise.
71983         * tests/test-floorl.c (minus_zero): Likewise.
71984         * tests/test-frexpl.c (minus_zero): Likewise.
71985         * tests/test-isnan.c (minus_zerol): Likewise.
71986         * tests/test-isnanl.h (minus_zero): Likewise.
71987         * tests/test-ldexpl.c (minus_zero): Likewise.
71988         * tests/test-roundl.c (minus_zero): Likewise.
71989         * tests/test-signbit.c (minus_zerol): Likewise.
71990         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71991         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71992         * tests/test-truncl.c (minus_zero): Likewise.
71993         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71994         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71995         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
71996         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71998 2008-10-17  Bruno Haible  <bruno@clisp.org>
72000         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
72001         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
72002         that it gets activated only for gcc >= 3.0.
72003         * lib/dirent.in.h: Likewise.
72004         * lib/errno.in.h: Likewise.
72005         * lib/fcntl.in.h: Likewise.
72006         * lib/float.in.h: Likewise.
72007         * lib/iconv.in.h: Likewise.
72008         * lib/inttypes.in.h: Likewise.
72009         * lib/locale.in.h: Likewise.
72010         * lib/math.in.h: Likewise.
72011         * lib/netdb.in.h: Likewise.
72012         * lib/netinet_in.in.h: Likewise.
72013         * lib/search.in.h: Likewise.
72014         * lib/signal.in.h: Likewise.
72015         * lib/spawn.in.h: Likewise.
72016         * lib/stdarg.in.h: Likewise.
72017         * lib/stdint.in.h: Likewise.
72018         * lib/stdio.in.h: Likewise.
72019         * lib/stdlib.in.h: Likewise.
72020         * lib/string.in.h: Likewise.
72021         * lib/strings.in.h: Likewise.
72022         * lib/sys_file.in.h: Likewise.
72023         * lib/sys_ioctl.in.h: Likewise.
72024         * lib/sys_select.in.h: Likewise.
72025         * lib/sys_socket.in.h: Likewise.
72026         * lib/sys_stat.in.h: Likewise.
72027         * lib/sys_time.in.h: Likewise.
72028         * lib/sysexits.in.h: Likewise.
72029         * lib/time.in.h: Likewise.
72030         * lib/unistd.in.h: Likewise.
72031         * lib/wchar.in.h: Likewise.
72032         * lib/wctype.in.h: Likewise.
72033         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72035 2008-10-17  Jim Meyering  <meyering@redhat.com>
72037         ignore-value: don't depend on inline module
72038         * modules/ignore-value (Depends-on): Remove 'inline'.
72039         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
72040         Suggestion from Bruno Haible.
72042 2008-10-17  Bruno Haible  <bruno@clisp.org>
72044         New implementation of condition variables for Win32.
72045         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
72046         (gl_linked_waitqueue_t): New type.
72047         (gl_cond_t): Use it.
72048         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
72049         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
72050         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
72051         (glthread_cond_init_func, glthread_cond_wait_func,
72052         glthread_cond_timedwait_func, glthread_cond_signal_func,
72053         glthread_cond_broadcast_func, glthread_cond_destroy_func):
72054         Reimplemented on the basis of gl_linked_waitqueue_t.
72055         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
72056         gl_waitqueue_t.
72057         (gl_rwlock_t): Update.
72058         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
72060 2008-10-17  Simon Josefsson  <simon@josefsson.org>
72062         * modules/recvfrom (Depends-on): Add dependency on getpeername.
72063         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72065 2008-10-17  Jim Meyering  <meyering@redhat.com>
72067         ignore-value: new module
72068         * modules/ignore-value: New file.
72069         * lib/ignore-value.h: New file.
72070         * MODULES.html.sh (Compiler warning management): New section,
72071         just for this module.  More to come.
72073 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72075         open-safer.c: avoid 'signed and unsigned in conditional...' warning
72076         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
72077         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
72079 2008-10-16  Jim Meyering  <meyering@redhat.com>
72081         openat-die.c: avoid 'no previous prototype' warning
72082         * lib/openat-die.c: Include "openat.h".
72083         Reported by Reuben Thomas <rrt@sc3d.org>.
72085 2008-10-16  Simon Josefsson  <simon@josefsson.org>
72087         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
72088         * lib/netdb.in.h: Fix typo.
72089         Reported by Bruno Haible  <bruno@clisp.org>
72091         * lib/netdb.in.h: Include sys/socket.h for platforms without
72092         netdb.h, to get structures like hostent on MinGW.
72093         * modules/netdb (Depends-on): Add sys_socket.
72095 2008-10-15  Simon Josefsson  <simon@josefsson.org>
72097         * modules/netdb, modules/netdb-tests: New file.
72098         * m4/netdb_h.m4: New file.
72099         * lib/netdb.in.h: Add, currently just an empty file pending
72100         definitions.
72101         * tests/test-netdb.c: New file.
72102         * doc/posix-headers/netdb.texi: Mention that we replace it if
72103         needed.
72104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72105         netdb.
72107 2008-10-15  Simon Josefsson  <simon@josefsson.org>
72109         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
72110         with code.
72112 2008-10-13  Bruno Haible  <bruno@clisp.org>
72114         * lib/glthread/cond.c (glthread_cond_wait_func,
72115         glthread_cond_timedwait_func): Add a comment.
72117 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72119         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
72120         * tests/test-select.c: Likewise,
72122 2008-10-13  Bruno Haible  <bruno@clisp.org>
72124         * lib/glthread/cond.c (glthread_cond_wait_func,
72125         glthread_cond_timedwait_func): Fix variable name.
72126         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72128 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
72130         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
72131         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
72132         struct sockaddr.sa_len.
72133         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
72135 2008-10-13  Simon Josefsson  <simon@josefsson.org>
72137         * build-aux/pmccabe2html: Add css and css_url parameters.
72139 2008-10-12  Bruno Haible  <bruno@clisp.org>
72141         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
72142         calling aclx_get.
72143         Reported by Rainer Tammer <tammer@tammer.net>.
72145 2008-10-12  Bruno Haible  <bruno@clisp.org>
72147         Use msvcrt aware primitives for creation/termination of Win32 threads.
72148         * lib/glthread/thread.c: Include <process.h>.
72149         (glthread_create_func): Use _beginthreadex instead of CreateThread.
72150         (wrapper_func): Update signature.
72151         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
72153 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72154             Bruno Haible  <bruno@clisp.org>
72156         Provide a Win32 implementation of the 'cond' module.
72157         * lib/glthread/cond.h [USE_WIN32]: New implementation.
72158         * lib/glthread/cond.c (glthread_cond_init_func,
72159         glthread_cond_wait_func, glthread_cond_timedwait_func,
72160         glthread_cond_signal_func, glthread_cond_broadcast_func,
72161         glthread_cond_destroy_func) [USE_WIN32]: New functions.
72162         * modules/cond (Dependencies): Add gettimeofday.
72164 2008-10-11  Bruno Haible  <bruno@clisp.org>
72166         Make sleep work on older versions of mingw.
72167         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
72168         only whether it exists.
72169         * doc/posix-functions/sleep.texi: Mention the problem with older
72170         versions of mingw.
72172 2008-10-11  Bruno Haible  <bruno@clisp.org>
72174         New module 'shutdown'.
72175         * modules/shutdown: New file.
72176         * lib/sys_socket.in.h (shutdown): New declaration.
72177         * lib/winsock.c (shutdown): New function.
72178         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
72179         GNULIB_SHUTDOWN.
72180         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
72181         * doc/posix-functions/shutdown.texi: Document the new module.
72183 2008-10-11  Jim Meyering  <meyering@redhat.com>
72185         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
72187 2008-10-11  Bruno Haible  <bruno@clisp.org>
72189         New module 'fclose'.
72190         * modules/fclose: New file.
72191         * lib/stdio.in.h (fclose): New declaration.
72192         * lib/fclose.c: New file.
72193         * m4/fclose.m4: New file.
72194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
72195         REPLACE_FCLOSE.
72196         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
72197         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
72198         REPLACE_FCLOSE.
72199         * modules/close (Depends-on): fclose.
72200         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
72202 2008-10-11  Bruno Haible  <bruno@clisp.org>
72204         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
72205         set errno and don't call _close.
72207 2008-10-10  Bruno Haible  <bruno@clisp.org>
72209         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
72210         ACL, not afterwards. Fixes test failure on Cygwin.
72212 2008-10-09  Ben Pfaff  <blp@gnu.org>
72214         * build-aux/announce-gen: Fix gnulib version related part of usage
72215         message.  Die with a useful error message if no tarballs are
72216         found.
72218 2008-10-10  Jim Meyering  <meyering@redhat.com>
72220         bootstrap: use git's --depth=N option only if it's supported
72221         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
72222         recognize the --depth option.  Reported by Pádraig Brady.
72224 2008-10-09  Bruno Haible  <bruno@clisp.org>
72226         New module 'ioctl'.
72227         * modules/ioctl: New file.
72228         * lib/sys_socket.in.h (ioctl): Remove declaration.
72229         * lib/winsock.c: Include <sys/ioctl.h>.
72230         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
72231         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
72232         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
72233         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
72234         * doc/posix-functions/ioctl.texi: Mention the new module.
72236 2008-10-09  Bruno Haible  <bruno@clisp.org>
72238         New module 'sys_ioctl'.
72239         * lib/sys_ioctl.in.h: New file.
72240         * m4/sys_ioctl_h.m4: New file.
72241         * modules/sys_ioctl: New file.
72242         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
72244 2008-10-09  Bruno Haible  <bruno@clisp.org>
72246         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
72247         * lib/winsock.c: Include <stdarg.h>.
72248         (rpl_ioctl): Change to second argument 'int' and then varargs.
72250 2008-10-09  Bruno Haible  <bruno@clisp.org>
72252         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
72253         when the sys_socket module is present and the system has <winsock2.h>.
72255 2008-10-09  Bruno Haible  <bruno@clisp.org>
72257         * doc/posix-functions/close.texi: Mention module 'close' instead of
72258         module 'sys_socket'.
72260 2008-10-09  Bruno Haible  <bruno@clisp.org>
72262         * doc/glibc-headers/sys_ioctl.texi: New file.
72263         * doc/gnulib.texi: Include it.
72265 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72266             Bruno Haible  <bruno@clisp.org>
72268         Combine the two replacements of 'close'.
72269         * lib/sys_socket.in.h (close): Define to a reminder to include
72270         <unistd.h>.
72271         (_gl_close_fd_maybe_socket): New declaration.
72272         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
72273         * lib/winsock.c (close): Remove undefinition.
72274         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
72275         needed for the gnulib module 'close'.
72276         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
72277         define to an error symbol or to a warning, if suitable.
72278         * lib/close.c: Include <sys/socket.h>.
72279         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
72280         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
72281         UNISTD_H_HAVE_WINSOCK2_H.
72282         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
72283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72284         UNISTD_H_HAVE_WINSOCK2_H.
72285         * modules/sys_socket (Files): Add m4/unistd_h.m4.
72286         (configure.ac): Set a module indicator.
72287         (Makefile.am): Substitute GNULIB_CLOSE.
72288         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
72289         * modules/poll-tests (Depends-on): Add close.
72290         * modules/select-tests (Depends-on): Likewise.
72292 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72293             Bruno Haible  <bruno@clisp.org>
72295         New module 'close'.
72296         * modules/close: New file.
72297         * lib/unistd.in.h (close): Move declaration out of the
72298         FCHDIR_REPLACEMENT scope.
72299         (_gl_unregister_fd): New declaration.
72300         * lib/close.c: New file.
72301         * lib/fchdir.c (rpl_close): Remove function.
72302         * m4/close.m4: New file.
72303         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
72304         close.
72305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
72306         REPLACE_CLOSE.
72307         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
72308         REPLACE_CLOSE.
72309         * modules/fchdir (Depends-on): Add close.
72311 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72312             Bruno Haible  <bruno@clisp.org>
72314         * lib/fcntl.in.h (open): Simplify conditionals.
72315         (_gl_register_fd): New declaration.
72316         * lib/fchdir.c (rpl_open): Remove function.
72317         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
72318         also.
72319         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
72320         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
72321         open.
72323 2008-10-09  Jim Meyering  <meyering@redhat.com>
72325         GNUmakefile: use the more name-space-friendly "_version"
72326         * top/GNUmakefile (_dummy): Update.
72327         (_version): Rename from "version".
72329 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72330             Bruno Haible  <bruno@clisp.org>
72332         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
72333         rpl_close.
72334         (_gl_register_fd): New function, extracted from rpl_open.
72335         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
72336         (rpl_open, rpl_opendir): Use _gl_register_fd.
72338 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72340         Fix organization of 'open' replacement.
72341         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
72342         (gl_FUNC_OPEN): Use it.
72343         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
72345 2008-10-08  Bruno Haible  <bruno@clisp.org>
72347         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
72349 2008-10-08  Simon Josefsson  <simon@josefsson.org>
72351         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
72352         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
72353         listen).
72355 2008-10-08  Eric Blake  <ebb9@byu.net>
72357         GNUmakefile: add 'make version' target
72358         * top/GNUmakefile (_curr-ver): Split version update rules...
72359         (version): ...into a target.
72361 2008-10-07  Bruno Haible  <bruno@clisp.org>
72363         Use a more portable replacement expression for -0.0L.
72364         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
72365         instead of -0.0L. Fix m4 quotation.
72367         * tests/test-signbit.c: Include <float.h>.
72368         (minus_zero): New variable.
72369         (test_signbitl): Use minus_zero instead of -zero.
72370         * modules/signbit-tests (Depends-on): Add float.
72372         * tests/test-ceill.c: Include <float.h>.
72373         (zero): Remove variable.
72374         (minus_zero): New variable.
72375         (main): Use minus_zero instead of -zero.
72376         * modules/ceill-tests (Depends-on): Add float.
72378         * tests/test-floorl.c: Include <float.h>.
72379         (zero): Remove variable.
72380         (minus_zero): New variable.
72381         (main): Use minus_zero instead of -zero.
72382         * modules/floorl-tests (Depends-on): Add float.
72384         * tests/test-roundl.c: Include <float.h>.
72385         (zero): Remove variable.
72386         (minus_zero): New variable.
72387         (main): Use minus_zero instead of -zero.
72388         * modules/roundl-tests (Depends-on): Add float.
72390         * tests/test-truncl.c: Include <float.h>.
72391         (zero): Remove variable.
72392         (minus_zero): New variable.
72393         (main): Use minus_zero instead of -zero.
72394         * modules/truncl-tests (Depends-on): Add float.
72396         * tests/test-frexpl.c (zero): Remove variable.
72397         (minus_zero): New variable.
72398         (main): Use minus_zero instead of -zero.
72399         * modules/frexpl-tests (Depends-on): Add float.
72401         * tests/test-isnan.c (zerol): Remove variable.
72402         (minus_zerol): New variable.
72403         (test_long_double): Use minus_zerol instead of -zerol.
72404         * modules/isnan-tests (Depends-on): Add float.
72406         * tests/test-isnanl.h (zero): Remove variable.
72407         (minus_zero): New variable.
72408         (main): Use minus_zero instead of -zero.
72409         * modules/isnanl-nolibm-tests (Depends-on): Add float.
72410         * modules/isnanl-tests (Depends-on): Add float.
72412         * tests/test-ldexpl.c (zero): Remove variable.
72413         (minus_zero): New variable.
72414         (main): Use minus_zero instead of -zero.
72415         * modules/ldexpl-tests (Depends-on): Add float.
72417         * tests/test-snprintf-posix.h (zerol): Remove variable.
72418         (minus_zerol): New variable.
72419         (test_function): Use minus_zerol instead of -zerol.
72420         * modules/snprintf-posix-tests (Depends-on): Add float.
72421         * modules/vsnprintf-posix-tests (Depends-on): Add float.
72423         * tests/test-sprintf-posix.h (zerol): Remove variable.
72424         (minus_zerol): New variable.
72425         (test_function): Use minus_zerol instead of -zerol.
72426         * modules/sprintf-posix-tests (Depends-on): Add float.
72427         * modules/vsprintf-posix-tests (Depends-on): Add float.
72429         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
72430         (minus_zerol): New variable.
72431         (test_function): Use minus_zerol instead of -zerol.
72432         * modules/vasnprintf-posix-tests (Depends-on): Add float.
72434         * tests/test-vasprintf-posix.c (zerol): Remove variable.
72435         (minus_zerol): New variable.
72436         (test_function): Use minus_zerol instead of -zerol.
72437         * modules/vasprintf-posix-tests (Depends-on): Add float.
72439 2008-10-07  Simon Josefsson  <simon@josefsson.org>
72441         * MODULES.html.sh (Support for building documentation): Mention
72442         pmccabe2html.  Sort entries.
72444         Add pmccabe2html module, from gnupdf.
72445         * build-aux/pmccabe.css: New file.
72446         * build-aux/pmccabe2html: New file.
72447         * m4/pmccabe2html.m4: New file.
72448         * modules/pmccabe2html: New file.
72450 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
72452         flock: new module
72453         * MODULES.html.sh: Add to list of modules.
72454         * lib/flock.c: flock implementation for Windows and Unix systems
72455         which have fcntl.
72456         * doc/glibc-functions/flock.texi: Update documentation.
72457         * lib/sys_file.in.h: <sys/file.h> header file.
72458         * m4/flock.m4: M4 macros.
72459         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
72460         * modules/flock: flock module.
72461         * modules/flock-tests: flock tests module.
72462         * modules/sys_file: sys/file.h module.
72463         * tests/test-flock.c: test suite for flock.
72465 2008-10-06  Jim Meyering  <meyering@redhat.com>
72467         bootstrap: check for LT_INIT more portably still ;-)
72468         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
72469         Spotted by Bruno Haible.
72471 2008-10-06  Eric Blake  <ebb9@byu.net>
72473         test-signbit: avoid tripping Irix cc bug on -0.0L
72474         * tests/test-signbit.c (minus_zerol): Delete, and replace with
72475         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
72476         entire testsuite consistent and avoids an Irix 6.2 bug.
72478 2008-10-05  Bruno Haible  <bruno@clisp.org>
72479             Jim Meyering  <jim@meyering.net>
72481         Add an option for ignoring EPIPE during close_stdout.
72482         * lib/closeout.h: Include <stdbool.h>.
72483         (close_stdout_set_ignore_EPIPE): New declaration.
72484         * lib/closeout.c: Include <stdbool.h>.
72485         (ignore_EPIPE): New variable.
72486         (close_stdout_set_ignore_EPIPE): New function.
72487         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
72488         * lib/close-stream.c (close_stream): Mention the possible EPIPE
72489         failure.
72490         * modules/closeout (Depends-on): Add stdbool.
72492 2008-10-05  Bruno Haible  <bruno@clisp.org>
72494         * modules/accept: New file.
72495         * modules/bind: New file.
72496         * modules/connect: New file.
72497         * modules/getpeername: New file.
72498         * modules/getsockname: New file.
72499         * modules/getsockopt: New file.
72500         * modules/listen: New file.
72501         * modules/recv: New file.
72502         * modules/recvfrom: New file.
72503         * modules/send: New file.
72504         * modules/sendto: New file.
72505         * modules/setsockopt: New file.
72506         * modules/socket: New file.
72507         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
72508         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
72509         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
72510         the particular module is requested. Add a link warning when the
72511         particular module is not requested.
72512         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
72513         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
72514         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
72515         the particular module is requested.
72516         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
72517         gl_SYS_SOCKET_H_DEFAULTS): New macros.
72518         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
72519         * modules/sys_socket (Depends-on): Add link-warning.
72520         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
72521         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
72522         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
72523         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
72524         GL_LINK_WARNING.
72525         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
72526         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
72527         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
72528         * doc/posix-functions/getpeername.texi: Mention the new module
72529         'getpeername'.
72530         * doc/posix-functions/getsockname.texi: Mention the new module
72531         'getsockname'.
72532         * doc/posix-functions/getsockopt.texi: Mention the new module
72533         'getsockopt'.
72534         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
72535         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
72536         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
72537         * doc/posix-functions/send.texi: Mention the new module 'send'.
72538         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
72539         * doc/posix-functions/setsockopt.texi: Mention the new module
72540         'setsockopt'.
72541         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
72542         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
72543         listen, connect, accept.
72544         * modules/select-tests (Depends-on): Likewise.
72546 2008-10-05  Bruno Haible  <bruno@clisp.org>
72548         * lib/winsock.c (strerror): Remove unused #undef.
72549         (rpl_close): Remove unused local variable.
72551         * modules/sys_socket (Depends-on); Add errno.
72553 2008-10-05  Bruno Haible  <bruno@clisp.org>
72555         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
72556         (select): Add a link warning when the 'select' module is not used.
72557         * modules/sys_select (Depends-on): Add link-warning.
72558         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
72559         Suggested by Paolo Bonzini.
72561 2008-10-05  Jim Meyering  <meyering@redhat.com>
72563         bootstrap: check for LT_INIT more portably
72564         * build-aux/bootstrap: Avoid using grep -E, since it's not
72565         portable enough.  Suggestion from Bruno Haible.
72567 2008-10-05  Bruno Haible  <bruno@clisp.org>
72569         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
72570         as being fixed by gnulib.
72572 2008-10-05  Bruno Haible  <bruno@clisp.org>
72574         * modules/select-tests: New file, mostly copied from
72575         modules/sys_select-tests.
72576         * tests/test-select.c: New file, mostly copied from
72577         tests/test-sys_select.c.
72578         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
72579         * modules/sys_select-tests (Depends-on): Remove all dependencies.
72580         (Makefile.am): Remove test_sys_select_LDADD.
72582         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
72583         to an undefined symbol, for an error message.
72584         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
72585         (gl_SYS_SELECT_H_DEFAULTS): New macro.
72586         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
72587         winsock-select.c here.
72588         * modules/sys_select (Files): Remove lib/winsock-select.c.
72589         (Depends-on): Remove alloca.
72590         (Makefile.am): Substitute GNULIB_SELECT.
72591         * modules/select: New file.
72592         * doc/posix-functions/select.texi: Update.
72594 2008-10-05  Bruno Haible  <bruno@clisp.org>
72596         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
72597         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
72598         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
72599         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
72600         getdtablesize.
72601         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
72602         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
72604 2008-10-05  Bruno Haible  <bruno@clisp.org>
72606         * modules/getdtablesize-tests: New file.
72607         * tests/test-getdtablesize.c: New file.
72609         New module 'getdtablesize'.
72610         * lib/unistd.in.h (getdtablesize): New declaration.
72611         * lib/getdtablesize.c: New file.
72612         * m4/getdtablesize.m4: New file.
72613         * modules/getdtablesize: New file.
72614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72615         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
72616         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
72617         HAVE_GETDTABLESIZE.
72618         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
72620 2008-10-05  Bruno Haible  <bruno@clisp.org>
72622         * modules/sched (Makefile.am): Fix typo.
72623         Reported by Simon Josefsson.
72625 2008-10-05  Jim Meyering  <meyering@redhat.com>
72627         bootstrap: check for LT_INIT, too
72628         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
72629         are deprecated.  Suggestion from Ralf Wildenhues.
72631 2008-10-05  Bruno Haible  <bruno@clisp.org>
72633         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
72634         overriding them by ours.
72635         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
72637 2008-10-05  Jim Meyering  <meyering@redhat.com>
72639         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
72640         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
72641         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
72643 2008-10-04  Bruno Haible  <bruno@clisp.org>
72645         * modules/dup2 (License): Change to LGPLv2+.
72646         * modules/sleep (License): Likewise.
72647         * modules/perror (License): Likewise.
72648         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
72649         Blake.
72650         * modules/signal (License): Likewise.
72651         * modules/sigprocmask (License): Likewise.
72652         * modules/raise (License): Change to LGPLv2+, with approval by Jim
72653         Meyering.
72655 2008-10-04  Bruno Haible  <bruno@clisp.org>
72657         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
72658         Reported by Rainer Tammer <tammer@tammer.net>.
72660 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
72661             Bruno Haible  <bruno@clisp.org>
72663         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
72664         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
72665         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
72667 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
72669         filevercmp: new module
72670         * lib/filevercmp.h: New function filevercmp comparing version strings.
72671         * lib/filevercmp.c: Implementation of filevercmp function.
72672         * modules/filevercmp: Module metadata.
72673         * tests/test-filevercmp.c: Unit test for new module.
72674         * modules/filevercmp-tests: Unit test metadata.
72675         * MODULES.html.sh: Add filevercmp module.
72677 2008-10-03  Bruno Haible  <bruno@clisp.org>
72679         * lib/c-ctype.h: Add comment.
72680         Reported by Jim Meyering.
72682 2008-10-02  Bruno Haible  <bruno@clisp.org>
72684         * modules/posix_spawn-internal (Depends-on): Add 'open'.
72686 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72688         * build-aux/bootstrap: Allow renaming bootstrap, and change the
72689         name of bootstrap.conf accordingly.
72691 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72693         * build-aux/bootstrap: Install git-merge-changelog configuration
72694         items into .gitconfig if needed.
72696 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
72698         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
72699         git repository, and initialize/update it accordingly.
72701 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
72703         * modules/fsync-tests: New file.
72704         * tests/test-fsync.c: New file.
72706         New module 'fsync'.
72707         * lib/fsync.c: New file.
72708         * m4/fsync.m4: New file.
72709         * modules/fsync: New file.
72710         * lib/unistd.in.h (fsync): New declaration.
72711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
72712         GNULIB_FSYNC and HAVE_FSYNC.
72713         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
72714         * MODULES.html.sh (posix_functions): Add fsync.
72715         * doc/posix-functions/fsync.texi: Mention the new module.
72717 2008-10-02  Jim Meyering  <meyering@redhat.com>
72719         fts.c: sync with similar code from coreutils' remove.c
72720         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
72721         Guard also with "#if defined __linux__", since for now at least,
72722         this code is Linux-kernel-specific.
72724 2008-10-02  Jim Meyering  <meyering@redhat.com>
72726         fts: bug fixes
72727         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
72728         Include <sys/vfs.h>, not <sys/statfs.h>.
72730         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
72731         Include <sys/vfs.h>, not <sys/statfs.h>.
72733 2008-10-01  Bruno Haible  <bruno@clisp.org>
72735         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
72736         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
72737         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
72738         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
72739         * doc/posix-functions/posix_spawnp.texi: Likewise.
72740         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
72741         whether posix_spawn actually works.
72742         * m4/pipe.m4 (gl_PIPE): Likewise.
72743         * modules/execute (Files): Add m4/posix_spawn.m4.
72744         * modules/pipe (Files): Add m4/posix_spawn.m4.
72745         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
72747 2008-10-01  Jim Meyering  <meyering@redhat.com>
72749         remove trailing spaces
72750         * NEWS: Likewise.
72751         * lib/poll.c (poll): Likewise.
72752         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
72753         * lib/winsock.c (rpl_close): Likewise.
72754         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
72755         * modules/yield: Likewise.
72756         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
72757         * tests/test-sys_select.c (connect_to_socket): Likewise.
72759         fts.c: adjust a new interface to be more generally useful
72760         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
72761         (fts_build): Adjust caller.
72763 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72765         * modules/cond-tests: New file.
72766         * tests/test-cond.c: New file.
72768 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72769             Bruno Haible  <bruno@clisp.org>
72771         * modules/cond (Dependencies): Add errno, time.
72772         * lib/glthread/cond.h: Include <time.h>.
72773         (gl_cond_define, gl_cond_define_initialized): Use the same definition
72774         across platforms.
72776 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72777             Bruno Haible  <bruno@clisp.org>
72779         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
72781 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72782             Bruno Haible  <bruno@clisp.org>
72784         * modules/tls-tests (Depends-on): Add thread, yield.
72785         (configure.ac): Remove all checks.
72786         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
72787         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
72788         gl_thread_self): Remove definitions. Include glthread/thread.h and
72789         glthread/yield.h instead.
72790         (test_tls): Pass an additional NULL argument to gl_thread_join.
72792 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72793             Bruno Haible  <bruno@clisp.org>
72795         * modules/lock-tests (Depends-on): Add thread, yield.
72796         (configure.ac): Remove all checks.
72797         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
72798         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
72799         gl_thread_self): Remove definitions. Include glthread/thread.h and
72800         glthread/yield.h instead.
72801         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
72802         additional NULL argument to gl_thread_join.
72804 2008-09-30  Bruno Haible  <bruno@clisp.org>
72806         Fix the Win32 implementation of the 'thread' module.
72807         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
72808         pointer type.
72809         (gl_thread_self): Invoke gl_thread_self_func.
72810         (gl_thread_self_func): New declaration.
72811         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
72812         (do_init_self_key, init_self_key): New functions.
72813         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
72814         Remove some fields.
72815         (running_threads, running_lock): Remove variables.
72816         (get_current_thread_handle): New function.
72817         (gl_thread_self_func, wrapper_func, glthread_create_func,
72818         glthread_join_func, gl_thread_exit_func): Largely rewritten and
72819         simplified.
72821 2008-09-30  Bruno Haible  <bruno@clisp.org>
72823         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
72824         files.
72826 2008-09-30  Jim Meyering  <meyering@redhat.com>
72828         fts.m4: correct the test for statfs.f_type
72829         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
72830         when checking for statfs.f_type.
72832 2008-09-15  Simon Josefsson  <simon@josefsson.org>
72834         tests: avoid some compiler warnings
72835         * tests/test-memchr.c (main): Pass NULL indirectly.
72836         * tests/test-getdate.c (main): Remove unused variable 'ret'.
72838 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
72840         getdate.y: disallow countable dayshifts like "4 yesterday ago"
72841         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
72842         exactly specified dayshifts.
72843         (dayshift): New rule.
72844         (rel): Add dayshift.
72845         (relative_time_table) [tomorrow, yesterday, today, now]:
72846         Use tDAY_SHIFT in place of tDAY_UNIT.
72847         * tests/test-getdate.c: Add tests for now-disallowed countable
72848         dayshifts, e.g., "4 yesterday ago".
72850 2008-09-29  Bruno Haible  <bruno@clisp.org>
72852         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
72853         * tests/test-posix_spawn1.in.sh: Renamed from
72854         tests/test-posix_spawn.in.sh.
72855         * tests/test-posix_spawn2.c: New file.
72856         * tests/test-posix_spawn2.in.sh: New file.
72857         * modules/posix_spawnp-tests (Files): Update.
72858         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
72860 2008-09-29  Bruno Haible  <bruno@clisp.org>
72862         Propagate effects of putenv/setenv/unsetenv to child processes.
72863         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
72864         * lib/pipe.c (create_pipe): Likewise.
72866 2008-09-29  Bruno Haible  <bruno@clisp.org>
72868         Enable use of shell scripts as executables in mingw.
72869         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
72870         run the program as a shell script.
72871         * lib/pipe.c (create_pipe): Likewise.
72872         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
72873         resulting array.
72875 2008-09-29  Eric Blake  <ebb9@byu.net>
72877         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
72879 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
72881         * doc/posix-functions/accept.texi: Update mingw problems.
72882         * doc/posix-functions/bind.texi: Update mingw problems.
72883         * doc/posix-functions/close.texi: Update mingw problems.
72884         * doc/posix-functions/connect.texi: Update mingw problems.
72885         * doc/posix-functions/getpeername.texi: Update mingw problems.
72886         * doc/posix-functions/getsockname.texi: Update mingw problems.
72887         * doc/posix-functions/getsockopt.texi: Update mingw problems.
72888         * doc/posix-functions/ioctl.texi: Update mingw problems.
72889         * doc/posix-functions/listen.texi: Update mingw problems.
72890         * doc/posix-functions/recv.texi: Update mingw problems.
72891         * doc/posix-functions/recvfrom.texi: Update mingw problems.
72892         * doc/posix-functions/select.texi: Update mingw problems.
72893         * doc/posix-functions/send.texi: Update mingw problems.
72894         * doc/posix-functions/sendto.texi: Update mingw problems.
72895         * doc/posix-functions/setsockopt.texi: Update mingw problems.
72896         * doc/posix-functions/socket.texi: Update mingw problems.
72898 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
72899             Bruno Haible  <bruno@clisp.org>
72901         * lib/sys_select.in.h: Include sys/time.h.
72902         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
72903         * modules/sys_select: Depend on sys_time.
72904         * tests/test-sys_select.c: Test that sys/select.h defines struct
72905         timeval fully.
72907 2008-09-29  Bruno Haible  <bruno@clisp.org>
72909         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
72910         * lib/sys_select.in.h: Likewise.
72912 2008-09-29  Bruno Haible  <bruno@clisp.org>
72914         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
72916 2008-09-29  Bruno Haible  <bruno@clisp.org>
72918         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
72919         Set LIBSOCKET instead of augmenting LIBS.
72920         * modules/sockets (Link): New section.
72921         * modules/sockets-tests (test_sockets_LDADD): New variable.
72922         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
72923         * modules/poll-tests (test_poll_LDADD): New variable.
72924         * NEWS: Document the change.
72926 2008-09-29  Bruno Haible  <bruno@clisp.org>
72928         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
72929         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
72930         ARPA_INET_H directly.
72931         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72933 2008-09-28  Bruno Haible  <bruno@clisp.org>
72935         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
72936         from gl_HEADER_SYS_SOCKET.
72937         (gl_HEADER_SYS_SOCKET): Invoke it.
72938         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72940 2008-09-28  Bruno Haible  <bruno@clisp.org>
72942         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
72943         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
72944         Needed on OSF/1 4.0.
72946 2008-09-28  Bruno Haible  <bruno@clisp.org>
72948         Override open more carefully.
72949         * lib/open.c (orig_open): New function.
72950         (rpl_open): Use orig_open instead of open.
72951         * lib/fcntl.in.h: Add special invocation convention.
72952         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
72953         (gl_FUNC_OPEN): Invoke it.
72955         Override freopen more carefully.
72956         * lib/freopen.c (orig_freopen): New function.
72957         (rpl_freopen): Use orig_freopen instead of freopen.
72958         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
72959         (gl_FUNC_FREOPEN): Invoke it.
72961         Override fopen more carefully.
72962         * lib/fopen.c (orig_fopen): New function.
72963         (rpl_fopen): Use orig_fopen instead of fopen.
72964         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
72965         (gl_FUNC_FOPEN): Invoke it.
72966         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
72968 2008-09-28  Bruno Haible  <bruno@clisp.org>
72970         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
72971         SIGPIPE.
72973 2008-09-28  Bruno Haible  <bruno@clisp.org>
72975         * tests/test-sigaction.c (handler, main): Disable the check whether
72976         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
72977         glibc systems with LinuxThreads.
72979 2008-09-28  Bruno Haible  <bruno@clisp.org>
72981         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
72983         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
72984         with AIX xlc.
72985         * lib/fcntl.in.h (open): Likewise.
72986         Reported by Rainer Tammer <tammer@tammer.net>.
72988 2008-09-28  Bruno Haible  <bruno@clisp.org>
72990         * modules/posix_spawnp-tests: New file.
72991         * tests/test-posix_spawn.c: New file.
72992         * tests/test-posix_spawn.in.sh: New file.
72994         New module 'posix_spawnp'.
72995         * modules/posix_spawnp: New file.
72996         * lib/spawnp.c: New file, from GNU libc with modifications.
72997         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
72999         New module 'posix_spawn'.
73000         * modules/posix_spawn: New file.
73001         * lib/spawn.c: New file, from GNU libc with modifications.
73002         * doc/posix-functions/posix_spawn.texi: Mention the new module.
73004         New module 'posix_spawnattr_destroy'.
73005         * modules/posix_spawnattr_destroy: New file.
73006         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
73007         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
73008         module.
73010         New module 'posix_spawnattr_setsigmask'.
73011         * modules/posix_spawnattr_setsigmask: New file.
73012         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
73013         modifications.
73014         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
73015         new module.
73017         New module 'posix_spawnattr_getsigmask'.
73018         * modules/posix_spawnattr_getsigmask: New file.
73019         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
73020         modifications.
73021         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
73022         new module.
73024         New module 'posix_spawnattr_setsigdefault'.
73025         * modules/posix_spawnattr_setsigdefault: New file.
73026         * lib/spawnattr_setdefault.c: New file, from GNU libc with
73027         modifications.
73028         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
73029         new module.
73031         New module 'posix_spawnattr_getsigdefault'.
73032         * modules/posix_spawnattr_getsigdefault: New file.
73033         * lib/spawnattr_getdefault.c: New file, from GNU libc with
73034         modifications.
73035         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
73036         new module.
73038         New module 'posix_spawnattr_setschedpolicy'.
73039         * modules/posix_spawnattr_setschedpolicy: New file.
73040         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
73041         modifications.
73042         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
73043         new module.
73045         New module 'posix_spawnattr_getschedpolicy'.
73046         * modules/posix_spawnattr_getschedpolicy: New file.
73047         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
73048         modifications.
73049         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
73050         new module.
73052         New module 'posix_spawnattr_setschedparam'.
73053         * modules/posix_spawnattr_setschedparam: New file.
73054         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
73055         modifications.
73056         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
73057         new module.
73059         New module 'posix_spawnattr_getschedparam'.
73060         * modules/posix_spawnattr_getschedparam: New file.
73061         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
73062         modifications.
73063         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
73064         new module.
73066         New module 'posix_spawnattr_setpgroup'.
73067         * modules/posix_spawnattr_setpgroup: New file.
73068         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
73069         modifications.
73070         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
73071         module.
73073         New module 'posix_spawnattr_getpgroup'.
73074         * modules/posix_spawnattr_getpgroup: New file.
73075         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
73076         modifications.
73077         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
73078         module.
73080         New module 'posix_spawnattr_setflags'.
73081         * modules/posix_spawnattr_setflags: New file.
73082         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
73083         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
73084         module.
73086         New module 'posix_spawnattr_getflags'.
73087         * modules/posix_spawnattr_getflags: New file.
73088         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
73089         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
73090         module.
73092         New module 'posix_spawnattr_init'.
73093         * modules/posix_spawnattr_init: New file.
73094         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
73095         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
73096         module.
73098         New module 'posix_spawn_file_actions_destroy'.
73099         * modules/posix_spawn_file_actions_destroy: New file.
73100         * lib/spawn_faction_destroy.c: New file, from GNU libc with
73101         modifications.
73102         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
73103         the new module.
73105         New module 'posix_spawn_file_actions_addopen'.
73106         * modules/posix_spawn_file_actions_addopen: New file.
73107         * lib/spawn_faction_addopen.c: New file, from GNU libc with
73108         modifications.
73109         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
73110         the new module.
73112         New module 'posix_spawn_file_actions_adddup2'.
73113         * modules/posix_spawn_file_actions_adddup2: New file.
73114         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
73115         modifications.
73116         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
73117         the new module.
73119         New module 'posix_spawn_file_actions_addclose'.
73120         * modules/posix_spawn_file_actions_addclose: New file.
73121         * lib/spawn_faction_addclose.c: New file, from GNU libc with
73122         modifications.
73123         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
73124         the new module.
73126         New module 'posix_spawn_file_actions_init'.
73127         * modules/posix_spawn_file_actions_init: New file.
73128         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
73129         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
73130         new module.
73132         New module 'posix_spawn-internal'.
73133         * modules/posix_spawn-internal: New file.
73134         * lib/spawn_int.h: New file, from GNU libc with modifications.
73135         * lib/spawni.c: New file, from GNU libc with modifications.
73136         * m4/posix_spawn.m4: New file.
73138         New module 'spawn'.
73139         * modules/spawn: New file.
73140         * lib/spawn.in.h: New file, from GNU libc with modifications.
73141         * m4/spawn_h.m4: New file.
73142         * doc/posix-headers/spawn.texi: Mention the new module.
73144 2008-09-28  Bruno Haible  <bruno@clisp.org>
73146         * modules/sched-tests: New file.
73147         * tests/test-sched.c: New file.
73149         New module 'sched'.
73150         * modules/sched: New file.
73151         * lib/sched.in.h: New file.
73152         * m4/sched_h.m4: New file.
73153         * doc/posix-headers/sched.texi: Mention the new module.
73155 2008-09-27  Eric Blake  <ebb9@byu.net>
73157         Fix previous patch, and tweak references to $0.
73158         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
73159         (func_version, func_gnulib_dir): Don't call this program
73160         gnulib-tool.
73161         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
73162         with using $0 in function.
73163         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
73164         (func_fatal_error): Reuse the name the user invoked us with.
73166 2008-09-27  Bruno Haible  <bruno@clisp.org>
73168         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
73169         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
73170         (gl_ICONV_H): Not here.
73171         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
73172         instead of assigning ICONV_H directly.
73174         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
73175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
73176         WCHAR_H directly.
73178 2008-09-27  Bruno Haible  <bruno@clisp.org>
73180         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
73181         * modules/arpa_inet (Depends-on): Add link-warning.
73182         (Makefile.am): Insert the definition of GL_LINK-WARNING.
73183         * modules/unistd (Makefile.am): Likewise.
73185 2008-09-26  Bruno Haible  <bruno@clisp.org>
73187         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
73188         variables.
73189         (func_version): Essentially copied from gnulib-tool.
73190         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
73191         func_readlink): Copied from gnulib-tool.
73193 2008-09-26  Bruno Haible  <bruno@clisp.org>
73195         * gnulib-tool (func_version): Change directory to $gnulib_dir before
73196         invoking git-version-gen.
73198 2008-09-26  Bruno Haible  <bruno@clisp.org>
73200         * posix-modules: Update to directory names changed on 2008-01-19.
73201         Remove commas in output before splitting into words. No more need to
73202         avoid 'ftruncate' since 2007-02-19.
73204 2008-09-26  Bruno Haible  <bruno@clisp.org>
73206         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
73208 2008-09-26  Bruno Haible  <bruno@clisp.org>
73210         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
73211         * modules/fwriteerror (Depends-on): Add errno.
73213 2008-09-26  Bruno Haible  <bruno@clisp.org>
73215         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
73216         * tests/test-vc-list-files-cvs.sh: Likewise.
73218 2008-09-26  Bruno Haible  <bruno@clisp.org>
73220         * doc/posix-headers/sys_resource.texi: Reorder items.
73222 2008-09-26  Jim Meyering  <meyering@redhat.com>
73224         fts: tweak inode comparison function
73225         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
73226         inode numbers, as documented.
73228         fts: sort dirent entries on inode number before traversing
73229         This avoids a quadratic, seek-related performance penalty when
73230         operating on a directory containing many entries (measurable at 10k;
73231         3.5 hours at 2 million entries with a cold cache) on certain types
73232         of file systems, including ext3 and ext4, but not tmpfs.
73233         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
73234         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
73235         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
73236         (fs_handles_readdir_ordered_dirents_efficiently): New function.
73237         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
73238         (fts_build): Set the stat.st_ino member from D_INO.
73239         If it is likely to be useful, sort dirent entries on inode number.
73241         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
73242         and the struct statfs.f_type member.
73243         * modules/fts (Depends-on): Add d-ino.
73245 2008-09-26  Bruno Haible  <bruno@clisp.org>
73247         * modules/sigpipe-die (Depends-on): Add sigpipe.
73249         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
73250         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
73251         and GNULIB_STDIO_H_SIGPIPE are set.
73252         * lib/stdio-write.c: New file.
73253         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
73254         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73255         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73256         REPLACE_STDIO_WRITE_FUNCS.
73257         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
73258         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73259         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73260         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
73261         * modules/stdio (Files): Add lib/stdio-write.c.
73262         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
73263         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73264         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73265         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
73266         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
73267         REPLACE_FPRINTF_POSIX.
73268         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
73269         REPLACE_PRINTF_POSIX.
73270         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
73271         REPLACE_VFPRINTF_POSIX.
73272         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
73273         REPLACE_VPRINTF_POSIX.
73274         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
73275         SIGPIPE issue.
73276         * doc/posix-functions/fputc.texi: Likewise.
73277         * doc/posix-functions/fputs.texi: Likewise.
73278         * doc/posix-functions/fwrite.texi: Likewise.
73279         * doc/posix-functions/printf.texi: Likewise.
73280         * doc/posix-functions/putc.texi: Likewise.
73281         * doc/posix-functions/putchar.texi: Likewise.
73282         * doc/posix-functions/puts.texi: Likewise.
73283         * doc/posix-functions/vfprintf.texi: Likewise.
73284         * doc/posix-functions/vprintf.texi: Likewise.
73286         * modules/safe-write (Depends-on): Add write.
73288         * modules/sigpipe-tests: New file.
73289         * tests/test-sigpipe.c: New file.
73290         * tests/test-sigpipe.sh: New file.
73292         * modules/write: New file.
73293         * lib/unistd.in.h: Include <sys/types.h>.
73294         (write): New declaration.
73295         * lib/write.c: New file.
73296         * m4/write.m4: New file.
73297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73298         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
73299         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
73300         GNULIB_WRITE, REPLACE_WRITE.
73301         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
73302         and the SIGPIPE issue.
73304         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
73305         (raise): New declaration.
73306         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
73307         (ext_signal): New function.
73308         (rpl_raise): New function.
73309         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
73310         GNULIB_SIGNAL_H_SIGPIPE.
73311         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
73312         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
73314         * modules/sigpipe: New file.
73315         * m4/sigpipe.m4: New file.
73317 2008-09-25  Derek Price  <derek@ximbiot.com>
73318             Bruno Haible  <bruno@clisp.org>
73320         * gnulib-tool (func_import): Report all license incompatibilities, not
73321         just the first one.
73323 2008-09-25  Bruno Haible  <bruno@clisp.org>
73325         * gnulib-tool (func_import): When computing the edits, consider not
73326         only the Makefile.ams that exist but also those that will be generated.
73328 2008-09-25  Simon Josefsson  <simon@josefsson.org>
73330         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
73331         fixes gnulib-tool --test warning about duplicate dependency.
73333 2008-09-25  Bruno Haible  <bruno@clisp.org>
73335         * gnulib-tool: Don't ask the user to perform edits in the generated
73336         Makefile.ams.
73337         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
73338         apply to the Makefile.am being generated.
73339         (func_emit_tests_Makefile_am): Execute edits that apply to the
73340         Makefile.am being generated.
73341         (func_import): Setup list of Makefile.am edits before emitting the
73342         Makefile.ams, not at the end.
73343         (func_create_testdir): Update.
73344         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73346 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73348         * gnulib-tool (func_import): Store the --tests-base option in the
73349         comment in gnulib-cache.m4.
73351 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
73353         * NEWS: Document increased portability that sys_select now provides.
73355         * lib/sys_select.in.h: Install select wrapper.
73356         * lib/sys_socket.in.h: Use more descriptive name when there is no
73357         select wrapper.
73358         * lib/winsock-select.c: New.
73359         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
73360         Require gl_HEADER_SYS_SOCKET.
73361         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
73362         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
73363         * tests/test-sys_select.c: Add functional tests.
73365 2008-09-24  Eric Blake  <ebb9@byu.net>
73367         open, fopen: close fd leak in last patch
73368         * lib/open.c (rpl_open): Close fd before returning error.
73369         * lib/fopen.c (rpl_fopen): Close fd before returning error.
73370         * doc/posix-functions/open.texi (open): Document that Irix also
73371         has the bug.
73372         * doc/posix-functions/fopen.texi (fopen): Likewise.
73373         Reported by Paolo Bonzini.
73375 2008-09-24  Bruno Haible  <bruno@clisp.org>
73377         Ensure that a filename ending in a slash cannot be used to access a
73378         non-directory.
73379         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
73380         to check whether it's really a directory.
73381         * lib/fopen.c: Include fcntl.h, unistd.h.
73382         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
73383         and fdopen().
73384         * modules/fopen (Depends-on): Add unistd.
73385         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
73386         * tests/test-fopen.c (main): Likewise.
73387         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
73388         * doc/posix-functions/fopen.texi: Likewise.
73389         Reported by Eric Blake.
73391 2008-09-23  Eric Blake  <ebb9@byu.net>
73393         c-stack: avoid compiler optimizations when provoking overflow
73394         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
73395         recursion harder to optimize, to ensure a stack overflow occurs.
73396         * tests/test-c-stack.c (recurse): Likewise.
73397         Borrowed from libsigsegv.
73399         c-stack: work around Irix sigaltstack bug
73400         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
73401         whether sigaltstack uses wrong end of stack_t (copied in part from
73402         libsigsegv).
73403         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
73404         Irix bug, without requiring an over-allocation.
73405         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
73406         bug.
73408         fopen: document mingw bug on directories
73409         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
73410         not allowing a stream visiting a directory, even though reading
73411         from such a stream is not portable.
73413 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73415         * lib/poll.c: Rewrite.
73416         * modules/poll: Depend on alloca.
73418 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73420         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
73421         instead define prototypes for a full set of wrappers.  Ensure
73422         that Cygwin does not use the compatibility code, which is only
73423         for MinGW.
73424         * lib/winsock.c: New.
73425         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
73426         * modules/sys_socket: Add lib/winsock.c.
73428         * modules/poll-tests: Add errno and perror.
73429         * tests/test-poll.c: Use ioctl, not ioctlsocket.
73431 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73433         * tests/test-poll.c: Downgrade minimum needed Winsock version.
73435 2008-09-23  Bruno Haible  <bruno@clisp.org>
73437         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
73438         * doc/glibc-functions/*: Likewise.
73440 2008-09-23  Simon Josefsson  <simon@josefsson.org>
73442         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
73443         success.
73445 2008-09-22  Eric Blake  <ebb9@byu.net>
73446             Bruno Haible  <bruno@clisp.org>
73448         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
73449         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
73450         supply %A but mishandle pseudo-NaN.
73451         Reported by Simon Josefsson.
73453 2008-09-21  Bruno Haible  <bruno@clisp.org>
73455         * tests/test-lock.c (main): Tweak skip message.
73456         * tests/test-tls.c (main): Likewise.
73458 2008-09-21  Bruno Haible  <bruno@clisp.org>
73460         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
73461         whether 'struct sigaction' has sa_sigaction here...
73462         (gl_PREREQ_SIG_HANDLER_H): ... not here.
73463         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
73465 2008-09-21  Bruno Haible  <bruno@clisp.org>
73467         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
73468         section.
73469         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
73470         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
73471         the new section.
73472         (Support for obsolete systems lacking POSIX:2001): New section.
73473         (String handling <string.h>): Move strdup to the new section.
73474         Suggested by Simon Josefsson and Paolo Bonzini.
73476 2008-09-21  Bruno Haible  <bruno@clisp.org>
73478         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
73479         exponents in %e and %g results on 'long double'. Needed for mingw's
73480         improved *printf functions.
73481         * tests/test-vasprintf-posix.c (test_function): Likewise.
73482         * tests/test-snprintf-posix.h (test_function): Likewise.
73483         * tests/test-sprintf-posix.h (test_function): Likewise.
73484         Reported by Eric Blake.
73486 2008-09-21  Bruno Haible  <bruno@clisp.org>
73488         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
73489         * tests/test-sprintf-posix.h (test_function): Likewise.
73491 2008-09-21  Bruno Haible  <bruno@clisp.org>
73493         * modules/getpass (Depends-on): Add strdup-posix.
73495         New module 'strdup-posix'.
73496         * modules/strdup-posix: New file.
73497         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
73498         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
73499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73500         REPLACE_STRDUP.
73501         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
73502         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
73503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73504         strdup-posix.
73506         * modules/strdup (Depends-on): Remove malloc-posix.
73508 2008-09-20  Bruno Haible  <bruno@clisp.org>
73510         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
73511         Wildenhues.
73513 2008-09-20  Bruno Haible  <bruno@clisp.org>
73515         Ensure that wint_t gets defined on IRIX 5.3.
73516         * lib/wchar.in.h (wint_t): Define if not defined by the system.
73517         * lib/wctype.in.h (wint_t): Likewise.
73518         (__wctype_wint_t): Remove type.
73519         (isw*): Use wint_t instead of __wctype_wint_t.
73520         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
73521         * modules/wchar (Files): Add m4/wint_t.m4.
73522         (Makefile.am): Substitute HAVE_WINT_T.
73523         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
73524         * tests/test-wctype.c: Check that wint_t is defined.
73525         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
73526         * doc/posix-headers/wctype.texi: Likewise.
73527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
73529 2008-09-18  Bruno Haible  <bruno@clisp.org>
73531         * gnulib-tool (func_exit): Update comment.
73533 2008-09-18  Simon Josefsson  <simon@josefsson.org>
73535         * modules/getaddrinfo (Depends-on): Remove strdup, this module
73536         assumes strdup exists and does not depend on strdup to return
73537         ENOMEM on out of memory conditions.
73539 2008-09-18  Bruno Haible  <bruno@clisp.org>
73541         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
73542         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
73543         digits for the exponent.
73545 2008-09-18  Jim Meyering  <meyering@redhat.com>
73546             Bruno Haible  <bruno@clisp.org>
73548         * lib/vasnprintf.c (decimal_point_char): Define also if
73549         NEED_PRINTF_INFINITE_LONG_DOUBLE.
73551 2008-09-16  Bruno Haible  <bruno@clisp.org>
73552         and Eric Blake  <ebb9@byu.net>
73554         vasnprintf: support Irix 5.3
73555         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
73556         that mishandle long double infinity.
73557         Reported by Tom G. Christensen.
73559 2008-09-16  Bruno Haible  <bruno@clisp.org>
73561         * doc/glibc-functions/scandir.texi: Mention the function is missing on
73562         Solaris 9.
73563         * doc/glibc-functions/alphasort.texi: Likewise.
73564         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
73566 2008-09-16  Jim Meyering  <meyering@redhat.com>
73568         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
73569         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
73570         a umask modification leak out of a subshell.  Otherwise, the
73571         opensolaris /bin/sh would be accepted and thus cause unwarranted
73572         failures in the coreutils test suite.
73574 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
73576         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
73577         to succeed.
73579 2008-09-16  Jim Meyering  <meyering@redhat.com>
73581         avoid spurious test failure when library is built without ACL support
73582         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
73583         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
73584         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
73585         * tests/test-copy-acl.sh: Likewise.
73587 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73589         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
73590         based on character occurrence counts.
73592 2008-09-15  Eric Blake  <ebb9@byu.net>
73594         tests: avoid some compiler warnings
73595         * tests/test-memchr.c (main): Pass NULL indirectly.
73596         * tests/test-closein.c (main): Avoid unused variable.
73598 2008-09-15  Bruno Haible  <bruno@clisp.org>
73600         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
73601         are missing on OpenBSD 4.0 individually.
73602         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73604 2008-09-15  Bruno Haible  <bruno@clisp.org>
73606         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
73607         * doc/posix-functions/strerror.texi: Mention also Cygwin.
73608         * doc/posix-functions/perror.texi: Likewise.
73609         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
73610         is missing.
73611         Reported by Eric Blake.
73613         * lib/errno.in.h: Use replacement values >= 2000.
73614         Reported by Eric Blake.
73616 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73618         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
73619         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
73620         limit.
73621         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
73622         compareseq was aborted.
73624 2008-09-14  Bruno Haible  <bruno@clisp.org>
73626         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
73627         yvec_edit_count.
73628         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
73629         (fstrcmp_bounded): Simplify result computation accordingly.
73631 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73633         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
73634         (fstrcmp): Define in terms of fstrcmp_bounded.
73635         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
73636         lower_bound argument.
73637         Return quickly if the result is certainly < lower_bound.
73638         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
73640 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73642         * lib/diffseq.h (EARLY_ABORT): New macro.
73643         (compareseq): Change return type to bool. Return true when EARLY_ABORT
73644         evaluates to true.
73646 2008-09-14  Bruno Haible  <bruno@clisp.org>
73648         * modules/perror-tests: New file.
73649         * tests/test-perror.sh: New file.
73650         * tests/test-perror.c: New file.
73652         New module 'perror'.
73653         * lib/stdio.in.h (perror): New declaration.
73654         * lib/perror.c: New file.
73655         * m4/perror.m4: New file.
73656         * modules/perror: New file.
73657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
73658         * doc/posix-functions/perror.texi: Mention the perror module.
73659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
73660         REPLACE_PERROR.
73661         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
73662         REPLACE_PERROR.
73664 2008-09-14  Bruno Haible  <bruno@clisp.org>
73666         * modules/stdio (Makefile.am): Reorder to match the order in
73667         lib/stdio.in.h.
73668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
73670 2008-09-13  Bruno Haible  <bruno@clisp.org>
73672         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
73674 2008-09-13  Bruno Haible  <bruno@clisp.org>
73676         Extend strerror to cover the added errno values.
73677         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
73678         (rpl_strerror): Provide error messages for the added errno values and
73679         for the WSA* values.
73680         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
73681         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
73682         strerror.
73683         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
73684         * modules/strerror (Depends-on): Add errno.
73685         * doc/posix-functions/strerror.texi: Document the change.
73686         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
73687         and EOVERFLOW.
73689 2008-09-13  Bruno Haible  <bruno@clisp.org>
73691         * modules/EOVERFLOW: Remove file.
73692         * m4/eoverflow.m4: Remove file.
73693         * modules/EOVERFLOW-tests: Remove file.
73694         * tests/test-EOVERFLOW.c: Remove file.
73695         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
73696         * modules/ftell (Depends-on): Likewise.
73697         * modules/getdelim (Depends-on): Likewise.
73698         * modules/getugroups (Depends-on): Likewise.
73699         * modules/poll (Depends-on): Likewise.
73700         * modules/snprintf (Depends-on): Likewise.
73701         * modules/sprintf-posix (Depends-on): Likewise.
73702         * modules/vasnprintf (Depends-on): Likewise.
73703         * modules/vasprintf (Depends-on): Likewise.
73704         * modules/vfprintf-posix (Depends-on): Likewise.
73705         * modules/vsnprintf (Depends-on): Likewise.
73706         * modules/vsprintf-posix (Depends-on): Likewise.
73707         * modules/xvasprintf (Depends-on): Likewise.
73708         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
73709         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
73710         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
73711         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
73712         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
73713         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
73714         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
73715         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
73716         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
73717         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
73718         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
73719         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
73720         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
73721         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
73722         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
73723         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
73724         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
73725         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
73726         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
73727         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
73728         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
73729         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
73730         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
73731         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
73732         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
73733         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
73734         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
73735         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
73736         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
73737         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
73738         * MODULES.html.sh: Remove EOVERFLOW.
73739         * NEWS: Mention the change.
73741 2008-09-13  Bruno Haible  <bruno@clisp.org>
73743         * modules/errno-tests: New file.
73744         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
73746         * lib/errno.in.h: New file.
73747         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
73748         * modules/errno: New file.
73749         * doc/posix-headers/errno.texi: Update documentation.
73750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
73752 2008-09-13  Bruno Haible  <bruno@clisp.org>
73754         * tests/test-poll.c: Use #if for native Windows, rather than testing
73755         __MSVCRT__.
73757 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73758             Bruno Haible  <bruno@clisp.org>
73760         * lib/glob.c: Don't include <pwd.h> on native Windows.
73761         (WINDOWS32): New macro.
73762         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
73764 2008-09-13  Bruno Haible  <bruno@clisp.org>
73766         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
73767         (ETIMEDOUT): Remove macro.
73768         (glthread_cond_timedwait_multithreaded): New declaration.
73769         (glthread_cond_timedwait): Use it.
73770         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
73771         (glthread_cond_timedwait_multithreaded): New function.
73773 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73775         * modules/poll-tests: Do not check for io.h.
73776         * tests/test-poll.c: Check for __MSVCRT__ instead.
73778 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73780         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
73781         * modules/poll-tests: Add inet_pton, stdbool, sockets.
73782         * tests/test-poll.c: Use them.  Use _pipe on Windows.
73784 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
73786         * modules/poll-tests: New.
73787         * tests/test-poll.c: New.
73789 2008-09-12  Eric Blake  <ebb9@byu.net>
73791         frexp: test for NetBSD failure on -0.0
73792         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
73793         not all, bugs from NetBSD 3.0 have been fixed.
73794         * doc/posix-functions/frexp.texi (frexp): Document bug.
73795         Reported by Thomas Klausner.
73797         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
73798         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
73799         literal -0.0.
73800         Reported by Jonathan C. Patschke <jp@centtech.com>.
73802 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73804         * lib/glthread/cond.h: Use dummy implementation also if
73805         USE_WIN32_THREADS.
73807 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73809         * modules/fnmatch-posix (License): Change to LGPLv2+.
73810         * modules/fnmatch-gnu (License): Likewise.
73812 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73814         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
73816 2008-09-11  Jim Meyering  <meyering@redhat.com>
73818         * users.txt: Add gtk-vnc.
73820 2008-09-08  Simon Josefsson  <simon@josefsson.org>
73822         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
73823         rotate amounts.
73825         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
73826         required for 16-bit and 8-bit rotates.
73827         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
73828         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
73829         UINT8_MAX instead of hard-coded constants.
73830         Suggested by Paul Eggert.
73832 2008-09-07  Bruno Haible  <bruno@clisp.org>
73834         * tests/test-striconveh.c (main): Check behaviour when converting from
73835         UTF-7.
73837         Make striconveh work better with stateful encodings.
73838         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
73839         that iconv does not increment the inptr when returning -1/EINVAL.
73841 2008-09-07  Bruno Haible  <bruno@clisp.org>
73843         * build-aux/config.rpath: Update according to libtool-2.2.6.
73844         * build-aux/config.libpath: Likewise.
73846 2008-09-06  Bruno Haible  <bruno@clisp.org>
73848         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
73849         * lib/freadptr.c (freadptr): Likewise.
73850         * lib/freadseek.c (freadptrinc): Likewise.
73851         Reported by Simon Josefsson.
73853 2008-09-06  Bruno Haible  <bruno@clisp.org>
73855         * modules/freadptr (License): Change to LGPLv2+.
73856         * modules/freadseek (License): Likewise.
73857         Suggested by Eric Blake.
73859         * modules/memchr2 (License): Change to LGPLv2+.
73860         Approved by Eric Blake.
73862 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73863             Bruno Haible  <bruno@clisp.org>
73865         Make gnulib-tool work with native 'sed' on AIX.
73866         * gnulib-tool (sed_noop): New variable.
73867         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
73868         func_add_or_update, func_create_testdir): Use it to initialize sed
73869         script variables.
73870         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73872 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
73873             Bruno Haible  <bruno@clisp.org>
73875         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
73876         also works after #include directives.
73878 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
73880         getdate.y: reject an out-of-range timezone value
73881         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
73882         the range [-24...+24].  When specified with only one or two digits,
73883         * tests/test-getdate.c: Tests for the fix.
73884         * doc/getdate.texi: Document this change.
73886 2008-09-03  Bruno Haible  <bruno@clisp.org>
73888         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
73890 2008-09-02  Simon Josefsson  <simon@josefsson.org>
73892         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
73893         <bruce.korb@gmail.com> with ideas from Ben Pfaff
73894         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
73895         Blake <ebb9@byu.net>.
73897         * tests/test-bitrotate.c: Add more test vectors.
73899 2008-09-02  Eric Blake  <ebb9@byu.net>
73901         vasnprintf-posix: handle large precision via %.*d
73902         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
73903         when handling it ourselves.
73904         * tests/test-vasnprintf-posix.c (test_function): Add test.
73905         * tests/test-snprintf-posix.h (test_function): Likewise.
73906         * tests/test-sprintf-posix.h (test_function): Likewise.
73907         * tests/test-vasprintf-posix.c (test_function): Likewise.
73908         Reported by Alain Guibert.
73910 2008-09-01  Eric Blake  <ebb9@byu.net>
73912         c-stack: make configure-time check more robust
73913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
73914         successful sigaction call.
73915         Reported by Tom G. Christensen.
73917 2008-09-01  Bruno Haible  <bruno@clisp.org>
73919         New module 'findprog-lgpl'.
73920         * modules/findprog-lgpl: New file.
73921         * lib/findprog-lgpl.c: New file.
73922         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
73923         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
73924         to decide whether to use strdup or xstrdup, concatenated_filename or
73925         xconcatenated_filename.
73927 2008-09-01  Bruno Haible  <bruno@clisp.org>
73929         Split module 'concat-filename' into 'concat-filename' (LGPL) and
73930         'xconcat-filename' (GPL).
73931         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
73932         (License): Change to LGPLv2+.
73933         * modules/xconcat-filename: New file.
73934         * lib/concat-filename.h (concatenated_filename): Change specification.
73935         (xconcatenated_filename): New declaration.
73936         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
73937         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
73938         memory situations.
73939         * lib/xconcat-filename.c: New file.
73940         * NEWS: Mention the change.
73941         * lib/findprog.c: Include concat-filename.h, not filename.h.
73942         (find_in_path): Use xconcatenated_filename instead of
73943         concatenated_filename.
73944         * lib/javacomp.c: Include concat-filename.h, not filename.h.
73945         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73946         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73947         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73948         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
73949         instead of concatenated_filename.
73950         * lib/javaexec.c: Include concat-filename.h, not filename.h.
73951         (execute_java_class): Use xconcatenated_filename instead of
73952         concatenated_filename.
73953         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
73954         * modules/javacomp (Depends-on): Likewise.
73955         * modules/javaexec (Depends-on): Likewise.
73957 2008-09-01  Bruno Haible  <bruno@clisp.org>
73959         Split module 'filename' into 'filename' and 'concat-filename'.
73960         * modules/filename: Keep only lib/filename.h.
73961         (License): Change to LGPLv2+.
73962         * modules/concat-filename: New file, extracted from modules/filename.
73963         * lib/filename.h (concatenated_filename): Remove declaration.
73964         * lib/concat-filename.h: New file, extracted from lib/filename.h.
73965         * lib/concat-filename.c: Include concat-filename.h.
73966         * NEWS: Mention the change.
73968 2008-09-01  Simon Josefsson  <simon@josefsson.org>
73970         * lib/bitrotate.h (rotl8, rotr8): Add.
73972         * modules/bitrotate (configure.ac): Need
73973         AC_REQUIRE([AC_C_INLINE]).
73974         (Description): Mention stdint.h.  Reported by Bruno Haible
73975         <bruno@clisp.org>.
73977         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
73978         Paolo Bonzini <bonzini@gnu.org>.
73980 2008-08-31  Bruno Haible  <bruno@clisp.org>
73982         Assume Solaris specific bi-arch conventions on Solaris systems.
73983         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
73984         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
73985         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
73986         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
73987         like acl_libdirstem.
73988         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
73989         acl_libdirstem.
73990         * NEWS: Mention the change.
73991         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
73993 2008-08-31  Jim Meyering  <meyering@redhat.com>
73995         * lib/strftime.h: Add comments describing the two added arguments.
73997         remove duplicate #include directives
73998         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
73999         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
74001 2008-08-31  Bruno Haible  <bruno@clisp.org>
74003         New module 'sigpipe-die'.
74004         * modules/sigpipe-die: New file.
74005         * lib/sigpipe-die.h: New file.
74006         * lib/sigpipe-die.c: New file.
74007         * MODULES.html.sh (Signal handling): Add sigpipe-die.
74009 2008-08-31  Bruno Haible  <bruno@clisp.org>
74011         Don't override previously installed signal handlers.
74012         * lib/fatal-signal.c (saved_sigactions): New variable.
74013         (uninstall_handlers): Reset the signal to the saved handler, not
74014         to SIG_DFL (except when ignored).
74015         (install_handlers): Save the previous handlers.
74017 2008-08-30  Bruno Haible  <bruno@clisp.org>
74019         * gnulib-tool (func_reset_sigpipe): New function.
74020         (func_get_automake_snippet, func_modules_transitive_closure,
74021         func_import): Invoke it before a join command that reads from stdin,
74022         to avoid "echo: write error: Broken pipe" error messages on stderr.
74023         Reported by Sam Steingold <sds@gnu.org>.
74025 2008-08-30  Bruno Haible  <bruno@clisp.org>
74027         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
74028         Code copied from m4/open.m4.
74029         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
74030         access and the filename ends in a slash. Code copied from lib/open.c.
74031         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
74032         * tests/test-fopen.c (main): Check against bug with trailing slash.
74034 2008-08-29  Bruno Haible  <bruno@clisp.org>
74036         Avoid some "gcc -pedantic" warnings.
74037         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
74038         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
74039         * lib/dirent.in.h: Likewise.
74040         * lib/fcntl.in.h: Likewise.
74041         * lib/float.in.h: Likewise.
74042         * lib/iconv.in.h: Likewise.
74043         * lib/inttypes.in.h: Likewise.
74044         * lib/locale.in.h: Likewise.
74045         * lib/math.in.h: Likewise.
74046         * lib/netinet_in.in.h: Likewise.
74047         * lib/search.in.h: Likewise.
74048         * lib/signal.in.h: Likewise.
74049         * lib/stdarg.in.h: Likewise.
74050         * lib/stdint.in.h: Likewise.
74051         * lib/stdio.in.h: Likewise.
74052         * lib/stdlib.in.h: Likewise.
74053         * lib/string.in.h: Likewise.
74054         * lib/strings.in.h: Likewise.
74055         * lib/sys_select.in.h: Likewise.
74056         * lib/sys_socket.in.h: Likewise.
74057         * lib/sys_stat.in.h: Likewise.
74058         * lib/sys_time.in.h: Likewise.
74059         * lib/sysexits.in.h: Likewise.
74060         * lib/time.in.h: Likewise.
74061         * lib/unistd.in.h: Likewise.
74062         * lib/wchar.in.h: Likewise.
74063         * lib/wctype.in.h: Likewise.
74064         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
74065         * modules/fchdir (Makefile.am): Likewise.
74066         * modules/fcntl (Makefile.am): Likewise.
74067         * modules/float (Makefile.am): Likewise.
74068         * modules/iconv_open (Makefile.am): Likewise.
74069         * modules/inttypes (Makefile.am): Likewise.
74070         * modules/locale (Makefile.am): Likewise.
74071         * modules/math (Makefile.am): Likewise.
74072         * modules/netinet_in (Makefile.am): Likewise.
74073         * modules/search (Makefile.am): Likewise.
74074         * modules/signal (Makefile.am): Likewise.
74075         * modules/stdarg (Makefile.am): Likewise.
74076         * modules/stdint (Makefile.am): Likewise.
74077         * modules/stdio (Makefile.am): Likewise.
74078         * modules/stdlib (Makefile.am): Likewise.
74079         * modules/string (Makefile.am): Likewise.
74080         * modules/strings (Makefile.am): Likewise.
74081         * modules/sys_select (Makefile.am): Likewise.
74082         * modules/sys_socket (Makefile.am): Likewise.
74083         * modules/sys_stat (Makefile.am): Likewise.
74084         * modules/sys_time (Makefile.am): Likewise.
74085         * modules/sysexits (Makefile.am): Likewise.
74086         * modules/time (Makefile.am): Likewise.
74087         * modules/unistd (Makefile.am): Likewise.
74088         * modules/wchar (Makefile.am): Likewise.
74089         * modules/wctype (Makefile.am): Likewise.
74090         Reported by Reuben Thomas <rrt@sc3d.org>.
74092 2008-08-29  Bruno Haible  <bruno@clisp.org>
74094         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
74095         any more.
74097 2008-08-29  Simon Josefsson  <simon@josefsson.org>
74099         * MODULES.html.sh (Misc): Add bitrotate.
74101         * modules/bitrotate: New file.
74103         * lib/bitrotate.h: New file.
74105         * modules/bitrotate-tests: New file.
74107         * tests/test-bitrotate.c: New file.
74109         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
74110         on the bitrotate module.
74112         * lib/arctwo.c: Use new bitrotate module.
74114 2008-08-29  Jim Meyering  <meyering@redhat.com>
74116         bootstrap: merge changes from coreutils
74117         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
74118         of copied files.  Remove a kludge, now that this is fixed.
74119         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
74120         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
74121         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
74123 2008-08-29  Bruno Haible  <bruno@clisp.org>
74125         * MODULES.html.sh: Remove --cvs-urls option.
74127 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
74129         maint.mk: adjust to file name change
74130         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
74132 2008-08-28  Jim Meyering  <meyering@redhat.com>
74134         * modules/getndelim2 (License): Relicense to LGPLv2+.
74135         Approved by Richard Stallman for the version of 1995, and by
74136         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
74138 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
74140         * lib/getdelim.c (flockfile, funlockfile): Make all of them
74141         dummy if one is not available.  Do not touch them if
74142         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
74143         (getc_maybe_unlocked): New.
74144         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
74146 2008-08-26  Eric Blake  <ebb9@byu.net>
74148         doc/INSTALL: resync from autoconf
74149         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
74150         (INSTALL_PRELUDE): Delete; this is done more efficiently by
74151         moving...
74152         * install.texi [!autoconf]: ...here.  Resync from autoconf.
74153         * INSTALL: Regenerate.
74154         * INSTALL.ISO: New file.
74155         * INSTALL.UTF-8: Likewise.
74157 2008-08-26  Jim Meyering  <meyering@redhat.com>
74159         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
74160         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
74161         these definitions conditional, so that they may be overridden, too.
74163 2008-08-26  Bruno Haible  <bruno@clisp.org>
74165         Generate INSTALL file variants with prettier quotes.
74166         * doc/Makefile (INSTALL_PRELUDE): New macro.
74167         (INSTALL): Use it.
74168         (INSTALL.ISO, INSTALL.UTF-8): New rules.
74170 2008-08-26  Bruno Haible  <bruno@clisp.org>
74172         Run makeinfo in an English locale.
74173         * doc/Makefile (MAKEINFO): New variable.
74175 2008-08-26  Bruno Haible  <bruno@clisp.org>
74177         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
74178         Suggested by Eric Blake.
74180 2008-08-25  Bruno Haible  <bruno@clisp.org>
74182         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
74184 2008-08-25  Eric Blake  <ebb9@byu.net>
74186         c-stack: test that stack overflow can be caught
74187         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
74188         that platform allows handling stack overflow; at least OS/2 EMX
74189         has sigaltstack, but crashes before transferring control to
74190         handler on stack overflow.
74191         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
74192         check for HAVE_STACK_OVERFLOW_HANDLING.
74193         Reported by Elbert Pol.
74195 2008-08-25  Bruno Haible  <bruno@clisp.org>
74197         * doc/posix-functions/strftime.texi: Fix description of strftime
74198         module.
74200 2008-08-24  Bruno Haible  <bruno@clisp.org>
74202         * tests/uniwidth/test-uc_width2.c: New file.
74203         * tests/uniwidth/test-uc_width2.sh: New file.
74204         * modules/uniwidth/width-tests (Files): Add the new files.
74205         (TESTS): Add uniwidth/test-uc_width2.sh.
74206         (TESTS_ENVIRONMENT): New variable.
74207         (check_PROGRAMS): Add test-uc_width2.
74208         (test_uc_width2_SOURCES): New variable.
74210         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
74211         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
74212         not 0x00AB.
74213         Reported by Alexander V. Lukyanov <lav@netis.ru>.
74215 2008-08-22  Eric Blake  <ebb9@byu.net>
74217         test-lock, test-tls: mention why a test is skipped
74218         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
74219         skipped.
74220         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
74222         count-one-bits: relax license
74223         * modules/count-one-bits (License): Relicense to LGPLv2+.
74224         Suggested by Ludovic Courtès, approved by Ben Pfaff.
74226 2008-08-22  Andreas Schwab  <schwab@suse.de>
74228         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
74229         Remove spurious space in assignment.
74231 2008-08-21  Simon Josefsson  <simon@josefsson.org>
74233         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
74234         Paul Eggert <eggert@CS.UCLA.EDU>.
74236 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
74238         * modules/gettext: Add m4/threadlib.m4.
74240 2008-08-19  Eric Blake  <ebb9@byu.net>
74242         test-c-stack: fix compilation failure on FreeBSD 5.0
74243         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
74244         headers before <sys/resource.h>.
74245         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
74246         the bug.
74247         Reported by Nelson H. F. Beebe.
74249         strverscmp: migrate from "strverscmp.h" to <string.h>
74250         * modules/string (Makefile.am): Add new hooks.
74251         * modules/strverscmp (Files): Remove strverscmp.h.
74252         (Depends-on): Add string.
74253         (configure.ac): Add indicator.
74254         (Include): Mention new header.
74255         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
74256         defaults.
74257         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
74258         results.
74259         * lib/strverscmp.h: Delete.
74260         * lib/string.in.h (strverscmp): Provide declaration, when needed.
74261         * tests/test-strverscmp.c (includes): Adjust client.
74262         * lib/check-version.c (includes): Likewise.
74263         * NEWS: Document the change.
74265         strverscmp: add unit test
74266         * modules/strverscmp-tests: New file.
74267         * tests/test-strverscmp.c: Likewise.
74269 2008-08-19  Simon Josefsson  <simon@josefsson.org>
74271         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
74272         regarding Windows crypto stuff, from Mono.
74274 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
74276         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
74277         if present, for intel RND.  Return error on failures.
74279 2008-08-18  Ben Pfaff  <blp@gnu.org>
74281         gitlog-to-changelog: give better diagnostic for failed pipe-open
74282         * build-aux/gitlog-to-changelog: Improve error message: suggest
74283         that the version of Git may be too old.
74285 2008-08-18  Simon Josefsson  <simon@josefsson.org>
74287         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
74288         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
74290 2008-08-18  Bruno Haible  <bruno@clisp.org>
74292         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
74293         pthread_in_use().
74295 2008-08-18  Bruno Haible  <bruno@clisp.org>
74297         * lib/glthread/threadlib.c: Include <pthread.h>.
74299 2008-08-18  Bruno Haible  <bruno@clisp.org>
74301         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
74302         glthread_recursive_lock_* macros.
74303         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
74304         Fix syntax error.
74306 2008-08-18  Bruno Haible  <bruno@clisp.org>
74308         * lib/glthread/thread.c: Avoid forcing a context switch right after
74309         thread creation.
74311 2008-08-17  Bruno Haible  <bruno@clisp.org>
74313         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
74314         * lib/glthread/thread.h: Provide Win32 specific implementation.
74315         * modules/thread (Files): Add lib/glthread/thread.c.
74316         (Depends-on): Add lock.
74317         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
74319 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74321         New module 'yield'.
74322         * modules/yield: New file.
74323         * lib/glthread/yield.h: New file.
74324         * m4/yield.m4: New file.
74325         * MODULES.html.sh (Multithreading): Add yield.
74327 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74329         New module 'thread'.
74330         * modules/thread: New file.
74331         * lib/glthread/thread.h: New file.
74332         * m4/thread.m4: New file.
74333         * MODULES.html.sh (Multithreading): Add thread.
74335 2008-08-17  Bruno Haible  <bruno@clisp.org>
74337         * lib/glthread/lock.h: Include <stdlib.h> always.
74338         * lib/glthread/tls.h: Likewise.
74339         * lib/glthread/cond.h: Likewise.
74341 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74343         New module 'cond'.
74344         * modules/cond: New file.
74345         * lib/glthread/cond.h: New file.
74346         * lib/glthread/cond.c: New file.
74347         * m4/cond.m4: New file.
74348         * MODULES.html.sh (Multithreading): Add cond.
74350 2008-08-16  Eric Blake  <ebb9@byu.net>
74352         c-stack: fix regression on Irix 5.3 from 2008-06-21
74353         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
74354         sa_sigaction...
74355         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
74356         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
74357         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
74358         * modules/signal (Makefile.am): Use the value.
74359         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
74360         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
74361         * doc/posix-headers/signal.texi (signal.h): Document this
74362         portability issue.
74363         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
74364         Reported by Tom G. Christensen.
74366 2008-08-17  Bruno Haible  <bruno@clisp.org>
74368         New module 'threadlib'.
74369         * modules/threadlib: New file.
74370         * lib/glthread/threadlib.c: New file, extracted from
74371         lib/glthread/lock.c.
74372         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
74373         functions.
74374         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
74375         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
74376         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
74377         macros.
74378         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
74379         (gl_DISABLE_THREADS): Remove macro.
74380         * modules/lock (Files): Remove build-aux/config.rpath.
74381         (Depends-on): Remove havelib. Add threadlib.
74382         (configure.ac-early): Remove section.
74383         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
74384         * modules/tls (Depends-on): Remove lock. Add threadlib.
74385         (Link): New section, copied from threadlib.
74386         * MODULES.html.sh (Multithreading): Add threadlib.
74388 2008-08-14  Bruno Haible  <bruno@clisp.org>
74390         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
74391         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
74392         glthread_rwlock_unlock, glthread_rwlock_destroy,
74393         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
74394         glthread_recursive_lock_destroy): Define as macros always.
74395         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
74396         glthread_lock_lock.
74397         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
74398         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
74399         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
74400         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
74401         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
74402         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
74403         (glthread_recursive_lock_lock_func): Renamed from
74404         glthread_recursive_lock_lock.
74405         (glthread_recursive_lock_unlock_func): Renamed from
74406         glthread_recursive_lock_unlock.
74407         (glthread_recursive_lock_destroy_func): Renamed from
74408         glthread_recursive_lock_destroy.
74410 2008-08-14  Bruno Haible  <bruno@clisp.org>
74412         * lib/glthread/lock.h: Renamed from lib/lock.h.
74413         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
74414         * lib/glthread/tls.h: Renamed from lib/tls.h.
74415         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
74416         * lib/fstrcmp.c: Update includes.
74417         * lib/strsignal.c: Update includes.
74418         * modules/lock (Files, Makefile.am): Update.
74419         (Include): Change to "glthread/lock.h".
74420         * modules/tls (Files, Makefile.am): Update.
74421         (Include): Change to "glthread/tls.h".
74422         * tests/test-lock.c: Update includes.
74423         * tests/test-tls.c: Update includes.
74424         * NEWS: Mention the renamed header files.
74426 2008-08-11  Jim Meyering  <meyering@redhat.com>
74428         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
74430 2008-08-11  Eric Blake  <ebb9@byu.net>
74432         test-c-stack: avoid C99-ism
74433         * tests/test-c-stack.c (main): Fix whitespace, move declaration
74434         before statement.
74435         Reported by Alain Guibert.
74437 2008-08-10  Jim Meyering  <meyering@redhat.com>
74439         ensure that return value of uinttostr et al are not ignored
74440         * lib/inttostr.h (__GNUC_PREREQ): Define.
74441         (__attribute_warn_unused_result__): Define.
74442         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
74444 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
74446         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
74447         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
74449 2008-08-07  Jim Meyering  <meyering@redhat.com>
74451         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
74453         * modules/mkstemp (License): Relicense under LGPLv2+.
74454         * modules/tempname (License): Likewise.
74456 2008-08-06  Bruno Haible  <bruno@clisp.org>
74458         * lib/poll.c (poll): Further micro-optimization.
74460 2008-08-06  Jim Meyering  <meyering@redhat.com>
74462         inet_pton.c: use locale-independent tolower
74463         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
74464         (inet_pton6): Use c_tolower rather than tolower.
74465         * modules/inet_pton (Depends-on): Add c-ctype.
74467 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
74469         * lib/poll.c (poll): Avoid division when timeout is 0, cache
74470         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
74472 2008-08-06  Jim Meyering  <meyering@redhat.com>
74474         * modules/inet_pton (License): Relicense under LGPLv2+.
74476 2008-08-03  Bruno Haible  <bruno@clisp.org>
74478         Additional non-aborting API for lock and tls.
74479         * lib/lock.h: Include <errno.h>.
74480         (glthread_lock_init): New macro/function.
74481         (gl_lock_init): Define as wrapper around glthread_lock_init.
74482         (glthread_lock_lock): New macro/function.
74483         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
74484         (glthread_lock_unlock): New macro/function.
74485         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
74486         (glthread_lock_destroy): New macro/function.
74487         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
74488         (glthread_rwlock_init): New macro/function.
74489         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
74490         (glthread_rwlock_rdlock): New macro/function.
74491         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
74492         (glthread_rwlock_wrlock): New macro/function.
74493         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
74494         (glthread_rwlock_unlock): New macro/function.
74495         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
74496         (glthread_rwlock_destroy): New macro/function.
74497         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
74498         (glthread_recursive_lock_init): New macro/function.
74499         (gl_recursive_lock_init): Define as wrapper around
74500         glthread_recursive_lock_init.
74501         (glthread_recursive_lock_lock): New macro/function.
74502         (gl_recursive_lock_lock): Define as wrapper around
74503         glthread_recursive_lock_lock.
74504         (glthread_recursive_lock_unlock): New macro/function.
74505         (gl_recursive_lock_unlock): Define as wrapper around
74506         glthread_recursive_lock_unlock.
74507         (glthread_recursive_lock_destroy): New macro/function.
74508         (gl_recursive_lock_destroy): Define as wrapper around
74509         glthread_recursive_lock_destroy.
74510         (glthread_once): New macro/function.
74511         (gl_once): Define as wrapper around glthread_once.
74512         Update function declarations.
74513         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
74514         glthread_rwlock_init. Return error code.
74515         (glthread_rwlock_rdlock_multithreaded): Renamed from
74516         glthread_rwlock_rdlock. Return error code.
74517         (glthread_rwlock_wrlock_multithreaded): Renamed from
74518         glthread_rwlock_wrlock. Return error code.
74519         (glthread_rwlock_unlock_multithreaded): Renamed from
74520         glthread_rwlock_unlock. Return error code.
74521         (glthread_rwlock_destroy_multithreaded): Renamed from
74522         glthread_rwlock_destroy. Return error code.
74523         (glthread_recursive_lock_init_multithreaded): Renamed from
74524         glthread_recursive_lock_init. Return error code.
74525         (glthread_recursive_lock_lock_multithreaded): Renamed from
74526         glthread_recursive_lock_lock. Return error code.
74527         (glthread_recursive_lock_unlock_multithreaded): Renamed from
74528         glthread_recursive_lock_unlock. Return error code.
74529         (glthread_recursive_lock_destroy_multithreaded): Renamed from
74530         glthread_recursive_lock_destroy. Return error code.
74531         (glthread_once_call): Make static.
74532         (glthread_once_multithreaded): Renamed from glthread_once.
74533         * lib/tls.h: Include <errno.h>.
74534         (glthread_tls_key_init): New macro/function.
74535         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
74536         (glthread_tls_set): New macro/function.
74537         (gl_tls_set): Define as wrapper around glthread_tls_set.
74538         (glthread_tls_key_destroy): New macro/function.
74539         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
74540         Update function declarations.
74541         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
74542         glthread_tls_get.
74543         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74545 2008-08-04  Eric Blake  <ebb9@byu.net>
74547         gnumakefile: use space, not TAB, outside of targets
74548         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
74550 2008-08-02  Jim Meyering  <meyering@redhat.com>
74552         getdate.y: avoid locale-dependent date parsing failure
74553         In Turkish locales, getdate would fail to recognize keywords
74554         containing a lowercase "i".  The solution is not to rely on
74555         locale-sensitive case-conversion.
74556         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
74557         (lookup_word): Use c_toupper in place of toupper.
74558         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
74559         Reported by Vefa Bicakci <bicave@superonline.com> in
74560         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
74561         * modules/getdate (Depends-on): Add c-ctype.
74563 2008-08-02  Bruno Haible  <bruno@clisp.org>
74565         * gnulib-tool (func_import): When updating or creating a .gitignore
74566         file, prepend each added line with a slash, and ignore leading slashes
74567         from the existing lines.
74568         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74570 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74572         Portability fix for GNU make 3.79.1.
74573         * top/GNUmakefile: Avoid 'else COND', which older GNU make
74574         versions do not understand.
74576 2008-08-01  Bruno Haible  <bruno@clisp.org>
74578         Work around bug of HP-UX 10.20 cc with -0.0 literal.
74579         * tests/test-isnanf.h (zero): New variable.
74580         (main): Avoid literal -0.0f.
74581         * tests/test-isnand.h (zero): New variable.
74582         (main): Avoid literal -0.0.
74583         * tests/test-isnanl.h (zero): New variable.
74584         (main): Avoid literal -0.0L.
74585         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
74586         (test_float, test_double, test_long_double): Avoid literals -0.0f,
74587         -0.0, -0.0L.
74588         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
74589         (test_signbitd): Avoid literal -0.0.
74590         (test_signbitl): Avoid literal -0.0L.
74591         * tests/test-ceilf1.c (zero): New variable.
74592         (main): Avoid literal -0.0f.
74593         * tests/test-ceill.c (zero): New variable.
74594         (main): Avoid literal -0.0L.
74595         * tests/test-floorf1.c (zero): New variable.
74596         (main): Avoid literal -0.0f.
74597         * tests/test-floorl.c (zero): New variable.
74598         (main): Avoid literal -0.0L.
74599         * tests/test-roundf1.c (zero): New variable.
74600         (main): Avoid literal -0.0f.
74601         * tests/test-round1.c (zero): New variable.
74602         (main): Avoid literal -0.0.
74603         * tests/test-roundl.c (zero): New variable.
74604         (main): Avoid literal -0.0L.
74605         * tests/test-truncf1.c (zero): New variable.
74606         (main): Avoid literal -0.0f.
74607         * tests/test-trunc1.c (zero): New variable.
74608         (main): Avoid literal -0.0.
74609         * tests/test-truncl.c (zero): New variable.
74610         (main): Avoid literal -0.0L.
74611         * tests/test-frexp.c (zero): New variable.
74612         (main): Avoid literal -0.0.
74613         * tests/test-frexpl.c (zero): New variable.
74614         (main): Avoid literal -0.0L.
74615         * tests/test-ldexpl.c (zero): New variable.
74616         (main): Avoid literal -0.0L.
74617         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74618         (zerod, zerol): New variables.
74619         (test_function): Avoid literals -0.0, -0.0L.
74620         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74621         (zerod, zerol): New variables.
74622         (test_function): Avoid literals -0.0, -0.0L.
74623         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74624         (zerod, zerol): New variables.
74625         (test_function): Avoid literals -0.0, -0.0L.
74626         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74627         (zerod, zerol): New variables.
74628         (test_function): Avoid literals -0.0, -0.0L.
74629         * tests/test-strtod.c (zero): New variable.
74630         (main): Avoid literal -0.0.
74631         Reported by Jonathan C. Patschke <jp@centtech.com>.
74633 2008-07-31  Jim Meyering  <meyering@redhat.com>
74635         sha256.h: correct definition of SHA224_DIGEST_SIZE
74636         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
74637         Reported by Paulie Pena IV <paulie4@gmail.com>.
74638         Define as 224 / 8, rather than as a literal.
74639         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
74640         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
74641         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
74643 2008-07-31  Bruno Haible  <bruno@clisp.org>
74645         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
74646         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
74647         Reported by Jonathan Patschke <jp@centtech.com>.
74649 2008-07-31  Bruno Haible  <bruno@clisp.org>
74651         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
74652         Reported by Paolo Bonzini <bonzini@gnu.org>.
74654 2008-07-30  Eric Blake  <ebb9@byu.net>
74656         test-strtod: allow compilation without -lm
74657         * tests/test-strtod.c (main): Avoid link dependence on fabs.
74658         Reported by Dennis Clarke <blastwave@gmail.com>.
74660 2008-07-28  Jim Meyering  <meyering@redhat.com>
74662         bootstrap: work also when there are no .po files in po/
74663         * build-aux/bootstrap (update_po_files): Complete the change
74664         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
74666 2008-07-27  Jim Meyering  <meyering@redhat.com>
74668         * users.txt: Add zile.
74670 2008-07-26  Ben Pfaff  <blp@gnu.org>
74672         Add missing dependencies on new m4/exponent[fdl].m4 files.
74673         * modules/isnanf-nolibm: Add m4/exponentf.m4.
74674         * modules/isnand-nolibm: Add m4/exponentd.m4.
74675         * modules/isnanl-nolibm: Add m4/exponentl.m4.
74676         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
74677         m4/isnan[fdl].m4, because the macros actually used moved.
74678         Reported by Jim Meyering.
74680 2008-07-14  Ben Pfaff  <blp@gnu.org>
74682         Add isinf module.
74683         * lib/isinf.c: New file.
74684         * lib/math.in.h: Define isinf macro if we have decided to replace
74685         it.
74686         * m4/isinf.m4: New file.
74687         * m4/math_h.m4: Initialize and substitute variables for isinf
74688         module.
74689         * modules/isinf: New file.
74690         * modules/isinf-tests: New file.
74691         * modules/math: Add substitutions for new module.
74692         * tests/test-isinf.c: New file.
74693         * doc/posix-functions/isinf.texi: Mention new module.
74694         * MODULES.html.sh: Mention new module.
74696 2008-07-14  Ben Pfaff  <blp@gnu.org>
74698         Factor out some macros for use by additional modules.
74699         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
74700         exponentf.m4.
74701         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
74702         exponentd.m4.
74703         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
74704         file exponentl.m4.
74705         * m4/exponentf.m4: New file.
74706         * m4/exponentd.m4: New file.
74707         * m4/exponentl.m4: New file.
74708         * modules/isnanf: Use new file m4/exponentf.m4.
74709         * modules/isnand: Use new file m4/exponentd.m4.
74710         * modules/isnanl: Use new file m4/exponentl.m4.
74712 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
74714         mktime.c: normalize tp->tm_isdst value to -1/0/1.
74715         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
74716         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
74717         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
74719         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
74720         readlink on platforms without PATH_MAX.
74722 2008-07-21  Eric Blake  <ebb9@byu.net>
74724         Warn, not fail, on stale version.
74725         * top/GNUmakefile (_curr-ver): Tone down previous patch.
74727         Don't allow installation with stale devel version number.
74728         * top/GNUmakefile (_is-install-target): New macro.
74729         (_curr-ver): Forbid installation with stale version number.
74731 2008-07-20  Bruno Haible  <bruno@clisp.org>
74733         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
74734         TESTS_ENVIRONMENT.
74735         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
74737 2008-07-20  Bruno Haible  <bruno@clisp.org>
74739         * lib/c-stack.h (c_stack_action): Add documentation.
74740         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
74742 2008-07-20  Bruno Haible  <bruno@clisp.org>
74744         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
74745         * modules/readlink (License): Likewise.
74747 2008-07-17  Eric Blake  <ebb9@byu.net>
74749         * modules/c-stack (Link): Fix typo.
74751         Make c-stack use libsigsegv, when available.
74752         * modules/c-stack (Depends-on): Add libsigsegv.
74753         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
74754         needed.
74755         * lib/c-stack.c (SIGSTKSZ): Define fallback.
74756         (segv_handler, overflow_handler, c_stack_action)
74757         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
74758         implementation when libsigsegv is available, but only when using
74759         the library is necessary.
74760         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
74761         comment, explaining why XSI check fails on Linux.
74762         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
74763         * tests/test-c-stack2.sh: Tweak skip message.
74764         * NEWS: Document new link-time requirements.
74766 2008-07-16  Eric Blake  <ebb9@byu.net>
74768         c-stack: Expose false positives when not using libsigsegv.
74769         * modules/c-stack-tests (Files): Expand test.
74770         * tests/test-c-stack.c (main): Add means to conditionally trigger
74771         non-overflow SIGSEGV.
74772         * tests/test-c-stack2.sh: New file.
74774 2008-07-14  Bruno Haible  <bruno@clisp.org>
74776         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
74777         Reported by Eric Blake.
74779 2008-07-14  Sam Steingold  <sds@gnu.org>
74780             Bruno Haible  <bruno@clisp.org>
74782         New module libsigsegv.
74783         * modules/libsigsegv: New file.
74784         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
74785         modifications.
74786         * MODULES.html.sh (Signal handling): New section.
74788 2008-07-14  Bruno Haible  <bruno@clisp.org>
74790         * modules/unictype/ctype-* (Description): Add the word "function".
74791         Improves the resulting doc in MODULES.html.
74793 2008-07-12  Ben Pfaff  <blp@gnu.org>
74795         Add longlong module.
74796         * modules/longlong: New file.
74798 2008-07-12  Bruno Haible  <bruno@clisp.org>
74800         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
74801         to empty.
74803 2008-07-10  Ben Pfaff  <blp@gnu.org>
74805         Add isnan module.
74806         * doc/posix-functions/isnan.texi: Mention new module.
74807         * lib/math.in.h: Define isnan macro if we have decided to replace
74808         it.
74809         * m4/isnan.m4: New file.
74810         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
74811         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
74812         also.
74813         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
74814         redundancy.
74815         * m4/math_h.m4: Initialize and substitute variables for isnan
74816         module.
74817         * modules/isnan: New file.
74818         * modules/isnan-tests: New file.
74819         * modules/math: Add substitutions for new module.
74820         * tests/test-isnan.c: New file.
74821         * MODULES.html.sh: Mention new module.
74823 2008-07-10  Ben Pfaff  <blp@gnu.org>
74825         Add isnanf module.
74826         * lib/isnanf.m4: New file.
74827         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
74828         (gl_HAVE_ISNANF_IN_LIBM): New macro.
74829         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
74830         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
74831         * modules/isnanf: New file.
74832         * modules/isnanf-tests: New file.
74833         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
74834         files.
74835         * tests/test-isnanf-nolibm.c: factored most of its contents into
74836         new file tests/test-isnanf.h.
74837         * tests/test-isnanf.h: New file.
74838         * tests/test-isnanf.c: New file.
74839         * MODULES.html.sh: Mention new module.
74840         * doc/glibc-functions/isnanf.texi: Mention new module.
74842 2008-07-10  Ben Pfaff  <blp@gnu.org>
74844         Add isnand module.
74845         * lib/isnand.h: New file.
74846         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
74847         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
74848         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
74849         functionality also.
74850         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
74851         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
74852         (gl_HAVE_ISNAND_IN_LIBM): New macro.
74853         * modules/isnand: New file.
74854         * modules/isnand-tests: New file.
74855         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
74856         files.
74857         * tests/test-isnand-nolibm.c: factored most of its contents into
74858         new file tests/test-isnand.h.
74859         * tests/test-isnand.h: New file.
74860         * tests/test-isnand.c: New file.
74861         * MODULES.html.sh: Mention new module.
74863 2008-07-10  Ben Pfaff  <blp@gnu.org>
74865         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
74866         * lib/isnand.h: Rename lib/isnand-nolibm.h.
74867         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
74868         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
74869         * modules/isnanf-nolibm: Update references to renamed files.
74870         * modules/isnand-nolibm: Likewise.
74871         * modules/isnanf-nolibm-tests: Likewise.
74872         * modules/isnand-nolibm-tests: Likewise.
74873         * lib/frexp.c: Likewise.
74874         * lib/isfinite.c: Likewise.
74875         * lib/signbitd.c: Likewise.
74876         * lib/signbitf.c: Likewise.
74877         * lib/vasnprintf.c: Likewise.
74878         * tests/test-ceilf1.c: Likewise.
74879         * tests/test-ceilf2.c: Likewise.
74880         * tests/test-floorf1.c: Likewise.
74881         * tests/test-floorf2.c: Likewise.
74882         * tests/test-frexp.c: Likewise.
74883         * tests/test-round1.c: Likewise.
74884         * tests/test-round2.c: Likewise.
74885         * tests/test-roundf1.c: Likewise.
74886         * tests/test-strtod.c: Likewise.
74887         * tests/test-trunc1.c: Likewise.
74888         * tests/test-trunc2.c: Likewise.
74889         * tests/test-truncf1.c: Likewise.
74890         * tests/test-truncf2.c: Likewise.
74891         * NEWS: Mention the renamed header files.
74893 2008-07-11  Jim Meyering  <meyering@redhat.com>
74895         vc-list-files: make the last-resort awk code more portable
74896         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
74897         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
74898         does not support it.
74900 2008-07-10  Eric Blake  <ebb9@byu.net>
74902         Work with tar's bootstrap.
74903         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
74904         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
74905         an m4 comment.
74907 2008-07-09  Jim Meyering  <meyering@redhat.com>
74909         posix-shell.m4: fix typo that made this test malfunction
74910         * m4/posix-shell.m4: Remove capitalization in variable name.
74912 2008-07-08  Bruno Haible  <bruno@clisp.org>
74914         * m4/onceonly.m4: Update comments.
74915         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74917 2008-07-04  Jim Meyering  <meyering@redhat.com>
74919         * users.txt: Add vc-dwim.
74920         (bison, coreutils): Use the gitweb URL.
74922 2008-07-03  Jim Meyering  <meyering@redhat.com>
74924         * users.txt: Add libffcall.  From Sam Steingold.
74926 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
74928         getdate.y: do not ignore TZ with relative day, month or year offset
74929         * lib/getdate.y (get_date): Move the tz-handling block to follow the
74930         relative-date-handling, since otherwise, the latter would clobber the
74931         sole output (an updated Start value) of the tz-handling block.
74932         * tests/test-getdate.c: Tests for the fix
74934 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74936         Recognize 'foo_LIBRARIES += libgnu.a'.
74937         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
74938         makefile snippet has already specified an installation location,
74939         also using '+='.
74941 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
74943         getdate.y: factor out common actions
74944         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
74945         Use them in place of open-coded actions.
74947 2008-07-01  Simon Josefsson  <simon@josefsson.org>
74949         Add self-test for getdate module.
74950         * modules/getdate-tests: New file.
74951         * tests/test-getdate.c: New file.
74953 2008-06-29  Bruno Haible  <bruno@clisp.org>
74955         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
74956         .gitignore.
74957         Reported by Sylvain Beucler <beuc@beuc.net>.
74959 2008-06-29  Bruno Haible  <bruno@clisp.org>
74961         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
74962         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
74964 2008-06-29  Bruno Haible  <bruno@clisp.org>
74966         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
74967         EXTRA_DIST.
74968         Reported by Sylvain Beucler <beuc@beuc.net>.
74970 2008-06-26  Jim Meyering  <meyering@redhat.com>
74972         make several modules depend on the "open" module
74973         This provides slightly increased consistency when opening-for-write
74974         the name of a non-directory spelled with a trailing slash.
74975         * modules/chdir-safer: Likewise.
74976         * modules/chown: Likewise.
74977         * modules/clean-temp: Likewise.
74978         * modules/copy-file: Likewise.
74979         * modules/fchdir: Likewise.
74980         * modules/fcntl-safer: Likewise.
74981         * modules/pipe: Likewise.
74982         * modules/utime: Likewise.
74983         Prompted by Eric Blake and Bruno Haible.
74985 2008-06-24  Andreas Schwab  <schwab@suse.de>
74987         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
74988         literals can be used as initializers for global variables.
74990 2008-06-23  Eric Blake  <ebb9@byu.net>
74992         Make gnulib-cache.m4 easier to diff.
74993         * gnulib-tool (func_import): Allow newlines when reading cached
74994         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
74996 2008-06-23  Bruno Haible  <bruno@clisp.org>
74998         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
74999         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
75000         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
75001         m4/signalblocking.m4.
75002         (gl_PREREQ_SIGACTION): Don't invoke it.
75003         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
75004         gl_PREREQ_SIG_HANDLER_H.
75005         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
75006         Don't check for sigaction here.
75008 2008-06-23  Bruno Haible  <bruno@clisp.org>
75010         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
75011         (install_handlers): Don't set the SA_RESETHAND flag.
75013 2008-06-23  Bruno Haible  <bruno@clisp.org>
75015         * m4/sigaction.m4: Comment fixes.
75016         * lib/signal.in.h: Likewise.
75018 2008-06-23  Eric Blake  <ebb9@byu.net>
75020         Fix typo.
75021         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
75023         Avoid SA_ namespace.
75024         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
75025         Reported by Ralf Wildenhues.
75027         Avoid test failure due to SA_RESTORER.
75028         * tests/test-sigaction.c (SA_MASK): New macro.
75029         (main): Avoid failing due to extension flags being set.
75030         Reported by Jim Meyering.
75032         Revert use of sig-handler.h in sigprocmask.c.
75033         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
75034         it requires the existence of struct sigaction.
75035         * lib/sigprocmask.c (handler_t): Restore typedef.
75036         (rpl_signal, old_handlers): Use local type.
75038 2008-06-22  Bruno Haible  <bruno@clisp.org>
75040         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
75041         conditionally.
75042         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
75044 2008-06-22  Bruno Haible  <bruno@clisp.org>
75046         * doc/posix-functions/siginterrupt.texi: Move note.
75048         * lib/signal.in.h (SA_RESTART): New macro.
75049         * lib/sigaction.c: Update comment.
75051         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
75053         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
75054         (gl_PREREQ_SIGPROCMASK): Invoke it.
75055         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
75057         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
75059         * lib/sigprocmask.c: Update a comment.
75061 2008-06-21  Eric Blake  <ebb9@byu.net>
75063         Use sigaction module rather than signal().
75064         * modules/c-stack (Depends-on): Add sigaction.
75065         * modules/fatal-signal (Depends-on): Likewise.
75066         * modules/nanosleep (Depends-on): Likewise.
75067         * modules/sigprocmask (Files): Add sig-handler.h.
75068         * modules/sigaction (Files): Likewise.
75069         * lib/sig-handler.h (get_handler): New file, suggested by Paul
75070         Eggert.
75071         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
75072         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
75073         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
75074         (init_fatal_signals): Likewise.
75075         * lib/nanosleep.c (rpl_nanosleep): Likewise.
75076         (siginterrupt): Delete fallback.
75077         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
75078         instead.
75079         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
75080         siginterrupt.
75082         New module sigaction, for mingw.
75083         * modules/sigaction: New module...
75084         * modules/sigaction-tests: ...and its test.
75085         * m4/sigaction.m4: New file.
75086         * lib/sigaction.c: Likewise.
75087         * tests/test-sigaction.c: Likewise.
75088         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
75089         * modules/signal (Makefile.am): Likewise.
75090         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
75091         needed.
75092         * doc/posix-headers/signal.texi (signal.h): Mention provided
75093         types.
75094         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
75095         that sigaction is preferable.
75096         * doc/posix-functions/sigaction.texi (sigaction): Mention new
75097         module.
75098         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75099         sigaction.
75101         Improve robustness of sigprocmask by overriding signal.
75102         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
75103         is in use.
75104         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
75105         (SIGKILL, SIGSTOP): Provide fallbacks.
75106         (rpl_signal): Implement.
75107         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
75108         signal can be called inside handlers.
75110         Fix nanosleep module on mingw.
75111         * modules/nanosleep (Depends-on): Add sys_select.
75112         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
75114         Fix licensing of sigprocmask.
75115         * modules/raise (License): Relicense as LGPL.
75117 2008-06-21  Bruno Haible  <bruno@clisp.org>
75119         * lib/propername.c (proper_name_utf8): Don't use the transliterated
75120         result if it contains question marks.
75121         Reported by Michael Geng <linux@michaelgeng.de>.
75123 2008-06-19  Bruno Haible  <bruno@clisp.org>
75125         Fix CVS-ism.
75126         * doc/gnulib.texi: Include updated-stamp.texi.
75127         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
75128         (updated-stamp.texi): New rule.
75129         (gnulib.info): Depend on it.
75130         * doc/.gitignore: Add updated-stamp.texi.
75131         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
75133 2008-06-19  Bruno Haible  <bruno@clisp.org>
75135         * doc/Makefile (gnulib.info): Update and simplify dependencies.
75136         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
75138 2008-06-19  Eric Blake  <ebb9@byu.net>
75140         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
75141         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
75142         Reported by Stepan Kasal.
75144 2008-06-18  Bruno Haible  <bruno@clisp.org>
75146         * lib/fatal-signal.c (init_fatal_signals): Add comment.
75147         Reported by Eric Blake.
75149 2008-06-18  Eric Blake  <ebb9@byu.net>
75151         Work around cygwin 1.5.25 strsignal bug.
75152         * tests/test-strsignal.c: Allow for const char *.
75153         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
75155 2008-06-18  Simon Josefsson  <simon@josefsson.org>
75157         * users.txt: Update URL to article and add author/date
75158         information.
75160 2008-06-17  Bruno Haible  <bruno@clisp.org>
75162         New macro gl_DISABLE_THREADS.
75163         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
75164         if the user did not pass --enable-threads or --disable-threads option.
75165         (gl_DISABLE_THREADS): New macro.
75166         Reported by Eric Blake <ebb9@byu.net>.
75168 2008-06-17  Bruno Haible  <bruno@clisp.org>
75170         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
75171         when the macro ignores it.
75172         Based on a patch by Eric Blake <ebb9@byu.net>.
75174 2008-06-17  Bruno Haible  <bruno@clisp.org>
75176         * modules/tls (License): Change to LGPLv2+.
75177         Reported by Eric Blake.
75179 2008-06-17  Eric Blake  <ebb9@byu.net>
75181         Simplify c-stack prerequisites.
75182         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
75183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
75184         no longer requires <ucontext.h> to exist.  Optimize setrlimit
75185         check.
75186         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
75187         <sys/resource.h>.
75189         Move c-stack test into testsuite.
75190         * modules/c-stack-tests: New file.
75191         * lib/c-stack.c [DEBUG]: Move test program...
75192         * tests/test-c-stack.c: ...into this new file.  Skip rather than
75193         fail test if sigaltstack is lacking.
75194         * tests/test-c-stack.sh: New driver file.
75196 2008-06-16  Eric Blake  <ebb9@byu.net>
75198         Use raise module consistently.
75199         * modules/fatal-signal (Depends-on): Add raise.
75200         * modules/sigprocmask (Depends-on): Likewise.
75201         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
75202         * lib/sigprocmask.c (sigprocmask): Likewise.
75203         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
75204         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
75206         Fix compliance bug in sigpending.
75207         * lib/sigprocmask.c (sigpending): Return pending array via
75208         parameter, not return value.
75210 2008-06-14  Eric Blake  <ebb9@byu.net>
75212         Improve obstack-printf test code.
75213         * tests/test-obstack-printf.c (test_function): Fix comment, and
75214         simplify usage of obstack_* in macros.  Add a test for coverage.
75215         Reported by Bruno Haible.
75217 2008-06-14  Bruno Haible  <bruno@clisp.org>
75219         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
75220         array size as a constant, not as a const variable.
75221         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
75222         AC_USE_SYSTEM_EXTENSIONS.
75223         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
75224         Test whether the obstack_printf function actually exists.
75225         * modules/obstack-printf (Depends-on): Add extensions.
75226         (Include): Remove obstack.h.
75227         * modules/obstack-printf-posix (Depends-on): Add extensions.
75228         (Include): Remove obstack.h.
75230 2008-06-13  Eric Blake  <ebb9@byu.net>
75232         Add obstack-printf and obstack-printf-posix modules.
75233         * modules/obstack-printf: New file.
75234         * modules/obstack-printf-posix: Likewise.
75235         * MODULES.html.sh (Misc): Mention them.
75236         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
75237         Likewise.
75238         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
75239         Likewise.
75240         * modules/stdio (Makefile.am): Accomodate new modules.
75241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
75242         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
75243         Declare.
75244         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
75245         functions.
75246         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
75247         (gl_REPLACE_OBSTACK_PRINTF): New macros
75248         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
75249         * tests/test-obstack-printf.c: New file.
75250         * modules/obstack-printf-tests: Likewise.
75251         * modules/obstack-printf-posix-tests: Likewise.
75253 2008-06-11  Bruno Haible  <bruno@clisp.org>
75255         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
75256         * lib/open.c: Include errno.h.
75257         (open): Fail when attempting to write to a file that has a trailing
75258         slash.
75259         * tests/test-open.c (main): Test against trailing slash bug.
75260         * doc/posix-functions/open.texi: Mention the trailing slash bug.
75262 2008-06-10  Bruno Haible  <bruno@clisp.org>
75264         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
75265         for $? to work inside the trap command, with various /bin/sh-s.
75266         * tests/test-vc-list-files-cvs.sh: Likewise.
75268 2008-06-10  Bruno Haible  <bruno@clisp.org>
75270         * lib/acl-internal.h: Don't include gettext.h here.
75271         * lib/set-mode-acl.c: Include gettext.h here.
75272         * lib/copy-acl.c: Likewise.
75274 2008-06-10  Bruno Haible  <bruno@clisp.org>
75276         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
75277         * lib/wait-process.c (wait_subprocess): Likewise.
75278         * lib/execute.h (execute): Add termsigp argument.
75279         * lib/execute.c (execute): Likewise.
75280         * lib/csharpcomp.c (compile_csharp_using_pnet,
75281         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
75282         * lib/csharpexec.c (execute_csharp_using_pnet,
75283         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
75284         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
75285         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
75286         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
75287         is_jikes_present): Update.
75288         * lib/javaexec.c (execute_java_class): Update.
75289         * lib/javaversion.c (execute_and_read_line): Update.
75290         * NEWS: Document the changes.
75291         Reported by Eric Blake.
75293 2008-06-10  Eric Blake  <ebb9@byu.net>
75295         Add missing include.
75296         * tests/test-strstr.c (includes): Add <signal.h>.
75297         * tests/test-strcasestr.c (includes): Likewise.
75298         * tests/test-memmem.c (includes): Likewise.
75300 2008-06-10  Bruno Haible  <bruno@clisp.org>
75302         * lib/wait-process.c (wait_subprocess): Add an assertion.
75304 2008-06-10  Bruno Haible  <bruno@clisp.org>
75306         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
75308 2008-06-10  Bruno Haible  <bruno@clisp.org>
75310         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
75311         using alarm().
75312         * tests/test-strcasestr.c (main): Likewise.
75313         * tests/test-strstr.c (main): Likewise.
75315 2008-06-09  Bruno Haible  <bruno@clisp.org>
75317         Work around the Solaris 10 ACE ACLs ABI change.
75318         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
75319         declare if ACL_NO_TRIVIAL is present.
75320         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
75321         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
75322         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
75323         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
75324         define if ACL_NO_TRIVIAL is present.
75325         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
75326         and use the current ABI.
75327         (file_has_acl): Use same #if condition as elsewhere.
75328         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
75329         in use, and use the current ABI.
75330         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
75331         Reported by Jim Meyering.
75333 2008-06-09  Eric Blake  <ebb9@byu.net>
75335         Work around environments that (stupidly) ignore SIGALRM.
75336         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
75337         before using alarm().
75338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
75340         Reported by Ian Beckwith <ianb@erislabs.net>.
75342         Produce autobuild blurb earlier in log.
75343         * modules/autobuild (configure.ac-early): Move AB_INIT here.
75345 2008-06-09  Jim Meyering  <meyering@redhat.com>
75346         and Ondřej Vašík  <ovasik@redhat.com>
75348         utimens.c: correct kernel bug work-around
75349         Ondřej Vašík found that the invalid return value of 280 indicates
75350         failure, not success, and the kernel bug we're trying to work
75351         around affects not just the utimensat call, but also the fallback
75352         futimens call.
75353         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
75354         not success.
75355         [HAVE_FUTIMENS]: Use the same work-around, here.
75357 2008-06-09  Jim Meyering  <meyering@redhat.com>
75359         add more guards around definition of ACE_-related code
75360         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
75361         ALLOW and ACE_OWNER are also defined.
75363 2008-06-08  Bruno Haible  <bruno@clisp.org>
75365         * lib/acl-internal.h: Add me as co-author.
75366         * lib/file-has-acl.c: Likewise.
75367         * lib/set-mode-acl.c: Likewise.
75368         * lib/copy-acl.c: Likewise.
75370 2008-06-08  Bruno Haible  <bruno@clisp.org>
75372         Add support for AIX ACLs.
75373         * lib/acl-internal.h (acl_nontrivial): New declaration.
75374         * lib/file-has-acl.c (acl_nontrivial): New function.
75375         (file_has_acl): Add implementation using AIX 4 ACL API.
75376         * lib/set-mode-acl.c (qset_acl): Likewise.
75377         * lib/copy-acl.c (qcopy_acl): Likewise.
75379 2008-06-08  Bruno Haible  <bruno@clisp.org>
75381         Add support for HP-UX ACLs.
75382         * lib/acl-internal.h (acl_nontrivial): New declaration.
75383         * lib/file-has-acl.c (acl_nontrivial): New function.
75384         (file_has_acl): Add implementation using HP-UX 11 ACL API.
75385         * lib/set-mode-acl.c (qset_acl): Likewise.
75386         * lib/copy-acl.c (qcopy_acl): Likewise.
75388 2008-06-08  Bruno Haible  <bruno@clisp.org>
75390         Add support for Cygwin ACLs.
75391         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
75392         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
75393         the chmod_or_fchmod call.
75394         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
75396 2008-06-08  Bruno Haible  <bruno@clisp.org>
75398         Fix bug with setuid modes in Solaris 10+ code.
75399         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
75400         succeeded, when the mode contains some special bits.
75402 2008-06-08  Bruno Haible  <bruno@clisp.org>
75404         Add support for Solaris 7..10 ACLs.
75405         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
75406         declarations.
75407         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
75408         functions.
75409         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
75410         * lib/set-mode-acl.c (qset_acl): Likewise.
75411         * lib/copy-acl.c (qcopy_acl): Likewise.
75413 2008-06-08  Bruno Haible  <bruno@clisp.org>
75415         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
75416         declaration.
75417         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
75418         (acl_access_nontrivial): Remove MacOS X case.
75419         (file_has_acl): Use acl_extended_nontrivial.
75420         * lib/copy-acl.c (qcopy_acl): Likewise.
75422 2008-06-08  Bruno Haible  <bruno@clisp.org>
75424         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
75426 2008-06-08  Jim Meyering  <meyering@redhat.com>
75428         * modules/acl (Maintainer): Add Bruno Haible.
75430 2008-06-07  Bruno Haible  <bruno@clisp.org>
75432         Improve support for Tru64 ACLs.
75433         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
75434         ACL on OSF/1.
75436 2008-06-07  Bruno Haible  <bruno@clisp.org>
75438         Add support for MacOS X ACLs.
75439         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
75440         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
75441         * lib/set-mode-acl.c (qset_acl): Likewise.
75442         * lib/copy-acl.c (qcopy_acl): Likewise.
75444 2008-06-07  Bruno Haible  <bruno@clisp.org>
75446         Fix memory leak introduced on 2008-05-22.
75447         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
75448         use.
75450 2008-06-07  Bruno Haible  <bruno@clisp.org>
75452         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
75453         to construct an empty ACL.
75455 2008-06-07  Bruno Haible  <bruno@clisp.org>
75457         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
75458         precisely.
75459         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
75461 2008-06-07  Bruno Haible  <bruno@clisp.org>
75463         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
75464         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
75466 2008-06-07  Bruno Haible  <bruno@clisp.org>
75468         * doc/posix-functions/_setjmp.texi: Explain the use of this function
75469         regardless of POSIX.
75470         * doc/posix-functions/_longjmp.texi: Likewise.
75471         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
75472         SystemV platform in this case.
75474 2008-06-06  Eric Blake  <ebb9@byu.net>
75476         Document abort() bugs.
75477         * doc/posix-functions/abort.texi (abort): Mention anomalies.
75479         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
75480         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
75481         sigsetjmp.
75482         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
75483         siglongjmp, but only as a macro.
75484         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
75485         is obsolete.
75486         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
75488         Tweak documentation to cover cygwin argz bugs.
75489         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
75490         argz bug fix; no code change needed since no cygwin releases
75491         occurred between the last fix and the bug being tested.
75492         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
75493         module and recently fixed cygwin bugs.
75494         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
75495         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
75496         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
75497         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
75498         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
75499         Likewise.
75500         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
75501         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
75502         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
75503         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
75504         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
75505         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
75506         Likewise.
75508         Avoid gcc warning on cygwin.
75509         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
75510         !ACL_NO_TRIVIAL]: Avoid unused variable.
75512 2008-06-05  Eric Blake  <ebb9@byu.net>
75514         Be tolerant of UNKNOWN version in gnulib-tool test dir.
75515         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
75516         git-version-gen fails to come up with a version.
75517         Reported by Simon Josefsson.
75519 2008-06-05  Jim Meyering  <meyering@redhat.com>
75520             Paul Eggert  <eggert@cs.ucla.edu>
75522         utimens.c: work around a probable Linux kernel bug
75523         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
75524         appears to be a kernel bug that causes utimensat to return 280
75525         instead of 0, indicating success.
75527 2008-06-04  Bruno Haible  <bruno@clisp.org>
75529         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
75530         2008-06-01 commit.
75532 2008-06-04  Bruno Haible  <bruno@clisp.org>
75534         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
75535         * lib/file-has-acl.c (acl_access_nontrivial): New function.
75536         (file_has_acl): Use it. Save errno afterwards.
75537         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
75539 2008-06-03  Bruno Haible  <bruno@clisp.org>
75541         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
75542         draft code. Simplify #ifs.
75543         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
75544         Put Solaris code after POSIX-draft code. Fix comments regarding
75545         Solaris 10, HP-UX. Mention Cygwin.
75546         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
75548 2008-06-03  Eric Blake  <ebb9@byu.net>
75550         Provide fallback for older kernels.
75551         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
75552         Provide runtime fallback if kernel lacks support.
75553         Reported by Mike Frysinger.
75555 2008-06-02  Bruno Haible  <bruno@clisp.org>
75557         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
75558         it exists.
75560 2008-06-02  Bruno Haible  <bruno@clisp.org>
75562         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
75563         * lib/copy-acl.c (qcopy_acl): Update comment.
75565 2008-06-02  Bruno Haible  <bruno@clisp.org>
75567         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
75568         like ACL APIs.
75570 2008-06-02  Bruno Haible  <bruno@clisp.org>
75572         * tests/test-file-has-acl.sh: Use different code for Cygwin.
75573         * tests/test-set-mode-acl.sh: Likewise.
75574         * tests/test-copy-acl.sh: Likewise.
75575         * tests/test-copy-file.sh: Likewise.
75577 2008-06-02  Bruno Haible  <bruno@clisp.org>
75579         * tests/test-file-has-acl.sh: Remove unused code.
75581 2008-06-01  Bruno Haible  <bruno@clisp.org>
75583         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
75584         (copy_acl): Just a wrapper around qcopy_acl that emits the error
75585         messages.
75586         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
75588 2008-06-01  Bruno Haible  <bruno@clisp.org>
75590         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
75591         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
75592         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
75593         APIs.
75594         * modules/acl-tests (configure.ac): Remove tests now contained in
75595         m4/acl.m4.
75597 2008-06-02  Jim Meyering  <meyering@redhat.com>
75599         announce-gen: use a better key-server host name
75600         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
75601         it may be more consistently reliable.  Suggested by Werner Koch
75602         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
75604 2008-06-01  Bruno Haible  <bruno@clisp.org>
75606         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
75607         Reported by Voroskoi Andras <voroskoi@gmail.com>.
75609 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
75611         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
75613 2008-06-01  Bruno Haible  <bruno@clisp.org>
75615         New ACL tests.
75616         * tests/test-file-has-acl.sh: New file.
75617         * tests/test-file-has-acl.c: New file.
75618         * tests/test-set-mode-acl.sh: New file.
75619         * tests/test-set-mode-acl.c: New file.
75620         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
75621         * tests/test-copy-acl.c: New file.
75622         * modules/acl-tests: New file, based on modules/copy-file-tests.
75623         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
75624         (Depends-on): Add acl-tests.
75625         (configure.ac): Remove checks.
75626         (Makefile.am): Don't create test-sameacls program here any more.
75628 2008-06-01  Bruno Haible  <bruno@clisp.org>
75630         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
75631         * tests/test-sameacls.c: Include progname.h.
75632         (main): Invoke set_program_name. Portability fixes for MacOS X,
75633         Solaris, HP-UX.
75635 2008-06-01  Bruno Haible  <bruno@clisp.org>
75637         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
75638         function.
75639         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
75641 2008-06-01  Bruno Haible  <bruno@clisp.org>
75643         * modules/rpmatch (Depends-on): Add strdup.
75645 2008-06-01  Bruno Haible  <bruno@clisp.org>
75647         * lib/pipe.c: Include unistd-safer.h.
75648         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
75649         * modules/pipe (Depends-on): Add unistd-safer.
75651 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75653         * modules/autobuild (configure.ac): Call AB_INIT.
75655 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75657         * tests/test-getaddrinfo.c: Don't print debug messages by default.
75658         Suggested by Bruno Haible <bruno@clisp.org>.
75660 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75662         * tests/test-base64.c: Cast size_t to unsigned long when invoking
75663         printf.  Use %lu instead of %d.  Reported by Bruno Haible
75664         <bruno@clisp.org>.
75666 2008-05-29  Eric Blake  <ebb9@byu.net>
75668         Prefer new POSIX 200x interfaces over futimesat.
75669         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
75670         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
75671         when available.
75672         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
75674 2008-05-28  Bruno Haible  <bruno@clisp.org>
75676         * modules/stpcpy (License): Change to LGPLv2+.
75677         Requested by David Lutterkort <dlutter@redhat.com>.
75679 2008-05-27  Bruno Haible  <bruno@clisp.org>
75681         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
75682         current mingw.
75683         Reported by Jose E. Marchesi <jemarch@gnu.org>.
75685 2008-05-27  Bruno Haible  <bruno@clisp.org>
75687         * modules/iconv_open (Link): New section, from module 'iconv'.
75688         * modules/striconv (Link): Likewise.
75689         * modules/striconveh (Link): Likewise.
75690         * modules/xstriconv (Link): Likewise.
75691         * modules/unicodeio (Link): Likewise.
75692         * modules/propername (Link): Likewise.
75693         Reported by Jim Meyering.
75695 2008-05-26  Jim Meyering  <meyering@redhat.com>
75697         sha256: do not artificially restrict buffer length to be < 2^32
75698         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
75699         uint32_t to size_t.
75700         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
75701         to match.
75703         avoid unaligned access errors, e.g., on sparc
75704         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
75705         direct access through a possibly-unaligned uint64* pointer.
75706         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
75707         direct access through a possibly-unaligned uint32* pointer.
75708         Prompted by this patch from Tom "spot" Callaway:
75709         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
75711         sha512.c: fix typo in comment
75712         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
75714 2008-05-25  Bruno Haible  <bruno@clisp.org>
75716         * lib/set-mode-acl.c: Renamed from lib/acl.c.
75717         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
75718         (Makefile.am): Update lib_SOURCES.
75720 2008-05-25  Bruno Haible  <bruno@clisp.org>
75722         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
75724 2008-05-25  Jim Meyering  <meyering@redhat.com>
75726         useless-if-before-free: freed expr may have white-space differences
75727         * build-aux/useless-if-before-free: Recognize cases in which the
75728         freed expression differs from the tested one in embedded white
75729         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
75730         $1 was used, so we can't make any regexp shy.  Improved tests now
75731         detect this.
75733         useless-if-before-free: accept white space in the expression.
75734         * build-aux/useless-if-before-free: For now, any white space
75735         in the expression must be identical in the free argument.
75737         useless-if-before-free: efficiency tweak
75738         * build-aux/useless-if-before-free: Make the expression-matching
75739         regexp "shy".
75740         Make the *outer* regexp shy, not the expr-matching one.
75742         update code-in-comment to accept cast of free arg
75743         * build-aux/useless-if-before-free: Update regexp.
75745 2008-05-25  Bruno Haible  <bruno@clisp.org>
75747         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
75748         * modules/copy-file-tests (Files, Makefile.am): Update.
75749         * tests/test-copy-file.c (func_test_copy): Update.
75751 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
75753         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
75755 2008-05-23  Bruno Haible  <bruno@clisp.org>
75757         Improve support for ACLs on OSF/1.
75758         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
75759         Remove fallback for unknown flavors of ACLs.
75761 2008-05-22  Bruno Haible  <bruno@clisp.org>
75763         Add support for ACLs on OSF/1.
75764         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
75765         replacements.
75766         (acl_free_text): New macro fallback.
75767         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
75768         acl_free.
75769         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
75770         acl_free_text function. Require AC_C_INLINE.
75772 2008-05-22  Bruno Haible  <bruno@clisp.org>
75774         Make copy_acl work on MacOS X 10.5.
75775         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
75776         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
75777         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
75778         If MODE_INSIDE_ACL, don't assume that every system has the same text
75779         representation for ACLs as FreeBSD.
75780         * lib/copy-acl.c (copy_acl): Add support for platforms with
75781         !MODE_INSIDE_ACL.
75782         * lib/file-has-acl.c (file_has_acl): Likewise.
75783         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
75784         FreeBSD, MacOS X, or IRIX, respectively.
75786 2008-05-22  Bruno Haible  <bruno@clisp.org>
75788         * lib/acl.h: Don't include <sys/acl.h>.
75789         (GETACLCNT): Move fallback to lib/acl-internal.h.
75790         * lib/acl-internal.h: Include <sys/acl.h> here.
75791         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
75793 2008-05-22  Bruno Haible  <bruno@clisp.org>
75795         Split off copy_acl function to separate file.
75796         * lib/copy-acl.c: New file, extracted from lib/acl.c.
75797         * lib/acl.c (copy_acl): Moved function to separate file.
75798         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
75799         * modules/acl (Files): Add lib/copy-acl.c.
75800         (Makefiles.am): Augment lib_SOURCES.
75802 2008-05-22  Bruno Haible  <bruno@clisp.org>
75804         * modules/copy-file-tests: New file.
75805         * tests/test-copy-file.sh: New file.
75806         * tests/test-copy-file.c: New file.
75807         * tests/test-copy-file-sameacls.c: New file.
75809 2008-05-22  Eric Blake  <ebb9@byu.net>
75811         Avoid gcc warning.
75812         * tests/test-memcmp.c (main): Pass NULL indirectly.
75814 2008-05-21  Bruno Haible  <bruno@clisp.org>
75816         Add reference doc about ACLs.
75817         * doc/acl-resources.txt: New file.
75818         * doc/acl-cygwin.txt: New file.
75820 2008-05-21  Bruno Haible  <bruno@clisp.org>
75822         Avoid one more warning from gcc.
75823         * lib/vasnprintf.c (IF_LINT): Update comments.
75824         (VASNPRINTF): Use it also for the 'prefix' array initializer.
75826 2008-05-21  Jim Meyering  <meyering@redhat.com>
75828         avoid a warning from gcc
75829         * lib/vasnprintf.c (IF_LINT): Define.
75830         (scale10_round_decimal_long_double):
75831         Use it to avoid a "may be used uninitialized" warning.
75832         (scale10_round_decimal_double): Likewise.
75834 2008-05-21  Simon Josefsson  <simon@josefsson.org>
75836         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
75837         declared.
75839 2008-05-20  Bruno Haible  <bruno@clisp.org>
75841         * tests/test-memcmp.c (main): Test also the sign of the result. Test
75842         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
75844 2008-05-20  Simon Josefsson  <simon@josefsson.org>
75846         * modules/memcmp-tests: New file.
75847         * tests/test-memcmp.c: New file.
75849 2008-05-19  Bruno Haible  <bruno@clisp.org>
75851         * modules/propername (Notice, configure.ac): Put quoted "..." into
75852         --keyword option.
75853         * lib/propername.h: Update comments accordingly.
75854         Reported by Eric Blake.
75856 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
75858         * modules/getpass-gnu (Depends-on): Add fseeko.
75860 2008-05-19  Simon Josefsson  <simon@josefsson.org>
75862         * modules/base64-tests: New file.
75864 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
75866         * lib/base64.c (base64_decode_ctx): If a decode context structure
75867         was passed in use it to ignore newlines.  If a context structure
75868         was _not_ passed in, continue to treat newlines as garbage (this
75869         is the historical behavior).  Formerly base64_decode.
75870         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
75871         takes a decode context structure.
75872         * lib/base64.h (base64_decode): Macro for four-argument calls.
75873         (base64_decode_alloc): Likewise.
75874         * lib/base64.c (base64_decode_ctx): If a decode context structure
75875         was passed in use it to ignore newlines.  If a context structure
75876         was _not_ passed in, continue to treat newlines as garbage (this
75877         is the historical behavior).  Formerly base64_decode.
75878         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
75879         takes a decode context structure.
75880         * lib/base64.h (base64_decode): Macro for four-argument calls.
75881         (base64_decode_alloc): Likewise.
75883 2008-05-19  Jim Meyering  <meyering@redhat.com>
75885         avoid a warning from gcc
75886         * lib/trim.c (IF_LINT): Define.
75887         (trim2): Use it to avoid a "may be used uninitialized" warning.
75889         Fix doc typo.
75890         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
75892 2008-05-19  Bruno Haible  <bruno@clisp.org>
75894         * doc/glibc-functions/getpass.texi: Document limits of other
75895         implementations.
75897 2008-05-19  Simon Josefsson  <simon@josefsson.org>
75898             Bruno Haible <bruno@clisp.org>
75900         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
75902 2008-05-18  Bruno Haible  <bruno@clisp.org>
75904         * modules/propername: New file, from GNU gettext.
75905         * lib/propername.h: New file, from GNU gettext.
75906         * lib/propername.c: New file, from GNU gettext.
75907         * MODULES.html.sh (Internationalization functions): Add propername.
75909 2008-05-16  Jim Meyering  <meyering@redhat.com>
75910             Bruno Haible  <bruno@clisp.org>
75912         Avoid some warnings from "gcc -Wshadow".
75913         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
75915 2008-05-15  Eric Blake  <ebb9@byu.net>
75917         Extend previous patch to cygwin 1.7.0.
75918         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
75919         fast implementation in cygwin >= 1.7.0.
75920         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75923 2008-05-15  Bruno Haible  <bruno@clisp.org>
75925         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
75926         implementation in glibc >= 2.9.
75927         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75930 2008-05-15  Bruno Haible  <bruno@clisp.org>
75932         * MODULES.html.sh (Internationalization functions): Remove linebreak.
75933         (Unicode string functions): Add unilbrk/*.
75934         Reported by Karl Berry.
75936 2008-05-15  Eric Blake  <ebb9@byu.net>
75938         Fix violation of <stdbool.h> replacement in regex.
75939         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
75940         * lib/regexec.c (re_search_internal): Likewise.
75941         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
75943 2008-05-15  Jim Meyering  <meyering@redhat.com>
75945         avoid distracting test output when git or cvs is not found
75946         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
75947         * tests/test-vc-list-files-git.sh: Likewise.
75949 2008-05-15  Eric Blake  <ebb9@byu.net>
75951         Glibc finally accepted the memmem speedup code, bugzilla #5514.
75952         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
75953         glibc version.
75954         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
75955         * doc/posix-functions/strstr.texi (strstr): Likewise.
75956         * lib/str-two-way.h (MAX): Sychronize with glibc.
75958 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
75960         * lib/regcomp.c (optimize_utf8): Add a note on why we test
75961         opr.ctx_type.
75962         (calc_first): Initialize constraint field.
75963         (duplicate_node_closure): Use it instead of special casing ANCHORS.
75964         Fix grammar.
75965         (duplicate_node): Merge constraint field for all node types.
75966         (calc_eclosure_iter): Look at constraint field for all node types.
75967         * lib/regex_internal.c (create_cd_newstate): Don't look at
75968         opr.ctx_type.
75970 2008-05-14  Bruno Haible  <bruno@clisp.org>
75972         Help GCC to do better code generation.
75973         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
75974         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
75975         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
75976         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
75977         Declare with attribute 'malloc' if supported.
75979 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
75981         use "echo STR|wc -c" rather than unportable "expr length STR"
75982         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
75983         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
75985 2008-05-14  Jim Meyering  <meyering@redhat.com>
75987         use dd ibs=$n count=1 ... rather than less-portable head -c$n
75988         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
75989         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
75990         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
75991         via Collin Lasse.
75993 2008-05-14  Eric Blake  <ebb9@byu.net>
75995         Avoid quadratic growth in gl_LIBSOURCES.
75996         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
75997         Suggested by Bruno Haible.
75999         Test xmemdup0.
76000         * modules/xmemdup0-tests: New file.
76001         * tests/test-xmemdup0.c: Likewise.
76003 2008-05-13  Eric Blake  <ebb9@byu.net>
76005         Split xmemdup0 into its own module.
76006         * modules/xmemdup0: New file.
76007         * lib/xmemdup0.h: Likewise.
76008         * lib/xmemdup0.c: Likewise.
76009         * MODULES.html.sh (Memory management functions): Add xmemdup0.
76010         * lib/xalloc.h (xmemdup0): Remove.
76011         * lib/xmalloc.c (xmemdup0): Likewise.
76013 2008-05-13  Eric Blake  <ebb9@byu.net>
76014             Bruno Haible  <bruno@clisp.org>
76016         Reduce number of forks required during autoconf.
76017         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
76018         and gl_LIBSOURCES_DIR.
76019         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
76020         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
76021         m4_syscmd per file.
76022         <m4_foreach_w>: Move...
76023         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
76025 2008-05-13  Eric Blake  <ebb9@byu.net>
76027         * gnulib-tool: Fix various comment typos.
76029 2008-05-12  Bruno Haible  <bruno@clisp.org>
76031         Tailor the linebreaking algorithm.
76032         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
76034 2008-05-12  Bruno Haible  <bruno@clisp.org>
76036         Update to Unicode 5.0.0.
76037         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
76038         LBP_JV, LBP_JT. Redistribute values.
76039         (unilbrk_table): Change size.
76040         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
76041         Unicode TR#14 rev. 22.
76042         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
76043         LBP_JV, LBP_JT. Redistribute values.
76044         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
76045         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
76046         Update.
76047         * lib/unilbrk/lbrkprop1.h: Regenerated.
76048         * lib/unilbrk/lbrkprop2.h: Regenerated.
76049         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
76050         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
76051         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
76052         Likewise.
76053         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
76054         Likewise.
76055         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
76056         result.
76057         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
76058         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
76059         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
76060         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
76061         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
76062         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
76064 2008-05-11  Bruno Haible  <bruno@clisp.org>
76066         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
76068 2008-05-11  Bruno Haible  <bruno@clisp.org>
76070         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
76071         * modules/unilbrk/gen-lbrk: New file.
76073 2008-05-11  Bruno Haible  <bruno@clisp.org>
76075         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
76076         * m4/sha512.m4 (gl_SHA512): Likewise.
76078 2008-05-11  Jim Meyering  <meyering@redhat.com>
76080         New modules: crypto/sha256, crypto/sha512 (from coreutils)
76081         * modules/crypto/sha256: New file.
76082         * modules/crypto/sha512: Likewise.
76083         * lib/sha256.c: Likewise.
76084         * lib/sha256.h: Likewise.
76085         * lib/sha512.c: Likewise.
76086         * lib/sha512.h: Likewise.
76087         * lib/u64.h: Likewise.
76088         * m4/sha256.m4: Likewise.
76089         * m4/sha512.m4: Likewise.
76090         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
76092 2008-05-10  Bruno Haible  <bruno@clisp.org>
76094         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
76095         (Input/Output <stdio.h>): Add xprintf.
76096         (Signal handling <signal.h>): Add strsignal.
76097         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
76098         (Core language properties): Add func.
76099         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
76100         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
76101         strings.
76102         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
76103         (Input/output): New section.
76104         (File system functions): Add openat-die, stat-macros.
76105         (Networking functions): Add sockets.
76106         (Unicode string functions): Add unictype/*.
76107         (Support for building libraries and executables): Add gperf.
76108         (Support for building documentation): Add agpl-3.0.
76109         (Misc): Add nocrash.
76111 2008-05-10  Bruno Haible  <bruno@clisp.org>
76113         * modules/unictype/gen-ctype: New file.
76115 2008-05-10  Jim Meyering  <meyering@redhat.com>
76117         Make chdir-safer.c more efficient on a system with no symlinks.
76118         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
76119         also if ELOOP is zero.  Suggested by Bruno Haible.
76121         Make chdir-safer.c slightly safer.
76122         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
76123         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
76125         Avoid compile failure on systems without ELOOP (like mingw).
76126         * lib/chdir-safer.c (ELOOP): Define if not already defined.
76127         Reported by Bruno Haible.
76129 2008-05-10  Bruno Haible  <bruno@clisp.org>
76131         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
76132         (is_utf8_encoding): Use a case-insensitive comparison.
76133         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
76134         streq.
76136 2008-05-10  Bruno Haible  <bruno@clisp.org>
76138         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
76139         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
76140         * lib/unilbrk/ulc-common.h (iconv_string_length,
76141         iconv_string_keeping_offsets): Remove declarations.
76142         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
76143         Don't include <iconv.h>, streq.h, xsize.h.
76144         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
76145         conversion.
76146         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
76147         <iconv.h>, streq.h, xsize.h.
76148         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
76149         conversion.
76150         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
76151         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
76152         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
76153         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
76155 2008-05-10  Bruno Haible  <bruno@clisp.org>
76157         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
76158         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
76160         * modules/unilbrk/u32-width-linebreaks-tests: New file.
76161         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
76163         * modules/unilbrk/u16-width-linebreaks-tests: New file.
76164         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
76166         * modules/unilbrk/u8-width-linebreaks-tests: New file.
76167         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
76169         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
76170         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
76172         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
76173         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
76175         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
76176         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
76178         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
76179         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
76181 2008-05-10  Bruno Haible  <bruno@clisp.org>
76183         Split up 'linebreak' module.
76184         * lib/unilbrk.h: New file, based on lib/linebreak.h.
76185         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
76186         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
76187         modifications.
76188         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
76189         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
76190         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
76191         lib/linebreak.c.
76192         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
76193         lib/linebreak.c.
76194         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
76195         lib/linebreak.c.
76196         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
76197         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
76198         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
76199         lib/linebreak.c.
76200         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
76201         lib/linebreak.c.
76202         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
76203         lib/linebreak.c.
76204         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
76205         lib/linebreak.c.
76206         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
76207         lib/linebreak.c.
76208         * modules/unilbrk/base: New file.
76209         * modules/unilbrk/tables: New file.
76210         * modules/unilbrk/u8-possible-linebreaks: New file.
76211         * modules/unilbrk/u16-possible-linebreaks: New file.
76212         * modules/unilbrk/u32-possible-linebreaks: New file.
76213         * modules/unilbrk/ulc-common: New file.
76214         * modules/unilbrk/ulc-possible-linebreaks: New file.
76215         * modules/unilbrk/u8-width-linebreaks: New file.
76216         * modules/unilbrk/u16-width-linebreaks: New file.
76217         * modules/unilbrk/u32-width-linebreaks: New file.
76218         * modules/unilbrk/ulc-width-linebreaks: New file.
76219         * lib/linebreak.h: Remove file.
76220         * lib/linebreak.c: Remove file.
76221         * m4/linebreak.m4: Remove file.
76222         * modules/linebreak: Remove file.
76223         * NEWS: Mention the changes.
76225 2008-05-09  Eric Blake  <ebb9@byu.net>
76227         Add xmemdup0.
76228         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
76229         implementation.
76230         * lib/xmalloc.c (xmemdup0): New C implementation.
76232 2008-05-08  Bruno Haible  <bruno@clisp.org>
76234         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
76236 2008-05-07  Eric Blake  <ebb9@byu.net>
76238         Support cross-compilation of <wctype.h>.
76239         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
76240         AC_CACHE_CHECK.
76242 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
76244         * build-aux/vc-list-files: Add support for bzr.
76246 2008-05-03  Jim Meyering  <meyering@redhat.com>
76248         avoid failed assertion with tight malloc
76249         * tests/test-getndelim2.c: Correct an off-by-one assertion.
76251 2008-05-03  Simon Josefsson  <simon@josefsson.org>
76253         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
76254         are needed from arpa/inet.h.
76255         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
76256         Reported by Bruno Haible.
76258 2008-05-02  Jim Meyering  <meyering@redhat.com>
76260         avoid compilation error on FreeBSD 6
76261         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
76263 2008-05-01  Jim Meyering  <meyering@redhat.com>
76265         useless-if-before-free: correct --help's exit status description
76266         * build-aux/useless-if-before-free (usage): Like grep, exit 0
76267         for one or more matches, etc.  Reported by Bruno Haible.
76269         vc-list-files: make the stand-alone gnulib test work
76270         * modules/vc-list-files-tests (configure.ac):
76271         Define and AC_SUBST abs_aux_dir.
76272         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
76273         $(abs_top_srcdir) to each script and having each of them
76274         duplicate the work of setting PATH, set PATH here, using
76275         the new variable, abs_aux_dir instead.
76276         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
76277         * tests/test-vc-list-files-git.sh: Likewise.
76278         Reported by Bruno Haible.
76280 2008-05-01  Bruno Haible  <bruno@clisp.org>
76282         * lib/getndelim2.c (getndelim2): Fix newsize computation during
76283         reallocation. Rename 'done' to 'found_delimiter'.
76285 2008-05-01  Jim Meyering  <meyering@redhat.com>
76287         vc-list-files: accommodate /bin/sh like the one from Solaris 10
76288         * build-aux/vc-list-files: Use `...`, not $(...).
76290 2008-04-30  Jim Meyering  <meyering@redhat.com>
76292         add tests for vc-list-files
76293         * modules/vc-list-files-tests: New module.
76294         * tests/test-vc-list-files-cvs.sh: New file.
76295         * tests/test-vc-list-files-git.sh: New file.
76297         avoid a warning from gcc
76298         * lib/getndelim2.c (IF_LINT): Define.
76299         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
76301         vc-list-files: work properly with build-aux/cvsu, too
76302         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
76303         to all cvs-based clauses.
76305         vc-list-files: work properly in the CVS+awk case, too
76306         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
76308         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
76309         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
76310         take more than one file argument, so .  Add quotes, just in case $dir
76311         ever contains a shell meta-character.  Prompted by Soren Hansen in
76312         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
76314 2008-04-29  Eric Blake  <ebb9@byu.net>
76316         Optimize getndelim2 to use block operations when possible.
76317         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
76318         freadseek, and memchr2.
76319         * lib/getndelim2.c (getndelim2): Use them for block reads.
76321 2008-04-29  Bruno Haible  <bruno@clisp.org>
76323         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
76324         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76325         * modules/inet_ntop (Depends-on): Add extensions.
76326         * modules/inet_pton (Depends-on): Likewise.
76327         Reported by Simon Josefsson.
76329 2008-04-29  Jim Meyering  <meyering@redhat.com>
76331         When the is more than one match in a block, match all of them.
76332         * build-aux/useless-if-before-free: Iterate through each block
76333         until there are no more matches.
76335         Fix broken useless-if-before-free script.
76336         * build-aux/useless-if-before-free: Fix typo: missing "?" after
76337         the expression to match cast of argument to free-like function.
76339 2008-04-29  Eric Blake  <ebb9@byu.net>
76341         Use new header.
76342         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
76344 2008-04-29  Jim Meyering  <meyering@redhat.com>
76346         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
76347         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
76348         by gnulib to exist and to declare e.g., inet_ntop.
76349         Don't include "inet_ntop.h", now removed.
76351         * m4/arpa_inet_h.m4: Remove trailing blanks.
76353 2008-04-29  Eric Blake  <ebb9@byu.net>
76355         Silence valgrind on safe reads beyond potential array bounds.
76356         * lib/rawmemchr.valgrind: New file.
76357         * lib/strchrnul.valgrind: Likewise.
76358         * modules/rawmemchr (Files): Distribute new file.
76359         * modules/strchrnul (Files): Likewise.
76360         Suggested by Bruno Haible.
76362 2008-04-29  Bruno Haible  <bruno@clisp.org>
76364         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
76365         (inet_ntop, inet_pton): Change portability warning's wording.
76366         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
76367         Invoke gl_CHECK_NEXT_HEADERS.
76368         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
76369         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
76370         set ARPA_INET_H.
76371         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76372         * modules/arpa_inet (Description): No longer only for systems that
76373         lack it.
76374         (Depends-on): Add include_next.
76375         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
76376         HAVE_ARPA_INET_H.
76378 2008-04-29  Jim Meyering  <meyering@redhat.com>
76380         * modules/mkdir (License): Re-license as LGPLv2+.
76382 2008-04-29  Bruno Haible  <bruno@clisp.org>
76384         * modules/rawmemchr (Maintainer): Set to Eric.
76385         * modules/strchrnul (Maintainer): Likewise.
76387 2008-04-29  Simon Josefsson  <simon@josefsson.org>
76389         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
76390         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
76392         * modules/arpa_inet (arpa/inet.h): Use them.
76394 2008-04-28  Eric Blake  <ebb9@byu.net>
76396         Test getndelim2.
76397         * modules/getndelim2-tests: New file.
76398         * tests/test-getndelim2.c: Likewise.
76399         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
76400         stream.
76401         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
76403         * MODULES.html.sh: Document new module.
76405 2008-04-20  Bruno Haible  <bruno@clisp.org>
76407         * lib/c-stack.c (die): Use raise.
76408         * modules/c-stack (Depends-on): Add raise.
76410 2008-04-28  Bruno Haible  <bruno@clisp.org>
76412         Expect rpmatch to be declared.
76413         * lib/yesno.c (rpmatch): Remove declaration.
76415         Declare rpmatch.
76416         * lib/stdlib.in.h (rpmatch): New declaration.
76417         * lib/rpmatch.c: Include <stdlib.h> first.
76418         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
76419         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
76420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
76421         HAVE_RPMATCH.
76422         * modules/rpmatch (Depends-on): Add stdlib, extensions.
76423         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
76424         (Include): Set to <stdlib.h>.
76425         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
76426         HAVE_RPMATCH.
76427         * NEWS: Document the change.
76429 2008-04-28  Bruno Haible  <bruno@clisp.org>
76431         Change rpmatch to use nl_langinfo when appropriate.
76432         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
76433         (N_): New macro.
76434         (localized_pattern): New function/macro.
76435         (try): Remove match, nomatch arguments. Copy the pattern into safe
76436         memory before caching it.
76437         (rpmatch): Use localized_pattern. Add translator comments.
76438         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
76439         Suggested by Eric Blake.
76440         * modules/rpmatch (Depends-on): Add stdbool.
76442 2008-04-28  Eric Blake  <ebb9@byu.net>
76444         Add rawmemchr module, matching glibc.
76445         * modules/string (Makefile.am): New indicator.
76446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
76447         * lib/string.in.h (rawmemchr): Declare when appropriate.
76448         * modules/rawmemchr: New file.
76449         * m4/rawmemchr.m4: Likewise.
76450         * lib/rawmemchr.c: Likewise.
76451         * modules/rawmemchr-tests: Likewise.
76452         * tests/test-rawmemchr.c: Likewise.
76453         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
76454         module.
76455         * modules/strchrnul (Depends-on): Add rawmemchr.
76456         * lib/strchrnul.c (strchrnul): Optimize a corner case.
76458         Whitespace cleanup.
76459         * tests/test-strchrnul.c: Reindent.
76460         * lib/strchrnul.c: Likewise.
76462         Optimize and test strchrnul.
76463         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
76464         * modules/strchrnul-tests: New file.
76465         * tests/test-strchrnul.c: Likewise.
76467         Remove intprops dependency.
76468         * modules/memchr (Depends-on): Remove intprops.
76469         * modules/memrchr (Depends-on): Likewise.
76470         * modules/memchr2 (Depends-on): Likewise.
76471         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
76472         * lib/memrchr.c (__memrchr): Likewise.
76473         * lib/memrchr2.c (memchr2): Likewise.
76474         Reported by Simon Josefsson.
76476 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76478         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
76479         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76481 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76483         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
76485         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
76487         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
76489         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
76490         declarations.
76491         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
76493         * m4/inet_pton.m4: Don't check for header files.
76495         * m4/inet_ntop.m4: Don't check for header files.
76497 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76499         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
76500         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
76501         trigger for cygwin).
76502         Reported by Bruno Haible  <bruno@clisp.org>.
76504 2008-04-28  Bruno Haible  <bruno@clisp.org>
76506         * doc/posix-functions/strdup.texi: Mention mingw problem.
76508 2008-04-27  Bruno Haible  <bruno@clisp.org>
76510         * modules/stat-time-tests (Depends-on): Add sleep.
76511         * tests/test-stat-time.c (force_unlink): New function.
76512         (cleanup): Use it.
76513         (test_mtime): Remove the ctime related tests.
76514         (test_ctime): New function, containing the ctime related tests.
76515         (main): Call test_ctime, except on native Windows platforms.
76517 2008-04-27  Bruno Haible  <bruno@clisp.org>
76519         * lib/rpmatch.c (rpmatch): Add some comments.
76520         Reported by James Youngman <jay@gnu.org>.
76522 2008-04-27  Bruno Haible  <bruno@clisp.org>
76524         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
76525         quiet NaNs.
76527 2008-04-27  Bruno Haible  <bruno@clisp.org>
76529         Make test-yesno.sh work on mingw.
76530         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
76531         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
76532         (main): Set stdin to binary mode.
76533         * modules/yesno-tests (Depends-on): Add binary-io.
76535 2008-04-27  Bruno Haible  <bruno@clisp.org>
76537         Fix 'isfinite' on x86, x86_64, ia64 platforms.
76538         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
76539         argument that lie outside the IEEE 854 domain.
76540         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
76541         (gl_ISFINITE): Use it.
76542         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
76544 2008-04-27  Bruno Haible  <bruno@clisp.org>
76546         Allow local renaming in config.h.
76547         * lib/memrchr.c (memrchr): Don't undefine outside libc.
76549 2008-04-27  Bruno Haible  <bruno@clisp.org>
76551         * lib/memchr.c (__memchr): Change type of 'i'.
76552         * lib/memchr2.c (memchr2): Likewise.
76554 2008-04-26  Eric Blake  <ebb9@byu.net>
76555         and Bruno Haible  <bruno@clisp.org>
76557         Optimize and test memrchr.
76558         * modules/memrchr (Depends-on): Add intprops.
76559         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
76560         * modules/memrchr-tests: New file.
76561         * tests/test-memrchr.c: New file.
76563 2008-04-26  Bruno Haible  <bruno@clisp.org>
76565         Add tentative support for DragonFly BSD.
76566         * lib/stdio-impl.h: Add macros for DragonFly BSD.
76567         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
76568         fp.
76569         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
76570         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
76571         * lib/fpurge.c (fpurge): Likewise.
76572         * lib/freadable.c (freaadable): Likewise.
76573         * lib/freadahead.c (freadahead): Likewise.
76574         * lib/freading.c (freading): Likewise.
76575         * lib/freadptr.c (freadptr): Likewise.
76576         * lib/freadseek.c (freadptrinc): Likewise.
76577         * lib/fseeko.c (fseeko): Likewise.
76578         * lib/fseterr.c (fseterr): Likewise.
76579         * lib/fwritable.c (fwritable): Likewise.
76580         * lib/fwriting.c (fwriting): Likewise.
76582 2008-04-26  Bruno Haible  <bruno@clisp.org>
76584         * lib/stdio-impl.h: New file.
76585         * lib/fbufmode.c: Include stdio-impl.h.
76586         (fbufmode): Use fp_, remove redundant #defines.
76587         * lib/fflush.c: Include stdio-impl.h.
76588         (clear_ungetc_buffer): Remove redundant #defines.
76589         * lib/fpurge.c: Include stdio-impl.h.
76590         (fpurge): Remove redundant #defines.
76591         * lib/freadable.c: Include stdio-impl.h.
76592         (freadable): Remove redundant #defines.
76593         * lib/freadahead.c: Include stdio-impl.h.
76594         (freadahead): Remove redundant #defines.
76595         * lib/freading.c: Include stdio-impl.h.
76596         (freading): Remove redundant #defines.
76597         * lib/freadptr.c: Include stdio-impl.h.
76598         (freadptr): Remove redundant #defines.
76599         * lib/freadseek.c: Include stdio-impl.h.
76600         (freadptrinc): Remove redundant #defines.
76601         * lib/fseeko.c: Include stdio-impl.h.
76602         (rpl_fseeko): Remove redundant #defines.
76603         * lib/fseterr.c: Include stdio-impl.h.
76604         (fseterr): Remove redundant #defines.
76605         * lib/fwritable.c: Include stdio-impl.h.
76606         (fwritable: Remove redundant #defines.
76607         * lib/fwriting.c: Include stdio-impl.h.
76608         (fwriting): Remove redundant #defines.
76609         * modules/fbufmode (Files): Add lib/stdio-impl.h.
76610         * modules/fflush (Files): Likewise.
76611         * modules/fpurge (Files): Likewise.
76612         * modules/freadable (Files): Likewise.
76613         * modules/freadahead (Files): Likewise.
76614         * modules/freading (Files): Likewise.
76615         * modules/freadptr (Files): Likewise.
76616         * modules/freadseek (Files): Likewise.
76617         * modules/fseeko (Files): Likewise.
76618         * modules/fseterr (Files): Likewise.
76619         * modules/fwritable (Files): Likewise.
76620         * modules/fwriting (Files): Likewise.
76622 2008-04-26  Bruno Haible  <bruno@clisp.org>
76624         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
76625         restore_seek_optimization, update_fpos_cache): New functions, extracted
76626         from rpl_fflush.
76627         (rpl_fflush): Use them.
76628         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
76629         (gl_REPLACE_FFLUSH): Use it.
76631 2008-04-26  Bruno Haible  <bruno@clisp.org>
76633         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
76634         on Solaris.
76635         * tests/test-xstrtoimax.sh: Likewise.
76636         * tests/test-xstrtoumax.sh: Likewise.
76637         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76639 2008-04-26  Bruno Haible  <bruno@clisp.org>
76641         * modules/memchr-tests: New file.
76642         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
76644 2008-04-26  Eric Blake  <ebb9@byu.net>
76645             Bruno Haible  <bruno@clisp.org>
76647         * lib/memchr.c: Include intprops.h.
76648         (__memchr): Optimize parallel detection of matching bytes. Rename local
76649         variables. Add explanatory comments.
76651 2008-04-26  Bruno Haible  <bruno@clisp.org>
76653         Fix module 'memchr', broken since 2000-10-28.
76654         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
76656 2008-04-26  Bruno Haible  <bruno@clisp.org>
76658         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
76659         comments.
76661 2008-04-25  Eric Blake  <ebb9@byu.net>
76663         Use native fstatat on cygwin 1.7.0.
76664         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
76665         first.
76667 2008-04-23  Eric Blake  <ebb9@byu.net>
76669         Improve memchr2 performance.
76670         * lib/memchr2.c (memchr2): Further optimize parallel detection of
76671         NUL bytes.
76672         * modules/memchr2 (Depends-on): Use intprops.h.
76674 2008-04-23  Simon Josefsson  <simon@josefsson.org>
76676         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
76677         an inline function instead of a CPP macro.  Patch by Ben Pfaff
76678         <blp@cs.stanford.edu>.
76680 2008-04-23  Simon Josefsson  <simon@josefsson.org>
76682         * lib/arpa_inet.in.h: New file.
76684         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
76685         (Makefile.am): Sed in substitute header file.
76687         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
76688         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
76690         * modules/inet_ntop (configure.ac): Use
76691         gl_ARPA_INET_MODULE_INDICATOR.
76693         * modules/inet_pton (configure.ac): Use
76694         gl_ARPA_INET_MODULE_INDICATOR.
76696 2008-04-22  Jim Meyering  <meyering@redhat.com>
76698         * modules/verify (License): Re-license as LGPLv2+.
76700 2008-04-22  Simon Josefsson  <simon@josefsson.org>
76702         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
76703         parameter to void* as per POSIX standard (MinGW uses char*).
76705 2008-04-21  Bruno Haible  <bruno@clisp.org>
76707         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76708         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76709         Define to replacements if REPLACE_ISWCNTRL is 1.
76710         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
76711         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
76712         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
76713         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
76714         what it fixes.
76715         * doc/posix-functions/iswalpha.texi: Likewise.
76716         * doc/posix-functions/iswblank.texi: Likewise.
76717         * doc/posix-functions/iswcntrl.texi: Likewise.
76718         * doc/posix-functions/iswdigit.texi: Likewise.
76719         * doc/posix-functions/iswgraph.texi: Likewise.
76720         * doc/posix-functions/iswlower.texi: Likewise.
76721         * doc/posix-functions/iswprint.texi: Likewise.
76722         * doc/posix-functions/iswpunct.texi: Likewise.
76723         * doc/posix-functions/iswspace.texi: Likewise.
76724         * doc/posix-functions/iswupper.texi: Likewise.
76725         * doc/posix-functions/iswxdigit.texi: Likewise.
76726         Reported by Alain Guibert.
76728 2008-04-21  Bruno Haible  <bruno@clisp.org>
76730         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
76731         Patch by Alain Guibert.
76733 2008-04-21  Bruno Haible  <bruno@clisp.org>
76735         Fix test failures on mingw.
76736         * tests/test-xstrtol.c (print_no_progname): New function.
76737         (main): Install it in error_print_progname hook.
76738         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
76739         * tests/test-xstrtoimax.sh: Likewise.
76740         * tests/test-xstrtoumax.sh: Likewise.
76742 2008-04-21  Bruno Haible  <bruno@clisp.org>
76744         Fix test failure on mingw.
76745         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
76747 2008-04-21  Bruno Haible  <bruno@clisp.org>
76749         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
76750         Actually assign a value.
76752 2008-04-20  Bruno Haible  <bruno@clisp.org>
76754         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
76755         take 2.
76756         * lib/canonicalize.c (canonicalize_file_name): Elide if the
76757         'canonicalize-lgpl' module is also used.
76758         * lib/canonicalize-lgpl.c: Undo last change.
76759         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
76761 2008-04-20  Bruno Haible  <bruno@clisp.org>
76763         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
76764         config.h. Provide _mkdir based fallback for mingw.
76765         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
76766         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
76767         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
76768         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
76769         rather than defining mkdir in config.h.
76770         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
76771         (gl_SYS_STAT_H_DEFAULTS): New macro.
76772         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
76773         HAVE_IO_H any more.
76774         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
76775         HAVE_DECL_MKDIR and HAVE_IO_H.
76777 2008-04-20  Bruno Haible  <bruno@clisp.org>
76779         * lib/isapipe.c: Port to native Windows platforms.
76781 2008-04-20  Bruno Haible  <bruno@clisp.org>
76783         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
76785 2008-04-21  Eric Blake  <ebb9@byu.net>
76787         Work around preprocessors that don't handle UINTMAX_MAX.
76788         * lib/memchr2.c (memchr2): Avoid embedded #if.
76789         Reported by Alain Guibert, fix suggested by Bruno Haible.
76791 2008-04-21  Simon Josefsson  <simon@josefsson.org>
76793         * doc/posix-functions/strftime.texi (strftime): Explain better
76794         Windows incompatibility.  Suggested by Micah Cowan
76795         <micah@cowan.name>.
76797 2008-04-20  Bruno Haible  <bruno@clisp.org>
76799         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
76800         unistr/u8-mblen.
76802 2008-04-20  Bruno Haible  <bruno@clisp.org>
76804         Fix test failure on platforms with non-GNU iconv.
76805         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
76806         (U_TO_U8): Use it, rather than u16_to_u8.
76807         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
76808         units at the end of the input string.
76809         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
76811 2008-04-20  Bruno Haible  <bruno@clisp.org>
76813         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
76814         when the resulting length is 0.
76815         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
76817 2008-04-20  Bruno Haible  <bruno@clisp.org>
76819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
76820         works.
76821         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
76823 2008-04-20  Bruno Haible  <bruno@clisp.org>
76825         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
76826         * modules/tsearch-tests (configure.ac): Test for initstate function.
76828 2008-04-20  Bruno Haible  <bruno@clisp.org>
76830         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
76831         for nlink_t if missing.
76832         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
76834 2008-04-19  Bruno Haible  <bruno@clisp.org>
76836         Work around snprintf bug on Linux libc5.
76837         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
76838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
76839         gl_SNPRINTF_SIZE1.
76840         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76841         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
76842         that test failed.
76843         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
76844         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
76845         * modules/snprintf (Files): Add m4/printf.m4.
76846         * modules/vsnprintf (Files): Likewise.
76847         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
76848         * doc/posix-functions/vsnprintf.texi: Likewise.
76850 2008-04-19  Bruno Haible  <bruno@clisp.org>
76852         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
76853         from 0.0058 to less than 10^-7.
76855 2008-04-19  Bruno Haible  <bruno@clisp.org>
76857         Fix rounding when a precision is given.
76858         * lib/vasnprintf.c (is_borderline): New function.
76859         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
76860         9...9x.
76861         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
76862         %e, %g.
76863         * tests/test-vasprintf-posix.c (test_function): Likewise.
76864         * tests/test-snprintf-posix.h (test_function): Likewise.
76865         * tests/test-sprintf-posix.h (test_function): Likewise.
76866         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
76867         * tests/test-printf-posix.h (test_function): Likewise.
76868         * tests/test-printf-posix.output: Update.
76869         Reported by John Darrington <john@darrington.wattle.id.au> via
76870         Ben Pfaff <blp@cs.stanford.edu>.
76872 2008-04-18  Simon Josefsson  <simon@josefsson.org>
76874         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
76875         Suggested by Bruno Haible <bruno@clisp.org>.
76877 2008-04-17  Bruno Haible  <bruno@clisp.org>
76879         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
76880         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
76881         implementation.
76882         Patch by Bruce Merry <bmerry@gmail.com>.
76884 2008-04-17  Simon Josefsson  <simon@josefsson.org>
76886         * doc/posix-functions/strftime.texi (strftime): Mention that %e
76887         doesn't work under Windows.
76889 2008-04-16  Bruno Haible  <bruno@clisp.org>
76891         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
76892         New macros.
76893         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
76894         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
76895         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
76896         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
76897         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
76898         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
76899         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
76900         macros.
76901         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
76902         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
76903         Northern Sotho, Uighur.
76905 2008-04-16  Bruno Haible  <bruno@clisp.org>
76907         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
76908         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
76909         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
76910         Reported by Daniel Bergström <daniel@octocode.com>.
76912 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
76913             Bruno Haible  <bruno@clisp.org>
76915         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
76916         function.
76917         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
76918         New functions, mostly extracted from gl_locale_name_default.
76919         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
76921 2008-04-16  Eric Blake  <ebb9@byu.net>
76923         Adjust strtod detection to catch glibc 2.7 bug.
76924         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
76925         Reported by John Gatewood Ham.
76927 2008-04-16  Bruno Haible  <bruno@clisp.org>
76929         Add tentative support for Linux libc5.
76930         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
76931         * lib/fpurge.c (fpurge): Likewise.
76932         * lib/freadable.c (freadable): Likewise.
76933         * lib/freadahead.c (freadahead): Likewise.
76934         * lib/freading.c (freading): Likewise.
76935         * lib/freadptr.c (freadptr): Likewise.
76936         * lib/freadseek.c (freadptrinc): Likewise.
76937         * lib/fseeko.c (rpl_fseeko): Likewise.
76938         * lib/fseterr.c (fseterr): Likewise.
76939         * lib/fwritable.c (fwritable): Likewise.
76940         * lib/fwriting.c (fwriting): Likewise.
76941         Reported by Alain Guibert <alguibert+bts@free.fr>.
76943 2008-04-15  Bruno Haible  <bruno@clisp.org>
76945         * modules/mathl (configure.ac): Define module indicator.
76947 2008-04-15  Bruno Haible  <bruno@clisp.org>
76949         * lib/logl.c (logl): Remove unused variables.
76951 2008-04-15  Bruno Haible  <bruno@clisp.org>
76953         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
76954         fails.
76956 2008-04-15  Bruno Haible  <bruno@clisp.org>
76958         * lib/trim.c (trim2): Fix argument of isspace() macro.
76960 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
76962         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
76963         to 0.
76964         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
76966 2008-04-14  Bruno Haible  <bruno@clisp.org>
76968         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
76969         AC_LANG_PROGRAM argument.
76970         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
76971         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
76972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76973         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
76974         * m4/math_h.m4 (gl_MATH_H): Likewise.
76975         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
76976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
76977         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
76978         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
76979         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76980         * m4/regex.m4 (gl_REGEX): Likewise.
76981         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
76982         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
76983         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
76984         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
76985         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
76986         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
76987         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
76988         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
76990 2008-04-14  Jim Meyering  <meyering@redhat.com>
76992         test-strtod: fix typos: s/abs/fabs/
76993         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
76995 2008-04-13  Bruno Haible  <bruno@clisp.org>
76997         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
76998         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
76999         module is also used and while not building the reloc-wrapper.
77001 2008-04-13  Bruno Haible  <bruno@clisp.org>
77003         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
77005 2008-04-13  Bruno Haible  <bruno@clisp.org>
77007         Fix AIX compilation failure introduced on 2008-04-02.
77008         * tests/test-frexp.c (exp): Undefine before redefining.
77009         * tests/test-frexpl.c (exp): Likewise.
77011 2008-04-13  Bruno Haible  <bruno@clisp.org>
77013         Work around a HP-UX stdio bug.
77014         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
77015         * tests/test-ftello.c (main): Likewise.
77016         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
77017         * doc/posix-functions/ftello.texi: Likewise.
77019 2008-04-13  Bruno Haible  <bruno@clisp.org>
77021         Make test-signbit pass on HP-UX/hppa.
77022         * tests/test-signbit.c (minus_zerol): New variable.
77023         (test_signbitl): Use it.
77025 2008-04-13  Bruno Haible  <bruno@clisp.org>
77027         Make truncl work on OSF/1 4.0.
77028         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
77029         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
77030         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
77031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
77032         HAVE_DECL_TRUNCL.
77033         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
77034         HAVE_DECL_TRUNCL.
77035         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
77037 2008-04-13  Bruno Haible  <bruno@clisp.org>
77039         * lib/unictype.h: Remove trailing comma from enumeration definitions.
77041 2008-04-13  Bruno Haible  <bruno@clisp.org>
77043         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
77044         expression, so as to avoid HP-UX 11 cc compiler bug.
77046 2008-04-13  Bruno Haible  <bruno@clisp.org>
77048         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
77050 2008-04-13  Bruno Haible  <bruno@clisp.org>
77052         * lib/git-merge-changelog.c: Remove empty declaration outside of
77053         functions.
77055 2008-04-13  Bruno Haible  <bruno@clisp.org>
77057         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
77059 2008-04-13  Bruno Haible  <bruno@clisp.org>
77061         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
77062         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
77063         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
77064         also if it exists but lacks definitions of the SHUT_* macros.
77065         * modules/sys_socket (Description): Update.
77066         Reported by Elbert Pol <e.pol@chello.nl>.
77068 2008-04-13  Bruno Haible  <bruno@clisp.org>
77070         * lib/localcharset.c (OS2): Don't redefine if already defined.
77071         Reported by Elbert Pol <e.pol@chello.nl>.
77073 2008-04-13  Bruno Haible  <bruno@clisp.org>
77075         * lib/binary-io.h [__EMX__]: Include <io.h>.
77076         Reported by Elbert Pol <e.pol@chello.nl>.
77078 2008-04-12  Bruno Haible  <bruno@clisp.org>
77080         * lib/fpucw.h: Enable the definitions also for x86_64.
77081         Needed for NetBSD/x86_64.
77082         Reported by Thomas Klausner <tk@giga.or.at>.
77084 2008-04-12  Bruno Haible  <bruno@clisp.org>
77086         * tests/test-strtod.c: Include isnand.h.
77087         (main): Use isnand instead of isnan.
77088         Reported by Jim Meyering.
77090 2008-04-12  Bruno Haible  <bruno@clisp.org>
77092         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
77093         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77095 2008-04-12  Jim Meyering  <meyering@redhat.com>
77097         * m4/math_h.m4 (gl_MATH_H): Fix typos.
77099 2008-04-12  Bruno Haible  <bruno@clisp.org>
77101         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
77102         Reported by Elbert Pol <e.pol@chello.nl>.
77104 2008-04-12  Eric Blake  <ebb9@byu.net>
77106         Work around Solaris 10 math.h bug.
77107         * m4/math_h.m4 (gl_MATH_H): Check for bug.
77108         (gl_MATH_H_DEFAULTS): Set up default.
77109         * modules/math (Makefile.am): Replace new indicators.
77110         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
77111         * tests/test-math.c (main): Test this.
77112         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
77113         * doc/posix-headers/math.texi (math.h): Mention bug.
77114         Reported by Nelson H. F. Beebe and Jim Meyering.
77116 2008-04-11  Bruno Haible  <bruno@clisp.org>
77118         Adapt to future versions of Apple GCC.
77119         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
77120         Reported by Peter O'Gorman <peter@pogma.com>.
77122 2008-04-11  Bruno Haible  <bruno@clisp.org>
77124         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
77126 2008-04-11  Bruno Haible  <bruno@clisp.org>
77128         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
77130         * modules/getaddrinfo-tests (Makefile.am): Define
77131         test_getaddrinfo_LDADD.
77133 2008-04-11  Bruno Haible  <bruno@clisp.org>
77135         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
77136         (init): Fix syntax error.
77137         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
77138         is declared.
77140 2008-04-11  Bruno Haible  <bruno@clisp.org>
77142         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
77143         * modules/glob (Depends-on): Add stdbool.
77145 2008-04-11  Bruno Haible  <bruno@clisp.org>
77147         * lib/trim.c: Include <string.h>.
77149 2008-04-11  Eric Blake  <ebb9@byu.net>
77151         Avoid compile failure on OS/2.
77152         * lib/regex_internal.h (internal_function): Disable optimization
77153         on OS/2 (__EMX__), where it caused compiler error.
77154         Reported by Elbert Pol.
77156 2008-04-11  Bruno Haible  <bruno@clisp.org>
77158         Flush the standard error stream before aborting. Needed on mingw.
77159         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
77160         * tests/test-array_list.c (ASSERT): Likewise.
77161         * tests/test-array_oset.c (ASSERT): Likewise.
77162         * tests/test-avltree_list.c (ASSERT): Likewise.
77163         * tests/test-avltree_oset.c (ASSERT): Likewise.
77164         * tests/test-avltreehash_list.c (ASSERT): Likewise.
77165         * tests/test-binary-io.c (ASSERT): Likewise.
77166         * tests/test-byteswap.c (ASSERT): Likewise.
77167         * tests/test-c-ctype.c (ASSERT): Likewise.
77168         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
77169         * tests/test-c-strcasestr.c (ASSERT): Likewise.
77170         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
77171         * tests/test-c-strstr.c (ASSERT): Likewise.
77172         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
77173         * tests/test-canonicalize.c (ASSERT): Likewise.
77174         * tests/test-carray_list.c (ASSERT): Likewise.
77175         * tests/test-ceilf1.c (ASSERT): Likewise.
77176         * tests/test-ceilf2.c (ASSERT): Likewise.
77177         * tests/test-ceill.c (ASSERT): Likewise.
77178         * tests/test-count-one-bits.c (ASSERT): Likewise.
77179         * tests/test-fbufmode.c (ASSERT): Likewise.
77180         * tests/test-fflush2.c (ASSERT): Likewise.
77181         * tests/test-floorf1.c (ASSERT): Likewise.
77182         * tests/test-floorf2.c (ASSERT): Likewise.
77183         * tests/test-floorl.c (ASSERT): Likewise.
77184         * tests/test-fopen.c (ASSERT): Likewise.
77185         * tests/test-fpending.c (ASSERT): Likewise.
77186         * tests/test-fprintf-posix.c (ASSERT): Likewise.
77187         * tests/test-fpurge.c (ASSERT): Likewise.
77188         * tests/test-freadable.c (ASSERT): Likewise.
77189         * tests/test-freadahead.c (ASSERT): Likewise.
77190         * tests/test-freading.c (ASSERT): Likewise.
77191         * tests/test-freadptr.c (ASSERT): Likewise.
77192         * tests/test-freadptr2.c (ASSERT): Likewise.
77193         * tests/test-freadseek.c (ASSERT): Likewise.
77194         * tests/test-freopen.c (ASSERT): Likewise.
77195         * tests/test-frexp.c (ASSERT): Likewise.
77196         * tests/test-frexpl.c (ASSERT): Likewise.
77197         * tests/test-fseek.c (ASSERT): Likewise.
77198         * tests/test-fseeko.c (ASSERT): Likewise.
77199         * tests/test-fstrcmp.c (ASSERT): Likewise.
77200         * tests/test-ftell.c (ASSERT): Likewise.
77201         * tests/test-ftello.c (ASSERT): Likewise.
77202         * tests/test-func.c (ASSERT): Likewise.
77203         * tests/test-fwritable.c (ASSERT): Likewise.
77204         * tests/test-fwriting.c (ASSERT): Likewise.
77205         * tests/test-getdelim.c (ASSERT): Likewise.
77206         * tests/test-getline.c (ASSERT): Likewise.
77207         * tests/test-i-ring.c (ASSERT): Likewise.
77208         * tests/test-iconv-utf.c (ASSERT): Likewise.
77209         * tests/test-iconv.c (ASSERT): Likewise.
77210         * tests/test-isfinite.c (ASSERT): Likewise.
77211         * tests/test-isnand.c (ASSERT): Likewise.
77212         * tests/test-isnanf.c (ASSERT): Likewise.
77213         * tests/test-isnanl.h (ASSERT): Likewise.
77214         * tests/test-ldexpl.c (ASSERT): Likewise.
77215         * tests/test-linked_list.c (ASSERT): Likewise.
77216         * tests/test-linkedhash_list.c (ASSERT): Likewise.
77217         * tests/test-localename.c (ASSERT): Likewise.
77218         * tests/test-lseek.c (ASSERT): Likewise.
77219         * tests/test-mbscasecmp.c (ASSERT): Likewise.
77220         * tests/test-mbscasestr1.c (ASSERT): Likewise.
77221         * tests/test-mbscasestr2.c (ASSERT): Likewise.
77222         * tests/test-mbscasestr3.c (ASSERT): Likewise.
77223         * tests/test-mbscasestr4.c (ASSERT): Likewise.
77224         * tests/test-mbschr.c (ASSERT): Likewise.
77225         * tests/test-mbscspn.c (ASSERT): Likewise.
77226         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
77227         * tests/test-mbspbrk.c (ASSERT): Likewise.
77228         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
77229         * tests/test-mbsrchr.c (ASSERT): Likewise.
77230         * tests/test-mbsspn.c (ASSERT): Likewise.
77231         * tests/test-mbsstr1.c (ASSERT): Likewise.
77232         * tests/test-mbsstr2.c (ASSERT): Likewise.
77233         * tests/test-mbsstr3.c (ASSERT): Likewise.
77234         * tests/test-memchr2.c (ASSERT): Likewise.
77235         * tests/test-memmem.c (ASSERT): Likewise.
77236         * tests/test-open.c (ASSERT): Likewise.
77237         * tests/test-printf-frexp.c (ASSERT): Likewise.
77238         * tests/test-printf-frexpl.c (ASSERT): Likewise.
77239         * tests/test-printf-posix.c (ASSERT): Likewise.
77240         * tests/test-quotearg.c (ASSERT): Likewise.
77241         * tests/test-rbtree_list.c (ASSERT): Likewise.
77242         * tests/test-rbtree_oset.c (ASSERT): Likewise.
77243         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
77244         * tests/test-round1.c (ASSERT): Likewise.
77245         * tests/test-roundf1.c (ASSERT): Likewise.
77246         * tests/test-roundl.c (ASSERT): Likewise.
77247         * tests/test-signbit.c (ASSERT): Likewise.
77248         * tests/test-sleep.c (ASSERT): Likewise.
77249         * tests/test-snprintf-posix.c (ASSERT): Likewise.
77250         * tests/test-snprintf.c (ASSERT): Likewise.
77251         * tests/test-sprintf-posix.c (ASSERT): Likewise.
77252         * tests/test-stat-time.c (ASSERT): Likewise.
77253         * tests/test-strcasestr.c (ASSERT): Likewise.
77254         * tests/test-strerror.c (ASSERT): Likewise.
77255         * tests/test-striconv.c (ASSERT): Likewise.
77256         * tests/test-striconveh.c (ASSERT): Likewise.
77257         * tests/test-striconveha.c (ASSERT): Likewise.
77258         * tests/test-strsignal.c (ASSERT): Likewise.
77259         * tests/test-strstr.c (ASSERT): Likewise.
77260         * tests/test-strtod.c (ASSERT): Likewise.
77261         * tests/test-trunc1.c (ASSERT): Likewise.
77262         * tests/test-trunc2.c (ASSERT): Likewise.
77263         * tests/test-truncf1.c (ASSERT): Likewise.
77264         * tests/test-truncf2.c (ASSERT): Likewise.
77265         * tests/test-truncl.c (ASSERT): Likewise.
77266         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
77267         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
77268         * tests/test-vasnprintf.c (ASSERT): Likewise.
77269         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
77270         * tests/test-vasprintf.c (ASSERT): Likewise.
77271         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
77272         * tests/test-vprintf-posix.c (ASSERT): Likewise.
77273         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
77274         * tests/test-vsnprintf.c (ASSERT): Likewise.
77275         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
77276         * tests/test-wcwidth.c (ASSERT): Likewise.
77277         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
77278         * tests/test-xprintf-posix.c (ASSERT): Likewise.
77279         * tests/test-xvasprintf.c (ASSERT): Likewise.
77280         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
77281         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
77282         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
77283         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
77284         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
77285         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
77286         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
77287         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
77288         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
77289         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
77290         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
77291         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
77292         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
77293         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
77294         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
77295         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
77296         * tests/unictype/test-block_list.c (ASSERT): Likewise.
77297         * tests/unictype/test-block_of.c (ASSERT): Likewise.
77298         * tests/unictype/test-block_test.c (ASSERT): Likewise.
77299         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
77300         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
77301         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
77302         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
77303         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
77304         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
77305         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
77306         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
77307         * tests/unictype/test-combining.c (ASSERT): Likewise.
77308         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
77309         * tests/unictype/test-digit.c (ASSERT): Likewise.
77310         * tests/unictype/test-mirror.c (ASSERT): Likewise.
77311         * tests/unictype/test-numeric.c (ASSERT): Likewise.
77312         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
77313         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
77314         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
77315         * tests/unictype/test-scripts.c (ASSERT): Likewise.
77316         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
77317         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
77318         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
77319         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
77320         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
77321         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
77322         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
77323         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
77324         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
77325         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
77326         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
77327         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
77328         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
77329         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
77330         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
77331         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
77332         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
77333         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
77334         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
77335         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
77336         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
77337         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
77338         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
77339         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
77340         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
77341         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
77342         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
77343         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
77344         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
77345         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
77346         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
77347         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
77348         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
77349         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
77350         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
77351         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
77352         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
77353         Reported by Eric Blake.
77355 2008-04-11  Bruno Haible  <bruno@clisp.org>
77357         * lib/wchar.in.h: Tweak comment.
77359 2008-04-11  Bruno Haible  <bruno@clisp.org>
77361         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
77362         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
77363         gl_COMMON.
77364         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
77366 2008-04-11  Bruno Haible  <bruno@clisp.org>
77368         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
77370 2008-04-11  Simon Josefsson  <simon@josefsson.org>
77372         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
77373         of attempting to use non-existing /dev/*random.  Based on patch
77374         from Adam Strzelecki <ono@java.pl> in
77375         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
77377 2008-04-08  Bruno Haible  <bruno@clisp.org>
77379         Add tentative support for emx+gcc.
77380         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
77381         * lib/fpurge.c (fpurge): Likewise.
77382         * lib/freadable.c (freadable): Likewise.
77383         * lib/freadahead.c (freadahead): Likewise.
77384         * lib/freading.c (freading): Likewise.
77385         * lib/freadptr.c (freadptr): Likewise.
77386         * lib/freadseek.c (freadptrinc): Likewise.
77387         * lib/fseeko.c (rpl_fseeko): Likewise.
77388         * lib/fseterr.c (fseterr): Likewise.
77389         * lib/fwritable.c (fwritable): Likewise.
77390         * lib/fwriting.c (fwriting): Likewise.
77391         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
77393 2008-04-09  Eric Blake  <ebb9@byu.net>
77395         Avoid some autoconf warnings.
77396         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
77397         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
77398         * m4/afs.m4 (gl_AFS): Likewise.
77399         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
77400         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
77401         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77402         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
77403         (gl_INTEGER_TYPE_SUFFIX): Likewise.
77404         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
77405         (AC_CHECK_DECLS_ONCE): Likewise.
77406         Rename file...
77407         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
77408         gnulib-tool requires autoconf 2.59 or better.
77409         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
77411 2008-04-08  Eric Blake  <ebb9@byu.net>
77413         Use 'git describe --match' if present (added in git 1.5.5).
77414         * build-aux/git-version-gen: Limit result to tags that match 'v*'
77415         if possible.
77417 2008-04-08  Bruno Haible  <bruno@clisp.org>
77419         Add tentative support for OpenServer.
77420         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
77421         _ptr, _cnt.
77422         * lib/fpurge.c (fpurge): Likewise.
77423         * lib/freadable.c (freadable): Likewise.
77424         * lib/freadahead.c (freadahead): Likewise.
77425         * lib/freading.c (freading): Likewise.
77426         * lib/freadptr.c (freadptr): Likewise.
77427         * lib/freadseek.c (freadptrinc): Likewise.
77428         * lib/fseeko.c (rpl_fseeko): Likewise.
77429         * lib/fseterr.c (fseterr): Likewise.
77430         * lib/fwritable.c (fwritable): Likewise.
77431         * lib/fwriting.c (fwriting): Likewise.
77432         Reported by Roger Cornelius <rac@tenzing.org> and
77433         Brian K. White <brian@aljex.com>.
77435 2008-04-06  Jim Meyering  <meyering@redhat.com>
77437         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
77439 2008-04-06  Bruno Haible  <bruno@clisp.org>
77441         Avoid possible error with non-ASCII bytes in UTF-8 locales.
77442         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
77443         * tests/test-printf-posix.sh: Likewise.
77444         * tests/test-vfprintf-posix.sh: Likewise.
77445         * tests/test-vprintf-posix.sh: Likewise.
77446         * tests/test-xprintf-posix.sh: Likewise.
77448 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77450         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
77451         hide error from 'ls', needed on OS/2.
77452         Report by Elbert Pol <elbert.pol@gmail.com>.
77454 2008-04-04  Eric Blake  <ebb9@byu.net>
77456         Make test-fseeko.c failures meaningful.
77457         * tests/test-fseeko.c: Print line number on failure.
77458         * tests/test-fseek.c: Likewise.
77459         Reported by Nelson H. F. Beebe.
77461         Improve strtod bug detection check.
77462         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
77463         required for Solaris 10.
77464         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
77466 2008-04-04  Bruno Haible  <bruno@clisp.org>
77468         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
77469         by m4/setenv.m4.
77471 2008-04-03  Eric Blake  <ebb9@byu.net>
77473         Ensure sane .version contents.
77474         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
77475         version string.
77476         * build-aux/git-version-gen: Improve documentation.
77478         Make GNU make output nicer.
77479         * top/GNUmakefile [!_have-Makefile]: Add dependency on
77480         MAKECMDGOALS to enforce message for all command line targets.  Set
77481         srcdir for use in maint.mk.
77483         Another maintainer tweak.
77484         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
77485         a target that regenerates version.
77487 2008-04-03  Jim Meyering  <meyering@redhat.com>
77489         vc-list-files: don't cause coreutils "make po-check" failure
77490         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
77492 2008-04-03  Eric Blake  <ebb9@byu.net>
77494         Allow VPATH usage of vc-list-files.
77495         * build-aux/vc-list-files (scriptversion): Add timestamp.
77496         (options): Add --help, --version, -C.
77497         (CVS): Support installed cvsu.
77499 2008-04-02  Bruno Haible  <bruno@clisp.org>
77501         Avoid some "statement with no effect" warnings from gcc.
77502         * tests/test-wctype.c (main): Explicitly ignore unused values.
77503         Reported by Jim Meyering.
77505 2008-04-02  Jim Meyering  <meyering@redhat.com>
77507         Avoid some warnings from "gcc -Wshadow".
77508         * tests/test-frexp.c (exp): Define to a different identifier.
77509         * tests/test-frexpl.c (exp): Likewise.
77511 2008-04-03  Jim Meyering  <meyering@redhat.com>
77513         bootstrap: remove dangling *.[ch] symlinks from lib
77514         * build-aux/bootstrap [dangling symlink removal]: Move find's
77515         -depth option to precede all others, to avoid a warning.
77516         Remove *.[ch] files too, and from "$source_base" (usually lib/).
77518 2008-04-02  Bruno Haible  <bruno@clisp.org>
77520         Avoid some warnings from "gcc -Wshadow".
77521         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
77522         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
77523         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
77524         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
77525         Reported by Jim Meyering.
77527 2008-04-01  Bruno Haible  <bruno@clisp.org>
77529         Fix test to work on IRIX 6.5 with cc.
77530         * tests/test-math.c (numeric_equal): New function.
77531         (main): Use it.
77533 2008-04-01  Bruno Haible  <bruno@clisp.org>
77535         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
77537 2008-04-01  Bruno Haible  <bruno@clisp.org>
77539         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
77540         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77541         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
77542         (Depends-on): Remove math.
77544         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
77545         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77546         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
77547         (Depends-on): Remove math.
77549         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
77550         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77551         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
77552         (Depends-on): Remove math.
77553         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
77554         (Depends-on): Remove math.
77556         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
77557         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77558         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
77559         (Depends-on): Remove math.
77560         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
77561         (Depends-on): Remove math.
77563         * tests/test-round1.c: Include nan.h.
77564         (main): Use NaNd instead of NAN.
77565         * modules/round-tests (Files): Add tests/nan.h.
77567         * tests/test-trunc1.c: Include nan.h.
77568         (main): Use NaNd instead of NAN.
77569         * modules/trunc-tests (Files): Add tests/nan.h.
77571         * tests/test-roundf1.c: Include nan.h.
77572         (main): Use NaNf instead of NAN.
77573         * modules/roundf-tests (Files): Add tests/nan.h.
77575         * tests/test-truncf1.c: Include nan.h.
77576         (main): Use NaNf instead of NAN.
77577         * modules/truncf-tests (Files): Add tests/nan.h.
77579         * tests/test-ceilf1.c: Include nan.h.
77580         (main): Use NaNf instead of NAN.
77581         * modules/ceilf-tests (Files): Add tests/nan.h.
77583         * tests/test-floorf1.c: Include nan.h.
77584         (main): Use NaNf instead of NAN.
77585         * modules/floorf-tests (Files): Add tests/nan.h.
77587         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
77588         (main): Use NaNf instead of NAN.
77589         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
77591         * tests/test-isnand.c: Include nan.h instead of <math.h>.
77592         (main): Use NaNd instead of NAN.
77593         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
77595         * tests/test-frexp.c: Include nan.h.
77596         (main): Use NaNd instead of NAN.
77597         * modules/frexp-tests (Files): Add tests/nan.h.
77599         * lib/isnan.c: Don't include <math.h>.
77600         (FUNC): Don't use NAN macro.
77601         * modules/isnand-nolibm (Depends-on): Remove math.
77602         * modules/isnanf-nolibm (Depends-on): Remove math.
77603         * modules/isnanl (Depends-on): Remove math.
77604         * modules/isnanl-nolibm (Depends-on): Remove math.
77606         * tests/nan.h: New file.
77608 2008-04-01  Eric Blake  <ebb9@byu.net>
77610         Fix typos.
77611         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
77612         values to be the right type.
77614         For now, cater to gnulib strtod inaccuracies.
77615         * tests/test-strtod.c (main): Allow 1-ulp error on expected
77616         fractional results.  While not as nice from a QoI perspective, it
77617         is a quicker patch than correctly implementing decimal to binary
77618         rounding.
77620 2008-03-31  Eric Blake  <ebb9@byu.net>
77622         Guarantee a definition of NAN.
77623         * lib/math.in.h (NAN): Define if missing.
77624         * tests/test-math.c (main): Test it.
77625         * doc/posix-headers/math.texi (math.h): Document this.
77626         * lib/isnan.c (rpl_isnand): Use it.
77627         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
77628         * tests/test-floorf1.c (NaN): Likewise.
77629         * tests/test-frexp.c (NaN): Likewise.
77630         * tests/test-isnand.c (NaN): Likewise.
77631         * tests/test-isnanf.c (NaN): Likewise.
77632         * tests/test-round1.c (NaN): Likewise.
77633         * tests/test-roundf1.c (NaN): Likewise.
77634         * tests/test-snprintf-posix.h (NaN): Likewise.
77635         * tests/test-sprintf-posix.h (NaN): Likewise.
77636         * tests/test-trunc1.c (NaN): Likewise.
77637         * tests/test-truncf1.c (NaN): Likewise.
77638         * tests/test-vasnprintf-posix.c (NaN): Likewise.
77639         * tests/test-vasprintf-posix.c (NaN): Likewise.
77640         * modules/isnand-nolibm (Depends-on): Add math.
77641         * modules/isnanf-nolibm (Depends-on): Likewise.
77642         * modules/isnanl (Depends-on): Likewise.
77643         * modules/isnanl-nolibm (Depends-on): Likewise.
77644         * modules/snprintf-posix-tests (Depends-on): Likewise.
77645         * modules/sprintf-posix-tests (Depends-on): Likewise.
77646         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
77647         * modules/vsprintf-posix-tests (Depends-on): Likewise.
77648         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
77649         * modules/vasprintf-posix-tests (Depends-on): Likewise.
77651 2008-03-31  Bruno Haible  <bruno@clisp.org>
77653         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
77654         * doc/posix-functions/strtod.texi: Likewise.
77656 2008-03-31  Bruno Haible  <bruno@clisp.org>
77658         * tests/test-strtod.c (main): Don't use C99 syntax.
77660 2008-03-31  Bruno Haible  <bruno@clisp.org>
77662         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
77663         Reported by Eric Blake.
77665 2008-03-31  Jim Meyering  <meyering@redhat.com>
77667         Don't compare actual signbit return values.
77668         * tests/test-strtod.c (main): Rather, compare only their
77669         zero/non-zero nature.
77671 2008-03-31  Eric Blake  <ebb9@byu.net>
77673         More strtod documentation.
77674         * doc/posix-functions/strtod.texi (strtod): Interpret more test
77675         failures as distinct bugs.
77677 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
77679         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
77680         Problem reported by Erik Benada in
77681         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
77683 2008-03-30  Bruno Haible  <bruno@clisp.org>
77685         * tests/test-strtod.c: Add comments about which assertion fails on which
77686         platform.
77687         * doc/posix-functions/strtod.texi: Add info about many more platforms.
77689 2008-03-30  Eric Blake  <ebb9@byu.net>
77691         Test signbit behavior on zeros.
77692         * tests/test-signbit.c (test_signbitf): Add tests for zero.
77693         (test_signbitd, test_signbitl): Likewise.
77695         More strtod touchups.
77696         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
77697         sign of negative underflow, for now.  Use .5, not .1.
77698         * doc/posix-functions/strtod.texi (strtod): Mention these
77699         limitations.
77700         Reported by Jim Meyering.
77702 2008-03-30  Bruno Haible  <bruno@clisp.org>
77704         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
77705         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
77707 2008-03-30  Bruno Haible  <bruno@clisp.org>
77709         Avoid failure when attempting to return empty iconv results on some
77710         platforms.
77711         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
77712         allocation, don't report ENOMEM when the resulting string is empty.
77714 2008-03-30  Bruno Haible  <bruno@clisp.org>
77716         Fix buffer overrun.
77717         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
77718         Don't consider the width for tmp_length. Check count against tmp_length
77719         before doing the padding. Ensure enough allocation during padding.
77721 2008-03-30  Eric Blake  <ebb9@byu.net>
77723         strtod touchups.
77724         * lib/strtod.c (strtod): Avoid compiler warnings.
77725         Reported by Jim Meyering.
77727 2008-03-30  Bruno Haible  <bruno@clisp.org>
77729         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
77730         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
77731         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
77732         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
77733         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
77734         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
77735         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
77736         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
77738         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
77739         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
77740         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
77741         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
77742         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
77743         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
77744         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
77745         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
77747         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
77748         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
77749         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
77750         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
77751         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
77752         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
77753         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
77754         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
77756         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
77757         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
77759         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
77760         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
77762         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
77763         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
77765         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
77766         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
77767         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
77769         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
77770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
77771         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
77773         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
77774         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
77775         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
77777         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
77778         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
77779         * modules/vasprintf (Depends-on): Add EOVERFLOW.
77781         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
77782         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
77783         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
77784         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
77785         (Depends-on): Add EOVERFLOW.
77786         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
77787         (Depends-on): Add EOVERFLOW.
77788         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
77789         (Depends-on): Add EOVERFLOW.
77790         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
77791         (Depends-on): Add EOVERFLOW.
77792         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
77793         (Depends-on): Add EOVERFLOW.
77794         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
77795         (Depends-on): Add EOVERFLOW.
77796         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
77797         (Depends-on): Add EOVERFLOW.
77798         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
77799         (Depends-on): Add EOVERFLOW.
77801         * lib/sprintf.c (EOVERFLOW): Remove fallback.
77802         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
77803         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
77805         * lib/snprintf.c (EOVERFLOW): Remove fallback.
77806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
77807         * modules/snprintf (Depends-on): Add EOVERFLOW.
77809         * lib/poll.c (EOVERFLOW): Remove fallback.
77810         * modules/poll (Depends-on): Add EOVERFLOW.
77812         * lib/getugroups.c (EOVERFLOW): Remove fallback.
77813         * modules/getugroups (Depends-on): Add EOVERFLOW.
77815         * lib/getdelim.c (EOVERFLOW): Remove fallback.
77816         * modules/getdelim (Depends-on): Add EOVERFLOW.
77818         * lib/ftell.c (EOVERFLOW): Remove fallback.
77819         * modules/ftell (Depends-on): Add EOVERFLOW.
77821         * lib/fprintf.c (EOVERFLOW): Remove fallback.
77822         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
77823         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
77825         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
77827         * modules/EOVERFLOW-tests: New file.
77828         * tests/test-EOVERFLOW.c: New file.
77830         * modules/EOVERFLOW: New file.
77831         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
77833 2008-03-30  Bruno Haible  <bruno@clisp.org>
77835         Fix bug introduced on 2007-06-10.
77836         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
77837         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
77839 2008-03-30  Bruno Haible  <bruno@clisp.org>
77841         Improve freadseek's efficiency after ungetc.
77842         * lib/freadseek.c: Include freadahead.h.
77843         (freadptrinc): New function, extracted from freadseek.
77844         (freadseek): Use it in a loop. Use freadahead to determine the number
77845         of loop iterations.
77846         * modules/freadseek (Depends-on): Add freadahead.
77847         (configure.ac): Require AC_C_INLINE.
77849 2008-03-30  Bruno Haible  <bruno@clisp.org>
77851         * lib/freadseek.c (freadseek): Don't ignore the return value of
77852         freadptr.
77854 2008-03-29  Eric Blake  <ebb9@byu.net>
77856         Add hex float support.
77857         * modules/strtod (Depends-on): Add c-ctype.
77858         (Link): Mention POW_LIB.
77859         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
77860         whitespace between 'e' and exponent.
77861         * tests/test-strtod.c (main): Enable hex float tests.
77862         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
77863         now provides.
77865         Document various strtod bugs, with some fixes.
77866         * doc/posix-functions/strtod.texi (strtod): Document bugs with
77867         "-0x", "inf", "nan", and hex constants.
77868         * doc/posix-functions/atof.texi (atof): Likewise.
77869         * modules/stdlib (Makefile.am): Support strtod.
77870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
77871         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
77872         detect additional strtod bugs.
77873         * lib/stdlib.in.h (rpl_strtod): Add declarations.
77874         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
77875         bool where appropriate.  Parse 'inf' and 'nan'.
77876         * tests/test-strtod.c: New file.
77877         * modules/strtod (Depends-on): Add stdbool, stdlib.
77878         (configure.ac): Turn on module indicator.
77879         * modules/strtod-tests: New module.
77881 2008-03-29  Eric Blake  <ebb9@byu.net>
77883         Fix ftell on mingw.
77884         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
77885         * modules/ftell-tests (Depends-on): Add binary-io.
77886         * modules/ftello-tests (Depends-on): Likewise.
77887         * tests/test-ftell.c (main): Enhance test to cover behavior after
77888         ungetc.  Enforce binary mode.
77889         * tests/test-ftello.c (main): Likewise.
77891         Pass test-freadseek on cygwin.
77892         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
77893         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
77894         ungetc buffer.
77896         * tests/test-fflush2.c (main): Fix typo.
77898 2008-03-29  Bruno Haible  <bruno@clisp.org>
77900         * tests/test-fflush2.c (main): Temporarily disable the contents of
77901         this test.
77902         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
77903         Reported by Eric Blake.
77905 2008-03-28  Simon Josefsson  <simon@josefsson.org>
77907         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
77908         (GC_SHA224_DIGEST_SIZE): Add.
77910         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
77911         (gc_hash_digest_length): Likewise.
77912         (gc_hash_buffer): Likewise.
77914 2008-03-25  Bruno Haible  <bruno@clisp.org>
77916         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
77917         detail which gettext release to use.
77918         Reported by Simon Josefsson.
77920 2008-03-26  Jim Meyering  <meyering@redhat.com>
77922         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
77923         * modules/gnumakefile (clean-GNUmakefile): Also, use
77924         test ... && ... || : syntax rather than if-then ... fi.
77926         gnumakefile: Don't double-quote-expand $(VPATH) value.
77927         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
77929 2008-03-24  Eric Blake  <ebb9@byu.net>
77931         Alter GNUmakefile to install into top directory.
77932         * modules/maintainer-makefile: Split, and add dependency...
77933         * modules/gnumakefile: to this new module.
77934         * build-aux/GNUmakefile: Move...
77935         * top/GNUmakefile: ...here.
77936         * build-aux/maint.mk: Move...
77937         * top/maint.mk: ...here.
77938         * MODULES.html.sh (Support for maintaining...): Document new
77939         module.
77941 2008-03-23  Bruno Haible  <bruno@clisp.org>
77943         * gnulib-tool: New options --vc-files, --no-vc-files.
77944         (func_usage): Document them.
77945         (vc_files): New variable.
77946         (func_import): Consider vc_files.
77947         (func_create_testdir): Set vc_files to empty.
77948         Suggested by Jim Meyering and Karl Berry.
77950 2008-03-23  Bruno Haible  <bruno@clisp.org>
77952         Fix regex compilation error on HP-UX 11.
77953         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
77954         * modules/regex (Files): Add m4/mbstate_t.m4.
77955         Reported by Ton Voon <ton.voon@altinity.com>.
77957 2008-03-23  Bruno Haible  <bruno@clisp.org>
77959         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
77961 2008-03-23  Eric Blake  <ebb9@byu.net>
77962             Bruno Haible  <bruno@clisp.org>
77964         Install files from top/ in the destination directory.
77965         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
77966         augmentation also for the files from top/.
77967         (func_import, func_create_testdir): Rewrite file names:
77968         top/filename -> filename.
77970 2008-03-23  Bruno Haible  <bruno@clisp.org>
77972         Tweak "gnulib --version" output.
77973         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
77975 2008-03-23  Bruno Haible  <bruno@clisp.org>
77977         Tweak "gnulib --version" output.
77978         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
77979         rather than contents of ChangeLog, when possible.
77981 2008-03-21  Eric Blake  <ebb9@byu.net>
77983         More --version tweaks.
77984         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
77985         date of last ChangeLog entry.
77987 2008-03-21  Jim Meyering  <meyering@redhat.com>
77989         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
77991 2008-03-20  Eric Blake  <ebb9@byu.net>
77993         VPATH fix.
77994         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
77996 2008-03-20  Simon Josefsson  <simon@josefsson.org>
77998         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
77999         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
78001 2008-03-20  Eric Blake  <ebb9@byu.net>
78003         Sync GNUmakefile with coreutils.
78004         * build-aux/GNUmakefile (have-Makefile): Rename...
78005         (_have-Makefile): ...to this, for namespace consideration.
78006         (GNUmakefile.cfg): Include, if present.
78007         (_autoreconf): Define a default.
78008         (_is-dist-target): New rule for rebuilds to pick up intra-release
78009         version.
78010         (maint-cfg.mk): Rename...
78011         (cfg.mk): ...to this.
78013 2008-03-18  Jim Meyering  <meyering@redhat.com>
78015         New script and module: mktempd
78016         * MODULES.html.sh (maint+release support): Add mktempd.
78017         * build-aux/mktempd: New file.
78018         * modules/mktempd: New file.
78020 2008-03-15  Jim Meyering  <meyering@redhat.com>
78022         Undo last change.
78023         * lib/sha1.c, lib/md5.c: 63 != ~63.
78024         Reported by Andreas Schwab.
78026         sha1.c, md5.c: Hoist a redundant expression.
78027         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
78028         "ctx->buflen" only once, before calling *_process_block.
78029         * lib/md5.c (md5_process_bytes): Likewise.
78031 2008-03-14  Eric Blake  <ebb9@byu.net>
78033         Bump copyright year in files generated by gnulib-tool.
78034         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
78035         gnulib-tool, rather than hard-coding it.
78037         Fix 'gnulib-tool --version' output to work with git.
78038         * gnulib-tool (func_gnulib_dir): New function, extracted from...
78039         (startup): ...here.
78040         (func_version): Use it to invoke git-version-gen, rather than
78041         relying on CVS keyword expansion.  Modernize wording.
78042         (cvsdatestamp, last_checkin_date, version): Kill unused
78043         variables.
78045 2008-03-12  Jim Meyering  <meyering@redhat.com>
78047         Recognize optional cast of the argument to free.
78048         * build-aux/useless-if-before-free: Update regexps.
78050         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
78052 2008-03-11  Bruno Haible  <bruno@clisp.org>
78054         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
78055         by a single package.
78056         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
78057         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
78058         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
78059         Reported by Sam Steingold <sds@gnu.org>.
78061 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78063         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
78064         repositories.
78066 2008-03-11  Bruno Haible  <bruno@clisp.org>
78068         Avoid conflicts between local macro definitions.
78069         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
78070         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
78072 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
78073             Bruno Haible  <bruno@clisp.org>
78075         Make va_copy work with some version of xlc on AIX 5.1.
78076         * lib/stdarg.in.h: New file.
78077         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
78078         On AIX, use a <stdarg.h> file substitute.
78079         * modules/stdarg (Files): Add lib/stdarg.in.h.
78080         (Depends-on): Add include_next.
78081         (Makefile.am): Build a stdarg.h substitute if requested.
78082         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
78084 2008-03-10  Bruno Haible  <bruno@clisp.org>
78086         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
78087         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
78088         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
78090 2008-03-10  Bruno Haible  <bruno@clisp.org>
78092         * modules/stdlib (Depends-on): Add include_next, remove
78093         absolute-header.
78095 2008-03-09  Bruno Haible  <bruno@clisp.org>
78097         * lib/freadahead.h (freadahead): Document more precisely.
78098         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
78099         the sum of both buffer sizes.
78100         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
78101         * NEWS: Document the change.
78103 2008-03-09  Bruno Haible  <bruno@clisp.org>
78105         Extend freadptr to return also the buffer size.
78106         * lib/freadptr.h (freadptr): Add sizep argument.
78107         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
78108         (freadptr): Add sizep argument. Determine buffer size like freadahead
78109         does.
78110         * tests/test-freadptr.c: Don't include freadahead.h.
78111         (main): Adapt for new calling convention of freadptr.
78112         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
78113         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
78114         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
78115         tests/test-freadptr2.sh.
78116         (Depends): Remove freadahead.
78117         (TESTS): Add test-freadptr2.sh.
78118         (check_PROGRAMS): Add test-freadptr2.
78120 2008-03-09  Bruno Haible  <bruno@clisp.org>
78122         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
78123         Report and solution by Simon Josefsson.
78125 2008-03-06  Bruno Haible  <bruno@clisp.org>
78127         Make fflush after ungetc work on BSD platforms.
78128         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
78129         * tests/test-fflush2.c: New file.
78130         * tests/test-fflush2.sh: New file.
78131         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
78132         tests/test-fflush2.c.
78133         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
78134         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
78136 2008-03-06  Eric Blake  <ebb9@byu.net>
78138         Likewise for ftello.
78139         * modules/ftello (Dependencies): Add extensions.
78140         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
78142 2008-03-06  Bruno Haible  <bruno@clisp.org>
78144         * modules/fseeko (Dependencies): Add extensions.
78145         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
78146         Needed on glibc systems.
78148 2008-03-06  Bruno Haible  <bruno@clisp.org>
78150         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
78151         email address.
78152         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
78154 2008-03-06  Bruno Haible  <bruno@clisp.org>
78156         * users.txt: Add libgnupdf.
78158 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
78160         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
78161         (Header File Substitutes, Function Substitutes,
78162         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
78163         (Build robot for gnulib): Fix typo.
78165 2008-03-06  Bruno Haible  <bruno@clisp.org>
78167         * doc/gnulib-tool.texi (VCS Issues): Small updates.
78168         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
78170 2008-03-06  Bruno Haible  <bruno@clisp.org>
78172         * doc/func.texi: New file, extracted from doc/gnulib.texi.
78173         * doc/gnulib.texi: Include it.
78175 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78177         * modules/func (License): Change license to unlimited; there was
78178         no LGPL parts in the module anyway.
78180 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78182         * modules/__func__: Renamed to modules/func.
78183         * modules/__func__-tests: Renamed to modules/func-tests.
78184         * tests/test-__func__.c: Renamed to tests/test-func.c.
78185         * m4/__func__.m4: Renamed to m4/func.m4.
78186         * doc/gnulib.texi (__func__): Section renamed to func.
78187         Suggested by Eric Blake <ebb9@byu.net>.
78189 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78191         * doc/gnulib.texi (__func__): Use C99 terminology when talking
78192         about __func__.  Make example self-contained.  Suggested by Eric
78193         Blake <ebb9@byu.net>.
78195         * tests/test-__func__.c (main): Avoid extraneous () around __func.
78196         Suggested by Eric Blake <ebb9@byu.net>.
78198 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78200         * modules/__func__: New file.
78201         * modules/__func__-tests: New file.
78202         * tests/test-__func__.c: New file.
78203         * m4/__func__.m4: New file.
78204         * doc/gnulib.texi (__func__): Document __func__ module.
78206 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78208         * modules/byteswap (License): Re-license as LGPLv2+.
78210 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78212         * doc/Makefile: Add pdf target.
78214 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78216         * modules/inline (License): Use 'unlimited', since there are only
78217         *.m4 files in this module.
78219 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
78220             Bruno Haible  <bruno@clisp.org>
78222         Add support for HP C 7.1 on OpenVMS 8.3.
78223         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
78225 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
78227         Update VMS specifics.
78228         * lib/getopt.c [VMS]: Remove include of unixlib.h.
78230 2008-03-02  Jim Meyering  <meyering@redhat.com>
78232         Remove the last dependency on the "free" module.
78233         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
78234         Reported by Bob Proulx.
78236         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
78238         Remove useless "if" tests before free.  Deprecate "free" module.
78239         * doc/posix-functions/free.texi: Mention that this
78240         module is no longer useful.
78241         * modules/free (Notice): Say this module is obsolete.
78242         * modules/readutmp (Depends-on): Remove free.
78243         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
78244         * lib/putenv.c (putenv): Likewise.
78245         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
78246         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
78247         * tests/test-c-strcasestr.c (main): Likewise.
78248         * tests/test-c-strstr.c (main): Likewise.
78249         * tests/test-mbscasestr1.c (main): Likewise.
78250         * tests/test-mbscasestr2.c (main): Likewise.
78251         * tests/test-mbsstr1.c (main): Likewise.
78252         * tests/test-mbsstr2.c (main): Likewise.
78253         * tests/test-memmem.c (main): Likewise.
78254         * tests/test-strcasestr.c (main): Likewise.
78255         * tests/test-striconv.c (main): Likewise.
78256         * tests/test-striconveh.c (main): Likewise.
78257         * tests/test-striconveha.c (main): Likewise.
78258         * tests/test-strstr.c (main): Likewise.
78260         * build-aux/git-version-gen: Adjust a comment and the Usage string.
78262         bootstrap: sync from coreutils again
78263         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
78265 2008-03-01  Jim Meyering  <meyering@redhat.com>
78267         bootstrap: sync from coreutils
78268         * build-aux/bootstrap (update_po_files): Copy a .po file into place
78269         also when the target doesn't exist.
78271 2008-03-01  Eric Blake  <ebb9@byu.net>
78273         Fix bugs in last patch.
78274         * lib/memchr2.c (memchr2): Fix typo.
78275         * tests/test-memchr2.c: Test previous bug, and don't use GNU
78276         extension.
78277         Reported by Bruce Korb.
78279         New module 'memchr2'.
78280         * modules/memchr2: New file.
78281         * modules/memchr2-tests: Likewise.
78282         * lib/memchr2.h: Likewise.
78283         * lib/memchr2.c: Likewise, based on memchr.c.
78284         * tests/test-memchr2.c: New test.
78285         * MODULES.html.sh (String handling): Add memchr2.
78287 2008-02-29  Bruno Haible  <bruno@clisp.org>
78289         * modules/freadseek-tests: New file.
78290         * tests/test-freadseek.sh: New file.
78291         * tests/test-freadseek.c: New file.
78293         New module 'freadseek'.
78294         * modules/freadseek: New file.
78295         * lib/freadseek.h: New file.
78296         * lib/freadseek.c: New file.
78297         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
78299 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
78301         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
78302         wydawca.
78304         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
78305         program_invocation_name and program_invocation_short_name are
78306         present.
78308 2008-02-28  Bruno Haible  <bruno@clisp.org>
78310         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
78311         * tests/test-freadptr.sh: Also test non-seekable stdin.
78313 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
78315         * build-aux/bootstrap (source_base, m4_base)
78316         (doc_base, tests_base): New variables.
78317         (gnulib_tool_options): Do not hardcode base directories, use
78318         the above variables instead.
78320 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
78322         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
78324 2008-02-28  Bruno Haible  <bruno@clisp.org>
78326         * modules/freadptr-tests: New file.
78327         * tests/test-freadptr.sh: New file.
78328         * tests/test-freadptr.c: New file.
78330         New module 'freadptr'.
78331         * modules/freadptr: New file.
78332         * lib/freadptr.h: New file.
78333         * lib/freadptr.c: New file.
78334         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
78336 2008-02-26  Karl Berry  <karl@freefriends.org>
78338         Sync from Libtool:
78339         * libltdl/argz.c (argz_add, argz_count): New functions.
78340         * libltdl/argz.in.h: Declare them.
78341         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
78343 2008-02-22  Bruno Haible  <bruno@clisp.org>
78345         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
78346         is a pointer type.  Needed for HP-UX 10.
78347         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
78348         * doc/posix-functions/gmtime_r.texi: Likewise.
78349         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
78351 2008-02-24  Bruno Haible  <bruno@clisp.org>
78353         * modules/environ-tests: New file.
78354         * tests/test-environ.c: New file.
78356         New module 'environ'.
78357         * modules/environ: New file.
78358         * lib/unistd.in.h (environ): New declaration.
78359         * m4/environ.m4: New file.
78360         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
78361         after use.
78362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
78363         HAVE_DECL_ENVIRON.
78364         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
78365         HAVE_DECL_ENVIRON.
78366         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
78367         wrong claim that 'environ' is missing on some systems.
78368         * modules/execute (Depends-on): Add environ.
78369         * lib/execute.c (environ): Remove fallback declaration.
78370         * modules/pipe (Depends-on): Add environ.
78371         * lib/pipe.c (environ): Remove fallback declaration.
78372         * modules/setenv (Depends-on): Add environ.
78373         * lib/setenv.c (environ): Remove fallback declaration.
78374         * modules/unsetenv (Depends-on): Add environ.
78375         * lib/unsetenv.c (environ): Remove fallback declaration.
78376         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
78377         m4/environ.m4.
78378         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
78379         (gl_PREREQ_UNSETENV): Likewise.
78381 2008-02-24  Bruno Haible  <bruno@clisp.org>
78383         * doc/posix-functions/environ.texi: Document the MacOS X problem.
78385 2008-02-20  Bob Proulx  <bob@proulx.com>
78387         Enable use of older two part flavor 'git describe'.
78388         * build-aux/git-version-gen: If using the older two part flavor of
78389         git version then recreate the third part now present in the
78390         newer three part flavor of git describe.
78392 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
78394         * lib/fts.c (fts_build): Typo correction to comment.
78396 2008-02-17  Bruno Haible  <bruno@clisp.org>
78398         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
78399         generating no-op conflicts.
78401 2008-02-17  Bruno Haible  <bruno@clisp.org>
78403         Speed up by 10%.
78404         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
78405         result_entries, rather than an index-based loop.
78407 2008-02-17  Bruno Haible  <bruno@clisp.org>
78409         Speed up by 25%.
78410         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
78411         'hashcode_cached'.
78412         (entry_create): New function.
78413         (entry_hashcode): Use the cached hashcode if possible.
78414         (read_changelog_file, try_split_merged_entry): Use entry_create.
78416 2008-02-17  Bruno Haible  <bruno@clisp.org>
78418         Speed up from O(n^2) to O(n) for long ChangeLog files.
78419         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
78420         (read_changelog_file): Change implementation of entries_reversed list
78421         to rbtreehash.
78422         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
78424 2008-02-17  Bruno Haible  <bruno@clisp.org>
78426         New option --split-merged-entry.
78427         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
78428         (find_paragraph_end, try_split_merged_entry): New functions.
78429         (long_options): Add option --split-merged-entry.
78430         (usage): Document option --split-merged-entry.
78431         (main): Implement option --split-merged-entry.
78432         Reported by Eric Blake.
78434 2008-02-17  Bruno Haible  <bruno@clisp.org>
78436         * lib/git-merge-changelog.c: Include c-strstr.h.
78437         (main): Support the "git pull --rebase" situation.
78438         * modules/git-merge-changelog (Depends-on): Add c-strstr.
78439         Reported by Eric Blake.
78441 2008-02-16  Eric Blake  <ebb9@byu.net>
78443         Avoid doubling \ in common case of "c-maybe" quoting style.
78444         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
78445         eliding outer quotes.
78446         * lib/quotearg.h: Document this.
78447         * tests/test-quotearg.c (result_strings, inputs, results_g)
78448         (flag_results, locale_results): Test it by adding a new string to
78449         each test group.
78450         (compare_strings): Test new string.
78452 2008-02-13  Eric Blake  <ebb9@byu.net>
78454         Avoid trigraph quoting in default output.
78455         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
78456         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
78457         unless explicitly requested.
78458         * tests/test-quotearg.c (flag_results, main): Add additional tests.
78460 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
78462         Don't rely on signed integer overflowing to negative value.
78463         * lib/getugroups.c (getugroups): Include <limits.h>.
78464         Instead, compare against INT_MAX, and increment only if the test passes.
78466 2008-02-13  Jim Meyering  <meyering@redhat.com>
78467         and Eric Blake  <ebb9@byu.net>
78469         Avoid shadowing warning and compile errors on Linux.
78470         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
78471         forwarding macros on Linux.
78472         (dcgettext): Define a stub, for Linux.
78473         (results_g, main): Avoid warnings.
78475 2008-02-12  Eric Blake  <ebb9@byu.net>
78477         Silence warning in last patch.
78478         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
78480         Quotearg part 4: add tests, fix c-maybe colon quoting.
78481         * lib/quotearg.h: Improve documentation.
78482         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
78483         escapes when adding outer quotes.  When quoting trigraphs, use
78484         valid C notation.  When quoting NUL, omit extra characters if next
78485         character is not digit.  Alter prototype.
78486         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
78487         callers.
78488         * modules/quotearg-tests: New module.
78489         * tests/test-quotearg.c: New test.
78491 2008-02-07  Eric Blake  <ebb9@byu.net>
78493         Quotearg part 3: add flag to control outer quote elision.
78494         * lib/quotearg.h (c_maybe_quoting_style): New style.
78495         (enum quoting_flags): Better documentation of flags.
78496         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
78497         c-maybe style.
78498         (quotearg_buffer_restyled): Handle new flag to elide outer
78499         quotes.
78501         Quotearg part 2: add flag that can control NUL elision.
78502         * lib/quotearg.h (set_quoting_flags): New prototype.
78503         * lib/quotearg.c (struct quoting_options): Add flag field.
78504         (set_quoting_flags): New function.
78505         (quotearg_buffer_restyled): Add flags parameter.
78506         (quotearg_alloc_mem): Set the flag if length cannot be returned.
78507         (quotearg_n_options): Set the flag, since length cannot be
78508         returned.
78509         (quoting_options_from_style): Default flags correctly.
78511         Quotearg part 1: more wrappers, restore quotearg_char state.
78512         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
78513         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
78514         (quotearg_colon_mem): New wrappers.
78515         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
78516         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
78517         functions.
78518         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
78519         (quotearg_colon_mem): New functions.
78521 2008-02-11  Bruno Haible  <bruno@clisp.org>
78523         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
78524         library in the current directory: it does not work with parallel make.
78525         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78527 2008-02-11  Bruno Haible  <bruno@clisp.org>
78529         * .gitattributes: New file.
78531 2008-02-11  Jim Meyering  <meyering@redhat.com>
78533         useless-if-before-free: Fix reversed exit values.
78534         * build-aux/useless-if-before-free: Use correct values
78535         for EXIT_MATCH and EXIT_NO_MATCH.
78537         * build-aux/useless-if-before-free: Close stdout carefully.
78539 2008-02-10  Bruno Haible  <bruno@clisp.org>
78541         New module 'git-merge-changelog'.
78542         * modules/git-merge-changelog: New file.
78543         * lib/git-merge-changelog.c: New file.
78545 2008-02-10  Jim Meyering  <meyering@redhat.com>
78547         useless-if-before-free: New option: --list (-l).
78549         useless-if-before-free: Don't exit immediately upon open failure.
78550         * build-aux/useless-if-before-free: Exit 2 for errors.
78551         Upon failure to open a file, don't exit immediately.
78552         Rather, just warn and continue with any remaining files.
78554 2008-02-10  Bruno Haible  <bruno@clisp.org>
78556         New abstract list operation 'node_set_value'.
78557         * lib/gl_list.h (gl_list_node_set_value): New function.
78558         (struct gl_list_implementation): New field node_set_value.
78559         * lib/gl_list.c (gl_list_node_set_value): New function.
78560         * lib/gl_array_list.c (gl_array_node_set_value): New function.
78561         (gl_array_list_implementation): Update.
78562         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
78563         (gl_carray_list_implementation): Update.
78564         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
78565         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78566         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78567         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
78568         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78569         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78570         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78571         Update.
78572         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78573         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
78574         (gl_sublist_list_implementation): Update.
78576 2008-02-10  Bruno Haible  <bruno@clisp.org>
78578         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
78579         Needed when ELEMENT is #defined to 'some_type *'.
78581 2008-02-10  Jim Meyering  <meyering@redhat.com>
78583         New script and module: useless-if-before-free
78584         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
78585         * build-aux/useless-if-before-free: New file.
78586         * modules/useless-if-before-free: New file.
78588         * build-aux/gitlog-to-changelog: Use committer date, not author date.
78590         xstrtol_error: Fix typo.
78591         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
78592         s/exit_failure/exit_status/.
78594 2008-02-09  Jim Meyering  <meyering@redhat.com>
78596         New script and module: gitlog-to-changelog
78597         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
78598         * modules/gitlog-to-changelog: New file.
78599         * build-aux/gitlog-to-changelog: New file.
78601 2008-02-08  Jim Meyering  <meyering@redhat.com>
78603         Avoid two "parameter unused" warnings.
78604         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
78605         Mark "st" as used.
78607         Use "git COMMAND", not "git-COMMAND".
78608         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
78609         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
78610         * build-aux/git-version-gen: Use "git status", not "git-status".
78612 2008-02-07  Bruno Haible  <bruno@clisp.org>
78614         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
78615         Avoids a crash on Windows Vista.
78616         Reported by Adam Strzelecki <ono@java.pl> via
78617         Simon Josefsson <simon@josefsson.org>.
78619 2008-02-06  Bruno Haible  <bruno@clisp.org>
78621         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
78622         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
78623         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
78624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
78625         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
78626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78627         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
78628         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
78629         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78630         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78633         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78636         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
78637         left-adjust flag.
78638         * tests/test-snprintf-posix.h (test_function): Likewise.
78639         * tests/test-sprintf-posix.h (test_function): Likewise.
78640         * tests/test-vasprintf-posix.c (test_function): Likewise.
78641         * doc/posix-functions/fprintf.texi: Update.
78642         * doc/posix-functions/printf.texi: Update.
78643         * doc/posix-functions/snprintf.texi: Update.
78644         * doc/posix-functions/sprintf.texi: Update.
78645         * doc/posix-functions/vfprintf.texi: Update.
78646         * doc/posix-functions/vprintf.texi: Update.
78647         * doc/posix-functions/vsnprintf.texi: Update.
78648         * doc/posix-functions/vsprintf.texi: Update.
78649         Reported by Peter Fales <psfales@alcatel-lucent.com>.
78651 2008-02-06  Bruno Haible  <bruno@clisp.org>
78653         Fix bug introduced on 2008-01-26.
78654         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
78656 2008-02-06  Bruno Haible  <bruno@clisp.org>
78658         Fix bug introduced on 2007-06-10.
78659         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
78660         !NEED_PRINTF_FLAG_ZERO.
78662 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
78664         getloadavg: use libperfstat on AIX5
78665         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
78667 2008-02-03  Bruno Haible  <bruno@clisp.org>
78669         * lib/diffseq.h: Add comments about required #includes.
78670         Reported by Michael Biggs <gnulib@doubleplum.net>.
78672 2008-02-01  Bruno Haible  <bruno@clisp.org>
78674         * users.txt: Add gnuit.
78676 2008-01-31  Bruno Haible  <bruno@clisp.org>
78678         * lib/md4.c (set_uint32): Mark as inline.
78679         * lib/md5.c (set_uint32): Likewise.
78680         * lib/sha1.c (set_uint32): Likewise.
78681         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
78682         * m4/md5.m4 (gl_MD5): Likewise.
78683         * m4/sha1.m4 (gl_SHA1): Likewise.
78685 2008-01-31  Jim Meyering  <meyering@redhat.com>
78687         Use "sizeof VAR", rather than a literal "4".
78688         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
78689         * lib/md4.c (md4_read_ctx): Likewise.
78690         * lib/sha1.c (sha1_read_ctx): Likewise.
78692 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78694         * tests/test-sha1.c: New file, based on test-md5.c.
78696         * modules/crypto/sha1-tests: New file.
78698 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78700         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
78702 2008-01-31  Jim Meyering  <meyering@redhat.com>
78704         Prefer "sizeof v" over the equivalent "4".
78705         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
78706         * lib/md5.c (set_uint32): Likewise.
78707         * lib/sha1.c (set_uint32): Likewise.
78709 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78711         * lib/sha1.c (set_uint32): Mark function as static.
78713 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78715         md2: clarify comments to say that alignment is not required.
78716         * lib/md2.h: Remove warning about alignment in comment.
78717         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
78718         never been required.
78720 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78722         md4: adapt alignment constraint fix from sha1.
78723         * lib/md4.c (set_uint32): New function, from sha1.c
78724         (md4_read_ctx): Use it.
78725         (md4_finish_ctx): Doc fix.
78726         * lib/md4.h: Doc fix.
78728 2008-01-31  Simon Josefsson  <simon@josefsson.org>
78730         md5: adapt alignment constraint fix from sha1.
78731         * lib/md5.c (set_uint32): New function, from sha1.c
78732         (md5_read_ctx): Use it.
78733         (md5_finish_ctx): Doc fix.
78734         * lib/md5.h: Doc fix.
78736 2008-01-30  Peter Palfrader  <weasel@debian.org>
78738         sha1: remove the result buffer alignment constraint
78739         * lib/sha1.c (set_uint32): New function.
78740         (sha1_read_ctx): Rewrite to remove the result buffer alignment
78741         constraint.
78742         (sha1_finish_ctx): Remove comment warning about alignment constraint.
78743         * lib/sha1.h: Likewise.
78745 2008-01-30  Andreas Schwab  <schwab@suse.de>
78746             Bruno Haible  <bruno@clisp.org>
78748         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
78749         correct definition of LDBL_MIN_EXP.
78751 2008-01-30  Karl Berry  <karl@gnu.org>
78753         * config/srclist-update: try to preserve x bit on updates.
78754         * config/srclistvars.sh: update for karl.
78756 2008-01-29  Jim Meyering  <meyering@redhat.com>
78758         vasnprintf.c: Avoid warning about unused label
78759         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
78760         "overflow" label definition and associated code with the
78761         same cpp condition that guards the sole use of that label.
78763 2008-01-26  Bruno Haible  <bruno@clisp.org>
78765         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
78766         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
78767         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
78768         * lib/isnanl-nolibm.h (isnanl): Likewise.
78769         Reported by Paul Eggert <eggert@cs.ucla.edu>.
78771 2008-01-26  Bruno Haible  <bruno@clisp.org>
78773         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
78774         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
78776 2008-01-26  Bruno Haible  <bruno@clisp.org>
78778         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
78779         GCC >= 4.0 built-in.
78780         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
78782 2008-01-26  Bruno Haible  <bruno@clisp.org>
78784         Rename isnan, applicable to 'double' only, to isnand.
78785         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
78786         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
78787         (configure.ac): Update.
78788         (Include): Replace "isnan.h" with "isnand.h".
78789         * m4/isnand.m4: Renamed from m4/isnan.m4.
78790         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
78791         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
78792         instead of isnan.c.
78793         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
78794         instead of HAVE_ISNAN_IN_LIBC.
78795         (isnand): Renamed from isnan.
78796         * lib/isnand.c: New file.
78797         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
78798         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
78799         (Makefile.am): Update.
78800         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
78801         Include isnand.h instead of isnan.h.
78802         (main): Test isnand instead of isnan.
78803         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
78804         isnan-nolibm.
78805         * modules/frexp (Depends-on): Likewise.
78806         * modules/frexp-tests (Depends-on): Likewise.
78807         * modules/frexp-nolibm (Depends-on): Likewise.
78808         * modules/frexp-nolibm-tests (Depends-on): Likewise.
78809         * modules/isfinite (Depends-on): Likewise.
78810         * modules/round-tests (Depends-on): Likewise.
78811         * modules/signbit (Depends-on): Likewise.
78812         * modules/signbit-tests (Depends-on): Likewise.
78813         * modules/snprintf-posix (Depends-on): Likewise.
78814         * modules/sprintf-posix (Depends-on): Likewise.
78815         * modules/trunc-tests (Depends-on): Likewise.
78816         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
78817         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
78818         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
78819         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
78820         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
78821         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
78822         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
78823         * modules/vasnprintf-posix (Depends-on): Likewise.
78824         * modules/vasprintf-posix (Depends-on): Likewise.
78825         * modules/vfprintf-posix (Depends-on): Likewise.
78826         * modules/vsnprintf-posix (Depends-on): Likewise.
78827         * modules/vsprintf-posix (Depends-on): Likewise.
78828         * lib/frexp.c: Include isnand.h instead of isnan.h.
78829         (ISNAN): Set to isnand instead of isnan.
78830         * lib/isfinite.c: Include isnand.h instead of isnan.h.
78831         (gl_isfinited): Use isnand instead of isnan.
78832         * lib/signbitd.c: Include isnand.h instead of isnan.h.
78833         (gl_signbitd): Use isnand instead of isnan.
78834         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
78835         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
78836         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
78837         (main): Use isnand instead of isnan.
78838         * tests/test-round1.c: Include isnand.h.
78839         (main): Use isnand instead of isnan.
78840         * tests/test-round2.c: Include isnand.h instead of isnan.h.
78841         (ISNAN): Set to isnand instead of isnan.
78842         * tests/test-trunc1.c: Include isnand.h.
78843         (main): Use isnand instead of isnan.
78844         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
78845         (equal): Use isnand instead of isnan.
78846         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
78847         isnand-nolibm.
78848         * NEWS: Mention the change.
78850 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78851             Bruno Haible  <bruno@clisp.org>
78853         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
78854         the GCC builtins for signbits are present and set
78855         REPLACE_SIGNBIT_USING_GCC if so.
78856         * lib/math.in.h (signbit): Define using GCC builtins if
78857         REPLACE_SIGNBIT_USING_GCC is set.
78858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
78859         REPLACE_SIGNBIT_USING_GCC.
78860         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
78862 2008-01-25  Jim Meyering  <meyering@redhat.com>
78864         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
78865         * lib/poll.c: Include <config.h>, not "config.h".
78866         * tests/test-getaddrinfo.c: Likewise.
78868 2008-01-25  Simon Josefsson  <simon@josefsson.org>
78870         * modules/sockets-tests: New file.
78872 2008-01-24  Simon Josefsson  <simon@josefsson.org>
78874         * modules/sockets: New module, can be used to call WSA_Startup and
78875         WSA_Cleanup when needed.
78877         * lib/sockets.h, lib/sockets.c: New files.
78879         * m4/sockets.m4: New file.
78881         * tests/test-sockets.c: New file.
78883 2008-01-19  Bruno Haible  <bruno@clisp.org>
78885         * doc/posix-headers: Renamed from doc/headers.
78886         * doc/posix-functions: Renamed from doc/functions.
78887         * doc/gnulib.texi: Update.
78889 2008-01-19  Bruno Haible  <bruno@clisp.org>
78891         * doc/glibc-functions/strcasestr.texi: Include contents of
78892         doc/functions/strcasestr.texi, fixing the list of platforms.
78893         * doc/functions/strcasestr.texi: Remove file.
78895 2008-01-19  Bruno Haible  <bruno@clisp.org>
78897         * doc/glibc-functions/memmem.texi: Include contents of
78898         doc/functions/memmem.texi.
78899         * doc/functions/memmem.texi: Remove file.
78901 2008-01-18  Bruno Haible  <bruno@clisp.org>
78903         * doc/glibc-functions/*.texi: New files.
78904         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
78905         to use the new files.
78907 2008-01-17  Bruno Haible  <bruno@clisp.org>
78909         * tests/test-gethostname.c (main): Fix printf statement.
78911 2008-01-17  Simon Josefsson  <simon@josefsson.org>
78913         * modules/gethostname-tests: New file.
78915         * tests/test-gethostname.c: New file.
78917 2008-01-17  Simon Josefsson  <simon@josefsson.org>
78919         * lib/gethostname.c: Include string.h unconditionally, strncpy is
78920         used by the UNAME case.  Reported by Bruno Haible
78921         <bruno@clisp.org>.
78923 2008-01-17  Eric Blake  <ebb9@byu.net>
78925         Convert c-strcasestr to be more efficient.
78926         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
78927         (Depends-on): Add c-strcase, remove malloca, strnlen.
78928         * tests/test-c-strcasestr.c (main): Enhance test.
78929         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
78931 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
78933         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
78934         Use it in creating po/Makevars.
78936 2008-01-15  Simon Josefsson  <simon@josefsson.org>
78938         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
78939         Applications that requires it should initialize libgcrypt
78940         manually.
78942 2008-01-16  Simon Josefsson  <simon@josefsson.org>
78944         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
78946 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
78948         Fix problem with getdate on mingw32 reported by Simon Josefsson
78949         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
78950         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
78951         tzname", when deciding whether to declare tzname.
78952         * lib/strftime.c (tzname): Likewise.
78954 2008-01-15  Bruno Haible  <bruno@clisp.org>
78956         Work around a MacOS X 10.5 bug in frexpl().
78957         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
78958         * doc/functions/frexpl.texi: Document the bug.
78959         Reported by Elias Pipping <pipping@gentoo.org>.
78961 2008-01-14  Eric Blake  <ebb9@byu.net>
78963         Touch up previous patch.
78964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
78965         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
78967         Convert strcasestr module to use Two-Way algorithm.
78968         * modules/strcasestr-simple: New module, based on the old
78969         strcasestr, but with Two-Way rather than KMP.
78970         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
78971         * lib/string.in.h (rpl_strcasestr): Declare.
78972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
78973         performance.
78974         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
78975         * modules/string (Makefile.am): Support strcasestr.
78976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
78977         * modules/strcasestr-tests (Depends-on): Check for alarm.
78978         * tests/test-strcasestr.c: Augment test.
78979         * lib/str-two-way.h: Clean up stray macro.
78980         * NEWS: Document new module.
78981         * MODULES.html.sh (string handling): Likewise.
78982         * doc/functions/strcasestr.texi: New file.
78983         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
78984         here, since it is not a POSIX function.
78986 2008-01-14  Colin Watson  <cjwatson@debian.org>
78987             Bruno Haible  <bruno@clisp.org>
78989         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
78990         works fine; if not, set REPLACE_STRSIGNAL.
78991         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
78992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
78993         REPLACE_STRSIGNAL.
78994         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
78995         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
78996         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
78998 2008-01-14  Bruno Haible  <bruno@clisp.org>
79000         * modules/strsignal (Include): Change to <string.h>.
79002 2008-01-14  Colin Watson  <cjwatson@debian.org>
79004         * modules/argp (Notice): Add a notice recommending to change
79005         XGETTEXT_OPTIONS.
79006         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
79008 2008-01-13  Colin Watson  <cjwatson@debian.org>
79010         * modules/strsignal-tests: New file.
79011         * tests/test-strsignal.c: New file.
79013         * lib/strsignal.c: New file, from glibc with modifications.
79014         * lib/siglist.h: New file, from glibc with modifications.
79015         * lib/string.in.h (strsignal): New declaration.
79016         * m4/strsignal.m4: New file.
79017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79018         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
79019         * modules/strsignal: New file.
79020         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
79021         HAVE_DECL_STRSIGNAL.
79023 2008-01-13  Bruno Haible  <bruno@clisp.org>
79025         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
79026         locale encoding is not ASCII. Needed for OpenBSD 4.0.
79027         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
79028         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
79030 2008-01-13  Bruno Haible  <bruno@clisp.org>
79032         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
79033         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
79034         * lib/argp.h (__attribute__): Likewise.
79035         * lib/c-stack.c (__attribute__): Likewise.
79036         * lib/error.h (__attribute__): Likewise.
79037         * lib/fts.c (__attribute__): Likewise.
79038         * lib/openat.h (__attribute__): Likewise.
79039         * lib/stdio.in.h (__attribute__): Likewise.
79040         * lib/string.in.h (__attribute__): Likewise.
79041         * lib/utimens.c (__attribute__): Likewise.
79042         * lib/vasnprintf.h (__attribute__): Likewise.
79043         * lib/xalloc.h (__attribute__): Likewise.
79044         * lib/xprintf.h (__attribute__): Likewise.
79045         * lib/xstrtol.h (__attribute__): Likewise.
79046         * lib/xvasprintf.h (__attribute__): Likewise.
79048 2008-01-12  Bruno Haible  <bruno@clisp.org>
79050         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
79051         * doc/glibc-headers/a.out.texi: New file.
79052         * doc/glibc-headers/aliases.texi: New file.
79053         * doc/glibc-headers/alloca.texi: New file.
79054         * doc/glibc-headers/ar.texi: New file.
79055         * doc/glibc-headers/argp.texi: New file.
79056         * doc/glibc-headers/argz.texi: New file.
79057         * doc/glibc-headers/byteswap.texi: New file.
79058         * doc/glibc-headers/crypt.texi: New file.
79059         * doc/glibc-headers/endian.texi: New file.
79060         * doc/glibc-headers/envz.texi: New file.
79061         * doc/glibc-headers/err.texi: New file.
79062         * doc/glibc-headers/error.texi: New file.
79063         * doc/glibc-headers/execinfo.texi: New file.
79064         * doc/glibc-headers/fpu_control.texi: New file.
79065         * doc/glibc-headers/fstab.texi: New file.
79066         * doc/glibc-headers/fts.texi: New file.
79067         * doc/glibc-headers/getopt.texi: New file.
79068         * doc/glibc-headers/ieee754.texi: New file.
79069         * doc/glibc-headers/ifaddrs.texi: New file.
79070         * doc/glibc-headers/libintl.texi: New file.
79071         * doc/glibc-headers/mcheck.texi: New file.
79072         * doc/glibc-headers/mntent.texi: New file.
79073         * doc/glibc-headers/obstack.texi: New file.
79074         * doc/glibc-headers/paths.texi: New file.
79075         * doc/glibc-headers/printf.texi: New file.
79076         * doc/glibc-headers/pty.texi: New file.
79077         * doc/glibc-headers/resolv.texi: New file.
79078         * doc/glibc-headers/shadow.texi: New file.
79079         * doc/glibc-headers/sysexits.texi: New file.
79080         * doc/glibc-headers/ttyent.texi: New file.
79082 2008-01-12  Jim Meyering  <meyering@redhat.com>
79084         announce-gen: emit Gnulib's git-based version string.
79085         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
79086         New option --gnulib-version=V, where V is expected to be
79087         the output of running git describe in the gnulib directory.
79088         (get_tool_versions): Request feedback on xdelta.  I suspect it's
79089         not useful, and plan to stop publishing an xdelta file with each
79090         coreutils release.
79092         * build-aux/announce-gen: Also check for lzma-compressed files.
79094 2008-01-11  Bruno Haible  <bruno@clisp.org>
79096         * tests/test-memmem.c (main): Increase maximum allowed time.
79097         * tests/test-strstr.c (main): Likewise.
79099 2008-01-11  Bruno Haible  <bruno@clisp.org>
79101         * doc/functions/memmem.texi: Add more precisions about platforms.
79102         * doc/functions/strstr.texi: Likewise.
79104 2008-01-10  Eric Blake  <ebb9@byu.net>
79106         * m4/strstr.m4: Delete cruft from copy-n-paste.
79107         Reported by Bruno Haible.
79109 2008-01-10  Bruno Haible  <bruno@clisp.org>
79111         Make c-strstr rely on strstr.
79112         * lib/c-strstr.c: Don't include str-kmp.h.
79113         (c_strstr): Define in terms of strstr.
79114         * modules/c-strstr (Files): Remove lib/str-kmp.h.
79115         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
79117 2008-01-10  Bruno Haible  <bruno@clisp.org>
79119         * doc/gnulib.texi (String Functions in C Locale): New section.
79120         * doc/c-ctype.texi: New file.
79121         * doc/c-strcase.texi: New file.
79122         * doc/c-strcaseeq.texi: New file.
79123         * doc/c-strcasestr.texi: New file.
79124         * doc/c-strstr.texi: New file.
79125         * doc/c-strtod.texi: New file.
79126         * doc/c-strtold.texi: New file.
79128 2008-01-10  Eric Blake  <ebb9@byu.net>
79130         * lib/relocatable.h: Fix a comment.
79132 2008-01-10  Eric Blake  <ebb9@byu.net>
79134         Share two-way algorithm.
79135         * lib/str-two-way.h: New file, merged from...
79136         * lib/memmem.c: ...here...
79137         * lib/strstr.c: ...and here.
79138         * modules/memmem (Files): Use it.
79139         * modules/strstr (Files): Likewise.
79141         Avoid quadratic strstr implementations.
79142         * lib/strstr.c: New file.
79143         * m4/strstr.m4: Likewise.
79144         * modules/strstr: Likewise.
79145         * modules/strstr-tests: Likewise.
79146         * tests/test-strstr.c: Likewise.
79147         * lib/string.in.h (rpl_strstr): Declare.
79148         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
79149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
79150         * modules/string (Makefile.am): Likewise.
79151         * MODULES.html.sh (string handling): Mention new module.
79152         * doc/functions/strstr.texi (strstr): Document the bug.
79154 2008-01-10  Bruno Haible  <bruno@clisp.org>
79156         * lib/relocatable.h (relocate): State whether result is freshly
79157         allocated or not.
79158         * lib/relocatable.c (relocate): Return a freshly allocated string
79159         instead of a pointer to a privately held string.
79160         Reported by Sylvain Beucler <beuc@gnu.org>.
79162 2008-01-10  Colin Watson  <cjwatson@debian.org>
79164         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
79165         s/S_ISNLK/S_ISLNK/.
79167 2008-01-09  Bruno Haible  <bruno@clisp.org>
79169         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
79170         and other files.
79171         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
79172         if it's only a guess.
79173         * modules/memmem: Simplify by depending on memmem-simple.
79175 2008-01-09  Bruno Haible  <bruno@clisp.org>
79177         Work around OpenBSD 4.0 tdelete() bug.
79178         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
79179         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
79180         macros and don't redefine the enum values.
79181         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
79182         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
79183         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
79185 2008-01-09  Bruno Haible  <bruno@clisp.org>
79187         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
79188         (main): Don't perform the tests if setlocale did not install a UTF-8
79189         locale. Needed on OpenBSD 4.0.
79190         * modules/wcwidth-tests (Depends-on): Add localcharset.
79192 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79194         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
79195         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
79196         * NEWS: announce this.
79197         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
79199 2008-01-09  Simon Josefsson  <simon@josefsson.org>
79200         and Eric Blake  <ebb9@byu.net>
79202         Add memmem-simple module.
79203         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
79204         (gl_FUNC_MEMMEM): Separate performance from presence checks.
79205         * modules/memmem-simple: New file.
79206         * modules/memmem (Description): Tweak.
79207         * MODULES.html.sh (string handling): Mention new module.
79208         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
79209         addressed by memmem-simple.
79210         * NEWS: Document the difference.
79212 2008-01-09  Eric Blake  <ebb9@byu.net>
79214         Give gcc some memmem optimization hints.
79215         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
79216         (strcasestr): Declare as pure.
79217         * modules/memmem (Maintainer): Claim my implementation.
79219 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79221         Support AIX 6.1 and higher.
79222         * build-aux/config.libpath: Likewise.
79223         * build-aux/config.rpath: Likewise.
79225 2008-01-08  Jim Meyering  <meyering@redhat.com>
79226             Bruno Haible  <bruno@clisp.org>
79228         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
79229         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
79230         Reported by Peter Fales in
79231         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
79233 2008-01-08  Bruno Haible  <bruno@clisp.org>
79235         * modules/unictype/category-of (Depends-on): Add
79236         unictype/category-none.
79237         * modules/unictype/category-and-tests (Depends-on): Add
79238         unictype/category-{L,N,Lu,Nd}.
79239         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
79240         * modules/unictype/category-or-tests (Depends-on): Add
79241         unictype/category-{L,N}.
79242         * modules/unictype/category-name-tests (Depends-on): Add
79243         unictype/category-{Z,Nl}.
79244         Reported by Simon Josefsson.
79246 2008-01-08  Bruno Haible  <bruno@clisp.org>
79248         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
79249         convention better.
79250         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
79251         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
79252         Reported by Peter Miller <millerp@canb.auug.org.au>.
79254 2008-01-08  Eric Blake  <ebb9@byu.net>
79256         Rewrite memmem to guarantee linear complexity without malloc.
79257         * lib/memmem.c (memmem): Use Two-Way rather than
79258         Knuth-Morris-Pratt, to allow O(1) space usage.
79259         (critical_factorization, two_way_short_needle)
79260         (two_way_long_needle): New functions.
79261         (knuth_morris_pratt): Delete.
79262         * modules/memmem (Depends-on): No longer need malloca or stdbool.
79263         Add stdint.
79264         * tests/test-memmem.c (main): Add tests for periodic needle and
79265         sublinear performance.
79266         * doc/functions/memmem.texi (memmem): Document other deficiencies
79267         in cygwin and older glibc.
79269 2008-01-08  Bruno Haible  <bruno@clisp.org>
79271         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
79272         augmentation.
79274 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
79276         Add a configure time option: --disable-acl.
79277         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
79278         AC_ARG_ENABLE(acl).
79280 2008-01-06  Simon Josefsson  <simon@josefsson.org>
79282         * tests/test-localename.c: Don't include obsolete "setenv.h".
79284         * modules/localename-tests (Depends-on): Need unsetenv.
79286 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79288         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
79290 2008-01-06  Colin Watson  <cjwatson@debian.org>
79292         * users.txt: Add man-db.
79294 2008-01-07  Bruno Haible  <bruno@clisp.org>
79296         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
79297         previous section name.
79299 2008-01-07  Bruno Haible  <bruno@clisp.org>
79301         * lib/progname.c (set_program_name): Don't strip off a leading
79302         "lt-" prefix outside a .libs directory.
79303         Suggested by Paul Eggert.
79305 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
79306             Bruno Haible  <bruno@clisp.org>
79308         Improve memory cleanup in 'relocatable' module.
79309         * lib/relocatable.h (compute_curr_prefix): Change return type to
79310         'char *'.
79311         * lib/relocatable.c (compute_curr_prefix): Change return type to
79312         'char *'. Free curr_installdir after use.
79313         (relocate): Free curr_prefix_better after use.
79314         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
79316 2008-01-01  Bruno Haible  <bruno@clisp.org>
79318         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
79319         failure on older glibc systems.
79320         Reported by Peter Fales <psfales@alcatel-lucent.com>.
79322 2008-01-05  Eric Blake  <ebb9@byu.net>
79324         Avoid quadratic system memmem.
79325         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
79326         Reported by Ralf Wildenhues.
79328         Fix memmem test for mingw.
79329         * modules/memmem-tests (configure.ac): Check for alarm.
79330         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
79331         it.
79332         * doc/functions/memmem.texi: New file.
79333         * doc/gnulib.texi (Function Substitutes): Add memmem.
79334         Reported by Bruno Haible.
79336 2008-01-04  Bruno Haible  <bruno@clisp.org>
79338         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
79339         Require gl_HEADER_STRINGS_H_DEFAULTS, not
79340         gl_HEADER_STRING_H_DEFAULTS.
79342 2008-01-04  Eric Blake  <ebb9@byu.net>
79344         Shorten duration of memmem test.
79345         * tests/test-memmem.c (main): Use alarm to declare failure if test
79346         is taking too long.
79347         Reported by Ralf Wildenhues.
79349 2007-12-21  Simon Josefsson  <simon@josefsson.org>
79351         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
79352         string, needed by strerror.
79354 2008-01-03  Colin Watson  <cjwatson@debian.org>
79355             Bruno Haible  <bruno@clisp.org>
79357         * doc/gnulib-tool.texi (Localization): New section.
79359 2008-01-02  Bruno Haible  <bruno@clisp.org>
79361         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
79362         variables to 'unsigned char *' type.
79363         Reported by Paul Eggert.
79365 2008-01-02  Jim Meyering  <jim@meyering.net>
79367         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
79369 2007-12-31  Jim Meyering  <jim@meyering.net>
79371         Avoid use of private FTS type name.
79372         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
79374 2007-12-30  Karl Berry  <karl@gnu.org>
79376         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
79377         work around defect in Texinfo and/or the standalone Info browser.
79379 2007-12-30  Bruno Haible  <bruno@clisp.org>
79381         Unify 5 copies of the KMP code.
79382         * lib/str-kmp.h: New file.
79383         * lib/c-strcasestr.c: Include str-kmp.h.
79384         (knuth_morris_pratt): Remove function.
79385         (c_strcasestr): Update.
79386         * lib/c-strstr.c: Include str-kmp.h.
79387         (knuth_morris_pratt): Remove function.
79388         (c_strcasestr): Update.
79389         * lib/mbscasestr.c: Include str-kmp.h.
79390         (knuth_morris_pratt_unibyte): Remove function.
79391         * lib/mbsstr.c: Include str-kmp.h.
79392         (knuth_morris_pratt_unibyte): Remove function.
79393         * lib/strcasestr.c: Include str-kmp.h.
79394         (knuth_morris_pratt): Remove function.
79395         (strcasestr): Update.
79396         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
79397         * modules/c-strstr (Files): Likewise.
79398         * modules/mbscasestr (Files): Likewise.
79399         * modules/mbsstr (Files): Likewise.
79400         * modules/strcasestr (Files): Likewise.
79401         Suggested by Paul Eggert.
79403 2007-12-30  Bruno Haible  <bruno@clisp.org>
79405         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
79406         defined.
79408 2007-12-30  Bruno Haible  <bruno@clisp.org>
79410         * lib/xmalloca.h: Include xalloc.h.
79411         (xnmalloca): New macro.
79413 2007-12-30  Bruno Haible  <bruno@clisp.org>
79415         * lib/malloca.h (nmalloca): New macro.
79416         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
79417         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
79418         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
79419         knuth_morris_pratt_multibyte): Likewise.
79420         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
79421         knuth_morris_pratt_multibyte): Likewise.
79422         * lib/memmem.c (knuth_morris_pratt): Likewise.
79423         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
79425 2007-12-25  Bruno Haible  <bruno@clisp.org>
79427         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
79428         * lib/glob.c: Don't include openat.h.
79429         (link_exists2_p): Add back the code that deals with the
79430         !GLOB_ALTDIRFUNC case.
79431         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
79432         let it do the filename concatenation.
79433         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
79434         * modules/glob (Depends-on): Remove openat.
79436 2007-12-31  Bruno Haible  <bruno@clisp.org>
79438         * modules/dirfd (License): Change to LGPLv2+.
79439         Approved by Jim Meyering.
79441 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
79443         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
79444         when multiplying M by sizeof (size_t).
79446 2007-12-10  Martin Lambers  <marlam@marlam.de>
79448         Override getpagesize on mingw.
79449         * lib/getpagesize.c: New file.
79450         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
79451         * modules/getpagesize (Files): Add lib/getpagesize.c.
79452         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
79453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79454         REPLACE_GETPAGESIZE.
79455         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
79457 2007-12-25  Bruno Haible  <bruno@clisp.org>
79459         * modules/localcharset (Notice): New field.
79460         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
79461         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
79463 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
79464             Bruno Haible  <bruno@clisp.org>
79466         Avoid using the syntax symbol() in formatted documentation.
79467         * MODULES.html.sh (func_module): When replacing symbol() with a
79468         hyperlink, remove the parentheses. Show an error if some remain.
79469         Recognize and render the '...' syntax.
79470         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
79471         Rework. Add paragraph about GCC's inlining.
79472         * doc/alloca.texi: Likewise.
79473         * doc/error.texi: Remove parentheses from symbol reference.
79474         * doc/gnulib-intro.texi: Likewise.
79475         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
79476         * modules/fnmatch (Description): Reword to say "the ... function".
79477         * modules/full-read (Description): Likewise.
79478         * modules/full-write (Description): Likewise.
79479         * modules/safe-read (Description): Likewise.
79480         * modules/safe-write (Description): Likewise.
79481         * modules/strchrnul (Description): Likewise.
79482         * modules/trim (Description): Likewise.
79483         * modules/error (Description): Remove parentheses from symbol
79484         references.
79485         * modules/verror (Description): Likewise.
79486         Reported by Karl Berry.
79488 2007-12-25  Bruno Haible  <bruno@clisp.org>
79490         Fixup after 2007-10-16 commit.
79491         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
79493 2007-12-24  Bruno Haible  <bruno@clisp.org>
79495         Make --enable-relocatable work with DESTDIR.
79496         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
79497         to compute installdir from destprog.
79498         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
79499         also set the RELOC_DESTDIR variable.
79500         Reported by Левашев Иван <octagram@bluebottle.com>.
79502 2007-12-24  Bruno Haible  <bruno@clisp.org>
79504         Fix link error due to xalloc_die().
79505         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
79506         of xreadlink.
79507         * lib/relocwrapper.c: Update comments.
79508         * build-aux/install-reloc: Remove xreadlink.c from file list.
79509         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
79510         xreadlink.c.
79511         Reported by Левашев Иван <octagram@bluebottle.com>.
79513 2007-12-24  Bruno Haible  <bruno@clisp.org>
79515         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
79516         * lib/setenv.h: Remove file.
79517         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
79518         lib/setenv.h.
79519         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
79520         (Depends-on): Add stdlib.
79521         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
79522         gl_FUNC_UNSETENV.
79523         (Include): Replace setenv.h with <stdlib.h>.
79524         * modules/unsetenv: New file.
79525         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
79526         * lib/unsetenv.c: Include <stdlib.h> first.
79527         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
79528         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
79529         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
79530         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
79531         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
79532         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
79533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
79534         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
79535         * doc/functions/unsetenv.texi: Update.
79536         * modules/xsetenv (Depends-on): Add unsetenv.
79537         * modules/getdate (Depends-on): Likewise.
79538         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
79539         * lib/xsetenv.c: Don't include setenv.h.
79540         * lib/getdate.y: Likewise.
79541         * lib/relocwrapper.c: Likewise.
79542         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
79543         (Depends-on): Add stdlib.
79544         * NEWS: Mention the changes.
79545         Reported by Левашев Иван <octagram@bluebottle.com>.
79547 2007-12-23  Bruno Haible  <bruno@clisp.org>
79549         * lib/memmem.c (memmem): Use lowercase variable names. Tab
79550         indentation.
79552 2007-12-23  Bruno Haible  <bruno@clisp.org>
79554         * lib/c-strcasestr.c: Add more comments.
79555         * lib/c-strstr.c: Likewise.
79556         * lib/mbscasestr.c: Likewise.
79557         * lib/mbsstr.c: Likewise.
79558         * lib/strcasestr.c: Likewise.
79559         * lib/memmem.c: Likewise.
79561 2007-12-23  Bruno Haible  <bruno@clisp.org>
79563         * tests/test-memmem.c: Include <string.h> first.
79565 2007-12-22  Bruno Haible  <bruno@clisp.org>
79567         * gnulib-tool (func_create_testdir): Change $auxdir while generating
79568         the contents of $testsbase.
79569         Reported by Ralf Wildenhues.
79571 2007-12-22  Bruno Haible  <bruno@clisp.org>
79573         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
79574         two variables local_ldadd_before, local_ldadd_last.
79576 2007-12-20  Eric Blake  <ebb9@byu.net>
79578         Work around circular library issue when cross-compiling.
79579         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
79580         that progname.o does not need to pull in rpl_memcmp.
79582 2007-12-19  Eric Blake  <ebb9@byu.net>
79584         Fix memmem to avoid O(n^2) worst-case complexity.
79585         * lib/memmem.c (knuth_morris_pratt): New function.
79586         (memmem): Use it if first few naive iterations fail.
79587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
79588         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
79589         * modules/memchr (License): Likewise.
79590         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
79591         malloca.
79592         * tests/test-memmem.c: Rewrite, borrowing ideas from
79593         test-mbsstr1.c; the old version wouldn't even compile!
79594         * modules/memmem-tests: New file.
79595         * lib/string.in.h (rpl_memmem): Add declaration.
79596         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
79597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
79598         REPLACE_MEMMEM.
79600 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
79602         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
79603         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
79604         before any system include files, and undef after them all.  This
79605         should fix a problem on VMS reported by John E. Malmberg in
79606         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
79608 2007-12-17  Eric Blake  <ebb9@byu.net>
79610         Revert addition of verify, for BSD/OS.
79611         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
79612         can't handle large files, for the sake of obsolete platforms.
79613         * modules/fseeko (Depends-on): Remove verify.
79614         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
79615         * doc/functions/ftello.texi (ftello): Likewise.
79616         * doc/functions/fgetpos.texi (fgetpos): Likewise.
79617         Reported by Larry Jones.
79619 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
79621         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
79622         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
79624 2007-12-17  Jim Meyering  <meyering@redhat.com>
79626         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
79627         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
79628         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
79629         * modules/getcwd (Depends-on): Add openat.
79630         Reported by Petr Salinger.
79632 2007-12-17  Bruno Haible  <bruno@clisp.org>
79634         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
79635         avoid a segmentation fault of the configure test on x86_64 systems.
79637 2007-12-15  Jim Meyering  <meyering@redhat.com>
79639         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
79641 2007-12-13  Eric Blake  <ebb9@byu.net>
79643         Another fseek test.
79644         * tests/test-fseek.c (main): Also test ungetc handling.
79645         * tests/test-fseeko.c (main): Likewise.
79646         * modules/fseeko (Depends-on): Add verify.
79647         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
79648         large.
79649         Reported by Larry Jones.
79651         Fix fseeko on mingw.
79652         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
79653         seek.
79655         Beef up fseek tests.
79656         * tests/test-fseek.c (main): Also test eof handling.
79657         * tests/test-fseeko.c (main): Likewise.
79658         Reported by Larry Jones.
79660 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
79662         Fix fseeko on BSD-based platforms.
79663         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
79664         successful seek.
79666 2007-12-12  Eric Blake  <ebb9@byu.net>
79668         Allow circular dependency of separate libtests.a
79669         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
79670         when use_libtests.
79672 2007-12-11  Eric Blake  <ebb9@byu.net>
79674         Fix bug with -0.0L in previous patch.
79675         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
79676         * tests/test-isnan.c (main): Also test on zeroes.
79677         * tests/test-isnanf.c (main): Likewise.
79678         * tests/test-isnanl.h (main): Likewise.
79680         Detect pseudo-denormals on x86 even when cross-compiling.
79681         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
79682         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
79683         invalid bit patterns that happen to satisfy ==.
79685         Avoid link failures with separate libtests.a.
79686         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
79687         last, to satisfy circular dependencies.
79689 2007-12-11  Eric Blake  <ebb9@byu.net>
79690         and Bruno Haible  <bruno@clisp.org>
79692         Fix OpenBSD 4.0 <float.h> handling of long double.
79693         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
79694         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
79695         * doc/headers/float.texi (float.h): Document OpenBSD bug.
79697 2007-12-11  Jim Meyering  <meyering@redhat.com>
79699         * users.txt: Add libvirt.
79701         Support versions of autoconf prior to 2.59c.
79702         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
79703         if it is not already defined.
79705 2007-12-09  Bruno Haible  <bruno@clisp.org>
79707         Let 'gnulib-tool --import' collect sources needed for the tests in
79708         tests/ rather than in lib/.
79709         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
79710         argument. If true, add rules to generate libtests.a, and put libtests.a
79711         into $(LDADD). Consider source files in subdirectories and set
79712         uses_subdirs.
79713         (func_emit_initmacro_start, func_emit_initmacro_end,
79714         func_emit_initmacro_done): Pass all arguments explicitly.
79715         (func_import): Determine two module lists main_modules,
79716         testsrelated_modules. Determine use_libtests. Determine two variables
79717         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
79718         instead of just sed_transform_lib_file. Determine two variables
79719         main_files and testsrelated_files. Compute 'files' as the union of
79720         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
79721         func_add_or_update. In the generated gnulib-comp.m4, collect the
79722         object files for tests/ in different variables than those for lib/.
79723         Substitute LIBTESTS_LIBDEPS.
79724         (func_create_testdir): Combine the uses_subdirs results from
79725         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
79727 2007-12-09  Bruno Haible  <bruno@clisp.org>
79729         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
79730         the build-aux directory.
79732 2007-12-09  Bruno Haible  <bruno@clisp.org>
79734         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
79735         introduced on 2006-09-09.
79737 2007-12-07  Jim Meyering  <meyering@redhat.com>
79739         Let these macros work also with autoconf-2.59.
79740         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
79741         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
79742         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
79744 2007-12-06  Jim Meyering  <meyering@redhat.com>
79746         Avoid a configure-time syntax error in gl_FUNC_ACL.
79747         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
79748         function in each branch, before testing the cache variable.
79750 2007-12-04  Eric Blake  <ebb9@byu.net>
79752         Make scripts executable.
79753         * build-aux/config.guess: Add execute permissions.
79754         * build-aux/config.sub: Likewise.
79755         * build-aux/gendocs.sh: Likewise.
79757         Fix frexp on mingw.
79758         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
79759         cross-compiling.
79760         * doc/functions/frexp.texi (frexp): Document the bug.
79762         Make cygwin fseeko check more reliable.
79763         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
79764         version numbers, rather than unrelated feature check.
79765         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
79766         * doc/functions/ftello.texi (ftello): Likewise.
79767         Reported by Bruno Haible.
79769         * m4/strerror.m4: Bump version number.
79771 2007-12-03  Bruno Haible  <bruno@clisp.org>
79773         * doc/functions/mprotect.texi: Mention the mingw problem.
79775 2007-12-03  Eric Blake  <ebb9@byu.net>
79777         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
79778         REPLACE_STRERROR is initialized before this macro.
79780 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
79782         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
79783         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
79784         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
79785         put -lsec in even for programs other than 'ls'.  This fixes a problem
79786         for gettext reported by Bruno Haible in
79787         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
79788         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
79789         Add support for Solaris 10.  This isn't efficient, but should get the
79790         job done for now.
79792 2007-12-03  James Youngman  <jay@gnu.org>
79794         * doc/regexprops-generic.texi: change "an close-group" to "a
79795         close-group" and "illegal" to "not allowed".
79797 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79799         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
79800         pr_byname.h. Needed for the rare case when the maintainer has done
79801         "make maintainer-clean" in the source directory and then attempts a
79802         build outside the source directory.
79803         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
79804         scripts_byname.h.
79806 2007-12-02  Martin Lambers  <marlam@marlam.de>
79807             Bruno Haible  <bruno@clisp.org>
79809         * lib/getpagesize.h: Remove file.
79810         * lib/unistd.in.h: Include declaration of getpagesize here.
79811         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
79812         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
79813         HAVE_SYS_PARAM_H.
79814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
79815         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
79816         * modules/getpagesize (Files): Remove lib/getpagesize.h.
79817         (Depends-on): Add unistd.
79818         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79819         (Include): Use <unistd.h> instead of getpagesize.h.
79820         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
79821         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
79822         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
79823         gl_GETPAGESIZE invocation, already handled by module dependency.
79824         * lib/pagealign_alloc.c: Don't include getpagesize.h.
79826 2007-12-02  Bruno Haible  <bruno@clisp.org>
79828         * modules/strings-tests: New file.
79829         * tests/test-strings.c: New file.
79831         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
79832         * lib/strings.in.h: New file.
79833         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
79834         * m4/strings_h.m4: New file.
79835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
79836         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
79837         * modules/strings: New file.
79838         * modules/string (Makefile.am): Update.
79839         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
79840         Reported by Karl Berry.
79842 2007-12-01  Eric Blake  <ebb9@byu.net>
79844         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
79845         accommodate fix in cygwin 1.5.25.
79847 2007-12-01  Jim Meyering  <meyering@redhat.com>
79849         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
79850         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
79851         that would inhibit utf8-optimization of a regexp containing line-
79852         or buffer-anchors, e.g., `^', `$'.
79854 2007-11-30  Bruno Haible  <bruno@clisp.org>
79856         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
79857         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
79858         glthread_recursive_lock_init.
79859         * lib/lock.c (glthread_recursive_lock_init)
79860         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
79861         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79863 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
79865         New function qset_acl, like set_acl but with syscall semantics.
79866         * lib/acl.h (qset_acl): New decl.
79867         * lib/acl.c (qset_acl): New function.
79868         (set_acl): Use new function.  Use more-consistent diagnostics.
79870 2007-11-28  Jim Meyering  <meyering@redhat.com>
79872         * modules/physmem (License): Change from GPL to LGPLv2+.
79874 2007-11-26  Bruno Haible  <bruno@clisp.org>
79876         * lib/vasnprintf.c (decode_long_double): Don't abort if the
79877         'long double' type has excess precision.
79878         Reported by Jim Meyering in
79879         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
79881 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79883         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
79884         Sync from <http://gnu.org/licenses>.
79885         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
79886         with license text from same location.
79887         * doc/maintain.texi, doc/standards.texi:  Sync from
79888         <http://savannah.gnu.org/projects/gnustandards>.
79890 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
79891         and Jim Meyering  <meyering@redhat.com>
79893         Adjust getdate' grammar to accept a slightly more regular language.
79894         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
79895         Before, the former was rejected.
79896         * lib/getdate.y (digits_to_date_time): New function, factored
79897         out of ...
79898         (number): ...here.  Just call digits_to_date_time.
79899         (hybrid): New non-terminal to handle an <unsigned number,
79900         signed relative offset> sequence consistently.
79902 2007-11-18  Jim Meyering  <meyering@redhat.com>
79904         Pull my changes from coreutils:
79905         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
79906         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
79907         use of $gnulib_tool_option_extras, so that it's separated from the
79908         preceding argument.
79910         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
79911         * build-aux/bootstrap (cp_mark_as_generated): Create any required
79912         parent destination directories before copying a file into place.
79914 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
79916         bootstrap: work also with 4-argument variant of AC_INIT
79917         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
79919 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79921         Port test-getaddrinfo to Solaris.
79922         Problem reported by Bruno Haible in
79923         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
79924         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
79925         explanation of setting 'hints'.
79926         Don't reject an implementation merely because it returns EAI_SERVICE.
79927         (EAI_SERVICE): Define to 0 if not defined.
79929 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79931         The license of gnu-make and posix-shell is now "GPLed build tool".
79932         * modules/gnu-make (License): Likewise.
79933         * modules/posix-shell (License): Likewise.
79935         New module posix-shell, for determining a POSIX shell
79936         or perhaps something that is close enough to a POSIX shell.
79937         * m4/posix-shell.m4: New file.
79938         * modules/posix-shell: New file.
79940         * MODULES.html.sh: Mention new module.
79942         New module gnu-make, for determining whether we're using GNU Make.
79943         * m4/gnu-make.m4: New file.
79944         * modules/gnu-make: New file.
79945         * MODULES.html.sh: Mention new module.
79947 2007-11-14  Jim Meyering  <meyering@redhat.com>
79949         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
79950         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
79951         use this macro to create a function _definition_.
79952         Remove useless "#undef ARGMATCH_DIE".
79954 2007-11-14  Bruno Haible  <bruno@clisp.org>
79956         * lib/config.charset: Update for OpenBSD 4.1.
79957         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
79959 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
79961         Document 64-bit #if problems in stdint.texi.
79962         * doc/headers/stdint.texi (stdint.h): Mention problems with
79963         64-bit-#if, and how to work around them.
79965         Don't insist on 'long long int' support in the preprocessor.  It
79966         breaks too many things.  For example, PRIdMAX still uses a 'long
79967         long int' format with the latest Sun compiler, even though
79968         HAVE_LONG_LONG_INT isn't defined due to that compiler's
79969         preprocessor problem.  This causes the latest coreutils to dump
79970         core on Solaris 10 sparc with the Sun C compiler.
79971         Instead, fix the 2007-10-16 problem in a different way, by evaluating
79972         the troublesome expressions at configure-time, not at #if-time.
79973         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
79974         preprocessor.
79975         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
79976         compile-time C checks, done at 'configure'-time.
79977         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
79978         * modules/inttypes (Makefile): Substitute the new symbols that
79979         gl_INTTYPES_H now generates.
79980         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
79982 2007-11-12  Bruno Haible  <bruno@clisp.org>
79984         Tests for Unicode character classification functions.
79986         * modules/unictype/bidicategory-byname-tests: New file.
79987         * modules/unictype/bidicategory-name-tests: New file.
79988         * modules/unictype/bidicategory-of-tests: New file.
79989         * modules/unictype/bidicategory-test-tests: New file.
79990         * modules/unictype/block-list-tests: New file.
79991         * modules/unictype/block-of-tests: New file.
79992         * modules/unictype/block-test-tests: New file.
79993         * modules/unictype/category-C-tests: New file.
79994         * modules/unictype/category-Cc-tests: New file.
79995         * modules/unictype/category-Cf-tests: New file.
79996         * modules/unictype/category-Cn-tests: New file.
79997         * modules/unictype/category-Co-tests: New file.
79998         * modules/unictype/category-Cs-tests: New file.
79999         * modules/unictype/category-L-tests: New file.
80000         * modules/unictype/category-Ll-tests: New file.
80001         * modules/unictype/category-Lm-tests: New file.
80002         * modules/unictype/category-Lo-tests: New file.
80003         * modules/unictype/category-Lt-tests: New file.
80004         * modules/unictype/category-Lu-tests: New file.
80005         * modules/unictype/category-M-tests: New file.
80006         * modules/unictype/category-Mc-tests: New file.
80007         * modules/unictype/category-Me-tests: New file.
80008         * modules/unictype/category-Mn-tests: New file.
80009         * modules/unictype/category-N-tests: New file.
80010         * modules/unictype/category-Nd-tests: New file.
80011         * modules/unictype/category-Nl-tests: New file.
80012         * modules/unictype/category-No-tests: New file.
80013         * modules/unictype/category-P-tests: New file.
80014         * modules/unictype/category-Pc-tests: New file.
80015         * modules/unictype/category-Pd-tests: New file.
80016         * modules/unictype/category-Pe-tests: New file.
80017         * modules/unictype/category-Pf-tests: New file.
80018         * modules/unictype/category-Pi-tests: New file.
80019         * modules/unictype/category-Po-tests: New file.
80020         * modules/unictype/category-Ps-tests: New file.
80021         * modules/unictype/category-S-tests: New file.
80022         * modules/unictype/category-Sc-tests: New file.
80023         * modules/unictype/category-Sk-tests: New file.
80024         * modules/unictype/category-Sm-tests: New file.
80025         * modules/unictype/category-So-tests: New file.
80026         * modules/unictype/category-Z-tests: New file.
80027         * modules/unictype/category-Zl-tests: New file.
80028         * modules/unictype/category-Zp-tests: New file.
80029         * modules/unictype/category-Zs-tests: New file.
80030         * modules/unictype/category-and-not-tests: New file.
80031         * modules/unictype/category-and-tests: New file.
80032         * modules/unictype/category-byname-tests: New file.
80033         * modules/unictype/category-name-tests: New file.
80034         * modules/unictype/category-none-tests: New file.
80035         * modules/unictype/category-of-tests: New file.
80036         * modules/unictype/category-or-tests: New file.
80037         * modules/unictype/category-test-withtable-tests: New file.
80038         * modules/unictype/combining-class-tests: New file.
80039         * modules/unictype/ctype-alnum-tests: New file.
80040         * modules/unictype/ctype-alpha-tests: New file.
80041         * modules/unictype/ctype-blank-tests: New file.
80042         * modules/unictype/ctype-cntrl-tests: New file.
80043         * modules/unictype/ctype-digit-tests: New file.
80044         * modules/unictype/ctype-graph-tests: New file.
80045         * modules/unictype/ctype-lower-tests: New file.
80046         * modules/unictype/ctype-print-tests: New file.
80047         * modules/unictype/ctype-punct-tests: New file.
80048         * modules/unictype/ctype-space-tests: New file.
80049         * modules/unictype/ctype-upper-tests: New file.
80050         * modules/unictype/ctype-xdigit-tests: New file.
80051         * modules/unictype/decimal-digit-tests: New file.
80052         * modules/unictype/digit-tests: New file.
80053         * modules/unictype/mirror-tests: New file.
80054         * modules/unictype/numeric-tests: New file.
80055         * modules/unictype/property-alphabetic-tests: New file.
80056         * modules/unictype/property-ascii-hex-digit-tests: New file.
80057         * modules/unictype/property-bidi-arabic-digit-tests: New file.
80058         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
80059         * modules/unictype/property-bidi-block-separator-tests: New file.
80060         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
80061         * modules/unictype/property-bidi-common-separator-tests: New file.
80062         * modules/unictype/property-bidi-control-tests: New file.
80063         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
80064         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
80065         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
80066         * modules/unictype/property-bidi-european-digit-tests: New file.
80067         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
80068         * modules/unictype/property-bidi-left-to-right-tests: New file.
80069         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
80070         * modules/unictype/property-bidi-other-neutral-tests: New file.
80071         * modules/unictype/property-bidi-pdf-tests: New file.
80072         * modules/unictype/property-bidi-segment-separator-tests: New file.
80073         * modules/unictype/property-bidi-whitespace-tests: New file.
80074         * modules/unictype/property-byname-tests: New file.
80075         * modules/unictype/property-combining-tests: New file.
80076         * modules/unictype/property-composite-tests: New file.
80077         * modules/unictype/property-currency-symbol-tests: New file.
80078         * modules/unictype/property-dash-tests: New file.
80079         * modules/unictype/property-decimal-digit-tests: New file.
80080         * modules/unictype/property-default-ignorable-code-point-tests: New file.
80081         * modules/unictype/property-deprecated-tests: New file.
80082         * modules/unictype/property-diacritic-tests: New file.
80083         * modules/unictype/property-extender-tests: New file.
80084         * modules/unictype/property-format-control-tests: New file.
80085         * modules/unictype/property-grapheme-base-tests: New file.
80086         * modules/unictype/property-grapheme-extend-tests: New file.
80087         * modules/unictype/property-grapheme-link-tests: New file.
80088         * modules/unictype/property-hex-digit-tests: New file.
80089         * modules/unictype/property-hyphen-tests: New file.
80090         * modules/unictype/property-id-continue-tests: New file.
80091         * modules/unictype/property-id-start-tests: New file.
80092         * modules/unictype/property-ideographic-tests: New file.
80093         * modules/unictype/property-ids-binary-operator-tests: New file.
80094         * modules/unictype/property-ids-trinary-operator-tests: New file.
80095         * modules/unictype/property-ignorable-control-tests: New file.
80096         * modules/unictype/property-iso-control-tests: New file.
80097         * modules/unictype/property-join-control-tests: New file.
80098         * modules/unictype/property-left-of-pair-tests: New file.
80099         * modules/unictype/property-line-separator-tests: New file.
80100         * modules/unictype/property-logical-order-exception-tests: New file.
80101         * modules/unictype/property-lowercase-tests: New file.
80102         * modules/unictype/property-math-tests: New file.
80103         * modules/unictype/property-non-break-tests: New file.
80104         * modules/unictype/property-not-a-character-tests: New file.
80105         * modules/unictype/property-numeric-tests: New file.
80106         * modules/unictype/property-other-alphabetic-tests: New file.
80107         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
80108         * modules/unictype/property-other-grapheme-extend-tests: New file.
80109         * modules/unictype/property-other-id-continue-tests: New file.
80110         * modules/unictype/property-other-id-start-tests: New file.
80111         * modules/unictype/property-other-lowercase-tests: New file.
80112         * modules/unictype/property-other-math-tests: New file.
80113         * modules/unictype/property-other-uppercase-tests: New file.
80114         * modules/unictype/property-paired-punctuation-tests: New file.
80115         * modules/unictype/property-paragraph-separator-tests: New file.
80116         * modules/unictype/property-pattern-syntax-tests: New file.
80117         * modules/unictype/property-pattern-white-space-tests: New file.
80118         * modules/unictype/property-private-use-tests: New file.
80119         * modules/unictype/property-punctuation-tests: New file.
80120         * modules/unictype/property-quotation-mark-tests: New file.
80121         * modules/unictype/property-radical-tests: New file.
80122         * modules/unictype/property-sentence-terminal-tests: New file.
80123         * modules/unictype/property-soft-dotted-tests: New file.
80124         * modules/unictype/property-space-tests: New file.
80125         * modules/unictype/property-terminal-punctuation-tests: New file.
80126         * modules/unictype/property-test-tests: New file.
80127         * modules/unictype/property-titlecase-tests: New file.
80128         * modules/unictype/property-unassigned-code-value-tests: New file.
80129         * modules/unictype/property-unified-ideograph-tests: New file.
80130         * modules/unictype/property-uppercase-tests: New file.
80131         * modules/unictype/property-variation-selector-tests: New file.
80132         * modules/unictype/property-white-space-tests: New file.
80133         * modules/unictype/property-xid-continue-tests: New file.
80134         * modules/unictype/property-xid-start-tests: New file.
80135         * modules/unictype/property-zero-width-tests: New file.
80136         * modules/unictype/scripts-tests: New file.
80137         * modules/unictype/syntax-c-ident-tests: New file.
80138         * modules/unictype/syntax-c-whitespace-tests: New file.
80139         * modules/unictype/syntax-java-ident-tests: New file.
80140         * modules/unictype/syntax-java-whitespace-tests: New file.
80141         * tests/unictype/test-bidi_byname.c: New file.
80142         * tests/unictype/test-bidi_name.c: New file.
80143         * tests/unictype/test-bidi_of.c: New file.
80144         * tests/unictype/test-bidi_test.c: New file.
80145         * tests/unictype/test-block_list.c: New file.
80146         * tests/unictype/test-block_of.c: New file.
80147         * tests/unictype/test-block_test.c: New file.
80148         * tests/unictype/test-categ_and.c: New file.
80149         * tests/unictype/test-categ_and_not.c: New file.
80150         * tests/unictype/test-categ_byname.c: New file.
80151         * tests/unictype/test-categ_name.c: New file.
80152         * tests/unictype/test-categ_none.c: New file.
80153         * tests/unictype/test-categ_of.c: New file.
80154         * tests/unictype/test-categ_or.c: New file.
80155         * tests/unictype/test-categ_test_withtable.c: New file.
80156         * tests/unictype/test-combining.c: New file.
80157         * tests/unictype/test-decdigit.c: New file.
80158         * tests/unictype/test-digit.c: New file.
80159         * tests/unictype/test-mirror.c: New file.
80160         * tests/unictype/test-numeric.c: New file.
80161         * tests/unictype/test-pr_byname.c: New file.
80162         * tests/unictype/test-pr_test.c: New file.
80163         * tests/unictype/test-predicate-part1.h: New file.
80164         * tests/unictype/test-predicate-part2.h: New file.
80165         * tests/unictype/test-scripts.c: New file.
80166         * tests/unictype/test-sy_c_ident.c: New file.
80167         * tests/unictype/test-sy_java_ident.c: New file.
80169         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
80170         for Unicode 5.0.0.
80171         * tests/unictype/test-categ_Cc.c: Likewise.
80172         * tests/unictype/test-categ_Cf.c: Likewise.
80173         * tests/unictype/test-categ_Cn.c: Likewise.
80174         * tests/unictype/test-categ_Co.c: Likewise.
80175         * tests/unictype/test-categ_Cs.c: Likewise.
80176         * tests/unictype/test-categ_L.c: Likewise.
80177         * tests/unictype/test-categ_Ll.c: Likewise.
80178         * tests/unictype/test-categ_Lm.c: Likewise.
80179         * tests/unictype/test-categ_Lo.c: Likewise.
80180         * tests/unictype/test-categ_Lt.c: Likewise.
80181         * tests/unictype/test-categ_Lu.c: Likewise.
80182         * tests/unictype/test-categ_M.c: Likewise.
80183         * tests/unictype/test-categ_Mc.c: Likewise.
80184         * tests/unictype/test-categ_Me.c: Likewise.
80185         * tests/unictype/test-categ_Mn.c: Likewise.
80186         * tests/unictype/test-categ_N.c: Likewise.
80187         * tests/unictype/test-categ_Nd.c: Likewise.
80188         * tests/unictype/test-categ_Nl.c: Likewise.
80189         * tests/unictype/test-categ_No.c: Likewise.
80190         * tests/unictype/test-categ_P.c: Likewise.
80191         * tests/unictype/test-categ_Pc.c: Likewise.
80192         * tests/unictype/test-categ_Pd.c: Likewise.
80193         * tests/unictype/test-categ_Pe.c: Likewise.
80194         * tests/unictype/test-categ_Pf.c: Likewise.
80195         * tests/unictype/test-categ_Pi.c: Likewise.
80196         * tests/unictype/test-categ_Po.c: Likewise.
80197         * tests/unictype/test-categ_Ps.c: Likewise.
80198         * tests/unictype/test-categ_S.c: Likewise.
80199         * tests/unictype/test-categ_Sc.c: Likewise.
80200         * tests/unictype/test-categ_Sk.c: Likewise.
80201         * tests/unictype/test-categ_Sm.c: Likewise.
80202         * tests/unictype/test-categ_So.c: Likewise.
80203         * tests/unictype/test-categ_Z.c: Likewise.
80204         * tests/unictype/test-categ_Zl.c: Likewise.
80205         * tests/unictype/test-categ_Zp.c: Likewise.
80206         * tests/unictype/test-categ_Zs.c: Likewise.
80207         * tests/unictype/test-ctype_alnum.c: Likewise.
80208         * tests/unictype/test-ctype_alpha.c: Likewise.
80209         * tests/unictype/test-ctype_blank.c: Likewise.
80210         * tests/unictype/test-ctype_cntrl.c: Likewise.
80211         * tests/unictype/test-ctype_digit.c: Likewise.
80212         * tests/unictype/test-ctype_graph.c: Likewise.
80213         * tests/unictype/test-ctype_lower.c: Likewise.
80214         * tests/unictype/test-ctype_print.c: Likewise.
80215         * tests/unictype/test-ctype_punct.c: Likewise.
80216         * tests/unictype/test-ctype_space.c: Likewise.
80217         * tests/unictype/test-ctype_upper.c: Likewise.
80218         * tests/unictype/test-ctype_xdigit.c: Likewise.
80219         * tests/unictype/test-decdigit.h: Likewise.
80220         * tests/unictype/test-digit.h: Likewise.
80221         * tests/unictype/test-numeric.h: Likewise.
80222         * tests/unictype/test-pr_alphabetic.c: Likewise.
80223         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
80224         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
80225         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
80226         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
80227         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
80228         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
80229         * tests/unictype/test-pr_bidi_control.c: Likewise.
80230         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
80231         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
80232         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
80233         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
80234         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
80235         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
80236         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
80237         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
80238         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
80239         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
80240         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
80241         * tests/unictype/test-pr_combining.c: Likewise.
80242         * tests/unictype/test-pr_composite.c: Likewise.
80243         * tests/unictype/test-pr_currency_symbol.c: Likewise.
80244         * tests/unictype/test-pr_dash.c: Likewise.
80245         * tests/unictype/test-pr_decimal_digit.c: Likewise.
80246         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
80247         * tests/unictype/test-pr_deprecated.c: Likewise.
80248         * tests/unictype/test-pr_diacritic.c: Likewise.
80249         * tests/unictype/test-pr_extender.c: Likewise.
80250         * tests/unictype/test-pr_format_control.c: Likewise.
80251         * tests/unictype/test-pr_grapheme_base.c: Likewise.
80252         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
80253         * tests/unictype/test-pr_grapheme_link.c: Likewise.
80254         * tests/unictype/test-pr_hex_digit.c: Likewise.
80255         * tests/unictype/test-pr_hyphen.c: Likewise.
80256         * tests/unictype/test-pr_id_continue.c: Likewise.
80257         * tests/unictype/test-pr_id_start.c: Likewise.
80258         * tests/unictype/test-pr_ideographic.c: Likewise.
80259         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
80260         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
80261         * tests/unictype/test-pr_ignorable_control.c: Likewise.
80262         * tests/unictype/test-pr_iso_control.c: Likewise.
80263         * tests/unictype/test-pr_join_control.c: Likewise.
80264         * tests/unictype/test-pr_left_of_pair.c: Likewise.
80265         * tests/unictype/test-pr_line_separator.c: Likewise.
80266         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
80267         * tests/unictype/test-pr_lowercase.c: Likewise.
80268         * tests/unictype/test-pr_math.c: Likewise.
80269         * tests/unictype/test-pr_non_break.c: Likewise.
80270         * tests/unictype/test-pr_not_a_character.c: Likewise.
80271         * tests/unictype/test-pr_numeric.c: Likewise.
80272         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
80273         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
80274         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
80275         * tests/unictype/test-pr_other_id_continue.c: Likewise.
80276         * tests/unictype/test-pr_other_id_start.c: Likewise.
80277         * tests/unictype/test-pr_other_lowercase.c: Likewise.
80278         * tests/unictype/test-pr_other_math.c: Likewise.
80279         * tests/unictype/test-pr_other_uppercase.c: Likewise.
80280         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
80281         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
80282         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
80283         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
80284         * tests/unictype/test-pr_private_use.c: Likewise.
80285         * tests/unictype/test-pr_punctuation.c: Likewise.
80286         * tests/unictype/test-pr_quotation_mark.c: Likewise.
80287         * tests/unictype/test-pr_radical.c: Likewise.
80288         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
80289         * tests/unictype/test-pr_soft_dotted.c: Likewise.
80290         * tests/unictype/test-pr_space.c: Likewise.
80291         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
80292         * tests/unictype/test-pr_titlecase.c: Likewise.
80293         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
80294         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
80295         * tests/unictype/test-pr_uppercase.c: Likewise.
80296         * tests/unictype/test-pr_variation_selector.c: Likewise.
80297         * tests/unictype/test-pr_white_space.c: Likewise.
80298         * tests/unictype/test-pr_xid_continue.c: Likewise.
80299         * tests/unictype/test-pr_xid_start.c: Likewise.
80300         * tests/unictype/test-pr_zero_width.c: Likewise.
80301         * tests/unictype/test-sy_c_whitespace.c: Likewise.
80302         * tests/unictype/test-sy_java_whitespace.c: Likewise.
80304 2007-11-12  Bruno Haible  <bruno@clisp.org>
80306         Unicode character classification functions.
80307         * lib/unictype.h: New file.
80308         * modules/unictype/base: New file.
80309         * modules/unictype/category-L: New file.
80310         * modules/unictype/category-Lu: New file.
80311         * modules/unictype/category-Ll: New file.
80312         * modules/unictype/category-Lt: New file.
80313         * modules/unictype/category-Lm: New file.
80314         * modules/unictype/category-Lo: New file.
80315         * modules/unictype/category-M: New file.
80316         * modules/unictype/category-Mn: New file.
80317         * modules/unictype/category-Mc: New file.
80318         * modules/unictype/category-Me: New file.
80319         * modules/unictype/category-N: New file.
80320         * modules/unictype/category-Nd: New file.
80321         * modules/unictype/category-Nl: New file.
80322         * modules/unictype/category-No: New file.
80323         * modules/unictype/category-P: New file.
80324         * modules/unictype/category-Pc: New file.
80325         * modules/unictype/category-Pd: New file.
80326         * modules/unictype/category-Ps: New file.
80327         * modules/unictype/category-Pe: New file.
80328         * modules/unictype/category-Pi: New file.
80329         * modules/unictype/category-Pf: New file.
80330         * modules/unictype/category-Po: New file.
80331         * modules/unictype/category-S: New file.
80332         * modules/unictype/category-Sm: New file.
80333         * modules/unictype/category-Sc: New file.
80334         * modules/unictype/category-Sk: New file.
80335         * modules/unictype/category-So: New file.
80336         * modules/unictype/category-Z: New file.
80337         * modules/unictype/category-Zs: New file.
80338         * modules/unictype/category-Zl: New file.
80339         * modules/unictype/category-Zp: New file.
80340         * modules/unictype/category-C: New file.
80341         * modules/unictype/category-Cc: New file.
80342         * modules/unictype/category-Cf: New file.
80343         * modules/unictype/category-Cs: New file.
80344         * modules/unictype/category-Co: New file.
80345         * modules/unictype/category-Cn: New file.
80346         * modules/unictype/category-or: New file.
80347         * modules/unictype/category-of: New file.
80348         * modules/unictype/category-test: New file.
80349         * modules/unictype/category-test-withtable: New file.
80350         * modules/unictype/category-byname: New file.
80351         * modules/unictype/category-none: New file.
80352         * modules/unictype/category-and: New file.
80353         * modules/unictype/category-and-not: New file.
80354         * modules/unictype/category-name: New file.
80355         * modules/unictype/combining-class: New file.
80356         * modules/unictype/category-all: New file.
80357         * modules/unictype/bidicategory-all: New file.
80358         * modules/unictype/bidicategory-byname: New file.
80359         * modules/unictype/bidicategory-name: New file.
80360         * modules/unictype/bidicategory-of: New file.
80361         * modules/unictype/bidicategory-test: New file.
80362         * modules/unictype/decimal-digit: New file.
80363         * modules/unictype/digit: New file.
80364         * modules/unictype/numeric: New file.
80365         * modules/unictype/mirror: New file.
80366         * modules/unictype/property-white-space: New file.
80367         * modules/unictype/property-alphabetic: New file.
80368         * modules/unictype/property-other-alphabetic: New file.
80369         * modules/unictype/property-not-a-character: New file.
80370         * modules/unictype/property-default-ignorable-code-point: New file.
80371         * modules/unictype/property-other-default-ignorable-code-point: New
80372         file.
80373         * modules/unictype/property-deprecated: New file.
80374         * modules/unictype/property-logical-order-exception: New file.
80375         * modules/unictype/property-variation-selector: New file.
80376         * modules/unictype/property-private-use: New file.
80377         * modules/unictype/property-unassigned-code-value: New file.
80378         * modules/unictype/property-uppercase: New file.
80379         * modules/unictype/property-other-uppercase: New file.
80380         * modules/unictype/property-lowercase: New file.
80381         * modules/unictype/property-other-lowercase: New file.
80382         * modules/unictype/property-titlecase: New file.
80383         * modules/unictype/property-soft-dotted: New file.
80384         * modules/unictype/property-id-start: New file.
80385         * modules/unictype/property-other-id-start: New file.
80386         * modules/unictype/property-id-continue: New file.
80387         * modules/unictype/property-other-id-continue: New file.
80388         * modules/unictype/property-xid-start: New file.
80389         * modules/unictype/property-xid-continue: New file.
80390         * modules/unictype/property-pattern-white-space: New file.
80391         * modules/unictype/property-pattern-syntax: New file.
80392         * modules/unictype/property-join-control: New file.
80393         * modules/unictype/property-grapheme-base: New file.
80394         * modules/unictype/property-grapheme-extend: New file.
80395         * modules/unictype/property-other-grapheme-extend: New file.
80396         * modules/unictype/property-grapheme-link: New file.
80397         * modules/unictype/property-bidi-control: New file.
80398         * modules/unictype/property-bidi-left-to-right: New file.
80399         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
80400         * modules/unictype/property-bidi-arabic-right-to-left: New file.
80401         * modules/unictype/property-bidi-european-digit: New file.
80402         * modules/unictype/property-bidi-eur-num-separator: New file.
80403         * modules/unictype/property-bidi-eur-num-terminator: New file.
80404         * modules/unictype/property-bidi-arabic-digit: New file.
80405         * modules/unictype/property-bidi-common-separator: New file.
80406         * modules/unictype/property-bidi-block-separator: New file.
80407         * modules/unictype/property-bidi-segment-separator: New file.
80408         * modules/unictype/property-bidi-whitespace: New file.
80409         * modules/unictype/property-bidi-non-spacing-mark: New file.
80410         * modules/unictype/property-bidi-boundary-neutral: New file.
80411         * modules/unictype/property-bidi-pdf: New file.
80412         * modules/unictype/property-bidi-embedding-or-override: New file.
80413         * modules/unictype/property-bidi-other-neutral: New file.
80414         * modules/unictype/property-hex-digit: New file.
80415         * modules/unictype/property-ascii-hex-digit: New file.
80416         * modules/unictype/property-ideographic: New file.
80417         * modules/unictype/property-unified-ideograph: New file.
80418         * modules/unictype/property-radical: New file.
80419         * modules/unictype/property-ids-binary-operator: New file.
80420         * modules/unictype/property-ids-trinary-operator: New file.
80421         * modules/unictype/property-zero-width: New file.
80422         * modules/unictype/property-space: New file.
80423         * modules/unictype/property-non-break: New file.
80424         * modules/unictype/property-iso-control: New file.
80425         * modules/unictype/property-format-control: New file.
80426         * modules/unictype/property-dash: New file.
80427         * modules/unictype/property-hyphen: New file.
80428         * modules/unictype/property-punctuation: New file.
80429         * modules/unictype/property-line-separator: New file.
80430         * modules/unictype/property-paragraph-separator: New file.
80431         * modules/unictype/property-quotation-mark: New file.
80432         * modules/unictype/property-sentence-terminal: New file.
80433         * modules/unictype/property-terminal-punctuation: New file.
80434         * modules/unictype/property-currency-symbol: New file.
80435         * modules/unictype/property-math: New file.
80436         * modules/unictype/property-other-math: New file.
80437         * modules/unictype/property-paired-punctuation: New file.
80438         * modules/unictype/property-left-of-pair: New file.
80439         * modules/unictype/property-combining: New file.
80440         * modules/unictype/property-composite: New file.
80441         * modules/unictype/property-decimal-digit: New file.
80442         * modules/unictype/property-numeric: New file.
80443         * modules/unictype/property-diacritic: New file.
80444         * modules/unictype/property-extender: New file.
80445         * modules/unictype/property-ignorable-control: New file.
80446         * modules/unictype/property-test: New file.
80447         * modules/unictype/property-byname: New file.
80448         * modules/unictype/property-all: New file.
80449         * modules/unictype/scripts: New file.
80450         * modules/unictype/scripts-all: New file.
80451         * modules/unictype/block-of: New file.
80452         * modules/unictype/block-test: New file.
80453         * modules/unictype/block-list: New file.
80454         * modules/unictype/block-all: New file.
80455         * modules/unictype/syntax-c-whitespace: New file.
80456         * modules/unictype/syntax-java-whitespace: New file.
80457         * modules/unictype/syntax-c-ident: New file.
80458         * modules/unictype/syntax-java-ident: New file.
80459         * modules/unictype/ctype-alnum: New file.
80460         * modules/unictype/ctype-alpha: New file.
80461         * modules/unictype/ctype-cntrl: New file.
80462         * modules/unictype/ctype-digit: New file.
80463         * modules/unictype/ctype-graph: New file.
80464         * modules/unictype/ctype-lower: New file.
80465         * modules/unictype/ctype-print: New file.
80466         * modules/unictype/ctype-punct: New file.
80467         * modules/unictype/ctype-space: New file.
80468         * modules/unictype/ctype-upper: New file.
80469         * modules/unictype/ctype-xdigit: New file.
80470         * modules/unictype/ctype-blank: New file.
80471         * lib/unictype/bidi_byname.c: New file.
80472         * lib/unictype/bidi_name.c: New file.
80473         * lib/unictype/bidi_of.c: New file.
80474         * lib/unictype/bidi_test.c: New file.
80475         * lib/unictype/bitmap.h: New file.
80476         * lib/unictype/block_test.c: New file.
80477         * lib/unictype/blocks.c: New file.
80478         * lib/unictype/categ_C.c: New file.
80479         * lib/unictype/categ_Cc.c: New file.
80480         * lib/unictype/categ_Cf.c: New file.
80481         * lib/unictype/categ_Cn.c: New file.
80482         * lib/unictype/categ_Co.c: New file.
80483         * lib/unictype/categ_Cs.c: New file.
80484         * lib/unictype/categ_L.c: New file.
80485         * lib/unictype/categ_Ll.c: New file.
80486         * lib/unictype/categ_Lm.c: New file.
80487         * lib/unictype/categ_Lo.c: New file.
80488         * lib/unictype/categ_Lt.c: New file.
80489         * lib/unictype/categ_Lu.c: New file.
80490         * lib/unictype/categ_M.c: New file.
80491         * lib/unictype/categ_Mc.c: New file.
80492         * lib/unictype/categ_Me.c: New file.
80493         * lib/unictype/categ_Mn.c: New file.
80494         * lib/unictype/categ_N.c: New file.
80495         * lib/unictype/categ_Nd.c: New file.
80496         * lib/unictype/categ_Nl.c: New file.
80497         * lib/unictype/categ_No.c: New file.
80498         * lib/unictype/categ_P.c: New file.
80499         * lib/unictype/categ_Pc.c: New file.
80500         * lib/unictype/categ_Pd.c: New file.
80501         * lib/unictype/categ_Pe.c: New file.
80502         * lib/unictype/categ_Pf.c: New file.
80503         * lib/unictype/categ_Pi.c: New file.
80504         * lib/unictype/categ_Po.c: New file.
80505         * lib/unictype/categ_Ps.c: New file.
80506         * lib/unictype/categ_S.c: New file.
80507         * lib/unictype/categ_Sc.c: New file.
80508         * lib/unictype/categ_Sk.c: New file.
80509         * lib/unictype/categ_Sm.c: New file.
80510         * lib/unictype/categ_So.c: New file.
80511         * lib/unictype/categ_Z.c: New file.
80512         * lib/unictype/categ_Zl.c: New file.
80513         * lib/unictype/categ_Zp.c: New file.
80514         * lib/unictype/categ_Zs.c: New file.
80515         * lib/unictype/categ_and.c: New file.
80516         * lib/unictype/categ_and_not.c: New file.
80517         * lib/unictype/categ_byname.c: New file.
80518         * lib/unictype/categ_name.c: New file.
80519         * lib/unictype/categ_none.c: New file.
80520         * lib/unictype/categ_of.c: New file.
80521         * lib/unictype/categ_or.c: New file.
80522         * lib/unictype/categ_test.c: New file.
80523         * lib/unictype/combining.c: New file.
80524         * lib/unictype/ctype_alnum.c: New file.
80525         * lib/unictype/ctype_alpha.c: New file.
80526         * lib/unictype/ctype_blank.c: New file.
80527         * lib/unictype/ctype_cntrl.c: New file.
80528         * lib/unictype/ctype_digit.c: New file.
80529         * lib/unictype/ctype_graph.c: New file.
80530         * lib/unictype/ctype_lower.c: New file.
80531         * lib/unictype/ctype_print.c: New file.
80532         * lib/unictype/ctype_punct.c: New file.
80533         * lib/unictype/ctype_space.c: New file.
80534         * lib/unictype/ctype_upper.c: New file.
80535         * lib/unictype/ctype_xdigit.c: New file.
80536         * lib/unictype/decdigit.c: New file.
80537         * lib/unictype/digit.c: New file.
80538         * lib/unictype/identsyntaxmap.h: New file.
80539         * lib/unictype/mirror.c: New file.
80540         * lib/unictype/numeric.c: New file.
80541         * lib/unictype/pr_alphabetic.c: New file.
80542         * lib/unictype/pr_ascii_hex_digit.c: New file.
80543         * lib/unictype/pr_bidi_arabic_digit.c: New file.
80544         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
80545         * lib/unictype/pr_bidi_block_separator.c: New file.
80546         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
80547         * lib/unictype/pr_bidi_common_separator.c: New file.
80548         * lib/unictype/pr_bidi_control.c: New file.
80549         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
80550         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
80551         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
80552         * lib/unictype/pr_bidi_european_digit.c: New file.
80553         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
80554         * lib/unictype/pr_bidi_left_to_right.c: New file.
80555         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
80556         * lib/unictype/pr_bidi_other_neutral.c: New file.
80557         * lib/unictype/pr_bidi_pdf.c: New file.
80558         * lib/unictype/pr_bidi_segment_separator.c: New file.
80559         * lib/unictype/pr_bidi_whitespace.c: New file.
80560         * lib/unictype/pr_byname.c: New file.
80561         * lib/unictype/pr_byname.gperf: New file.
80562         * lib/unictype/pr_combining.c: New file.
80563         * lib/unictype/pr_composite.c: New file.
80564         * lib/unictype/pr_currency_symbol.c: New file.
80565         * lib/unictype/pr_dash.c: New file.
80566         * lib/unictype/pr_decimal_digit.c: New file.
80567         * lib/unictype/pr_default_ignorable_code_point.c: New file.
80568         * lib/unictype/pr_deprecated.c: New file.
80569         * lib/unictype/pr_diacritic.c: New file.
80570         * lib/unictype/pr_extender.c: New file.
80571         * lib/unictype/pr_format_control.c: New file.
80572         * lib/unictype/pr_grapheme_base.c: New file.
80573         * lib/unictype/pr_grapheme_extend.c: New file.
80574         * lib/unictype/pr_grapheme_link.c: New file.
80575         * lib/unictype/pr_hex_digit.c: New file.
80576         * lib/unictype/pr_hyphen.c: New file.
80577         * lib/unictype/pr_id_continue.c: New file.
80578         * lib/unictype/pr_id_start.c: New file.
80579         * lib/unictype/pr_ideographic.c: New file.
80580         * lib/unictype/pr_ids_binary_operator.c: New file.
80581         * lib/unictype/pr_ids_trinary_operator.c: New file.
80582         * lib/unictype/pr_ignorable_control.c: New file.
80583         * lib/unictype/pr_iso_control.c: New file.
80584         * lib/unictype/pr_join_control.c: New file.
80585         * lib/unictype/pr_left_of_pair.c: New file.
80586         * lib/unictype/pr_line_separator.c: New file.
80587         * lib/unictype/pr_logical_order_exception.c: New file.
80588         * lib/unictype/pr_lowercase.c: New file.
80589         * lib/unictype/pr_math.c: New file.
80590         * lib/unictype/pr_non_break.c: New file.
80591         * lib/unictype/pr_not_a_character.c: New file.
80592         * lib/unictype/pr_numeric.c: New file.
80593         * lib/unictype/pr_other_alphabetic.c: New file.
80594         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
80595         * lib/unictype/pr_other_grapheme_extend.c: New file.
80596         * lib/unictype/pr_other_id_continue.c: New file.
80597         * lib/unictype/pr_other_id_start.c: New file.
80598         * lib/unictype/pr_other_lowercase.c: New file.
80599         * lib/unictype/pr_other_math.c: New file.
80600         * lib/unictype/pr_other_uppercase.c: New file.
80601         * lib/unictype/pr_paired_punctuation.c: New file.
80602         * lib/unictype/pr_paragraph_separator.c: New file.
80603         * lib/unictype/pr_pattern_syntax.c: New file.
80604         * lib/unictype/pr_pattern_white_space.c: New file.
80605         * lib/unictype/pr_private_use.c: New file.
80606         * lib/unictype/pr_punctuation.c: New file.
80607         * lib/unictype/pr_quotation_mark.c: New file.
80608         * lib/unictype/pr_radical.c: New file.
80609         * lib/unictype/pr_sentence_terminal.c: New file.
80610         * lib/unictype/pr_soft_dotted.c: New file.
80611         * lib/unictype/pr_space.c: New file.
80612         * lib/unictype/pr_terminal_punctuation.c: New file.
80613         * lib/unictype/pr_test.c: New file.
80614         * lib/unictype/pr_titlecase.c: New file.
80615         * lib/unictype/pr_unassigned_code_value.c: New file.
80616         * lib/unictype/pr_unified_ideograph.c: New file.
80617         * lib/unictype/pr_uppercase.c: New file.
80618         * lib/unictype/pr_variation_selector.c: New file.
80619         * lib/unictype/pr_white_space.c: New file.
80620         * lib/unictype/pr_xid_continue.c: New file.
80621         * lib/unictype/pr_xid_start.c: New file.
80622         * lib/unictype/pr_zero_width.c: New file.
80623         * lib/unictype/scripts.c: New file.
80624         * lib/unictype/sy_c_ident.c: New file.
80625         * lib/unictype/sy_c_whitespace.c: New file.
80626         * lib/unictype/sy_java_ident.c: New file.
80627         * lib/unictype/sy_java_whitespace.c: New file.
80629         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
80630         Unicode 5.0.0.
80631         * lib/unictype/blocks.h: Likewise.
80632         * lib/unictype/categ_C.h: Likewise.
80633         * lib/unictype/categ_Cc.h: Likewise.
80634         * lib/unictype/categ_Cf.h: Likewise.
80635         * lib/unictype/categ_Cn.h: Likewise.
80636         * lib/unictype/categ_Co.h: Likewise.
80637         * lib/unictype/categ_Cs.h: Likewise.
80638         * lib/unictype/categ_L.h: Likewise.
80639         * lib/unictype/categ_Ll.h: Likewise.
80640         * lib/unictype/categ_Lm.h: Likewise.
80641         * lib/unictype/categ_Lo.h: Likewise.
80642         * lib/unictype/categ_Lt.h: Likewise.
80643         * lib/unictype/categ_Lu.h: Likewise.
80644         * lib/unictype/categ_M.h: Likewise.
80645         * lib/unictype/categ_Mc.h: Likewise.
80646         * lib/unictype/categ_Me.h: Likewise.
80647         * lib/unictype/categ_Mn.h: Likewise.
80648         * lib/unictype/categ_N.h: Likewise.
80649         * lib/unictype/categ_Nd.h: Likewise.
80650         * lib/unictype/categ_Nl.h: Likewise.
80651         * lib/unictype/categ_No.h: Likewise.
80652         * lib/unictype/categ_P.h: Likewise.
80653         * lib/unictype/categ_Pc.h: Likewise.
80654         * lib/unictype/categ_Pd.h: Likewise.
80655         * lib/unictype/categ_Pe.h: Likewise.
80656         * lib/unictype/categ_Pf.h: Likewise.
80657         * lib/unictype/categ_Pi.h: Likewise.
80658         * lib/unictype/categ_Po.h: Likewise.
80659         * lib/unictype/categ_Ps.h: Likewise.
80660         * lib/unictype/categ_S.h: Likewise.
80661         * lib/unictype/categ_Sc.h: Likewise.
80662         * lib/unictype/categ_Sk.h: Likewise.
80663         * lib/unictype/categ_Sm.h: Likewise.
80664         * lib/unictype/categ_So.h: Likewise.
80665         * lib/unictype/categ_Z.h: Likewise.
80666         * lib/unictype/categ_Zl.h: Likewise.
80667         * lib/unictype/categ_Zp.h: Likewise.
80668         * lib/unictype/categ_Zs.h: Likewise.
80669         * lib/unictype/categ_of.h: Likewise.
80670         * lib/unictype/combining.h: Likewise.
80671         * lib/unictype/ctype_alnum.h: Likewise.
80672         * lib/unictype/ctype_alpha.h: Likewise.
80673         * lib/unictype/ctype_blank.h: Likewise.
80674         * lib/unictype/ctype_cntrl.h: Likewise.
80675         * lib/unictype/ctype_digit.h: Likewise.
80676         * lib/unictype/ctype_graph.h: Likewise.
80677         * lib/unictype/ctype_lower.h: Likewise.
80678         * lib/unictype/ctype_print.h: Likewise.
80679         * lib/unictype/ctype_punct.h: Likewise.
80680         * lib/unictype/ctype_space.h: Likewise.
80681         * lib/unictype/ctype_upper.h: Likewise.
80682         * lib/unictype/ctype_xdigit.h: Likewise.
80683         * lib/unictype/decdigit.h: Likewise.
80684         * lib/unictype/digit.h: Likewise.
80685         * lib/unictype/mirror.h: Likewise.
80686         * lib/unictype/numeric.h: Likewise.
80687         * lib/unictype/pr_alphabetic.h: Likewise.
80688         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
80689         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
80690         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
80691         * lib/unictype/pr_bidi_block_separator.h: Likewise.
80692         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
80693         * lib/unictype/pr_bidi_common_separator.h: Likewise.
80694         * lib/unictype/pr_bidi_control.h: Likewise.
80695         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
80696         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
80697         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
80698         * lib/unictype/pr_bidi_european_digit.h: Likewise.
80699         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
80700         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
80701         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
80702         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
80703         * lib/unictype/pr_bidi_pdf.h: Likewise.
80704         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
80705         * lib/unictype/pr_bidi_whitespace.h: Likewise.
80706         * lib/unictype/pr_combining.h: Likewise.
80707         * lib/unictype/pr_composite.h: Likewise.
80708         * lib/unictype/pr_currency_symbol.h: Likewise.
80709         * lib/unictype/pr_dash.h: Likewise.
80710         * lib/unictype/pr_decimal_digit.h: Likewise.
80711         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
80712         * lib/unictype/pr_deprecated.h: Likewise.
80713         * lib/unictype/pr_diacritic.h: Likewise.
80714         * lib/unictype/pr_extender.h: Likewise.
80715         * lib/unictype/pr_format_control.h: Likewise.
80716         * lib/unictype/pr_grapheme_base.h: Likewise.
80717         * lib/unictype/pr_grapheme_extend.h: Likewise.
80718         * lib/unictype/pr_grapheme_link.h: Likewise.
80719         * lib/unictype/pr_hex_digit.h: Likewise.
80720         * lib/unictype/pr_hyphen.h: Likewise.
80721         * lib/unictype/pr_id_continue.h: Likewise.
80722         * lib/unictype/pr_id_start.h: Likewise.
80723         * lib/unictype/pr_ideographic.h: Likewise.
80724         * lib/unictype/pr_ids_binary_operator.h: Likewise.
80725         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
80726         * lib/unictype/pr_ignorable_control.h: Likewise.
80727         * lib/unictype/pr_iso_control.h: Likewise.
80728         * lib/unictype/pr_join_control.h: Likewise.
80729         * lib/unictype/pr_left_of_pair.h: Likewise.
80730         * lib/unictype/pr_line_separator.h: Likewise.
80731         * lib/unictype/pr_logical_order_exception.h: Likewise.
80732         * lib/unictype/pr_lowercase.h: Likewise.
80733         * lib/unictype/pr_math.h: Likewise.
80734         * lib/unictype/pr_non_break.h: Likewise.
80735         * lib/unictype/pr_not_a_character.h: Likewise.
80736         * lib/unictype/pr_numeric.h: Likewise.
80737         * lib/unictype/pr_other_alphabetic.h: Likewise.
80738         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
80739         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
80740         * lib/unictype/pr_other_id_continue.h: Likewise.
80741         * lib/unictype/pr_other_id_start.h: Likewise.
80742         * lib/unictype/pr_other_lowercase.h: Likewise.
80743         * lib/unictype/pr_other_math.h: Likewise.
80744         * lib/unictype/pr_other_uppercase.h: Likewise.
80745         * lib/unictype/pr_paired_punctuation.h: Likewise.
80746         * lib/unictype/pr_paragraph_separator.h: Likewise.
80747         * lib/unictype/pr_pattern_syntax.h: Likewise.
80748         * lib/unictype/pr_pattern_white_space.h: Likewise.
80749         * lib/unictype/pr_private_use.h: Likewise.
80750         * lib/unictype/pr_punctuation.h: Likewise.
80751         * lib/unictype/pr_quotation_mark.h: Likewise.
80752         * lib/unictype/pr_radical.h: Likewise.
80753         * lib/unictype/pr_sentence_terminal.h: Likewise.
80754         * lib/unictype/pr_soft_dotted.h: Likewise.
80755         * lib/unictype/pr_space.h: Likewise.
80756         * lib/unictype/pr_terminal_punctuation.h: Likewise.
80757         * lib/unictype/pr_titlecase.h: Likewise.
80758         * lib/unictype/pr_unassigned_code_value.h: Likewise.
80759         * lib/unictype/pr_unified_ideograph.h: Likewise.
80760         * lib/unictype/pr_uppercase.h: Likewise.
80761         * lib/unictype/pr_variation_selector.h: Likewise.
80762         * lib/unictype/pr_white_space.h: Likewise.
80763         * lib/unictype/pr_xid_continue.h: Likewise.
80764         * lib/unictype/pr_xid_start.h: Likewise.
80765         * lib/unictype/pr_zero_width.h: Likewise.
80766         * lib/unictype/scripts.h: Likewise.
80767         * lib/unictype/scripts_byname.gperf: Likewise.
80768         * lib/unictype/sy_c_ident.h: Likewise.
80769         * lib/unictype/sy_c_whitespace.h: Likewise.
80770         * lib/unictype/sy_java_ident.h: Likewise.
80771         * lib/unictype/sy_java_whitespace.h: Likewise.
80773         * lib/unictype/Makefile: New file.
80774         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
80775         glibc.
80776         * lib/unictype/3level.h: New file, copied from glibc.
80777         * lib/unictype/3levelbit.h: New file.
80779 2007-11-11  Bruno Haible  <bruno@clisp.org>
80781         * modules/gperf: New file.
80782         * modules/iconv_open (Depends-on): Add it.
80783         (Makefile.am): Remove the GPERF definition.
80785 2007-11-11  Bruno Haible  <bruno@clisp.org>
80787         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
80788         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
80790 2007-11-11  Bruno Haible  <bruno@clisp.org>
80792         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
80793         (usage): Remove function.
80795 2007-11-11  Bruno Haible  <bruno@clisp.org>
80797         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
80798         gl_FUNC_CEILF_LIBS.
80799         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
80800         gl_FUNC_CEIL_LIBS.
80801         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
80802         gl_FUNC_CEILL_LIBS.
80803         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
80804         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
80805         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
80807 2007-11-11  Bruno Haible  <bruno@clisp.org>
80809         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
80810         roundf were declared but do not exist on functions.
80811         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
80812         roundl were declared but do not exist on functions.
80813         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
80814         HAVE_FLOORL_AND_CEILL, respectively.
80815         Needed for Sun C on Solaris 10.
80817 2007-11-11  Bruno Haible  <bruno@clisp.org>
80819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
80820         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
80821         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
80822         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
80823         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
80824         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
80825         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
80826         HAVE_DECL_ROUNDF.
80827         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
80828         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
80829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
80830         of HAVE_DECL_ROUND*.
80831         * modules/math (Makefile.am): Update.
80833 2007-11-10  Bruno Haible  <bruno@clisp.org>
80835         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
80836         ptrdiff_t as m4/intl.m4.
80838 2007-11-10  Jim Meyering  <meyering@redhat.com>
80840         Avoid link failure for the argmatch test.
80841         * tests/test-argmatch.c (usage): Define function to avoid a link
80842         failure: argmatch_die requires a usage function.
80844 2007-11-09  Bruno Haible  <bruno@clisp.org>
80846         * doc/functions/snprintf.texi: Mention BeOS deficiency.
80847         * doc/functions/vsnprintf.texi: Likewise.
80848         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
80849         with a size argument < 2.
80851 2007-11-09  Bruno Haible  <bruno@clisp.org>
80853         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
80854         buffer. Fixes an inefficiency introduced on 2007-11-03.
80856 2007-11-09  Bruno Haible  <bruno@clisp.org>
80858         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
80859         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
80861 2007-11-08  Jim Meyering  <meyering@redhat.com>
80863         Change cache variable name prefix "jm_" to "gl_" everywhere.
80864         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
80865         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
80866         * m4/uptime.m4: s/gl_/jm_/
80868 2007-11-07  Bruno Haible  <bruno@clisp.org>
80870         Update to GNU gettext 0.17.
80871         * m4/intl.m4: Update to GNU gettext 0.17.
80872         * m4/po.m4: Likewise.
80873         * modules/gettext (Files): Remove m4/ulonglong.m4.
80874         (configure.ac): Require gettext infrastructure from version 0.17.
80876 2007-11-06  Bruno Haible  <bruno@clisp.org>
80878         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
80879         symbolic values are not defined in a public header.
80880         * lib/freadable.c (freadable) [QNX]: Likewise.
80881         * lib/freadahead.c (freadahead) [QNX]: Likewise.
80882         * lib/freading.c (freading) [QNX]: Likewise.
80883         * lib/fseterr.c (fseterr) [QNX]: Likewise.
80884         * lib/fwritable.c (fwritable) [QNX]: Likewise.
80885         * lib/fwriting.c (fwriting) [QNX]: Likewise.
80886         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
80887         Reported by Alain Magloire.
80889         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
80891 2007-11-05  Bruno Haible  <bruno@clisp.org>
80893         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
80894         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
80895         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
80896         Reported by Eric Blake.
80898 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80899             Bruno Haible  <bruno@clisp.org>
80901         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
80902         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
80903         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
80904         (malloc): Undefine also before including <stdlib.h>.
80905         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
80906         Needed on OSF/1 4.0.
80908 2007-11-05  Jim Meyering  <meyering@redhat.com>
80910         git-version-gen: sync from coreutils.
80911         * build-aux/git-version-gen: Add comments.
80912         Change the first '-' to '.' in the snapshot version string,
80913         e.g., 6.9-377-08144 -> 6.9.377-08144
80914         Remove first parameter.
80915         Don't declare a version "-dirty" merely because a time
80916         stamp has changed.
80918 2007-11-04  Bruno Haible  <bruno@clisp.org>
80920         * lib/lock.h: Protect all macro definitions containing an 'if'
80921         statement through a "do { ... } while (0)".
80922         * lib/tls.h: Likewise.
80924 2007-11-04  Bruno Haible  <bruno@clisp.org>
80926         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
80928 2007-11-04  Bruno Haible  <bruno@clisp.org>
80930         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
80931         * modules/fprintf-posix (Depends-on): Add nocrash.
80932         * modules/snprintf-posix (Depends-on): Likewise.
80933         * modules/sprintf-posix (Depends-on): Likewise.
80934         * modules/vasnprintf-posix (Depends-on): Likewise.
80935         * modules/vasprintf-posix (Depends-on): Likewise.
80936         * modules/vfprintf-posix (Depends-on): Likewise.
80937         * modules/vsnprintf-posix (Depends-on): Likewise.
80938         * modules/vsprintf-posix (Depends-on): Likewise.
80939         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
80940         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
80941         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
80942         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
80943         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
80944         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
80945         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
80947 2007-11-04  Bruno Haible  <bruno@clisp.org>
80949         * modules/nocrash: New file.
80950         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
80951         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
80953 2007-11-04  Bruno Haible  <bruno@clisp.org>
80955         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
80956         precision handling.
80957         * tests/test-vasprintf-posix.c (test_function): Likewise.
80958         * tests/test-snprintf-posix.h (test_function): Likewise.
80959         * tests/test-sprintf-posix.h (test_function): Likewise.
80961         Fix *printf behaviour for large precisions on mingw and BeOS.
80962         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
80963         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
80964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
80965         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80966         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80967         gl_PRINTF_PRECISION and test its result. Invoke
80968         gl_PREREQ_VASNPRINTF_PRECISION.
80969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80973         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80975         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80976         * doc/functions/fprintf.texi: Update.
80977         * doc/functions/printf.texi: Update.
80978         * doc/functions/snprintf.texi: Update.
80979         * doc/functions/sprintf.texi: Update.
80980         * doc/functions/vfprintf.texi: Update.
80981         * doc/functions/vprintf.texi: Update.
80982         * doc/functions/vsnprintf.texi: Update.
80983         * doc/functions/vsprintf.texi: Update.
80985 2007-11-04  Bruno Haible  <bruno@clisp.org>
80987         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
80989 2007-11-04  Bruno Haible  <bruno@clisp.org>
80991         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
80992         Reported by Sylvain Beucler <beuc@gnu.org>.
80994 2007-11-03  Bruno Haible  <bruno@clisp.org>
80996         * tests/test-fprintf-posix2.sh: New file.
80997         * tests/test-fprintf-posix2.c: New file.
80998         * modules/fprintf-posix-tests (Files): Add them.
80999         (TESTS): Add test-fprintf-posix2.sh.
81000         (configure.ac): Check for getrlimit and setrlimit.
81001         (check_PROGRAMS): Add test-fprintf-posix2.
81003         * tests/test-printf-posix2.sh: New file.
81004         * tests/test-printf-posix2.c: New file.
81005         * modules/printf-posix-tests (Files): Add them.
81006         (TESTS): Add test-printf-posix2.sh.
81007         (configure.ac): Check for getrlimit and setrlimit.
81008         (check_PROGRAMS): Add test-printf-posix2.
81010         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
81011         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
81012         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
81013         (decode_double): New function, copied from decode_long_double.
81014         (scale10_round_decimal_decoded): New function, extracted from
81015         scale10_round_decimal_long_double.
81016         (scale10_round_decimal_long_double): Use it.
81017         (scale10_round_decimal_double): New function.
81018         (floorlog10): New function.
81019         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
81020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
81021         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81022         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81023         gl_PRINTF_ENOMEM and test its result. Invoke
81024         gl_PREREQ_VASNPRINTF_ENOMEM.
81025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81026         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81032         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
81033         * modules/snprintf-posix (Depends-on): Likewise.
81034         * modules/sprintf-posix (Depends-on): Likewise.
81035         * modules/vasnprintf-posix (Depends-on): Likewise.
81036         * modules/vasprintf-posix (Depends-on): Likewise.
81037         * modules/vfprintf-posix (Depends-on): Likewise.
81038         * modules/vsnprintf-posix (Depends-on): Likewise.
81039         * modules/vsprintf-posix (Depends-on): Likewise.
81040         * doc/functions/fprintf.texi: Update.
81041         * doc/functions/printf.texi: Update.
81042         * doc/functions/snprintf.texi: Update.
81043         * doc/functions/sprintf.texi: Update.
81044         * doc/functions/vfprintf.texi: Update.
81045         * doc/functions/vprintf.texi: Update.
81046         * doc/functions/vsnprintf.texi: Update.
81047         * doc/functions/vsprintf.texi: Update.
81049 2007-11-03  Bruno Haible  <bruno@clisp.org>
81051         * modules/frexp-nolibm-tests: New file.
81053         * modules/frexp-nolibm: New file.
81054         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
81056 2007-11-03  Bruno Haible  <bruno@clisp.org>
81058         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
81059         value is C99 compliant.
81060         Needed for OSF/1 5.1.
81062 2007-11-03  Bruno Haible  <bruno@clisp.org>
81064         Fix out-of-memory handling of vasnprintf.
81065         * lib/printf-parse.c: Include <errno.h>.
81066         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
81067         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
81068         is already set.
81070 2007-11-02  Eric Blake  <ebb9@byu.net>
81072         Fix tests on cygwin.
81073         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
81075 2007-11-01  Bruno Haible  <bruno@clisp.org>
81077         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
81078         warning.
81079         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
81080         needed for POSIX compatibility.
81082 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81084         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
81085         for compatibility with GNU.
81087 2007-11-01  Bruno Haible  <bruno@clisp.org>
81089         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
81090         (putenv): Renamed from rpl_putenv. Change argument type from
81091         'const char *' to 'char *'.
81092         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
81093         of defining putenv in config.h, just set REPLACE_PUTENV.
81094         * modules/putenv (Depends-on): Add stdlib.
81095         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
81096         (Include): Use <stdlib.h>.
81097         * lib/stdlib.in.h (putenv): New declaration.
81098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
81099         REPLACE_PUTENV.
81100         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
81101         REPLACE_PUTENV.
81102         Needed for MacOS X 10.5.0.
81103         Reported by Peter O'Gorman <peter@pogma.com>.
81105 2007-11-01  Jim Meyering  <meyering@redhat.com>
81107         Treat an empty date string exactly like "0".
81108         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
81109         if the remaining date string (to be parsed) is empty, use "0".
81110         Reported by Mischa Molhoek and discussed in this thread:
81111         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
81113 2007-10-31  Bruno Haible  <bruno@clisp.org>
81115         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
81116         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
81117         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
81118         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
81119         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
81120         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
81122 2007-10-31  Bruno Haible  <bruno@clisp.org>
81124         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
81125         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
81126         (AC_TYPE_LONG_LONG_INT): Use it.
81127         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
81128         it as well.
81129         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
81130         to m4/longlong.m4.
81131         * modules/stdint (Files): Remove m4/ulonglong.m4.
81132         * modules/strtoull (Files): Use m4/longlong.m4 instead of
81133         m4/ulonglong.m4.
81134         * modules/strtoumax (Files): Likewise.
81136 2007-10-30  Bruno Haible  <bruno@clisp.org>
81138         * modules/xvasprintf-posix: New file.
81139         Suggested by Eric Blake.
81141 2007-10-30  Bruno Haible  <bruno@clisp.org>
81143         * modules/xprintf-posix-tests: New file.
81144         * tests/test-xprintf-posix.sh: New file.
81145         * tests/test-xprintf-posix.c: New file.
81146         * tests/test-xfprintf-posix.c: New file.
81148         * modules/xprintf-posix: New file.
81150 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81152         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
81153         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
81154         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
81156 2007-10-29  Bruno Haible  <bruno@clisp.org>
81158         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
81159         contain the special marker '_cv_'.
81160         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
81161         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
81162         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
81163         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
81164         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
81165         Reported by Ralf Wildenhues.
81167 2007-10-29  Bruno Haible  <bruno@clisp.org>
81169         * gnulib-tool (func_import): When --lgpl is not specified, set
81170         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
81171         GPLv3.
81172         Reported by Simon Josefsson.
81174 2007-10-28  Bruno Haible  <bruno@clisp.org>
81176         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
81177         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
81178         HAVE_DECL_ISFINITE.
81179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
81180         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
81181         HAVE_DECL_ISFINITE.
81183 2007-10-28  Bruno Haible  <bruno@clisp.org>
81185         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
81186         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
81188 2007-10-28  Bruno Haible  <bruno@clisp.org>
81190         Fix link errors with Sun C 5.0 on Solaris 10.
81191         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
81192         function is declared but not present in the compiler's libm.
81193         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
81194         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
81195         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
81196         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
81197         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
81198         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
81199         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
81200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
81201         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
81202         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
81203         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
81204         HAVE_DECL_FLOORL.
81206 2007-10-28  Bruno Haible  <bruno@clisp.org>
81208         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
81209         gl_FUNC_FLOORL. Cache the result.
81210         (gl_FUNC_FLOORL): Use it.
81211         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
81212         gl_FUNC_CEILL. Cache the result.
81213         (gl_FUNC_CEILL): Use it.
81215         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
81216         gl_FUNC_FLOOR. Cache the result.
81217         (gl_FUNC_FLOOR): Use it.
81218         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
81219         gl_FUNC_CEIL. Cache the result.
81220         (gl_FUNC_CEIL): Use it.
81222         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
81223         gl_FUNC_FLOORF. Cache the result.
81224         (gl_FUNC_FLOORF): Use it.
81225         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
81226         gl_FUNC_CEILF. Cache the result.
81227         (gl_FUNC_CEILF): Use it.
81229 2007-10-28  Bruno Haible  <bruno@clisp.org>
81231         * gnulib-tool: Allow specifying the LGPL version number through
81232         --lgpl=2 or --lgpl=3.
81233         (func_usage): Document --lgpl with argument.
81234         Handle --lgpl=... arguments.
81235         (func_import): Recognize also gl_LGPL calls with an argument. When
81236         --lgpl=2 is used and the module's license is just LGPL, report an
81237         error. Set sed_transform_lib_file according to the lgpl variable. In
81238         the generated files, use --lgpl or gl_LGPL invocations with argument,
81239         if necessary.
81240         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
81241         an LGPv2+ license.
81242         * doc/gnulib-tool.texi (Modified imports): Update explanation of
81243         gl_LGPL macro.
81245 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81246             Bruno Haible  <bruno@clisp.org>
81248         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
81249         (u16_uctomb_aux): Likewise.
81250         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
81251         !HAVE_INLINE.
81252         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
81254 2007-10-28  Bruno Haible  <bruno@clisp.org>
81256         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
81257         Invoke AM_GETTEXT_OPTION if it exists.
81258         * modules/vasprintf: Likewise.
81259         * modules/verror: Likewise.
81260         * modules/xprintf: Likewise.
81261         * modules/xvasprintf: Likewise.
81263 2007-10-27  Ben Pfaff  <blp@gnu.org>
81265         * lib/math.in.h: Define isfinite macro and prototypes for
81266         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
81267         implementations.
81268         * m4/math_h.m4: New substitutions for isfinite module.
81269         * lib/isfinite.c: New file.
81270         * m4/isfinite.m4: New file.
81271         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
81272         * modules/isfinite: New file.
81273         * modules/isfinite-tests: New file.
81274         * tests/tests-isfinite.c: New file.
81275         * doc/functions/isfinite.texi: Mention isfinite module.
81276         * MODULES.html.sh: Mention new module.
81278 2007-10-27  Ben Pfaff  <blp@gnu.org>
81280         Ralf Wildenhues reported that Tru64 4.0D declares the round
81281         functions but does not have definitions.
81282         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
81283         cannot be found in any library, set the output variable to
81284         "missing" instead of "".
81285         * m4/round.m4: Also use our substitute if we cannot find round in
81286         any library, even if it is declared.
81287         * m4/roundf.m4: Likewise for roundf.
81288         * m4/roundl.m4: Likewise for roundl.
81289         * lib/math.in.h: Undefine roundf, round, roundl before defining
81290         their replacements, to allow for hypothetical systems where these
81291         may be defined as macros but not available in libraries.
81293 2007-10-27  Bruno Haible  <bruno@clisp.org>
81295         * doc/gnulib.texi: Invoke @firstparagraphindent.
81296         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
81297         changes in gnulib.
81298         (Source changes): New section.
81300 2007-10-26  Bruno Haible  <bruno@clisp.org>
81302         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
81303         borrowed from autoconf.
81305 2007-10-26  Bruno Haible  <bruno@clisp.org>
81307         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
81308         strerror returned the empty string. Needed on HP-UX 11.00.
81310 2007-10-24  Micah Cowan  <micah@cowan.name>
81312         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
81313         * build-aux/bootstrap: Remove support for now-unnecessary option,
81314         --cvs-user, and envvars CVS_USER, CVS_RSH.
81316 2007-10-24  Jim Meyering  <meyering@redhat.com>
81318         Avoid diagnostics from sha1sum when there is no cached checksum.
81319         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
81320         if the po.s1 file hasn't been created yet.
81322         * build-aux/bootstrap: Sync from coreutils:
81323         2007-10-24  Jim Meyering  <meyering@redhat.com>
81324         Get gnulib from the git repository, not from an obsolete cvs one.
81325         * build-aux/bootstrap: Suggestion from Micah Cowan.
81326         2007-10-04  Jim Meyering  <jim@meyering.net>
81327         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
81328         (update_po_files): Work also when there are no .po files in po/.
81330 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81332         * README: Append ".git" to git and cg examples.
81333         Problem reported by Benoit Sigoure.
81335 2007-10-23  Micah Cowan  <micah@cowan.name>
81337         * users.txt: Add wget.
81339 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81341         Fix linking of some unistdio tests on FreeBSD.
81342         * modules/unistdio/u16-vsnprintf-tests
81343         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
81344         * modules/unistdio/u16-vsprintf-tests
81345         (test_u16_vsnprintf1_LDADD): Likewise.
81346         * modules/unistdio/u32-vsnprintf-tests
81347         (test_u32_vsnprintf1_LDADD): Likewise.
81348         * modules/unistdio/u32-vsprintf-tests
81349         (test_u32_vsprintf1_LDADD): Likewise.
81350         * modules/unistdio/u8-vsnprintf-tests
81351         (test_u8_vsnprintf1_LDADD): Likewise.
81352         * modules/unistdio/u8-vsprintf-tests
81353         (test_u8_vsprintf1_LDADD): Likewise.
81354         * modules/unistdio/ulc-vsnprintf-tests
81355         (test_ulc_vsnprintf1_LDADD): Likewise.
81356         * modules/unistdio/ulc-vsprintf-tests
81357         (test_ulc_vsprintf1_LDADD): Likewise.
81359         Fix linking of some uniconv tests on FreeBSD.
81360         * modules/uniconv/u16-conv-from-enc-tests
81361         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
81362         * modules/uniconv/u16-conv-to-enc-tests
81363         (test_u16_conv_to_enc_LDADD): Likewise.
81364         * modules/uniconv/u16-strconv-from-enc-tests
81365         (test_u16_strconv_from_enc_LDADD): Likewise.
81366         * modules/uniconv/u16-strconv-to-enc-tests
81367         (test_u16_strconv_to_enc_LDADD): Likewise.
81368         * modules/uniconv/u32-conv-from-enc-tests
81369         (test_u32_conv_from_enc_LDADD): Likewise.
81370         * modules/uniconv/u32-conv-to-enc-tests
81371         (test_u32_conv_to_enc_LDADD): Likewise.
81372         * modules/uniconv/u32-strconv-from-enc-tests
81373         (test_u32_strconv_from_enc_LDADD): Likewise.
81374         * modules/uniconv/u32-strconv-to-enc-tests
81375         (test_u32_strconv_to_enc_LDADD): Likewise.
81376         * modules/uniconv/u8-conv-from-enc-tests
81377         (test_u8_conv_from_enc_LDADD): Likewise.
81378         * modules/uniconv/u8-conv-to-enc-tests
81379         (test_u8_conv_to_enc_LDADD): Likewise.
81380         * modules/uniconv/u8-strconv-from-enc-tests
81381         (test_u8_strconv_from_enc_LDADD): Likewise.
81382         * modules/uniconv/u8-strconv-to-enc-tests
81383         (test_u8_strconv_to_enc_LDADD): Likewise.
81385 2007-10-22  Bruno Haible  <bruno@clisp.org>
81387         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
81388         size.
81390 2007-10-22  Eric Blake  <ebb9@byu.net>
81392         Tweak x*printf documentation.
81393         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
81394         variable name and comments.
81395         Suggested by Bruno Haible.
81397 2007-10-22  Bruno Haible  <bruno@clisp.org>
81399         * lib/acl.c (copy_acl): Fix file name in comment.
81401 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81403         Fix Tru64 problem with stdbool.h.
81404         * lib/stdbool.in.h (false, true):
81405         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
81406         Don't declare as an enum in this situation; it runs afoul of Tru64.
81407         Problem reported by Steven M. Schweda in
81408         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
81410 2007-10-22  Eric Blake  <ebb9@byu.net>
81412         Also wrap vf?printf.
81413         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
81414         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
81415         (xvprintf, xvfprintf): New functions.
81417 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81419         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
81420         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
81422         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
81423         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
81425 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81427         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
81428         by Bruno Haible.
81430 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81432         * lib/getloadavg.c
81433         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
81434         Undef `sys' after including sys/table.h, for Tru64 4.0D.
81436         * tests/test-i-ring.c: Work for C89.
81438 2007-10-22  Bruno Haible  <bruno@clisp.org>
81440         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
81441         -1u, in preprocessor expression, so that we don't test for the bug
81442         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
81443         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
81445 2007-10-22  Eric Blake  <ebb9@byu.net>
81447         * tests/test-yesno.sh: Silence stderr during test.
81449 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81451         * modules/crypto/gc-camellia: New file.
81453         * m4/gc-camellia.m4: New file.
81455         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
81457         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
81459 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81461         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
81462         --help to stdout.  Reported by sms@antinode.org (Steven
81463         M. Schweda).
81465 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81467         * users.txt: Fix link to libksba.
81469 2007-10-21  Ben Pfaff  <blp@gnu.org>
81471         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
81472         round.c roundf implementation that depends on floorf and ceilf to
81473         be tested unconditionally.
81475 2007-10-21  Ben Pfaff  <blp@gnu.org>
81477         * m4/check-libm-func.m4: Removed.
81478         * m4/check-math-lib.m4: New file.
81479         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
81480         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
81481         definition and lack of AC_LIBOBJ([roundf]).
81482         * m4/roundl.m4: Ditto, and similarly for roundl.
81483         * modules/round: Reference new m4 file.
81484         * modules/roundf: Ditto.
81485         * modules/roundl: Ditto.
81486         * tests/test-round2.c (main): Use ROUND instead of round.
81487         Bug report from Bruno Haible.
81489 2007-10-21  Bruno Haible  <bruno@clisp.org>
81491         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
81492         context.
81494 2007-10-21  Bruno Haible  <bruno@clisp.org>
81496         * tests/test-wcwidth.c (main): Allow negative result for some control
81497         characters.
81499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
81500         Needed on OSF/1 5.1.
81502 2007-10-21  Bruno Haible  <bruno@clisp.org>
81504         * tests/test-floorf1.c: Include isnanf.h.
81505         (main): Use isnanf() instead of isnan().
81506         * tests/test-ceilf1.c: Include isnanf.h.
81507         (main): Use isnanf() instead of isnan().
81508         * tests/test-truncf1.c: Include isnanf.h.
81509         (main): Use isnanf() instead of isnan().
81510         * tests/test-roundf1.c: Include isnanf.h.
81511         (main): Use isnanf() instead of isnan().
81513 2007-10-21  Eric Blake  <ebb9@byu.net>
81515         * users.txt: Update URL for m4.
81517 2007-10-21  Bruno Haible  <bruno@clisp.org>
81519         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
81521 2007-10-21  Bruno Haible  <bruno@clisp.org>
81523         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
81524         Git's management files if the CVS files are not present.
81526 2007-10-20  Bruno Haible  <bruno@clisp.org>
81528         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
81529         gcc-3.4.x.
81531 2007-10-20  Ben Pfaff  <blp@gnu.org>
81533         * lib/math.in.h: Declare round, roundf, roundl if we are providing
81534         implementations.
81535         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
81536         * lib/round.c: New file.
81537         * lib/roundf.c: New file.
81538         * lib/roundl.c: New file.
81539         * m4/round.m4: New file.
81540         * m4/roundf.m4: New file.
81541         * m4/roundl.m4: New file.
81542         * m4/check-libm-func-m4: New file.
81543         * modules/math: Replace round, roundf, roundl related @VARS@ in
81544         math.in.h.
81545         * modules/round: New file.
81546         * modules/round-tests: New file.
81547         * modules/roundf: New file.
81548         * modules/roundf-tests: New file.
81549         * modules/roundl: New file.
81550         * modules/roundl-tests: New file.
81551         * tests/test-round1.c: New file.
81552         * tests/test-round2.c: New file.
81553         * tests/test-roundf1.c: New file.
81554         * tests/test-roundf2.c: New file.
81555         * tests/test-roundl.c: New file.
81556         * doc/functions/round.texi: Mention round module.
81557         * doc/functions/roundf.texi: Mention roundf module.
81558         * doc/functions/roundl.texi: Mention roundl module.
81559         * MODULES.html.sh: Mention new modules.
81560         Thanks to Bruno Haible for suggestions.
81562 2007-10-20  Jim Meyering  <meyering@redhat.com>
81564         * lib/xprintf.c: Include <config.h> unconditionally.
81566         Change xprintf's license to GPL.
81567         * modules/xprintf (License): s/LGPL/GPL/, since this module
81568         depends on modules (exit and exitfail) which are GPL.
81569         Suggestion from Bruno Haible.
81571         xprintf fixes.
81572         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
81573         Use a clearer diagnostic.
81574         Patch from Bruno Haible.
81576 2007-10-20  Bruno Haible  <bruno@clisp.org>
81578         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
81579         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
81580         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81582 2007-10-20  Bruno Haible  <bruno@clisp.org>
81584         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
81585         precision in the comparison result > x - 1 or similar.
81586         * tests/test-ceilf2.c (correct_result_p): Likewise.
81587         * tests/test-truncf2.c (correct_result_p): Likewise.
81588         * tests/test-trunc2.c (correct_result_p): Likewise.
81589         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81591 2007-10-20  Bruno Haible  <bruno@clisp.org>
81593         * modules/ceil: New file.
81594         * m4/ceil.m4: New file.
81595         * doc/functions/ceil.texi: Mention the 'ceil' module.
81597 2007-10-20  Bruno Haible  <bruno@clisp.org>
81599         * modules/floor: New file.
81600         * m4/floor.m4: New file.
81601         * doc/functions/floor.texi: Mention the 'floor' module.
81603 2007-10-20  Bruno Haible  <bruno@clisp.org>
81605         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
81606         of %a.
81607         * modules/floorf-tests (Depends-on): Likewise.
81608         * modules/truncf-tests (Depends-on): Likewise.
81609         * modules/trunc-tests (Depends-on): Likewise.
81610         Reported by Ben Pfaff.
81612 2007-10-19  Jim Meyering  <meyering@redhat.com>
81614         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
81615         Don't bother testing specific errno values.  Just test ferror.
81617         New module: xprintf
81618         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
81620 2007-10-19  Bruno Haible  <bruno@clisp.org>
81622         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
81623         syntax.
81624         * modules/javaexec (Makefile.am): Likewise.
81625         * modules/relocatable-prog (Makefile.am): Likewise.
81626         Suggested by Jim Meyering.
81628 2007-10-18  Bruno Haible  <bruno@clisp.org>
81630         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
81631         Reported by Jim Meyering.
81633 2007-10-18  Eric Blake  <ebb9@byu.net>
81635         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
81637 2007-10-18  Bruno Haible  <bruno@clisp.org>
81639         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
81640         the format string into writable memory. Needed in Fortify conditions.
81642 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
81643             Bruno Haible  <bruno@clisp.org>
81645         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
81646         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
81647         * modules/trim (Depends-on): Add mbchar.
81648         (configure.ac): Add gl_FUNC_MBRTOWC.
81649         (Makefile.am): Augment lib_SOURCES.
81651 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81653         Modify glob.c to use fstatat and dirfd, to simplify it.
81654         Suggested by Eric Blake.
81655         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
81656         Don't include <stdbool.h>; not used.
81657         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
81658         (link_exists_p): Simplify implementation, since we can now assume
81659         dirfd and fstatat.
81660         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
81662 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81664         * gnulib-tool (func_get_dependencies): Fix sed script to
81665         match only tests.
81667 2007-10-17  Bruno Haible  <bruno@clisp.org>
81669         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
81670         allow locale names without encoding suffix.
81671         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81672         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81674 2007-10-16  Bruno Haible  <bruno@clisp.org>
81676         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
81677         * lib/getgroups.c (getgroups): Likewise.
81678         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
81680 2007-10-16  Bruno Haible  <bruno@clisp.org>
81682         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
81683         * modules/malloc-posix (License): Likewise.
81684         * modules/realloc-posix (License): Likewise.
81685         * modules/calloc-posix (License): Likewise.
81686         * modules/intprops (License): Change from GPL to LGPL, with
81687         Paul Eggert's approval.
81689 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
81691         Merge glibc changes into lib/glob.c.
81693         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
81694         2007-10-15 04:59:03 UTC.  Here are the changes:
81696         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
81698         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
81700         * lib/glob.c: Add some branch prediction throughout.
81702         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
81704         [BZ #5103]
81705         * lib/glob.c (glob): Recognize patterns starting \/.
81707         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
81709         [BZ #3996]
81710         * lib/glob.c (attribute_hidden): Define if not defined.
81711         (glob): Unescape dirname, filename or username when needed and not
81712         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
81713         is NULL.  Handle unescaped [ in pattern without closing ].
81714         Don't pass GLOB_CHECK down to recursive glob for directories.
81715         (__glob_pattern_type): New function.
81716         (__glob_pattern_p): Implement using __glob_pattern_type.
81717         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
81718         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
81719         Remove unreachable code.
81721         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
81723         * lib/glob.c (glob_in_dir): Add some comments and asserts to
81724         explain why there are no leaks.
81726         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
81728         [BZ #3253]
81729         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
81730         time, rather allocate increasingly bigger arrays of pointers, if
81731         possible with alloca, if too large with malloc.
81733 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
81735         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
81736         Problem reported by H.Merijn Brand in
81737         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
81738         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
81739         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81741 2007-10-15  Bruno Haible  <bruno@clisp.org>
81743         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
81744         with explicit rpl_ prefix.
81745         * lib/fopen.c (fopen): Likewise.
81746         * lib/freopen.c (freopen): Likewise.
81747         * lib/iconv.c (iconv): Likewise.
81748         * lib/iconv_close.c (iconv_close): Likewise.
81750 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81752         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
81754 2007-10-15  Bruno Haible  <bruno@clisp.org>
81756         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
81757         <stddef.h> instead of <stdlib.h> since we only need NULL.
81758         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81760 2007-10-15  Bruno Haible  <bruno@clisp.org>
81762         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
81763         Replace paragraph talking about LIBOBJS.
81764         Reported by Colin Watson <cjwatson@debian.org>.
81766 2007-10-15  Bruno Haible  <bruno@clisp.org>
81768         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
81769         <stdlib.h> before using NULL.
81771 2007-10-15  Simon Josefsson  <simon@josefsson.org>
81773         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
81774         Reported by Albert Chin <china@thewrittenword.com>.
81776 2007-10-14  Bruno Haible  <bruno@clisp.org>
81778         * modules/iconv_open-utf-tests: New file.
81779         * tests/test-iconv-utf.c: New file.
81781         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
81782         * modules/iconv_open-utf: New file.
81783         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
81784         (iconv, iconv_close): New declarations.
81785         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
81786         be defined.
81787         (iconv_open): Add special handling of conversion between UTF-8 and
81788         UTF-{16,32}{BE,LE}.
81789         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
81790         * lib/iconv_close.c: New file.
81791         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
81792         gl_FUNC_ICONV_OPEN.
81793         (gl_FUNC_ICONV_OPEN): Use it.
81794         (gl_FUNC_ICONV_OPEN_UTF): New macro.
81795         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
81796         and REPLACE_ICONV_UTF.
81797         * modules/iconv_open (Depends-on): Add c-strcase.
81798         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
81799         ICONV_CONST.
81800         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
81802 2007-10-13  Albert Chin  <china@thewrittenword.com>
81803             Bruno Haible  <bruno@clisp.org>
81805         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
81806         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
81808 2007-10-13  Bruno Haible  <bruno@clisp.org>
81810         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
81811         defined, use the ISO C99 inline semantics.
81812         * lib/argp.h (ARGP_EI): Likewise.
81814 2007-10-13  Bruno Haible  <bruno@clisp.org>
81816         Handle 'inline' change in gcc 4.3.0.
81817         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
81818         argp_fmtstream_write, argp_fmtstream_set_lmargin,
81819         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
81820         argp_fmtstream_point): Disable 'extern' declaration if the function
81821         definition is going to be provided inline.
81822         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
81823         semantics, not the ISO C99 inline semantics.
81824         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
81825         'extern' declaration if the function definition is going to be provided
81826         inline.
81827         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
81828         the GNU C inline semantics, not the ISO C99 inline semantics. With
81829         GCC 4.2, avoid a warning.
81831 2007-10-13  Bruno Haible  <bruno@clisp.org>
81833         * lib/freading.h (freading): Enable the use of __freading for
81834         glibc >= 2.7.
81835         * lib/freading.c (freading): Likewise.
81837 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
81839         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
81840         "warning: C99 inline functions are not supported; using GNU89".
81842 2007-10-12  Bruno Haible  <bruno@clisp.org>
81844         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
81845         of 2.
81846         * tests/test-ceilf2.c: New file.
81847         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
81849         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
81850         * modules/ceilf-tests: Update.
81852 2007-10-12  Bruno Haible  <bruno@clisp.org>
81854         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
81855         of 2.
81856         * tests/test-floorf2.c: New file.
81857         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
81859         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
81860         * modules/floorf-tests: Update.
81862 2007-10-12  Bruno Haible  <bruno@clisp.org>
81864         * tests/test-trunc2.c: New file.
81865         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
81867         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
81868         * modules/trunc-tests: Update.
81870 2007-10-12  Bruno Haible  <bruno@clisp.org>
81872         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
81873         of 2.
81874         * tests/test-truncf2.c: New file.
81875         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
81877         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
81878         * modules/truncf-tests: Update.
81880 2007-10-11  Eric Blake  <ebb9@byu.net>
81882         Don't claim strerror is broken on Interix.
81883         * doc/functions/strerror.texi (strerror): Known broken systems are
81884         now Solaris 8, and not Interix.
81885         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
81886         Interix on cross-compile.
81887         Reported by Martin Koeppe in
81888         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
81890 2007-10-11  Bruno Haible  <bruno@clisp.org>
81892         * modules/i-ring-tests: New file.
81893         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
81894         instead of assert.
81896 2007-10-11  Bruno Haible  <bruno@clisp.org>
81898         * modules/filenamecat-tests: New file.
81899         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
81900         * lib/filenamecat.c: Remove test code.
81902 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
81904         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
81906         * lib/strerror.c: Include <string.h> always, to test interface,
81907         and to remove the need for the dummy.
81908         Include intprops.h to compute width instead of doing it ourselves
81909         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
81910         (strerror): Define it to return NULL if there's no system strerror.
81911         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
81912         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
81913         ancient pre-strerror Unix systems well any more.  Saying "unknown
81914         system error" is enough.
81915         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
81916         simpler strerror.c implementation.
81917         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
81918         Simplify the tests to reflect the simpler strerror implementation.
81919         * modules/strerror (Depends-on): Add intprops.
81921 2007-10-09  Eric Blake  <ebb9@byu.net>
81923         Silence test-fpending.
81924         * modules/fpending-tests (Files): Add wrapper script.
81925         * tests/test-fpending.sh: New file.
81927 2007-10-09  Bruno Haible  <bruno@clisp.org>
81929         * MODULES.html.sh (func_module): Don't create a hyperlink for
81930         function names like 'printf_frexp'.
81931         (Misc): Add crc, memxor.
81932         (Characteristics of floating types): New section.
81933         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
81934         isnanf-nolibm, signbit, trunc, truncf, truncl.
81935         (Enhancements for ISO C 99 functions): New subsection Input/output.
81936         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
81937         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
81938         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
81939         (Compatibility checks for POSIX:2001 functions): Add clock-time.
81940         (Enhancements for POSIX:2001 functions): Add chdir-long.
81941         (File system functions): Add areadlink, chdir-safer, read-file.
81942         Remove cycle-check.
81943         (File system as inode set): New section.
81944         (Date and time): Add gethrxtime.
81945         (Multithreading): Add openmp.
81946         (Internationalization functions): Add localename.
81947         (Unicode string functions): Add unistr/u*-mbsnlen.
81948         (Support for maintaining and releasing projects): Add git-version-gen.
81949         (Lone files): Remove directories.
81951 2007-10-08  Ben Pfaff  <blp@gnu.org>
81953         * lib/xmalloca.h: Fix typo in comment.
81955 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
81957         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
81958         when avoiding problems with integer overflow.  Use a portable test
81959         instead.
81961 2007-10-08  Simon Josefsson  <simon@josefsson.org>
81963         * modules/dummy (License): Change to LGPLv2+.
81964         * modules/float (License): Likewise
81965         * modules/realloc (License): Likewise
81966         * modules/stdlib (License): Likewise
81968 2007-10-07  Bruno Haible  <bruno@clisp.org>
81970         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
81971         * floor.c (TWO_MANT_DIG): Likewise.
81972         * ceil.c (TWO_MANT_DIG): Likewise.
81973         Reported by Ben Pfaff.
81975 2007-10-07  Bruno Haible  <bruno@clisp.org>
81977         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
81978         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
81979         * lib/frexp.c (FUNC): Likewise.
81980         * lib/printf-frexp.h (printf_frexp): Likewise.
81981         * lib/printf-frexpl.h (printf_frexpl): Likewise.
81982         * lib/printf-frexp.c (FUNC): Likewise.
81983         Suggested by Jim Meyering.
81985 2007-10-07  Jim Meyering  <meyering@redhat.com>
81987         Make xnanosleep's integer overflow test more robust.
81988         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
81989         so that gcc-4.3.0 doesn't optimize away this test for overflow.
81991 2007-10-07  Bruno Haible  <bruno@clisp.org>
81993         * NEWS: Mention the license change.
81995         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
81996         abbreviations in the modules files.
81998         Change copyright notice from GPLv2+ to GPLv3+.
81999         * README: Change copyright notice.
82000         * MODULES.html.sh: Likewise.
82001         * build-aux/bootstrap.conf: Likewise.
82002         * build-aux/config.libpath: Likewise.
82003         * build-aux/csharpcomp.sh.in: Likewise.
82004         * build-aux/csharpexec.sh.in: Likewise.
82005         * build-aux/install-reloc: Likewise.
82006         * build-aux/javacomp.sh.in: Likewise.
82007         * build-aux/javaexec.sh.in: Likewise.
82008         * build-aux/ldd.sh.in: Likewise.
82009         * build-aux/reloc-ldflags: Likewise.
82010         * build-aux/relocatable.sh.in: Likewise.
82011         * build-aux/x-to-1.in: Likewise.
82012         * check-module: Likewise.
82013         * config/srclistvars.sh: Likewise.
82014         * gnulib-tool: Likewise.
82015         * lib/acl-internal.h: Likewise.
82016         * lib/acl.c: Likewise.
82017         * lib/acl.h: Likewise.
82018         * lib/acl_entries.c: Likewise.
82019         * lib/areadlink-with-size.c: Likewise.
82020         * lib/areadlink.c: Likewise.
82021         * lib/areadlink.h: Likewise.
82022         * lib/argmatch.c: Likewise.
82023         * lib/argmatch.h: Likewise.
82024         * lib/argp-ba.c: Likewise.
82025         * lib/argp-eexst.c: Likewise.
82026         * lib/argp-fmtstream.c: Likewise.
82027         * lib/argp-fmtstream.h: Likewise.
82028         * lib/argp-fs-xinl.c: Likewise.
82029         * lib/argp-help.c: Likewise.
82030         * lib/argp-namefrob.h: Likewise.
82031         * lib/argp-parse.c: Likewise.
82032         * lib/argp-pin.c: Likewise.
82033         * lib/argp-pv.c: Likewise.
82034         * lib/argp-pvh.c: Likewise.
82035         * lib/argp-xinl.c: Likewise.
82036         * lib/argp.h: Likewise.
82037         * lib/at-func.c: Likewise.
82038         * lib/atanl.c: Likewise.
82039         * lib/backupfile.c: Likewise.
82040         * lib/backupfile.h: Likewise.
82041         * lib/basename.c: Likewise.
82042         * lib/binary-io.h: Likewise.
82043         * lib/byteswap.in.h: Likewise.
82044         * lib/c-stack.c: Likewise.
82045         * lib/c-stack.h: Likewise.
82046         * lib/c-strcasestr.c: Likewise.
82047         * lib/c-strcasestr.h: Likewise.
82048         * lib/c-strstr.c: Likewise.
82049         * lib/c-strstr.h: Likewise.
82050         * lib/c-strtod.c: Likewise.
82051         * lib/calloc.c: Likewise.
82052         * lib/canon-host.c: Likewise.
82053         * lib/canon-host.h: Likewise.
82054         * lib/canonicalize-lgpl.c: Likewise.
82055         * lib/canonicalize.c: Likewise.
82056         * lib/canonicalize.h: Likewise.
82057         * lib/ceil.c: Likewise.
82058         * lib/ceilf.c: Likewise.
82059         * lib/ceill.c: Likewise.
82060         * lib/chdir-long.c: Likewise.
82061         * lib/chdir-long.h: Likewise.
82062         * lib/chdir-safer.c: Likewise.
82063         * lib/chdir-safer.h: Likewise.
82064         * lib/chown.c: Likewise.
82065         * lib/classpath.c: Likewise.
82066         * lib/classpath.h: Likewise.
82067         * lib/clean-temp.c: Likewise.
82068         * lib/clean-temp.h: Likewise.
82069         * lib/cloexec.c: Likewise.
82070         * lib/close-stream.c: Likewise.
82071         * lib/closein.c: Likewise.
82072         * lib/closein.h: Likewise.
82073         * lib/closeout.c: Likewise.
82074         * lib/closeout.h: Likewise.
82075         * lib/concat-filename.c: Likewise.
82076         * lib/copy-file.c: Likewise.
82077         * lib/copy-file.h: Likewise.
82078         * lib/count-one-bits.h: Likewise.
82079         * lib/crc.c: Likewise.
82080         * lib/crc.h: Likewise.
82081         * lib/creat-safer.c: Likewise.
82082         * lib/csharpcomp.c: Likewise.
82083         * lib/csharpcomp.h: Likewise.
82084         * lib/csharpexec.c: Likewise.
82085         * lib/csharpexec.h: Likewise.
82086         * lib/cycle-check.c: Likewise.
82087         * lib/cycle-check.h: Likewise.
82088         * lib/diacrit.c: Likewise.
82089         * lib/diacrit.h: Likewise.
82090         * lib/diffseq.h: Likewise.
82091         * lib/dirchownmod.c: Likewise.
82092         * lib/dirent.in.h: Likewise.
82093         * lib/dirfd.c: Likewise.
82094         * lib/dirfd.h: Likewise.
82095         * lib/dirname.c: Likewise.
82096         * lib/dirname.h: Likewise.
82097         * lib/dummy.c: Likewise.
82098         * lib/dup-safer.c: Likewise.
82099         * lib/dup2.c: Likewise.
82100         * lib/eealloc.h: Likewise.
82101         * lib/error.c: Likewise.
82102         * lib/error.h: Likewise.
82103         * lib/euidaccess.c: Likewise.
82104         * lib/exclude.c: Likewise.
82105         * lib/exclude.h: Likewise.
82106         * lib/execute.c: Likewise.
82107         * lib/execute.h: Likewise.
82108         * lib/exitfail.c: Likewise.
82109         * lib/exitfail.h: Likewise.
82110         * lib/expl.c: Likewise.
82111         * lib/fatal-signal.c: Likewise.
82112         * lib/fatal-signal.h: Likewise.
82113         * lib/fbufmode.c: Likewise.
82114         * lib/fbufmode.h: Likewise.
82115         * lib/fchdir.c: Likewise.
82116         * lib/fchmodat.c: Likewise.
82117         * lib/fchownat.c: Likewise.
82118         * lib/fcntl--.h: Likewise.
82119         * lib/fcntl-safer.h: Likewise.
82120         * lib/fcntl.in.h: Likewise.
82121         * lib/fd-safer.c: Likewise.
82122         * lib/fflush.c: Likewise.
82123         * lib/file-has-acl.c: Likewise.
82124         * lib/file-set.c: Likewise.
82125         * lib/file-type.c: Likewise.
82126         * lib/file-type.h: Likewise.
82127         * lib/fileblocks.c: Likewise.
82128         * lib/filemode.c: Likewise.
82129         * lib/filemode.h: Likewise.
82130         * lib/filename.h: Likewise.
82131         * lib/filenamecat.c: Likewise.
82132         * lib/filenamecat.h: Likewise.
82133         * lib/findprog.c: Likewise.
82134         * lib/findprog.h: Likewise.
82135         * lib/float.in.h: Likewise.
82136         * lib/floor.c: Likewise.
82137         * lib/floorf.c: Likewise.
82138         * lib/floorl.c: Likewise.
82139         * lib/fopen-safer.c: Likewise.
82140         * lib/fopen.c: Likewise.
82141         * lib/fpending.c: Likewise.
82142         * lib/fpending.h: Likewise.
82143         * lib/fprintf.c: Likewise.
82144         * lib/fprintftime.h: Likewise.
82145         * lib/fpucw.h: Likewise.
82146         * lib/fpurge.c: Likewise.
82147         * lib/fpurge.h: Likewise.
82148         * lib/freadable.c: Likewise.
82149         * lib/freadable.h: Likewise.
82150         * lib/freadahead.c: Likewise.
82151         * lib/freadahead.h: Likewise.
82152         * lib/freading.c: Likewise.
82153         * lib/freading.h: Likewise.
82154         * lib/free.c: Likewise.
82155         * lib/freopen.c: Likewise.
82156         * lib/frexp.c: Likewise.
82157         * lib/frexpl.c: Likewise.
82158         * lib/fseek.c: Likewise.
82159         * lib/fseterr.c: Likewise.
82160         * lib/fseterr.h: Likewise.
82161         * lib/fstatat.c: Likewise.
82162         * lib/fstrcmp.c: Likewise.
82163         * lib/fstrcmp.h: Likewise.
82164         * lib/fsusage.c: Likewise.
82165         * lib/fsusage.h: Likewise.
82166         * lib/ftell.c: Likewise.
82167         * lib/ftello.c: Likewise.
82168         * lib/fts-cycle.c: Likewise.
82169         * lib/fts.c: Likewise.
82170         * lib/fts_.h: Likewise.
82171         * lib/full-read.c: Likewise.
82172         * lib/full-read.h: Likewise.
82173         * lib/full-write.c: Likewise.
82174         * lib/full-write.h: Likewise.
82175         * lib/fwritable.c: Likewise.
82176         * lib/fwritable.h: Likewise.
82177         * lib/fwriteerror.c: Likewise.
82178         * lib/fwriteerror.h: Likewise.
82179         * lib/fwriting.c: Likewise.
82180         * lib/fwriting.h: Likewise.
82181         * lib/gcd.c: Likewise.
82182         * lib/gcd.h: Likewise.
82183         * lib/getcwd.c: Likewise.
82184         * lib/getdate.h: Likewise.
82185         * lib/getdate.y: Likewise.
82186         * lib/getdomainname.c: Likewise.
82187         * lib/getdomainname.h: Likewise.
82188         * lib/getgroups.c: Likewise.
82189         * lib/gethostname.c: Likewise.
82190         * lib/gethrxtime.c: Likewise.
82191         * lib/gethrxtime.h: Likewise.
82192         * lib/getloadavg.c: Likewise.
82193         * lib/getndelim2.c: Likewise.
82194         * lib/getndelim2.h: Likewise.
82195         * lib/getnline.c: Likewise.
82196         * lib/getnline.h: Likewise.
82197         * lib/getopt.c: Likewise.
82198         * lib/getopt.in.h: Likewise.
82199         * lib/getopt1.c: Likewise.
82200         * lib/getopt_int.h: Likewise.
82201         * lib/getpagesize.h: Likewise.
82202         * lib/getsubopt.c: Likewise.
82203         * lib/gettime.c: Likewise.
82204         * lib/getugroups.c: Likewise.
82205         * lib/getugroups.h: Likewise.
82206         * lib/getusershell.c: Likewise.
82207         * lib/gl_anyavltree_list1.h: Likewise.
82208         * lib/gl_anyavltree_list2.h: Likewise.
82209         * lib/gl_anyhash_list1.h: Likewise.
82210         * lib/gl_anyhash_list2.h: Likewise.
82211         * lib/gl_anylinked_list1.h: Likewise.
82212         * lib/gl_anylinked_list2.h: Likewise.
82213         * lib/gl_anyrbtree_list1.h: Likewise.
82214         * lib/gl_anyrbtree_list2.h: Likewise.
82215         * lib/gl_anytree_list1.h: Likewise.
82216         * lib/gl_anytree_list2.h: Likewise.
82217         * lib/gl_anytree_oset.h: Likewise.
82218         * lib/gl_anytreehash_list1.h: Likewise.
82219         * lib/gl_anytreehash_list2.h: Likewise.
82220         * lib/gl_array_list.c: Likewise.
82221         * lib/gl_array_list.h: Likewise.
82222         * lib/gl_array_oset.c: Likewise.
82223         * lib/gl_array_oset.h: Likewise.
82224         * lib/gl_avltree_list.c: Likewise.
82225         * lib/gl_avltree_list.h: Likewise.
82226         * lib/gl_avltree_oset.c: Likewise.
82227         * lib/gl_avltree_oset.h: Likewise.
82228         * lib/gl_avltreehash_list.c: Likewise.
82229         * lib/gl_avltreehash_list.h: Likewise.
82230         * lib/gl_carray_list.c: Likewise.
82231         * lib/gl_carray_list.h: Likewise.
82232         * lib/gl_linked_list.c: Likewise.
82233         * lib/gl_linked_list.h: Likewise.
82234         * lib/gl_linkedhash_list.c: Likewise.
82235         * lib/gl_linkedhash_list.h: Likewise.
82236         * lib/gl_list.c: Likewise.
82237         * lib/gl_list.h: Likewise.
82238         * lib/gl_oset.c: Likewise.
82239         * lib/gl_oset.h: Likewise.
82240         * lib/gl_rbtree_list.c: Likewise.
82241         * lib/gl_rbtree_list.h: Likewise.
82242         * lib/gl_rbtree_oset.c: Likewise.
82243         * lib/gl_rbtree_oset.h: Likewise.
82244         * lib/gl_rbtreehash_list.c: Likewise.
82245         * lib/gl_rbtreehash_list.h: Likewise.
82246         * lib/gl_sublist.c: Likewise.
82247         * lib/gl_sublist.h: Likewise.
82248         * lib/group-member.c: Likewise.
82249         * lib/group-member.h: Likewise.
82250         * lib/hard-locale.c: Likewise.
82251         * lib/hard-locale.h: Likewise.
82252         * lib/hash-pjw.c: Likewise.
82253         * lib/hash-pjw.h: Likewise.
82254         * lib/hash-triple.c: Likewise.
82255         * lib/hash.c: Likewise.
82256         * lib/hash.h: Likewise.
82257         * lib/human.c: Likewise.
82258         * lib/human.h: Likewise.
82259         * lib/i-ring.c: Likewise.
82260         * lib/i-ring.h: Likewise.
82261         * lib/idcache.c: Likewise.
82262         * lib/imaxabs.c: Likewise.
82263         * lib/imaxdiv.c: Likewise.
82264         * lib/inet_pton.c: Likewise.
82265         * lib/inet_pton.h: Likewise.
82266         * lib/intprops.h: Likewise.
82267         * lib/inttostr.c: Likewise.
82268         * lib/inttostr.h: Likewise.
82269         * lib/inttypes.in.h: Likewise.
82270         * lib/isapipe.c: Likewise.
82271         * lib/isdir.c: Likewise.
82272         * lib/isnan.c: Likewise.
82273         * lib/isnan.h: Likewise.
82274         * lib/isnanf.c: Likewise.
82275         * lib/isnanf.h: Likewise.
82276         * lib/isnanl-nolibm.h: Likewise.
82277         * lib/isnanl.c: Likewise.
82278         * lib/isnanl.h: Likewise.
82279         * lib/javacomp.c: Likewise.
82280         * lib/javacomp.h: Likewise.
82281         * lib/javaexec.c: Likewise.
82282         * lib/javaexec.h: Likewise.
82283         * lib/javaversion.c: Likewise.
82284         * lib/javaversion.h: Likewise.
82285         * lib/javaversion.java: Likewise.
82286         * lib/lbrkprop.h: Likewise.
82287         * lib/lchmod.h: Likewise.
82288         * lib/lchown.c: Likewise.
82289         * lib/ldexpl.c: Likewise.
82290         * lib/linebreak.c: Likewise.
82291         * lib/linebreak.h: Likewise.
82292         * lib/linebuffer.c: Likewise.
82293         * lib/linebuffer.h: Likewise.
82294         * lib/locale.in.h: Likewise.
82295         * lib/logl.c: Likewise.
82296         * lib/long-options.c: Likewise.
82297         * lib/long-options.h: Likewise.
82298         * lib/lstat.c: Likewise.
82299         * lib/lstat.h: Likewise.
82300         * lib/math.in.h: Likewise.
82301         * lib/mbchar.c: Likewise.
82302         * lib/mbchar.h: Likewise.
82303         * lib/mbfile.h: Likewise.
82304         * lib/mbiter.h: Likewise.
82305         * lib/mbscasecmp.c: Likewise.
82306         * lib/mbscasestr.c: Likewise.
82307         * lib/mbschr.c: Likewise.
82308         * lib/mbscspn.c: Likewise.
82309         * lib/mbslen.c: Likewise.
82310         * lib/mbsncasecmp.c: Likewise.
82311         * lib/mbsnlen.c: Likewise.
82312         * lib/mbspbrk.c: Likewise.
82313         * lib/mbspcasecmp.c: Likewise.
82314         * lib/mbsrchr.c: Likewise.
82315         * lib/mbssep.c: Likewise.
82316         * lib/mbsspn.c: Likewise.
82317         * lib/mbsstr.c: Likewise.
82318         * lib/mbstok_r.c: Likewise.
82319         * lib/mbswidth.c: Likewise.
82320         * lib/mbswidth.h: Likewise.
82321         * lib/mbuiter.h: Likewise.
82322         * lib/memcasecmp.c: Likewise.
82323         * lib/memcasecmp.h: Likewise.
82324         * lib/memchr.c: Likewise.
82325         * lib/memcmp.c: Likewise.
82326         * lib/memcoll.c: Likewise.
82327         * lib/memcoll.h: Likewise.
82328         * lib/memcpy.c: Likewise.
82329         * lib/memrchr.c: Likewise.
82330         * lib/mkancesdirs.c: Likewise.
82331         * lib/mkdir-p.c: Likewise.
82332         * lib/mkdir-p.h: Likewise.
82333         * lib/mkdir.c: Likewise.
82334         * lib/mkdirat.c: Likewise.
82335         * lib/mkdtemp.c: Likewise.
82336         * lib/mkstemp-safer.c: Likewise.
82337         * lib/mkstemp.c: Likewise.
82338         * lib/modechange.c: Likewise.
82339         * lib/modechange.h: Likewise.
82340         * lib/mountlist.c: Likewise.
82341         * lib/mountlist.h: Likewise.
82342         * lib/mpsort.c: Likewise.
82343         * lib/nanosleep.c: Likewise.
82344         * lib/obstack.c: Likewise.
82345         * lib/obstack.h: Likewise.
82346         * lib/open-safer.c: Likewise.
82347         * lib/open.c: Likewise.
82348         * lib/openat-die.c: Likewise.
82349         * lib/openat-priv.h: Likewise.
82350         * lib/openat-proc.c: Likewise.
82351         * lib/openat.c: Likewise.
82352         * lib/openat.h: Likewise.
82353         * lib/pagealign_alloc.c: Likewise.
82354         * lib/pagealign_alloc.h: Likewise.
82355         * lib/physmem.c: Likewise.
82356         * lib/physmem.h: Likewise.
82357         * lib/pipe-safer.c: Likewise.
82358         * lib/pipe.c: Likewise.
82359         * lib/pipe.h: Likewise.
82360         * lib/posixtm.c: Likewise.
82361         * lib/posixtm.h: Likewise.
82362         * lib/posixver.c: Likewise.
82363         * lib/printf-frexp.c: Likewise.
82364         * lib/printf-frexp.h: Likewise.
82365         * lib/printf-frexpl.c: Likewise.
82366         * lib/printf-frexpl.h: Likewise.
82367         * lib/printf.c: Likewise.
82368         * lib/progname.c: Likewise.
82369         * lib/progname.h: Likewise.
82370         * lib/progreloc.c: Likewise.
82371         * lib/putenv.c: Likewise.
82372         * lib/quote.c: Likewise.
82373         * lib/quote.h: Likewise.
82374         * lib/quotearg.c: Likewise.
82375         * lib/quotearg.h: Likewise.
82376         * lib/raise.c: Likewise.
82377         * lib/readline.c: Likewise.
82378         * lib/readline.h: Likewise.
82379         * lib/readlink.c: Likewise.
82380         * lib/readtokens.c: Likewise.
82381         * lib/readtokens.h: Likewise.
82382         * lib/readtokens0.c: Likewise.
82383         * lib/readtokens0.h: Likewise.
82384         * lib/readutmp.c: Likewise.
82385         * lib/readutmp.h: Likewise.
82386         * lib/realloc.c: Likewise.
82387         * lib/relocwrapper.c: Likewise.
82388         * lib/rename-dest-slash.c: Likewise.
82389         * lib/rename.c: Likewise.
82390         * lib/rmdir.c: Likewise.
82391         * lib/rpmatch.c: Likewise.
82392         * lib/safe-read.c: Likewise.
82393         * lib/safe-read.h: Likewise.
82394         * lib/safe-write.c: Likewise.
82395         * lib/safe-write.h: Likewise.
82396         * lib/same-inode.h: Likewise.
82397         * lib/same.c: Likewise.
82398         * lib/same.h: Likewise.
82399         * lib/save-cwd.c: Likewise.
82400         * lib/save-cwd.h: Likewise.
82401         * lib/savedir.c: Likewise.
82402         * lib/savedir.h: Likewise.
82403         * lib/savewd.c: Likewise.
82404         * lib/savewd.h: Likewise.
82405         * lib/search.in.h: Likewise.
82406         * lib/setenv.c: Likewise.
82407         * lib/setenv.h: Likewise.
82408         * lib/settime.c: Likewise.
82409         * lib/sh-quote.c: Likewise.
82410         * lib/sh-quote.h: Likewise.
82411         * lib/sig2str.c: Likewise.
82412         * lib/sig2str.h: Likewise.
82413         * lib/signal.in.h: Likewise.
82414         * lib/signbitd.c: Likewise.
82415         * lib/signbitf.c: Likewise.
82416         * lib/signbitl.c: Likewise.
82417         * lib/sigprocmask.c: Likewise.
82418         * lib/sincosl.c: Likewise.
82419         * lib/sleep.c: Likewise.
82420         * lib/sprintf.c: Likewise.
82421         * lib/sqrtl.c: Likewise.
82422         * lib/stat-time.h: Likewise.
82423         * lib/stdio--.h: Likewise.
82424         * lib/stdio-safer.h: Likewise.
82425         * lib/stdlib--.h: Likewise.
82426         * lib/stdlib-safer.h: Likewise.
82427         * lib/stdlib.in.h: Likewise.
82428         * lib/stpcpy.c: Likewise.
82429         * lib/stpncpy.c: Likewise.
82430         * lib/strchrnul.c: Likewise.
82431         * lib/strcspn.c: Likewise.
82432         * lib/strerror.c: Likewise.
82433         * lib/strftime.c: Likewise.
82434         * lib/strftime.h: Likewise.
82435         * lib/striconveh.c: Likewise.
82436         * lib/striconveh.h: Likewise.
82437         * lib/striconveha.c: Likewise.
82438         * lib/striconveha.h: Likewise.
82439         * lib/stripslash.c: Likewise.
82440         * lib/strnlen1.c: Likewise.
82441         * lib/strnlen1.h: Likewise.
82442         * lib/strtod.c: Likewise.
82443         * lib/strtoimax.c: Likewise.
82444         * lib/strtok_r.c: Likewise.
82445         * lib/strtol.c: Likewise.
82446         * lib/strtoll.c: Likewise.
82447         * lib/strtoul.c: Likewise.
82448         * lib/strtoull.c: Likewise.
82449         * lib/sysexits.in.h: Likewise.
82450         * lib/tempname.c: Likewise.
82451         * lib/tempname.h: Likewise.
82452         * lib/timespec.h: Likewise.
82453         * lib/tls.c: Likewise.
82454         * lib/tls.h: Likewise.
82455         * lib/tmpdir.c: Likewise.
82456         * lib/tmpdir.h: Likewise.
82457         * lib/tmpfile-safer.c: Likewise.
82458         * lib/tmpfile.c: Likewise.
82459         * lib/trigl.c: Likewise.
82460         * lib/trigl.h: Likewise.
82461         * lib/trim.c: Likewise.
82462         * lib/trim.h: Likewise.
82463         * lib/trunc.c: Likewise.
82464         * lib/truncf.c: Likewise.
82465         * lib/truncl.c: Likewise.
82466         * lib/tsearch.c: Likewise.
82467         * lib/unicodeio.c: Likewise.
82468         * lib/unicodeio.h: Likewise.
82469         * lib/unistd--.h: Likewise.
82470         * lib/unistd-safer.h: Likewise.
82471         * lib/unistdio/ulc-fprintf.c: Likewise.
82472         * lib/unistdio/ulc-vfprintf.c: Likewise.
82473         * lib/unlinkdir.c: Likewise.
82474         * lib/unlinkdir.h: Likewise.
82475         * lib/unlocked-io.h: Likewise.
82476         * lib/unsetenv.c: Likewise.
82477         * lib/userspec.c: Likewise.
82478         * lib/utime.c: Likewise.
82479         * lib/utimecmp.c: Likewise.
82480         * lib/utimecmp.h: Likewise.
82481         * lib/utimens.c: Likewise.
82482         * lib/verify.h: Likewise.
82483         * lib/verror.c: Likewise.
82484         * lib/verror.h: Likewise.
82485         * lib/version-etc-fsf.c: Likewise.
82486         * lib/version-etc.c: Likewise.
82487         * lib/version-etc.h: Likewise.
82488         * lib/vfprintf.c: Likewise.
82489         * lib/vprintf.c: Likewise.
82490         * lib/vsprintf.c: Likewise.
82491         * lib/w32spawn.h: Likewise.
82492         * lib/wait-process.c: Likewise.
82493         * lib/wait-process.h: Likewise.
82494         * lib/wcwidth.c: Likewise.
82495         * lib/write-any-file.c: Likewise.
82496         * lib/xalloc-die.c: Likewise.
82497         * lib/xalloc.h: Likewise.
82498         * lib/xasprintf.c: Likewise.
82499         * lib/xgetcwd.c: Likewise.
82500         * lib/xgetcwd.h: Likewise.
82501         * lib/xgetdomainname.c: Likewise.
82502         * lib/xgetdomainname.h: Likewise.
82503         * lib/xgethostname.c: Likewise.
82504         * lib/xmalloc.c: Likewise.
82505         * lib/xmalloca.c: Likewise.
82506         * lib/xmalloca.h: Likewise.
82507         * lib/xmemcoll.c: Likewise.
82508         * lib/xnanosleep.c: Likewise.
82509         * lib/xreadlink.c: Likewise.
82510         * lib/xreadlink.h: Likewise.
82511         * lib/xsetenv.c: Likewise.
82512         * lib/xsetenv.h: Likewise.
82513         * lib/xstriconv.c: Likewise.
82514         * lib/xstriconv.h: Likewise.
82515         * lib/xstrndup.c: Likewise.
82516         * lib/xstrndup.h: Likewise.
82517         * lib/xstrtod.c: Likewise.
82518         * lib/xstrtod.h: Likewise.
82519         * lib/xstrtol-error.c: Likewise.
82520         * lib/xstrtol.c: Likewise.
82521         * lib/xstrtol.h: Likewise.
82522         * lib/xtime.h: Likewise.
82523         * lib/xvasprintf.c: Likewise.
82524         * lib/xvasprintf.h: Likewise.
82525         * lib/yesno.c: Likewise.
82526         * lib/yesno.h: Likewise.
82527         * posix-modules: Likewise.
82528         * tests/test-alloca-opt.c: Likewise.
82529         * tests/test-arcfour.c: Likewise.
82530         * tests/test-arctwo.c: Likewise.
82531         * tests/test-argmatch.c: Likewise.
82532         * tests/test-argp-2.sh: Likewise.
82533         * tests/test-argp.c: Likewise.
82534         * tests/test-arpa_inet.c: Likewise.
82535         * tests/test-array_list.c: Likewise.
82536         * tests/test-array_oset.c: Likewise.
82537         * tests/test-atexit.c: Likewise.
82538         * tests/test-avltree_list.c: Likewise.
82539         * tests/test-avltree_oset.c: Likewise.
82540         * tests/test-avltreehash_list.c: Likewise.
82541         * tests/test-base64.c: Likewise.
82542         * tests/test-binary-io.c: Likewise.
82543         * tests/test-byteswap.c: Likewise.
82544         * tests/test-c-ctype.c: Likewise.
82545         * tests/test-c-strcasecmp.c: Likewise.
82546         * tests/test-c-strcasestr.c: Likewise.
82547         * tests/test-c-strncasecmp.c: Likewise.
82548         * tests/test-c-strstr.c: Likewise.
82549         * tests/test-canonicalize-lgpl.c: Likewise.
82550         * tests/test-canonicalize.c: Likewise.
82551         * tests/test-carray_list.c: Likewise.
82552         * tests/test-ceilf.c: Likewise.
82553         * tests/test-ceill.c: Likewise.
82554         * tests/test-count-one-bits.c: Likewise.
82555         * tests/test-crc.c: Likewise.
82556         * tests/test-dirname.c: Likewise.
82557         * tests/test-fbufmode.c: Likewise.
82558         * tests/test-fcntl.c: Likewise.
82559         * tests/test-fflush.c: Likewise.
82560         * tests/test-floorf.c: Likewise.
82561         * tests/test-floorl.c: Likewise.
82562         * tests/test-fopen.c: Likewise.
82563         * tests/test-fprintf-posix.c: Likewise.
82564         * tests/test-fprintf-posix.h: Likewise.
82565         * tests/test-fpurge.c: Likewise.
82566         * tests/test-freadable.c: Likewise.
82567         * tests/test-freadahead.c: Likewise.
82568         * tests/test-freading.c: Likewise.
82569         * tests/test-freopen.c: Likewise.
82570         * tests/test-frexp.c: Likewise.
82571         * tests/test-frexpl.c: Likewise.
82572         * tests/test-fseek.c: Likewise.
82573         * tests/test-fseeko.c: Likewise.
82574         * tests/test-fseterr.c: Likewise.
82575         * tests/test-fstrcmp.c: Likewise.
82576         * tests/test-ftell.c: Likewise.
82577         * tests/test-ftello.c: Likewise.
82578         * tests/test-fwritable.c: Likewise.
82579         * tests/test-fwriting.c: Likewise.
82580         * tests/test-getaddrinfo.c: Likewise.
82581         * tests/test-getpass.c: Likewise.
82582         * tests/test-gettimeofday.c: Likewise.
82583         * tests/test-hmac-md5.c: Likewise.
82584         * tests/test-hmac-sha1.c: Likewise.
82585         * tests/test-iconv.c: Likewise.
82586         * tests/test-iconvme.c: Likewise.
82587         * tests/test-inttypes.c: Likewise.
82588         * tests/test-isnan.c: Likewise.
82589         * tests/test-isnanf.c: Likewise.
82590         * tests/test-isnanl-nolibm.c: Likewise.
82591         * tests/test-isnanl.c: Likewise.
82592         * tests/test-isnanl.h: Likewise.
82593         * tests/test-ldexpl.c: Likewise.
82594         * tests/test-linked_list.c: Likewise.
82595         * tests/test-linkedhash_list.c: Likewise.
82596         * tests/test-locale.c: Likewise.
82597         * tests/test-localename.c: Likewise.
82598         * tests/test-lock.c: Likewise.
82599         * tests/test-lseek.c: Likewise.
82600         * tests/test-malloca.c: Likewise.
82601         * tests/test-math.c: Likewise.
82602         * tests/test-mbscasecmp.c: Likewise.
82603         * tests/test-mbscasestr1.c: Likewise.
82604         * tests/test-mbscasestr2.c: Likewise.
82605         * tests/test-mbscasestr3.c: Likewise.
82606         * tests/test-mbscasestr4.c: Likewise.
82607         * tests/test-mbschr.c: Likewise.
82608         * tests/test-mbscspn.c: Likewise.
82609         * tests/test-mbsncasecmp.c: Likewise.
82610         * tests/test-mbspbrk.c: Likewise.
82611         * tests/test-mbspcasecmp.c: Likewise.
82612         * tests/test-mbsrchr.c: Likewise.
82613         * tests/test-mbsspn.c: Likewise.
82614         * tests/test-mbsstr1.c: Likewise.
82615         * tests/test-mbsstr2.c: Likewise.
82616         * tests/test-mbsstr3.c: Likewise.
82617         * tests/test-md5.c: Likewise.
82618         * tests/test-memmem.c: Likewise.
82619         * tests/test-netinet_in.c: Likewise.
82620         * tests/test-open.c: Likewise.
82621         * tests/test-printf-frexp.c: Likewise.
82622         * tests/test-printf-frexpl.c: Likewise.
82623         * tests/test-printf-posix.c: Likewise.
82624         * tests/test-printf-posix.h: Likewise.
82625         * tests/test-rbtree_list.c: Likewise.
82626         * tests/test-rbtree_oset.c: Likewise.
82627         * tests/test-rbtreehash_list.c: Likewise.
82628         * tests/test-read-file.c: Likewise.
82629         * tests/test-rijndael.c: Likewise.
82630         * tests/test-search.c: Likewise.
82631         * tests/test-signbit.c: Likewise.
82632         * tests/test-sleep.c: Likewise.
82633         * tests/test-snprintf-posix.c: Likewise.
82634         * tests/test-snprintf-posix.h: Likewise.
82635         * tests/test-snprintf.c: Likewise.
82636         * tests/test-sprintf-posix.c: Likewise.
82637         * tests/test-sprintf-posix.h: Likewise.
82638         * tests/test-stat-time.c: Likewise.
82639         * tests/test-stdbool.c: Likewise.
82640         * tests/test-stdint.c: Likewise.
82641         * tests/test-stdio.c: Likewise.
82642         * tests/test-stdlib.c: Likewise.
82643         * tests/test-stpncpy.c: Likewise.
82644         * tests/test-strcasestr.c: Likewise.
82645         * tests/test-striconv.c: Likewise.
82646         * tests/test-striconveh.c: Likewise.
82647         * tests/test-striconveha.c: Likewise.
82648         * tests/test-string.c: Likewise.
82649         * tests/test-sys_select.c: Likewise.
82650         * tests/test-sys_socket.c: Likewise.
82651         * tests/test-sys_stat.c: Likewise.
82652         * tests/test-sys_time.c: Likewise.
82653         * tests/test-sysexits.c: Likewise.
82654         * tests/test-time.c: Likewise.
82655         * tests/test-tls.c: Likewise.
82656         * tests/test-trunc.c: Likewise.
82657         * tests/test-truncf.c: Likewise.
82658         * tests/test-truncl.c: Likewise.
82659         * tests/test-unistd.c: Likewise.
82660         * tests/test-vasnprintf-posix.c: Likewise.
82661         * tests/test-vasnprintf-posix2.c: Likewise.
82662         * tests/test-vasnprintf.c: Likewise.
82663         * tests/test-vasprintf-posix.c: Likewise.
82664         * tests/test-vasprintf.c: Likewise.
82665         * tests/test-verify.c: Likewise.
82666         * tests/test-vfprintf-posix.c: Likewise.
82667         * tests/test-vprintf-posix.c: Likewise.
82668         * tests/test-vsnprintf-posix.c: Likewise.
82669         * tests/test-vsnprintf.c: Likewise.
82670         * tests/test-vsprintf-posix.c: Likewise.
82671         * tests/test-wchar.c: Likewise.
82672         * tests/test-wctype.c: Likewise.
82673         * tests/test-wcwidth.c: Likewise.
82674         * tests/test-xstrtol.c: Likewise.
82675         * tests/test-xvasprintf.c: Likewise.
82676         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
82677         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
82678         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
82679         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
82680         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
82681         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
82682         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
82683         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
82684         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
82685         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
82686         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
82687         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
82688         * tests/uniname/test-uninames.c: Likewise.
82689         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
82690         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
82691         * tests/unistdio/test-u16-printf1.h: Likewise.
82692         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
82693         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
82694         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
82695         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
82696         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
82697         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
82698         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
82699         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
82700         * tests/unistdio/test-u32-printf1.h: Likewise.
82701         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
82702         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
82703         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
82704         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
82705         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
82706         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
82707         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
82708         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
82709         * tests/unistdio/test-u8-printf1.h: Likewise.
82710         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
82711         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
82712         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
82713         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
82714         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
82715         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
82716         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
82717         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
82718         * tests/unistdio/test-ulc-printf1.h: Likewise.
82719         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
82720         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
82721         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
82722         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
82723         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
82724         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
82725         * tests/uniwidth/test-u16-strwidth.c: Likewise.
82726         * tests/uniwidth/test-u16-width.c: Likewise.
82727         * tests/uniwidth/test-u32-strwidth.c: Likewise.
82728         * tests/uniwidth/test-u32-width.c: Likewise.
82729         * tests/uniwidth/test-u8-strwidth.c: Likewise.
82730         * tests/uniwidth/test-u8-width.c: Likewise.
82731         * tests/uniwidth/test-uc_width.c: Likewise.
82732         * config/srclist-update: Likewise.
82733         (fixlicense): Update to GPLv3+.
82735         Change copyright notice from LGPLv2.1+ to LGPLv3+.
82736         * tests/test-tsearch.c: Change copyright notice.
82738         Change copyright notice from LGPLv2.0+ to LGPLv3+.
82739         * lib/c-strcaseeq.h: Change copyright notice.
82740         * lib/streq.h: Likewise.
82741         * lib/uniconv.h: Likewise.
82742         * lib/uniconv/u-conv-from-enc.h: Likewise.
82743         * lib/uniconv/u-conv-to-enc.h: Likewise.
82744         * lib/uniconv/u-strconv-from-enc.h: Likewise.
82745         * lib/uniconv/u-strconv-to-enc.h: Likewise.
82746         * lib/uniconv/u16-conv-from-enc.c: Likewise.
82747         * lib/uniconv/u16-conv-to-enc.c: Likewise.
82748         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
82749         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
82750         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
82751         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
82752         * lib/uniconv/u32-conv-from-enc.c: Likewise.
82753         * lib/uniconv/u32-conv-to-enc.c: Likewise.
82754         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
82755         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
82756         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
82757         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
82758         * lib/uniconv/u8-conv-from-enc.c: Likewise.
82759         * lib/uniconv/u8-conv-to-enc.c: Likewise.
82760         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
82761         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
82762         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
82763         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
82764         * lib/uniname.h: Likewise.
82765         * lib/uniname/uniname.c: Likewise.
82766         * lib/unistdio.h: Likewise.
82767         * lib/unistdio/u-asnprintf.h: Likewise.
82768         * lib/unistdio/u-asprintf.h: Likewise.
82769         * lib/unistdio/u-printf-args.c: Likewise.
82770         * lib/unistdio/u-printf-args.h: Likewise.
82771         * lib/unistdio/u-printf-parse.h: Likewise.
82772         * lib/unistdio/u-snprintf.h: Likewise.
82773         * lib/unistdio/u-sprintf.h: Likewise.
82774         * lib/unistdio/u-vasprintf.h: Likewise.
82775         * lib/unistdio/u-vsnprintf.h: Likewise.
82776         * lib/unistdio/u-vsprintf.h: Likewise.
82777         * lib/unistdio/u16-asnprintf.c: Likewise.
82778         * lib/unistdio/u16-asprintf.c: Likewise.
82779         * lib/unistdio/u16-printf-parse.c: Likewise.
82780         * lib/unistdio/u16-snprintf.c: Likewise.
82781         * lib/unistdio/u16-sprintf.c: Likewise.
82782         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
82783         * lib/unistdio/u16-u16-asprintf.c: Likewise.
82784         * lib/unistdio/u16-u16-snprintf.c: Likewise.
82785         * lib/unistdio/u16-u16-sprintf.c: Likewise.
82786         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
82787         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
82788         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
82789         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
82790         * lib/unistdio/u16-vasnprintf.c: Likewise.
82791         * lib/unistdio/u16-vasprintf.c: Likewise.
82792         * lib/unistdio/u16-vsnprintf.c: Likewise.
82793         * lib/unistdio/u16-vsprintf.c: Likewise.
82794         * lib/unistdio/u32-asnprintf.c: Likewise.
82795         * lib/unistdio/u32-asprintf.c: Likewise.
82796         * lib/unistdio/u32-printf-parse.c: Likewise.
82797         * lib/unistdio/u32-snprintf.c: Likewise.
82798         * lib/unistdio/u32-sprintf.c: Likewise.
82799         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
82800         * lib/unistdio/u32-u32-asprintf.c: Likewise.
82801         * lib/unistdio/u32-u32-snprintf.c: Likewise.
82802         * lib/unistdio/u32-u32-sprintf.c: Likewise.
82803         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
82804         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
82805         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
82806         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
82807         * lib/unistdio/u32-vasnprintf.c: Likewise.
82808         * lib/unistdio/u32-vasprintf.c: Likewise.
82809         * lib/unistdio/u32-vsnprintf.c: Likewise.
82810         * lib/unistdio/u32-vsprintf.c: Likewise.
82811         * lib/unistdio/u8-asnprintf.c: Likewise.
82812         * lib/unistdio/u8-asprintf.c: Likewise.
82813         * lib/unistdio/u8-printf-parse.c: Likewise.
82814         * lib/unistdio/u8-snprintf.c: Likewise.
82815         * lib/unistdio/u8-sprintf.c: Likewise.
82816         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
82817         * lib/unistdio/u8-u8-asprintf.c: Likewise.
82818         * lib/unistdio/u8-u8-snprintf.c: Likewise.
82819         * lib/unistdio/u8-u8-sprintf.c: Likewise.
82820         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
82821         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
82822         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
82823         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
82824         * lib/unistdio/u8-vasnprintf.c: Likewise.
82825         * lib/unistdio/u8-vasprintf.c: Likewise.
82826         * lib/unistdio/u8-vsnprintf.c: Likewise.
82827         * lib/unistdio/u8-vsprintf.c: Likewise.
82828         * lib/unistdio/ulc-asnprintf.c: Likewise.
82829         * lib/unistdio/ulc-asprintf.c: Likewise.
82830         * lib/unistdio/ulc-printf-parse.c: Likewise.
82831         * lib/unistdio/ulc-snprintf.c: Likewise.
82832         * lib/unistdio/ulc-sprintf.c: Likewise.
82833         * lib/unistdio/ulc-vasnprintf.c: Likewise.
82834         * lib/unistdio/ulc-vasprintf.c: Likewise.
82835         * lib/unistdio/ulc-vsnprintf.c: Likewise.
82836         * lib/unistdio/ulc-vsprintf.c: Likewise.
82837         * lib/unistr.h: Likewise.
82838         * lib/unistr/u-cpy-alloc.h: Likewise.
82839         * lib/unistr/u-cpy.h: Likewise.
82840         * lib/unistr/u-endswith.h: Likewise.
82841         * lib/unistr/u-move.h: Likewise.
82842         * lib/unistr/u-set.h: Likewise.
82843         * lib/unistr/u-startswith.h: Likewise.
82844         * lib/unistr/u-stpcpy.h: Likewise.
82845         * lib/unistr/u-stpncpy.h: Likewise.
82846         * lib/unistr/u-strcat.h: Likewise.
82847         * lib/unistr/u-strcpy.h: Likewise.
82848         * lib/unistr/u-strcspn.h: Likewise.
82849         * lib/unistr/u-strdup.h: Likewise.
82850         * lib/unistr/u-strlen.h: Likewise.
82851         * lib/unistr/u-strncat.h: Likewise.
82852         * lib/unistr/u-strncpy.h: Likewise.
82853         * lib/unistr/u-strnlen.h: Likewise.
82854         * lib/unistr/u-strpbrk.h: Likewise.
82855         * lib/unistr/u-strspn.h: Likewise.
82856         * lib/unistr/u-strstr.h: Likewise.
82857         * lib/unistr/u-strtok.h: Likewise.
82858         * lib/unistr/u16-check.c: Likewise.
82859         * lib/unistr/u16-chr.c: Likewise.
82860         * lib/unistr/u16-cmp.c: Likewise.
82861         * lib/unistr/u16-cpy-alloc.c: Likewise.
82862         * lib/unistr/u16-cpy.c: Likewise.
82863         * lib/unistr/u16-endswith.c: Likewise.
82864         * lib/unistr/u16-mblen.c: Likewise.
82865         * lib/unistr/u16-mbsnlen.c: Likewise.
82866         * lib/unistr/u16-mbtouc-aux.c: Likewise.
82867         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
82868         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
82869         * lib/unistr/u16-mbtouc.c: Likewise.
82870         * lib/unistr/u16-mbtoucr.c: Likewise.
82871         * lib/unistr/u16-move.c: Likewise.
82872         * lib/unistr/u16-next.c: Likewise.
82873         * lib/unistr/u16-prev.c: Likewise.
82874         * lib/unistr/u16-set.c: Likewise.
82875         * lib/unistr/u16-startswith.c: Likewise.
82876         * lib/unistr/u16-stpcpy.c: Likewise.
82877         * lib/unistr/u16-stpncpy.c: Likewise.
82878         * lib/unistr/u16-strcat.c: Likewise.
82879         * lib/unistr/u16-strchr.c: Likewise.
82880         * lib/unistr/u16-strcmp.c: Likewise.
82881         * lib/unistr/u16-strcpy.c: Likewise.
82882         * lib/unistr/u16-strcspn.c: Likewise.
82883         * lib/unistr/u16-strdup.c: Likewise.
82884         * lib/unistr/u16-strlen.c: Likewise.
82885         * lib/unistr/u16-strmblen.c: Likewise.
82886         * lib/unistr/u16-strmbtouc.c: Likewise.
82887         * lib/unistr/u16-strncat.c: Likewise.
82888         * lib/unistr/u16-strncmp.c: Likewise.
82889         * lib/unistr/u16-strncpy.c: Likewise.
82890         * lib/unistr/u16-strnlen.c: Likewise.
82891         * lib/unistr/u16-strpbrk.c: Likewise.
82892         * lib/unistr/u16-strrchr.c: Likewise.
82893         * lib/unistr/u16-strspn.c: Likewise.
82894         * lib/unistr/u16-strstr.c: Likewise.
82895         * lib/unistr/u16-strtok.c: Likewise.
82896         * lib/unistr/u16-to-u32.c: Likewise.
82897         * lib/unistr/u16-to-u8.c: Likewise.
82898         * lib/unistr/u16-uctomb-aux.c: Likewise.
82899         * lib/unistr/u16-uctomb.c: Likewise.
82900         * lib/unistr/u32-check.c: Likewise.
82901         * lib/unistr/u32-chr.c: Likewise.
82902         * lib/unistr/u32-cmp.c: Likewise.
82903         * lib/unistr/u32-cpy-alloc.c: Likewise.
82904         * lib/unistr/u32-cpy.c: Likewise.
82905         * lib/unistr/u32-endswith.c: Likewise.
82906         * lib/unistr/u32-mblen.c: Likewise.
82907         * lib/unistr/u32-mbsnlen.c: Likewise.
82908         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
82909         * lib/unistr/u32-mbtouc.c: Likewise.
82910         * lib/unistr/u32-mbtoucr.c: Likewise.
82911         * lib/unistr/u32-move.c: Likewise.
82912         * lib/unistr/u32-next.c: Likewise.
82913         * lib/unistr/u32-prev.c: Likewise.
82914         * lib/unistr/u32-set.c: Likewise.
82915         * lib/unistr/u32-startswith.c: Likewise.
82916         * lib/unistr/u32-stpcpy.c: Likewise.
82917         * lib/unistr/u32-stpncpy.c: Likewise.
82918         * lib/unistr/u32-strcat.c: Likewise.
82919         * lib/unistr/u32-strchr.c: Likewise.
82920         * lib/unistr/u32-strcmp.c: Likewise.
82921         * lib/unistr/u32-strcpy.c: Likewise.
82922         * lib/unistr/u32-strcspn.c: Likewise.
82923         * lib/unistr/u32-strdup.c: Likewise.
82924         * lib/unistr/u32-strlen.c: Likewise.
82925         * lib/unistr/u32-strmblen.c: Likewise.
82926         * lib/unistr/u32-strmbtouc.c: Likewise.
82927         * lib/unistr/u32-strncat.c: Likewise.
82928         * lib/unistr/u32-strncmp.c: Likewise.
82929         * lib/unistr/u32-strncpy.c: Likewise.
82930         * lib/unistr/u32-strnlen.c: Likewise.
82931         * lib/unistr/u32-strpbrk.c: Likewise.
82932         * lib/unistr/u32-strrchr.c: Likewise.
82933         * lib/unistr/u32-strspn.c: Likewise.
82934         * lib/unistr/u32-strstr.c: Likewise.
82935         * lib/unistr/u32-strtok.c: Likewise.
82936         * lib/unistr/u32-to-u16.c: Likewise.
82937         * lib/unistr/u32-to-u8.c: Likewise.
82938         * lib/unistr/u32-uctomb.c: Likewise.
82939         * lib/unistr/u8-check.c: Likewise.
82940         * lib/unistr/u8-chr.c: Likewise.
82941         * lib/unistr/u8-cmp.c: Likewise.
82942         * lib/unistr/u8-cpy-alloc.c: Likewise.
82943         * lib/unistr/u8-cpy.c: Likewise.
82944         * lib/unistr/u8-endswith.c: Likewise.
82945         * lib/unistr/u8-mblen.c: Likewise.
82946         * lib/unistr/u8-mbsnlen.c: Likewise.
82947         * lib/unistr/u8-mbtouc-aux.c: Likewise.
82948         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
82949         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
82950         * lib/unistr/u8-mbtouc.c: Likewise.
82951         * lib/unistr/u8-mbtoucr.c: Likewise.
82952         * lib/unistr/u8-move.c: Likewise.
82953         * lib/unistr/u8-next.c: Likewise.
82954         * lib/unistr/u8-prev.c: Likewise.
82955         * lib/unistr/u8-set.c: Likewise.
82956         * lib/unistr/u8-startswith.c: Likewise.
82957         * lib/unistr/u8-stpcpy.c: Likewise.
82958         * lib/unistr/u8-stpncpy.c: Likewise.
82959         * lib/unistr/u8-strcat.c: Likewise.
82960         * lib/unistr/u8-strchr.c: Likewise.
82961         * lib/unistr/u8-strcmp.c: Likewise.
82962         * lib/unistr/u8-strcpy.c: Likewise.
82963         * lib/unistr/u8-strcspn.c: Likewise.
82964         * lib/unistr/u8-strdup.c: Likewise.
82965         * lib/unistr/u8-strlen.c: Likewise.
82966         * lib/unistr/u8-strmblen.c: Likewise.
82967         * lib/unistr/u8-strmbtouc.c: Likewise.
82968         * lib/unistr/u8-strncat.c: Likewise.
82969         * lib/unistr/u8-strncmp.c: Likewise.
82970         * lib/unistr/u8-strncpy.c: Likewise.
82971         * lib/unistr/u8-strnlen.c: Likewise.
82972         * lib/unistr/u8-strpbrk.c: Likewise.
82973         * lib/unistr/u8-strrchr.c: Likewise.
82974         * lib/unistr/u8-strspn.c: Likewise.
82975         * lib/unistr/u8-strstr.c: Likewise.
82976         * lib/unistr/u8-strtok.c: Likewise.
82977         * lib/unistr/u8-to-u16.c: Likewise.
82978         * lib/unistr/u8-to-u32.c: Likewise.
82979         * lib/unistr/u8-uctomb-aux.c: Likewise.
82980         * lib/unistr/u8-uctomb.c: Likewise.
82981         * lib/unitypes.h: Likewise.
82982         * lib/uniwidth.h: Likewise.
82983         * lib/uniwidth/cjk.h: Likewise.
82984         * lib/uniwidth/u16-strwidth.c: Likewise.
82985         * lib/uniwidth/u16-width.c: Likewise.
82986         * lib/uniwidth/u32-strwidth.c: Likewise.
82987         * lib/uniwidth/u32-width.c: Likewise.
82988         * lib/uniwidth/u8-strwidth.c: Likewise.
82989         * lib/uniwidth/u8-width.c: Likewise.
82990         * lib/uniwidth/width.c: Likewise.
82992 2007-10-07  Bruno Haible  <bruno@clisp.org>
82994         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
82995         The file is still under LGPL (see modules/inttypes).
82997 2007-10-06  Bruno Haible  <bruno@clisp.org>
82999         * modules/trunc (Dependencies): Add 'extensions'.
83000         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
83001         Reported by Ben Pfaff <blp@gnu.org>.
83003 2007-10-06  Bruno Haible  <bruno@clisp.org>
83005         * modules/freopen-tests: New file.
83006         * tests/test-freopen.c: New file.
83008         * modules/fopen-tests: New file.
83009         * tests/test-fopen.c: New file.
83011         * modules/fopen: New file.
83012         * lib/fopen.c: New file.
83013         * m4/fopen.m4: New file.
83014         * modules/freopen: New file.
83015         * lib/freopen.c: New file.
83016         * m4/freopen.m4: New file.
83017         * lib/stdio.in.h (fopen, freopen): New declarations.
83018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
83019         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
83020         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
83021         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
83022         * doc/functions/fopen.texi: Mention the 'fopen' module.
83023         * doc/functions/freopen.texi: Mention the 'freopen' module.
83025 2007-10-06  Bruno Haible  <bruno@clisp.org>
83027         * modules/open-tests: New file.
83028         * tests/test-open.c: New file.
83030         * modules/open: New file.
83031         * lib/open.c: New file.
83032         * m4/open.m4: New file.
83033         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
83034         lib/open.c does.
83035         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
83036         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
83037         macros.
83038         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
83039         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
83040         REPLACE_OPEN.
83041         * doc/functions/open.texi: Mention the 'open' module.
83043 2007-10-04  Bruno Haible  <bruno@clisp.org>
83045         * modules/ceill-tests: New file.
83046         * tests/test-ceill.c: New file.
83048         * modules/ceill: New file.
83049         * lib/ceill.c: Replace entire file.
83050         * m4/ceill.m4: New file.
83051         * lib/math.in.h (ceill): Replace declaration.
83052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
83053         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
83054         * doc/functions/ceill.texi: Mention the 'ceill' module.
83055         * modules/mathl (Files): Remove lib/ceill.c.
83056         (Depends-on): Add ceill.
83058 2007-10-04  Bruno Haible  <bruno@clisp.org>
83060         * modules/ceilf-tests: New file.
83061         * tests/test-ceilf.c: New file.
83063         * modules/ceilf: New file.
83064         * lib/ceil.c: New file.
83065         * lib/ceilf.c: New file.
83066         * m4/ceilf.m4: New file.
83067         * lib/math.in.h (ceilf): New declaration.
83068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
83069         HAVE_DECL_CEILF.
83070         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
83071         HAVE_DECL_CEILF.
83072         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
83074 2007-10-04  Bruno Haible  <bruno@clisp.org>
83076         * modules/floorl-tests: New file.
83077         * tests/test-floorl.c: New file.
83079         * modules/floorl: New file.
83080         * lib/floorl.c: Replace entire file.
83081         * m4/floorl.m4: New file.
83082         * lib/math.in.h (floorl): Replace declaration.
83083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
83084         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
83085         * doc/functions/floorl.texi: Mention the 'floorl' module.
83086         * modules/mathl (Files): Remove lib/floorl.c.
83087         (Depends-on): Add floorl.
83089 2007-10-04  Bruno Haible  <bruno@clisp.org>
83091         * modules/floorf-tests: New file.
83092         * tests/test-floorf.c: New file.
83094         * modules/floorf: New file.
83095         * lib/floor.c: New file.
83096         * lib/floorf.c: New file.
83097         * m4/floorf.m4: New file.
83098         * lib/math.in.h (floorf): New declaration.
83099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
83100         HAVE_DECL_FLOORF.
83101         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
83102         HAVE_DECL_FLOORF.
83103         * doc/functions/floorf.texi: Mention the 'floorf' module.
83105 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
83106             Bruno Haible  <bruno@clisp.org>
83108         Advertise for the Git server instead of the CVS server.
83109         * doc/gnulib-intro.texi (Steady Development): Mention the Git
83110         repository instead of the CVS one.
83111         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
83112         about all VCS systems generically.
83113         * doc/gnulib.texi (Introduction): Capitalize `Git'.
83115 2007-10-04  Bruno Haible  <bruno@clisp.org>
83117         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
83118         means.
83119         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
83121 2007-10-04  Bruno Haible  <bruno@clisp.org>
83123         * modules/truncl-tests: New file.
83124         * tests/test-truncl.c: New file.
83126         * modules/truncl: New file.
83127         * lib/truncl.c: New file.
83128         * m4/truncl.m4: New file.
83129         * lib/math.in.h (truncl): New declaration.
83130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
83131         HAVE_DECL_TRUNCL.
83132         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
83133         HAVE_DECL_TRUNCL.
83134         * doc/functions/truncl.texi: Mention the 'truncl' module.
83136 2007-10-04  Bruno Haible  <bruno@clisp.org>
83138         * modules/truncf-tests: New file.
83139         * tests/test-truncf.c: New file.
83141         * modules/truncf: New file.
83142         * lib/trunc.c: Make paramerizable through USE_* macros.
83143         * lib/truncf.c: New file.
83144         * m4/truncf.m4: New file.
83145         * lib/math.in.h (truncf): New declaration.
83146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
83147         HAVE_DECL_TRUNCF.
83148         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
83149         HAVE_DECL_TRUNCF.
83150         * doc/functions/truncf.texi: Mention the 'truncf' module.
83152 2007-10-03  Bruno Haible  <bruno@clisp.org>
83154         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
83155         augmentation also for tests modules.
83156         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
83157         * modules/atexit-tests (Makefile.am): Likewise.
83158         * modules/binary-io-tests (Makefile.am): Likewise.
83159         * modules/c-strcase-tests (Makefile.am): Likewise.
83160         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
83161         * modules/canonicalize-tests (Makefile.am): Likewise.
83162         * modules/closein-tests (Makefile.am): Likewise.
83163         * modules/fprintf-posix-tests (Makefile.am): Likewise.
83164         * modules/freadahead-tests (Makefile.am): Likewise.
83165         * modules/fseek-tests (Makefile.am): Likewise.
83166         * modules/fseeko-tests (Makefile.am): Likewise.
83167         * modules/ftell-tests (Makefile.am): Likewise.
83168         * modules/ftello-tests (Makefile.am): Likewise.
83169         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
83170         * modules/isnanl-tests (Makefile.am): Likewise.
83171         * modules/lseek-tests (Makefile.am): Likewise.
83172         * modules/mbscasecmp-tests (Makefile.am): Likewise.
83173         * modules/mbscasestr-tests (Makefile.am): Likewise.
83174         * modules/mbschr-tests (Makefile.am): Likewise.
83175         * modules/mbscspn-tests (Makefile.am): Likewise.
83176         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
83177         * modules/mbspbrk-tests (Makefile.am): Likewise.
83178         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
83179         * modules/mbsrchr-tests (Makefile.am): Likewise.
83180         * modules/mbsspn-tests (Makefile.am): Likewise.
83181         * modules/mbsstr-tests (Makefile.am): Likewise.
83182         * modules/printf-posix-tests (Makefile.am): Likewise.
83183         * modules/snprintf-posix-tests (Makefile.am): Likewise.
83184         * modules/sprintf-posix-tests (Makefile.am): Likewise.
83185         * modules/tsearch-tests (Makefile.am): Likewise.
83186         * modules/uniname/uniname-tests (Makefile.am): Likewise.
83187         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
83188         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
83189         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
83190         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
83191         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
83192         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
83193         * modules/vprintf-posix-tests (Makefile.am): Likewise.
83194         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
83195         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
83196         * modules/xstrtoimax-tests (Makefile.am): Likewise.
83197         * modules/xstrtol-tests (Makefile.am): Likewise.
83198         * modules/xstrtoumax-tests (Makefile.am): Likewise.
83199         * modules/yesno-tests (Makefile.am): Likewise.
83201 2007-10-03  Bruno Haible  <bruno@clisp.org>
83203         * modules/trunc-tests: New file.
83204         * tests/test-trunc.c: New file.
83206         * modules/trunc: New file.
83207         * lib/trunc.c: New file.
83208         * m4/trunc.m4: New file.
83209         * lib/math.in.h (trunc): New declaration.
83210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
83211         HAVE_DECL_TRUNC.
83212         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
83213         HAVE_DECL_TRUNC.
83214         * doc/functions/trunc.texi: Mention the 'trunc' module.
83216 2007-10-03  Bruno Haible  <bruno@clisp.org>
83218         * tests/test-fpending.c: New file, mostly copied
83219         from coreutils/lib/t-fpending.c.
83220         * modules/fpending-tests: New file.
83222 2007-10-03  Bruno Haible  <bruno@clisp.org>
83224         Port the stdio extensions to QNX (untested).
83225         * lib/fseterr.c (fseterr): Add support for QNX.
83226         * lib/fbufmode.c (fbufmode): Likewise.
83227         * lib/freadable.c (freadable): Likewise.
83228         * lib/fwritable.c (fwritable): Likewise.
83229         * lib/freading.c (freading): Likewise.
83230         * lib/fwriting.c (fwriting): Likewise.
83231         * lib/freadahead.c (freadahed): Likewise.
83232         * lib/fpurge.c (fpurge): Likewise.
83233         * lib/fseeko.c (rpl_fseeko): Likewise.
83235 2007-10-03  Bruno Haible  <bruno@clisp.org>
83236             Jim Meyering  <jim@meyering.net>
83237             Eric Blake  <ebb9@byu.net>
83239         * doc/relocatable.texi: Use @command instead of @program.
83241 2007-10-02  Jim Meyering  <jim@meyering.net>
83243         Perform one more "_.h" -> ".in.h" substitution.
83244         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
83245         instead of unistd_.h here, too.
83247 2007-10-01  Bruno Haible  <bruno@clisp.org>
83249         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
83250         Needed for the alloca-opt module.
83252 2007-09-30  Bruno Haible  <bruno@clisp.org>
83254         * lib/alloca.in.h: Renamed from lib/alloca_.h.
83255         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
83256         alloca_.h.
83257         * lib/argz.in.h: Renamed from lib/argz_.h.
83258         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
83259         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
83260         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
83261         byteswap_.h.
83262         * lib/dirent.in.h: Renamed from lib/dirent_.h.
83263         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
83264         dirent_.h.
83265         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
83266         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
83267         fcntl_.h.
83268         * lib/float.in.h: Renamed from lib/float_.h.
83269         * modules/float (Files, Makefile.am): Use float.in.h instead of
83270         float_.h.
83271         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
83272         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
83273         fnmatch_.h.
83274         * lib/getopt.in.h: Renamed from lib/getopt_.h.
83275         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
83276         getopt_.h.
83277         * lib/glob.in.h: Renamed from lib/glob_.h.
83278         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
83279         * lib/iconv.in.h: Renamed from lib/iconv_.h.
83280         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
83281         iconv_.h.
83282         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
83283         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
83284         inttypes_.h.
83285         * lib/locale.in.h: Renamed from lib/locale_.h.
83286         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
83287         locale_.h.
83288         * lib/math.in.h: Renamed from lib/math_.h.
83289         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
83290         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
83291         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
83292         of netinet_in_.h. Add dependency.
83293         * lib/poll.in.h: Renamed from lib/poll_.h.
83294         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
83295         * lib/search.in.h: Renamed from lib/search_.h.
83296         * modules/search (Files, Makefile.am): Use search.in.h instead of
83297         search_.h.
83298         * lib/signal.in.h: Renamed from lib/signal_.h.
83299         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
83300         _signal.h.
83301         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
83302         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
83303         stdbool_.h.
83304         * lib/stdint.in.h: Renamed from lib/stdint_.h.
83305         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
83306         stdint_.h.
83307         * lib/stdio.in.h: Renamed from lib/stdio_.h.
83308         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
83309         stdio_.h.
83310         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
83311         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
83312         stdlib_.h.
83313         * lib/string.in.h: Renamed from lib/string_.h.
83314         * modules/string (Files, Makefile.am): Use string.in.h instead of
83315         string_.h.
83316         * doc/gnulib-tool.texi (Initial import): Update.
83317         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
83318         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
83319         of sys_select_.h. Add dependency.
83320         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
83321         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
83322         of sys_socket_.h.
83323         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
83324         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
83325         sys_stat_.h.
83326         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
83327         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
83328         sys_time_.h.
83329         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
83330         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
83331         sysexits_.h.
83332         * lib/time.in.h: Renamed from lib/time_.h.
83333         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
83334         * lib/unistd.in.h: Renamed from lib/unistd_.h.
83335         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
83336         unistd_.h.
83337         * lib/wchar.in.h: Renamed from lib/wchar_.h.
83338         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
83339         wchar_.h.
83340         * lib/wctype.in.h: Renamed from lib/wctype_.h.
83341         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
83342         wctype_.h.
83343         * build-aux/bootstrap (slurp): Update.
83344         * lib/.cppi-disable: Update.
83346 2007-09-30  Bruno Haible  <bruno@clisp.org>
83348         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
83349         Needed on BeOS.
83351 2007-09-30  Bruno Haible  <bruno@clisp.org>
83353         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
83355 2007-09-29  Bruno Haible  <bruno@clisp.org>
83357         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
83359 2007-09-29  Bruno Haible  <bruno@clisp.org>
83361         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
83362         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
83363         * build-aux/install-reloc: Compile also areadlink.c.
83364         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
83366 2007-09-29  Bruno Haible  <bruno@clisp.org>
83368         * gnulib-tool (func_emit_initmacro_done): Indentation.
83370 2007-09-29  Bruno Haible  <bruno@clisp.org>
83372         * README: Add CVS checkout update instructions.
83373         Info from Bob Proulx <bob@proulx.com>.
83375 2007-09-28  Eric Blake  <ebb9@byu.net>
83377         Provide move-if-change.
83378         * build-aux/move-if-change: New file, based on best practice
83379         rather than any canonical upstream location.
83381 2007-09-28  Jim Meyering  <jim@meyering.net>
83383         Fix canonicalize loop-detection corner case.
83384         Do not attempt to stat the symlink values stored via seen_triple.
83385         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
83386         on linux-2.6.18, (but not 2.6.22).
83387         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
83388         triple_compare.  The former compares dev,ino,filename, while the latter
83389         would actually stat dirname(filename) when dev and ino were equal.
83390         * lib/hash-triple.c: Install <string.h>.
83391         (STREQ): Define.
83392         (triple_compare_ino_str): New function.
83393         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
83395 2007-09-28  Eric Blake  <ebb9@byu.net>
83397         Enforce that AC_REPLACE_FUNCS files exist.
83398         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
83399         override check for typos.
83401         Fix test-closein on Solaris 10.
83402         * tests/test-closein.c (main): Don't assume stdin can be inherited
83403         closed on all systems.
83404         * tests/test-closein.sh: Likewise.
83405         Reported by Piotr Tarnowski.
83407 2007-09-28  Jim Meyering  <jim@meyering.net>
83409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
83411 2007-09-27  Jim Meyering  <jim@meyering.net>
83413         canonicalize: Avoid a false-positive cycle failure.
83414         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
83415         Sort.  Remove cycle-check.
83416         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
83417         not cycle-check.h.
83418         (seen_triple): New function.
83419         (canonicalize_filename_mode): Use it instead of cycle-check.
83420         * tests/test-canonicalize.c: Add a test for this bug.
83421         * tests/test-canonicalize.sh: Set up and run the test.
83423         New module, file-set, from coreutils.
83424         * modules/file-set: Define it.
83425         * lib/file-set.c, lib/file-set.h: Implement.
83427         New module, hash-triple, from coreutils.
83428         * modules/hash-triple: Define it.
83429         * lib/hash-triple.c, lib/hash-triple.h: Implement.
83431 2007-09-25  Eric Blake  <ebb9@byu.net>
83433         Fix strerror on Interix.
83434         * lib/string_.h (strerror): Declare replacement.
83435         * doc/functions/strerror.texi (strerror): Document the Interix
83436         shortcoming.
83437         * modules/string (Makefile.am): Support new hooks.
83438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
83439         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
83440         gl_FUNC_STRERROR_SEPARATE.
83441         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
83442         * lib/strerror.c (rpl_strerror): Provide replacement.
83443         * modules/strerror (Depends-on): Add string.
83444         (configure.ac): Detect use of module.
83445         * tests/test-strerror.c: New file.
83446         * modules/strerror-tests: New test module.
83447         * modules/argp (Depends-on): Add strerror.
83448         * modules/error (Depends-on): Likewise.
83449         Reported by Martin Koeppe.
83451 2007-09-24  Bruno Haible  <bruno@clisp.org>
83453         * README: Update git instructions.
83455 2007-09-24  Eric Blake  <ebb9@byu.net>
83457         Revert fpending breakage from 2007-09-08.
83458         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
83459         __fpending.c.
83461 2007-09-24  Jim Meyering  <jim@meyering.net>
83463         filenamecat.c: Add a test.
83464         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
83465         showing how the function works when DIR is the empty string.
83467 2007-09-21  Simon Josefsson  <simon@josefsson.org>
83469         * tests/test-canonicalize.sh: Turn on executable bit.
83471 2007-09-19  Eric Blake  <ebb9@byu.net>
83473         * README: Update CVS instructions.
83475 2007-09-18  Bruno Haible  <bruno@clisp.org>
83477         * modules/areadlink: New file.
83478         * lib/areadlink.h (areadlink): New declaration.
83479         * lib/areadlink.c: New file, based on lib/xreadlink.c.
83481 2007-09-17  Jim Meyering  <jim@meyering.net>
83483         * lib/savewd.c (ESTALE) [!defined]: Define.
83484         Reported to be required on Interix by Martin Koeppe.
83486 2007-09-17  Bruno Haible  <bruno@clisp.org>
83488         * gnulib-tool (func_version): Use $version.
83490 2007-09-16  Bruno Haible  <bruno@clisp.org>
83492         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
83493         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
83494         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
83495         Reported by Greg Schafer <gschafer@zip.com.au>.
83497 2007-09-15  Bruno Haible  <bruno@clisp.org>
83499         * gnulib-tool (sed): Try a little harder to make bash understand the
83500         alias.
83501         Reported by Bruce Korb <bruce.korb@gmail.com>.
83503 2007-09-13  Eric Blake  <ebb9@byu.net>
83505         * ChangeLog: Remove conflict markers.
83507 2007-09-13  Simon Josefsson  <simon@josefsson.org>
83509         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
83510         Reported by Bruno Haible <bruno@clisp.org>.
83512 2007-09-12  Bruno Haible  <bruno@clisp.org>
83514         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
83515         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
83516         is not defined.
83518 2007-09-12  Eric Blake  <ebb9@byu.net>
83520         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
83521         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
83522         Autoconf definition.
83523         * modules/euidaccess (Depends-on): Add extensions, for
83524         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
83525         * modules/fnmatch (Depends-on): Likewise.
83526         * modules/getaddrinfo (Depends-on): Likewise.
83527         * modules/getdelim (Depends-on): Likewise.
83528         * modules/getline (Depends-on): Likewise.
83529         * modules/getsubopt (Depends-on): Likewise.
83530         * modules/gettext (Depends-on): Likewise.
83531         * modules/group-member (Depends-on): Likewise.
83532         * modules/mbchar (Depends-on): Likewise.
83533         * modules/memmem (Depends-on): Likewise.
83534         * modules/mempcpy (Depends-on): Likewise.
83535         * modules/memrchr (Depends-on): Likewise.
83536         * modules/pagealign_alloc (Depends-on): Likewise.
83537         * modules/readutmp (Depends-on): Likewise.
83538         * modules/stpcpy (Depends-on): Likewise.
83539         * modules/stpncpy (Depends-on): Likewise.
83540         * modules/strchrnul (Depends-on): Likewise.
83541         * modules/strndup (Depends-on): Likewise.
83542         * modules/strsep (Depends-on): Likewise.
83543         * modules/strverscmp (Depends-on): Likewise.
83544         * modules/vasprintf (Depends-on): Likewise.
83545         * modules/wcwidth (Depends-on): Likewise.
83546         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
83547         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
83548         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
83549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
83550         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
83551         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
83552         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
83553         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
83554         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
83555         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
83556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
83557         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
83558         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
83559         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
83560         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
83561         * m4/readutmp.m4 (gl_READUTMP): Likewise.
83562         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
83563         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
83564         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
83565         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
83566         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
83567         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
83568         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
83569         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
83570         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
83571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
83572         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
83573         so that lock.m4 can be used in gettext without extensions module.
83575 2007-09-11  Bruno Haible  <bruno@clisp.org>
83577         * m4/isc-posix.m4: Remove file.
83578         Suggested by Eric Blake.
83580 2007-09-11  Eric Blake  <ebb9@byu.net>
83582         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
83584 2007-09-10  Bruno Haible  <bruno@clisp.org>
83586         * posix-modules: Fix typo in error message.
83587         Reported by Matt <mkraai@beckman.com>.
83589 2007-09-09  Bruno Haible  <bruno@clisp.org>
83591         * doc/functions/getdelim.texi: Update list of platforms lacking the
83592         function.
83593         * doc/functions/getline.texi: Likewise.
83595 2007-09-09  Jim Meyering  <jim@meyering.net>
83597         * lib/hash.c (hash_initialize): Detect calloc failure.
83598         Reported by Bruno Haible.
83600 2007-09-09  Bruno Haible  <bruno@clisp.org>
83602         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
83603         malloc or realloc fails.
83605 2007-09-09  Bruno Haible  <bruno@clisp.org>
83607         * modules/getcwd (Depends-on): Add malloc-posix.
83608         * modules/glob (Depends-on): Likewise.
83609         * modules/putenv (Depends-on): Likewise.
83610         * modules/strdup (Depends-on): Likewise.
83611         * modules/getdelim (Depends-on): Add realloc-posix.
83612         * modules/read-file (Depends-on): Likewise.
83614 2007-09-09  Bruno Haible  <bruno@clisp.org>
83616         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
83617         (gl_FUNC_MALLOC_POSIX): Require it.
83618         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
83619         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
83620         * modules/realloc (Files): Add m4/malloc.m4.
83621         * modules/calloc (Files): Likewise.
83623 2007-09-09  Bruno Haible  <bruno@clisp.org>
83625         * modules/malloc-posix: New file.
83626         * modules/malloc (Depends-on): Add malloc-posix.
83627         * lib/malloc.c: Include errno.h.
83628         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
83629         and a POSIX-compatible malloc into a single function. Set ENOMEM
83630         when returning NULL.
83631         * m4/malloc.m4: New file.
83632         * doc/functions/malloc.texi: Mention the malloc-posix module.
83633         * lib/stdlib_.h (malloc): New declaration.
83634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83635         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
83636         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
83637         and HAVE_MALLOC_POSIX.
83639 2007-09-09  Bruno Haible  <bruno@clisp.org>
83641         * modules/realloc-posix: New file.
83642         * modules/realloc (Depends-on): Add realloc-posix.
83643         * lib/realloc.c: Include errno.h.
83644         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
83645         and a POSIX-compatible realloc into a single function. Set ENOMEM
83646         when returning NULL.
83647         * m4/realloc.m4: New file.
83648         * doc/functions/realloc.texi: Mention the realloc-posix module.
83649         * lib/stdlib_.h (realloc): New declaration.
83650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83651         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
83652         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
83653         and HAVE_REALLOC_POSIX.
83655 2007-09-09  Bruno Haible  <bruno@clisp.org>
83657         * modules/calloc-posix: New file.
83658         * modules/calloc (Depends-on): Add calloc-posix.
83659         * lib/calloc.c: Include errno.h.
83660         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
83661         and a POSIX-compatible calloc into a single function. Set ENOMEM
83662         when returning NULL.
83663         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
83664         * doc/functions/calloc.texi: Mention the calloc-posix module.
83665         * lib/stdlib_.h (calloc): New declaration.
83666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83667         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
83668         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
83669         and HAVE_CALLOC_POSIX.
83671 2007-09-09  Bruno Haible  <bruno@clisp.org>
83673         Allow for modules to show an arbitrary notice.
83674         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
83675         * gnulib-tool: New option --extract-notice.
83676         (func_usage): Document it.
83677         (sed_extract_prog): Update.
83678         (func_get_notice): New function.
83679         (func_modules_notice): New function.
83680         (func_import, func_create_testdir): Invoke it.
83681         Suggested by Jim Meyering.
83683 2007-09-09  Bruno Haible  <bruno@clisp.org>
83685         * gnulib-tool: New options --verbose, --quiet.
83686         (func_usage): Document them.
83687         (verbose): New variable.
83688         (func_execute_command): New function.
83689         (func_import): Don't show the module list and the file list if
83690         $verbose < 0.
83691         (func_create_testdir): Likewise. Use func_execute_command.
83692         (func_create_megatestdir): Use func_execute_command.
83694 2007-09-08  Bruno Haible  <bruno@clisp.org>
83696         * gnulib-tool (func_import): Prefer rsync over wget when available,
83697         for fetching the PO files.
83699 2007-09-08  Bruno Haible  <bruno@clisp.org>
83701         * posix-modules: New file. Portions copied from gnulib-tool.
83702         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
83704 2007-09-08  Jim Meyering  <jim@meyering.net>
83706         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
83707         * lib/fpending.h: Rename from __fpending.h.
83708         * lib/fpending.c: Rename from __fpending.c.
83709         Include "fpending.h", not "__fpending.h".
83710         * lib/__fpending.h, lib/__fpending.c: Remove files.
83711         * modules/fpending (Files): Reflect new file names.
83712         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
83714 2007-09-08  Bruno Haible  <bruno@clisp.org>
83716         * m4/inttypes-h.m4: Remove stub file.
83718 2007-09-07  Simon Josefsson  <simon@josefsson.org>
83720         * doc/headers/stdint.texi: Discuss #include_next issue.
83722 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83724         * build-aux/bootstrap: Remove obsolete comment about wget --help.
83726 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83728         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
83729         in variable name.
83731 2007-09-03  Jim Meyering  <jim@meyering.net>
83733         New module: git-version-gen.
83734         * modules/git-version-gen: New file.
83736         Import changes from coreutils for bootstrap script.
83738         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
83740         bootstrap: uses rsync to download the .po files
83741         * build-aux/bootstrap (po_download_command_format): New global.
83742         (download_po_files): Use rsync.
83743         (update_po_files): Don't remove .po files after download,
83744         so future rsync runs can take advantage of the copies.
83746         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
83748         Solve the unnecessary-.po-file-regeneration problem once and for all.
83749         * build-aux/bootstrap (download_po_files): New function, renamed from
83750         get_translations.  Now, downloads, but doesn't update LINGUAS.
83751         (update_po_files): New function.
83753         bootstrap: Ignore more.
83754         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
83755         uniwidth to e.g., lib/.gitignore.
83756         (slurp): Handle the sys_stat_.h -> sys mapping, too.
83758         * build-aux/bootstrap: New setting: vc_ignore.
83759         (insert_sorted_if_absent): Create $file if absent.
83760         Adapt to new, possibly empty, list: $vc_ignore.
83762         bootstrap: generate more ignorable names
83763         * build-aux/bootstrap (slurp): When generating ignorable names,
83764         also map .sin to .sed, .gperf to .c, and .y to .c.
83766 2007-09-03  Jim Meyering  <jim@meyering.net>
83768         * build-aux/git-version-gen: New file, from coreutils.  For details, see
83769         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
83771 2007-09-02  Bruno Haible  <bruno@clisp.org>
83773         Fix mis-recognition of 'mcs' on QNX 6.
83774         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
83775         output contains the string "Mono".
83776         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
83777         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
83779 2007-09-01  Bruno Haible  <bruno@clisp.org>
83781         Fix collision between uniwidth/* and linebreak modules.
83782         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
83783         u32_width): Remove declarations.
83784         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
83785         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
83786         streq3, streq2, streq1, streq0): Remove functions.
83787         (STREQ): Remove macro.
83788         (is_cjk_encoding): Remove function.
83789         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
83790         (uc_width, u8_width, u16_width, u32_width): Remove functions.
83791         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
83792         * NEWS: Document the change.
83794 2007-09-01  Bruno Haible  <bruno@clisp.org>
83796         * lib/streq.h: Add double-inclusion guard.
83798 2007-09-01  Karl Berry  <karl@gnu.org>
83800         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
83802 2007-08-28  Jim Meyering  <jim@meyering.net>
83804         Rename mreadlink_with_size to areadlink_with_size.
83805         * NEWS: Document the change.
83806         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
83807         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
83808         * lib/mreadlink.h: Rename this to...
83809         * lib/areadlink.h: ...this.
83810         * modules/mreadlink-with-size: Rename this to...
83811         * modules/areadlink-with-size: ...this.
83812         * lib/canonicalize.c: Reflect the renaming.
83813         * modules/canonicalize: Likewise.
83815 2007-08-26  Bruno Haible  <bruno@clisp.org>
83817         * gnulib-tool (func_import): When deciding which files to remove,
83818         consider also dangling symbolic links.
83819         Reported by Eric Blake.
83821 2007-08-26  Bruno Haible  <bruno@clisp.org>
83823         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
83825 2007-08-23  Simon Josefsson  <simon@josefsson.org>
83827         * lib/readline.c: Don't include getline.h, the prototype is now
83828         found in stdio.h.
83830 2007-08-23  Jim Meyering  <jim@meyering.net>
83832         Getdelim touchup.
83833         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
83834         around the funlockfile call, since funlockfile never sets errno.
83835         Don't set errno upon failed realloc.
83837 2007-08-22  Eric Blake  <ebb9@byu.net>
83839         Getline touchups.
83840         * lib/getdelim.c (getdelim): Revert regression that required *n to
83841         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
83842         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
83843         getdelim, rather than whether implementation is missing.
83844         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
83845         * lib/stdio_.h (getline): Also declare if replacement is
83846         required.
83847         * doc/functions/getdelim.texi: New file.
83848         * doc/functions/getline.texi: Likewise.
83849         * doc/gnulib.texi (Function Substitutes): Add new files.
83850         Reported by Bruno Haible.
83852 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
83854         * users.txt: Add Guile.
83856 2007-08-22  Eric Blake  <ebb9@byu.net>
83858         * tests/test-getdelim.c (main): Use remove, not unlink.
83859         * tests/test-getline.c (main): Likewise.
83861         Move getline and getdelim into stdio.h, per POSIX 200x.
83862         * modules/getline (Files): Remove getline.h.
83863         (Depends-on): Add stdio.
83864         (configure.ac): Add module indicator.
83865         * modules/getdelim (Files): Remove getdelim.h.
83866         (Depends-on): Add stdio.
83867         (configure.ac): Add module indicator.
83868         * modules/stdio (Makefile.am): Work with new indicators.
83869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
83870         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
83871         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
83872         * lib/getdelim.h: Delete.
83873         * lib/getline.h: Delete.
83874         * lib/stdio_.h (getdelim, getline): Declare.
83875         * modules/getdelim-tests: New module.
83876         * modules/getline-tests: Likewise.
83877         * tests/test-getdelim.c: New file.
83878         * tests/test-getline.c: Likewise.
83879         * NEWS: Document the change.
83880         * lib/getline.c: Update choice of header.
83881         * lib/csharpcomp.c: Likewise.
83882         * lib/getpass.c: Likewise.
83883         * lib/javacomp.c: Likewise.
83884         * lib/javaversion.c: Likewise.
83885         * lib/yesno.c: Likewise.
83886         * lib/getdelim.c: Likewise.
83887         (getdelim): Set errno on failure, and avoid memory leak.
83889 2007-08-19  Bruno Haible  <bruno@clisp.org>
83891         * modules/closein (Depends-on): Add freadahead.
83892         * lib/closein.c: Include freadahead.h.
83893         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
83894         is zero.
83896 2007-08-19  Bruno Haible  <bruno@clisp.org>
83898         * modules/freadahead-tests: New file.
83899         * tests/test-freadahead.sh: New file.
83900         * tests/test-freadahead.c: New file.
83902         * modules/freadahead: New file.
83903         * lib/freadahead.h: New file.
83904         * lib/freadahead.c: New file.
83905         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
83906         fbufmode, fpurge, freadable, fwritable.
83908 2007-08-19  Eric Blake  <ebb9@byu.net>
83910         Test yesno in combination with closein.
83911         * lib/yesno.c (yesno): Document use of stdin.
83912         * modules/yesno-tests (Files): New module.
83913         * tests/test-yesno.c (main): New file.
83914         * tests/test-yesno.sh: Likewise.
83916 2007-08-19  Bruno Haible  <bruno@clisp.org>
83918         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
83919         * lib/fseeko.c (rpl_fseeko): Likewise.
83920         * lib/fseterr.c (fseterr): Likewise.
83922 2007-08-19  Bruno Haible  <bruno@clisp.org>
83924         * tests/test-lseek.c (main): Disable a test for BeOS.
83925         * doc/functions/lseek.texi: Document the BeOS bug.
83927 2007-08-19  Bruno Haible  <bruno@clisp.org>
83928             Eric Blake  <ebb9@byu.net>
83930         * lib/lseek.c: Include <sys/stat.h>.
83931         (rpl_lseek): Add workaround code also for Unix platforms.
83932         Needed for BeOS.
83933         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
83934         * doc/functions/lseek.texi: Document BeOS definiency.
83936 2007-08-18  Bruno Haible  <bruno@clisp.org>
83938         * modules/fstrcmp-tests: New file.
83939         * tests/test-fstrcmp.c: New file.
83941 2007-08-18  Bruno Haible  <bruno@clisp.org>
83943         * modules/fstrcmp: New file, from GNU gettext with modifications.
83944         * lib/fstrcmp.h: New file, from GNU gettext.
83945         * lib/fstrcmp.c: New file, from GNU gettext.
83946         * MODULES.html.sh (String handling): Add fstrcmp.
83948 2007-08-18  Bruno Haible  <bruno@clisp.org>
83950         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
83951         'bool'.
83952         (diag, compareseq): Remove const from the ctxt argument.
83953         (USE_HEURISTIC): Undefine at the end.
83955 2007-08-18  Jim Meyering  <jim@meyering.net>
83957         New file: lib/idcache.h
83958         * NEWS: Mention the addition.
83959         * modules/idcache (Files): Add lib/idcache.h
83960         * lib/idcache.c: Include "idcache.h".
83961         Don't include <sys/types.h>.
83962         Add a FIXME comment.
83963         Move file-scoped "static" declarations to the top.
83964         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
83966 2007-08-17  Bruno Haible  <bruno@clisp.org>
83967         and Paul Eggert  <eggert@cs.ucla.edu>
83969         * MODULES.html.sh: Add diffseq.
83970         * modules/diffseq: New file.
83971         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
83972         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
83974 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83976         Import changes from coreutils for bootstrap script.
83978         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
83980         * build-aux/bootstrap (slurp): Work even in environments where
83981         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
83982         current code does not slurp files whose names start with ".", and
83983         this looks like it might be a troublesome area.
83985         2007-07-11  Jim Meyering  <jim@meyering.net>
83987         If there's a GPL vN copyright comment, require that N == 3.
83989         2007-07-08  Jim Meyering  <jim@meyering.net>
83991         Run the coreutils-specific code only if tests/Makefile.am.in exists.
83992         * build-aux/bootstrap (mam_template): Move definition out of loop.
83994         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
83996         * build-aux/bootstrap (symlink_to_dir): Rename function from
83997         symlink_to_gnulib.  Add a directory parameter.  Update all
83998         callers.
83999         (cp_mark_as_generated): Also check for -- and link to -- files in
84000         gl/.
84002         2007-07-08  Jim Meyering  <jim@meyering.net>
84004         Adapt to deeper hierarchy in gnulib.
84005         * build-aux/bootstrap (symlink_to_dir): If the destination
84006         directory doesn't exist, create it. This is required at least for
84007         "lib/uniwidth/cjk.h".
84009         2007-05-15  Jim Meyering  <jim@meyering.net>
84011         * build-aux/bootstrap: Now that generated Makefile.am files
84012         are no longer under version control, they must be created at
84013         bootstrap time.
84015 2007-08-14  Ben Pfaff  <blp@gnu.org>
84017         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
84019 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
84021         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
84022         given the changes below.
84023         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
84024         even on hosts that have padding bits beyond the supported 64.
84026 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
84028         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
84029         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
84030         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
84031         depends on it.
84032         (xstrtol_error): Remove.
84033         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
84034         but with a different signature.
84035         (ATTRIBUTE_NORETURN, __attribute__): New macros.
84036         * lib/xstrtol-error.c: Include exitfail.h.
84037         (xstrtol_fatal): New function, with a different signature from the
84038         old xstrtol_error, so that the caller need not worry about passing
84039         in an exit status, or about storage management of the option argument.
84040         (xstrtol_error): Now a static function.  Redo signature to
84041         implement xstrtol_fatal.  Output the correct number of hyphens in
84042         front of the option so that the caller need not worry about
84043         storage management.
84044         (N_): New macro.
84045         (_): Remove; not used now.
84046         * modules/xstrtol: Depend on getopt.
84047         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
84048         of old STRTOL_FATAL_ERROR macro.
84049         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
84050         of test program.
84051         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
84052         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
84054 2007-08-08  Eric Blake  <ebb9@byu.net>
84056         * lib/xstrtol-error.c: Add missing include.
84058         Move xstrtol messages into gnulib domain, when --pobase is used.
84059         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
84060         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
84061         * modules/xstrtol (Files): Distribute new file.
84062         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
84063         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
84064         * tests/test-xstrtol.c: ...into new file.
84065         * tests/test-xstrtoul.c: Also test xstrtoul.
84066         * tests/test-xstrtoimax.c: Also test xstrtoimax.
84067         * tests/test-xstrtoumax.c: Also test xstrtoumax.
84068         * tests/test-xstrtol.sh: Drive the tests.
84069         * tests/test-xstrtoimax.sh: Likewise.
84070         * tests/test-xstrtoumax.sh: Likewise.
84071         * modules/xstrtol-tests: New module.
84072         * modules/xstrtoimax-tests: Likewise.
84073         * modules/xstrtoumax-tests: Likewise.
84075 2007-08-08  Jim Meyering  <jim@meyering.net>
84077         New function: mfile_name_concat.
84078         * lib/filenamecat.c (mfile_name_concat): New function, just like
84079         file_name_concat, but return NULL upon failure rather than exiting
84080         with a diagnostic.
84081         * lib/filenamecat.h: Declare it.
84083 2007-08-07  Bruno Haible  <bruno@clisp.org>
84085         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
84086         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
84087         warning from gcc.
84088         Reported by Eric Blake.
84090 2007-08-07  Simon Josefsson  <simon@josefsson.org>
84092         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
84093         * modules/crypto/arcfour (License): Likewise.
84094         * modules/crypto/des-tests (License): Likewise.
84095         * modules/crypto/gc-arctwo-tests (License): Likewise.
84096         * modules/crypto/gc-des-tests (License): Likewise.
84097         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
84098         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
84099         * modules/crypto/gc-md2-tests (License): Likewise.
84100         * modules/crypto/gc-md4-tests (License): Likewise.
84101         * modules/crypto/gc-md5-tests (License): Likewise.
84102         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
84103         * modules/crypto/gc-rijndael-tests (License): Likewise.
84104         * modules/crypto/gc-sha1-tests (License): Likewise.
84105         * modules/crypto/gc-tests (License): Likewise.
84106         * modules/crypto/hmac-md5 (License): Likewise.
84107         * modules/crypto/hmac-sha1 (License): Likewise.
84108         * modules/crypto/md2-tests (License): Likewise.
84109         * modules/crypto/md4-tests (License): Likewise.
84110         * modules/crypto/md5 (License): Likewise.
84111         * modules/crypto/rijndael (License): Likewise.
84112         * modules/crypto/sha1 (License): Likewise.
84113         * modules/memxor (License): Likewise.
84115 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84116         and Bruno Haible  <bruno@clisp.org>
84118         * NEWS: Describe interface changes to human, xstrtol.
84119         * lib/human.h: Include <xstrtol.h>.
84120         (human_options): Return enum strtol_error, not int.  Remove
84121         bool arg; take int * instead.
84122         * lib/human.c: Don't include "gettext.h".
84123         (_): Remove; no longer used.
84124         Don't include <xstrtol.h>, since human.h does it.
84125         (human_options): Adjust to abovementioned interface changes.
84126         Do not report error to stderr; that's now the caller's
84127         responsibility.
84128         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
84129         interface change.
84130         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
84131         Str, Argument_type_string.  All uses changed.  Put " argument"
84132         in diagnostics to make them clearer.  Change wording of suffix
84133         message for clarity.
84134         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
84135         Argument_type_string.
84136         (STRTOL_FATAL_WARN): Remove; no longer used.
84137         * modules/human (Depends-on): Remove gettext-h.
84139 2007-08-06  Simon Josefsson  <simon@josefsson.org>
84141         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
84143 2007-07-31  Bruno Haible  <bruno@clisp.org>
84145         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
84146         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
84147         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
84149 2007-07-31  Bruno Haible  <bruno@clisp.org>
84151         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
84152         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
84154 2007-07-30  Bruno Haible  <bruno@clisp.org>
84156         * modules/base64 (License): Use the synonymous term "LGPLv2+".
84157         * modules/c-ctype (License): Likewise.
84158         * modules/c-strcase (License): Likewise.
84159         * modules/check-version (License): Likewise.
84160         * modules/iconv (License): Likewise.
84161         * modules/iconv_open (License): Likewise.
84162         * modules/read-file (License): Likewise.
84163         * modules/striconv (License): Likewise.
84164         * modules/strverscmp (License): Likewise.
84165         * modules/vasprintf (License): Likewise.
84166         * modules/crypto/des (License): Likewise.
84167         * modules/crypto/gc (License): Likewise.
84168         * modules/crypto/gc-arcfour (License): Likewise.
84169         * modules/crypto/gc-arctwo (License): Likewise.
84170         * modules/crypto/gc-des (License): Likewise.
84171         * modules/crypto/gc-hmac-md5 (License): Likewise.
84172         * modules/crypto/gc-hmac-sha1 (License): Likewise.
84173         * modules/crypto/gc-md2 (License): Likewise.
84174         * modules/crypto/gc-md4 (License): Likewise.
84175         * modules/crypto/gc-md5 (License): Likewise.
84176         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
84177         * modules/crypto/gc-random (License): Likewise.
84178         * modules/crypto/gc-rijndael (License): Likewise.
84179         * modules/crypto/gc-sha1 (License): Likewise.
84180         * modules/crypto/md2 (License): Likewise.
84181         * modules/crypto/md4 (License): Likewise.
84183 2007-07-30  Jim Meyering  <jim@meyering.net>
84185         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
84186         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
84187         it has valid stat data.  This bug would cause du not to count the
84188         sizes of inaccessible directories.
84189         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
84190         in <http://bugzilla.redhat.com/250077>.
84192 2007-07-25  Peter O'Gorman  <peter@pogma.com>
84193             Bruno Haible  <bruno@clisp.org>
84195         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
84196         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
84197         #include_next, gives a diagnostic about it, but reports no error in
84198         the exit code.
84199         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
84201 2007-07-24  Ben Pfaff  <blp@gnu.org>
84203         Improve name: "count-one-bits" is better than "popcount".
84204         * MODULES.html.sh: Update name.
84205         * lib/popcount.h: Renamed lib/count-one-bits.h.
84206         (popcount): Renamed count_one_bits.
84207         (popcountl): Renamed count_one_bits_l.
84208         (popcountll): Renamed count_one_bits_ll.
84209         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
84210         * modules/popcount: Renamed module/count-one-bits.
84211         * modules/popcount-tests: Renamed module/count-one-bits-tests.
84212         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
84214 2007-07-23  Ben Pfaff  <blp@gnu.org>
84216         * lib/popcount.h (popcount32): Reduce size of constants, to allow
84217         better code generation, and add U to large constants to avoid
84218         warnings, in non-GCC case.
84219         Suggested by Bruno Haible.
84221 2007-07-23  Ben Pfaff  <blp@gnu.org>
84223         * lib/popcount.h: Use verify_true instead of if...abort.
84224         * modules/popcount: Depend on verify module.
84225         Suggested by Jim Meyering.
84227 2007-07-23  Bruno Haible  <bruno@clisp.org>
84229         * gnulib-tool (func_import): Create a .cvsignore file also when the
84230         directory is not yet in CVS but the toplevel directory is. When
84231         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
84232         Reported by Karl Berry.
84234 2007-07-22  Ben Pfaff  <blp@gnu.org>
84236         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
84237         case.
84238         Suggested by Eric Blake.
84240 2007-07-22  Ben Pfaff  <blp@gnu.org>
84242         New module: popcount.
84243         * MODULES.html.sh: Add popcount.
84244         * modules/popcount: New file.
84245         * modules/popcount-tests: New file.
84246         * tests/test-popcount.c: New file.
84247         * lib/popcount.h: New file.
84248         * m4/popcount.m4: New file.
84250 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
84252         * build-aux/announce-gen: Update to GPLv3.
84254         * build-aux/config.guess: Update from config.
84256 2007-07-21  Bruno Haible  <bruno@clisp.org>
84258         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
84259         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
84261 2007-07-20  Jim Meyering  <jim@meyering.net>
84263         * check-module: Diagnose a self-dependency.
84265 2007-07-19  Bruno Haible  <bruno@clisp.org>
84267         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
84268         empty.
84269         Reported by Eric Blake.
84271 2007-07-18  Bruno Haible  <bruno@clisp.org>
84273         * gnulib-tool: New options --po-base, --po-domain.
84274         (func_usage): Document them.
84275         (pobase, po_domain): New variables.
84276         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
84277         DEFAULT_TEXT_DOMAIN.
84278         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
84279         (func_import): Consider pobase and po_domain. Create a po/ directory.
84280         (func_create_testdir): Set pobase and po_domain to empty.
84281         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
84282         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
84284 2007-07-18  Bruno Haible  <bruno@clisp.org>
84286         * gnulib-tool (func_get_automake_snippet): Synthesize also an
84287         EXTRA_DIST augmentation for files in build-aux/.
84289 2007-07-16  Bruno Haible  <bruno@clisp.org>
84291         * modules/lseek (License): Use the synonymous term "LGPLv2+".
84292         * modules/getdelim (License): Likewise.
84294 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84296         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
84297         * modules/d-type (License): Likewise.
84298         * modules/extensions (License): Likewise.
84299         * modules/fnmatch (License): Likewise.
84300         * modules/fseeko (License): Likewise.
84301         * modules/getaddrinfo (License): Likewise.
84302         * modules/getline (License): Likewise.
84303         * modules/getlogin_r (License): Likewise.
84304         * modules/getpass (License): Likewise.
84305         * modules/gettimeofday (License): Likewise.
84306         * modules/glob (License): Likewise.
84307         * modules/inet_ntop (License): Likewise.
84308         * modules/malloc (License): Likewise.
84309         * modules/malloca (License): Likewise.
84310         * modules/memmem (License): Likewise.
84311         * modules/mempcpy (License): Likewise.
84312         * modules/memset (License): Likewise.
84313         * modules/minmax (License): Likewise.
84314         * modules/mktime (License): Likewise.
84315         * modules/netinet_in (License): Likewise.
84316         * modules/pathmax (License): Likewise.
84317         * modules/poll (License): Likewise.
84318         * modules/regex (License): Likewise.
84319         * modules/snprintf (License): Likewise.
84320         * modules/stdbool (License): Likewise.
84321         * modules/stdint (License): Likewise.
84322         * modules/stdio (License): Likewise.
84323         * modules/strcase (License): Likewise.
84324         * modules/strcasestr (License): Likewise.
84325         * modules/strdup (License): Likewise.
84326         * modules/string (License): Likewise.
84327         * modules/strndup (License): Likewise.
84328         * modules/strnlen (License): Likewise.
84329         * modules/strpbrk (License): Likewise.
84330         * modules/strptime (License): Likewise.
84331         * modules/strsep (License): Likewise.
84332         * modules/sys_select (License): Likewise.
84333         * modules/sys_socket (License): Likewise.
84334         * modules/sys_stat (License): Likewise.
84335         * modules/sys_time (License): Likewise.
84336         * modules/time (License): Likewise.
84337         * modules/time_r (License): Likewise.
84338         * modules/timegm (License): Likewise.
84339         * modules/unistd (License): Likewise.
84340         * modules/vsnprintf (License): Likewise.
84341         * modules/wctype (License): Likewise.
84343 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84345         * modules/argz (License): LGPLv2+.
84347 2007-07-15  Karl Berry  <karl@gnu.org>
84349         * doc/gnulib.texi: revise node structure per new fdl.texi.
84351 2007-07-14  Bruno Haible  <bruno@clisp.org>
84353         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
84354         the output file.
84355         * lib/uniname/uninames.h: Regenerated.
84357 2007-07-14  Karl Berry  <karl@gnu.org>
84359         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
84360         omitting sectioning and index commands.
84362 2007-07-13  Bruno Haible  <bruno@clisp.org>
84364         New gnulib-tool option --more-symlinks.
84365         * gnulib-tool (func_usage): Document --more-symlinks.
84366         (do_copyrights): New variable.
84367         Recognize option --more-symlinks.
84368         (func_import): Don't add a copyright notice transform to
84369         sed_transform_lib_file if do_copyrights is empty.
84371 2007-07-13  Bruno Haible  <bruno@clisp.org>
84373         * lib/vasnprintf.c (decimal_point_char): Define also if
84374         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
84375         && !NEED_PRINTF_DIRECTIVE_A.
84376         Reported by Clemens Koller <clemens.koller@anagramm.de> via
84377         Gary V. Vaughan <gary@gnu.org>.
84379 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
84381         * lib/inttypes_.h: Undo previous change, since it was fixed
84382         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
84384 2007-07-13  Bruno Haible  <bruno@clisp.org>
84386         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
84387         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
84389 2007-07-13  Jim Meyering  <jim@meyering.net>
84391         df: Don't fail for Tru64's "file-on-file mount".
84392         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
84393         so we fall through and use statfs instead.  Details here:
84394         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
84395         Reported by Albert Chin.
84397 2007-07-13  Bruno Haible  <bruno@clisp.org>
84399         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
84400         * modules/configmake (License): Likewise.
84401         * modules/gettext (License): Likewise.
84402         * modules/gettext-h (License): Likewise.
84403         * modules/include_next (License): Likewise.
84404         * modules/link-warning (License): Likewise.
84405         * modules/localcharset (License): Likewise.
84406         * modules/localename (License): Likewise.
84407         * modules/lock (License): Likewise.
84408         * modules/relocatable-lib-lgpl (License): Likewise.
84409         * modules/size_max (License): Likewise.
84410         * modules/vasnprintf (License): Likewise.
84411         * modules/wchar (License): Likewise.
84412         * modules/xsize (License): Likewise.
84414 2007-07-13  Bruno Haible  <bruno@clisp.org>
84416         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
84417         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
84419 2007-07-12  Bruno Haible  <bruno@clisp.org>
84421         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
84422         in the modules files.
84424 2007-07-11  Karl Berry  <karl@gnu.org>
84426         * MODULES.html.sh (func_module): use
84427          sed -e '\|^'"${includefile}"'$|d'
84428          instead of /.../d, to avoid errors on $includefile's containing /.
84430 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84432         * gnulib-tool (func_import): Avoid duplication of --avoid
84433         statements
84434         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
84435         names to `_' in variable names.
84437 2007-07-10  Eric Blake  <ebb9@byu.net>
84439         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
84440         * NEWS: Document this change.
84442 2007-07-08  Bruno Haible  <bruno@clisp.org>
84444         Update to Unicode 5.0.
84445         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
84446         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
84447         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
84448         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
84449         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
84450         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
84451         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
84452         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
84453         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
84454         U+10A3F, U+1D242..U+1D244.
84455         (nonspacing_table_ind): Update.
84456         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
84457         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
84459 2007-07-08  Bruno Haible  <bruno@clisp.org>
84461         Update to Unicode 5.0.
84462         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
84463         code transform. Extend the name index field of unicode_name_to_code and
84464         unicode_code_to_name from 16 to 24 bits.
84465         * lib/uniname/uniname.c (unicode_character_name,
84466         unicode_name_character): Add the range 0x12xxx to the code transform.
84467         * lib/uniname/uninames.h: Regenerated.
84468         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
84470 2007-07-07  Bruno Haible  <bruno@clisp.org>
84472         * modules/wcwidth-tests: New file.
84473         * tests/test-wcwidth.c: New file.
84475         Work around MacOS X wcwidth() bug.
84476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
84477         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
84478         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
84479         original wcwidth in non-UTF-8 locales.
84480         * modules/wcwidth (Depends-on): Add localcharset, streq,
84481         uniwidth/width.
84482         * doc/functions/wcwidth.texi: Update.
84484 2007-07-07  Bruno Haible  <bruno@clisp.org>
84486         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
84487         (wcwidth): New declaration.
84488         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
84489         macros.
84490         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
84491         here. Prepare for creating <wchar.h> unconditionally.
84492         * modules/wchar (Depends-on): Add link-warning.
84493         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
84494         REPLACE_WCWIDTH, and GL_LINK_WARNING.
84495         * lib/wcwidth.h: Remove file.
84496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
84497         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
84498         * modules/wcwidth (Files): Remove lib/wcwidth.h.
84499         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
84500         (Include): Replace wcwidth.h with <wchar.h>.
84501         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
84502         * lib/mbchar.h: Don't include wcwidth.h.
84503         * lib/mbswidth.c: Likewise.
84504         * NEWS: Mention the change.
84506 2007-07-07  Bruno Haible  <bruno@clisp.org>
84508         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
84509         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
84510         definition with an external declaration.
84511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
84512         defined as a function. Remove AC_C_INLINE requirement.
84513         * modules/wcwidth (Files): Add lib/wcwidth.c.
84514         (Makefile.am): Remove redundant statement.
84516 2007-07-07  Bruno Haible  <bruno@clisp.org>
84518         * MODULES.html.sh (Unicode string functions): Add the new modules.
84520         * tests/uniwidth/test-u32-strwidth.c: New file.
84521         * modules/uniwidth/u32-strwidth-tests: New file.
84523         * lib/uniwidth/u32-strwidth.c: New file.
84524         * modules/uniwidth/u32-strwidth: New file.
84526         * tests/uniwidth/test-u16-strwidth.c: New file.
84527         * modules/uniwidth/u16-strwidth-tests: New file.
84529         * lib/uniwidth/u16-strwidth.c: New file.
84530         * modules/uniwidth/u16-strwidth: New file.
84532         * tests/uniwidth/test-u8-strwidth.c: New file.
84533         * modules/uniwidth/u8-strwidth-tests: New file.
84535         * lib/uniwidth/u8-strwidth.c: New file.
84536         * modules/uniwidth/u8-strwidth: New file.
84538         * tests/uniwidth/test-u32-width.c: New file.
84539         * modules/uniwidth/u32-width-tests: New file.
84541         * lib/uniwidth/u32-width.c: New file.
84542         * modules/uniwidth/u32-width: New file.
84544         * tests/uniwidth/test-u16-width.c: New file.
84545         * modules/uniwidth/u16-width-tests: New file.
84547         * lib/uniwidth/u16-width.c: New file.
84548         * modules/uniwidth/u16-width: New file.
84550         * tests/uniwidth/test-u8-width.c: New file.
84551         * modules/uniwidth/u8-width-tests: New file.
84553         * lib/uniwidth/u8-width.c: New file.
84554         * modules/uniwidth/u8-width: New file.
84556         * tests/uniwidth/test-uc_width.c: New file.
84557         * modules/uniwidth/width-tests: New file.
84559         * lib/uniwidth/width.c: New file, from GNU libiconv.
84560         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
84561         * modules/uniwidth/width: New file.
84563         * lib/uniwidth.h: New file, from GNU libiconv.
84564         * modules/uniwidth/base: New file.
84566 2007-07-07  Bruno Haible  <bruno@clisp.org>
84568         * lib/uniname.h: New file, from GNU gettext.
84569         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
84570         * lib/uniname/uninames.h: New file, from GNU gettext.
84571         * lib/uniname/uniname.c: New file, from GNU gettext.
84572         * tests/uniname/test-uninames.sh: New file.
84573         * tests/uniname/test-uninames.c: New file, from GNU gettext.
84574         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
84575         * modules/uniname/base: New file.
84576         * modules/uniname/uniname: New file.
84577         * modules/uniname/uniname-tests: New file.
84578         * MODULES.html.sh (Unicode string functions): Add the new modules.
84580 2007-07-06  Bruno Haible  <bruno@clisp.org>
84582         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
84584 2007-07-06  Bruno Haible  <bruno@clisp.org>
84586         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
84587         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
84588         includes <cygwin/sys_time.h> which includes <sys/select.h> which
84589         include <sys/time.h>.
84590         Reported by Eric Blake.
84592 2007-07-06  Eric Blake  <ebb9@byu.net>
84594         Fix testing canonicalize on cygwin.
84595         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
84596         Revert patch from 2007-06-19.
84597         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
84598         canonicalize module is also in use.
84599         * tests/test-canonicalize.c: New file.
84600         * tests/test-canonicalize.sh: Likewise.
84601         * modules/canonicalize-tests: Likewise.
84603 2007-07-06  Jim Meyering  <jim@meyering.net>
84605         * lib/getugroups.c (getugroups): Detect getgrent failure.
84606         Adjust comment to reflect reality: this function may return -1.
84608 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
84610         * build-aux/bootstrap (TP_URL,get_translations): Update to use
84611         the new TP address.
84612         (usage): Fix typo
84613         (gnulib_mk): New variable.
84615 2007-07-05  Jim Meyering  <jim@meyering.net>
84617         Don't let endgrent clobber errno, no matter how improbable.
84618         * lib/getugroups.c (getugroups): Save and restore errno around
84619         endgrent call.
84621         Close the group DB even when failing with 2^31 or more members.
84622         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
84624 2007-07-04  Jim Meyering  <jim@meyering.net>
84626         * lib/getugroups.h: New file.
84627         * lib/getugroups.c: Include "getugroups.h".
84628         Remove uses of "register" keyword.
84629         Move local variable, "cp", down into scope where used.
84630         Give "username" parameter the "const" attribute.
84631         * modules/getugroups (Files): Add lib/getugroups.h
84633 2007-07-04  Karl Berry  <karl@gnu.org>
84635         * MODULES.html.sh (func_all_modules): Complete rename of
84636         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
84638 2007-07-02  Bruno Haible  <bruno@clisp.org>
84640         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
84641         mode, when inttypes.h comes from gnulib.
84642         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
84644 2007-07-02  Simon Josefsson  <simon@josefsson.org>
84646         * NEWS: Mention lgpl module name change.
84648         * modules/lgpl-2.1: Renamed from lgpl.
84650         * NEWS: Mention gpl module name change.
84652         * modules/gpl-3.0: New file, based on gpl-2.0.
84654         * modules/gpl-2.0: Renamed from gpl.
84656         * modules/gpl: Fix filename, doc/gpl.texi is now found at
84657         doc/gpl-2.0.texi.
84659 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
84661         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
84662         #define __STDC_LIMIT_MACROS temporarily while including
84663         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
84664         Problem reported by Joel E. Denny in
84665         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
84667 2007-07-01  Bruno Haible  <bruno@clisp.org>
84669         * lib/unistdio.h: New file.
84670         * lib/unistdio/u-asnprintf.h: New file.
84671         * lib/unistdio/u-asprintf.h: New file.
84672         * lib/unistdio/u-printf-args.c: New file.
84673         * lib/unistdio/u-printf-args.h: New file.
84674         * lib/unistdio/u-printf-parse.h: New file.
84675         * lib/unistdio/u-snprintf.h: New file.
84676         * lib/unistdio/u-sprintf.h: New file.
84677         * lib/unistdio/u-vasprintf.h: New file.
84678         * lib/unistdio/u-vsnprintf.h: New file.
84679         * lib/unistdio/u-vsprintf.h: New file.
84680         * lib/unistdio/ulc-asnprintf.c: New file.
84681         * lib/unistdio/ulc-asprintf.c: New file.
84682         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
84683         * lib/unistdio/ulc-printf-parse.c: New file.
84684         * lib/unistdio/ulc-snprintf.c: New file.
84685         * lib/unistdio/ulc-sprintf.c: New file.
84686         * lib/unistdio/ulc-vasnprintf.c: New file.
84687         * lib/unistdio/ulc-vasprintf.c: New file.
84688         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
84689         * lib/unistdio/ulc-vsnprintf.c: New file.
84690         * lib/unistdio/ulc-vsprintf.c: New file.
84691         * lib/unistdio/u8-asnprintf.c: New file.
84692         * lib/unistdio/u8-asprintf.c: New file.
84693         * lib/unistdio/u8-printf-parse.c: New file.
84694         * lib/unistdio/u8-snprintf.c: New file.
84695         * lib/unistdio/u8-sprintf.c: New file.
84696         * lib/unistdio/u8-vasnprintf.c: New file.
84697         * lib/unistdio/u8-vasprintf.c: New file.
84698         * lib/unistdio/u8-vsnprintf.c: New file.
84699         * lib/unistdio/u8-vsprintf.c: New file.
84700         * lib/unistdio/u8-u8-asnprintf.c: New file.
84701         * lib/unistdio/u8-u8-asprintf.c: New file.
84702         * lib/unistdio/u8-u8-snprintf.c: New file.
84703         * lib/unistdio/u8-u8-sprintf.c: New file.
84704         * lib/unistdio/u8-u8-vasnprintf.c: New file.
84705         * lib/unistdio/u8-u8-vasprintf.c: New file.
84706         * lib/unistdio/u8-u8-vsnprintf.c: New file.
84707         * lib/unistdio/u8-u8-vsprintf.c: New file.
84708         * lib/unistdio/u16-asnprintf.c: New file.
84709         * lib/unistdio/u16-asprintf.c: New file.
84710         * lib/unistdio/u16-printf-parse.c: New file.
84711         * lib/unistdio/u16-snprintf.c: New file.
84712         * lib/unistdio/u16-sprintf.c: New file.
84713         * lib/unistdio/u16-vasnprintf.c: New file.
84714         * lib/unistdio/u16-vasprintf.c: New file.
84715         * lib/unistdio/u16-vsnprintf.c: New file.
84716         * lib/unistdio/u16-vsprintf.c: New file.
84717         * lib/unistdio/u16-u16-asnprintf.c: New file.
84718         * lib/unistdio/u16-u16-asprintf.c: New file.
84719         * lib/unistdio/u16-u16-snprintf.c: New file.
84720         * lib/unistdio/u16-u16-sprintf.c: New file.
84721         * lib/unistdio/u16-u16-vasnprintf.c: New file.
84722         * lib/unistdio/u16-u16-vasprintf.c: New file.
84723         * lib/unistdio/u16-u16-vsnprintf.c: New file.
84724         * lib/unistdio/u16-u16-vsprintf.c: New file.
84725         * lib/unistdio/u32-asnprintf.c: New file.
84726         * lib/unistdio/u32-asprintf.c: New file.
84727         * lib/unistdio/u32-printf-parse.c: New file.
84728         * lib/unistdio/u32-snprintf.c: New file.
84729         * lib/unistdio/u32-sprintf.c: New file.
84730         * lib/unistdio/u32-vasnprintf.c: New file.
84731         * lib/unistdio/u32-vasprintf.c: New file.
84732         * lib/unistdio/u32-vsnprintf.c: New file.
84733         * lib/unistdio/u32-vsprintf.c: New file.
84734         * lib/unistdio/u32-u32-asnprintf.c: New file.
84735         * lib/unistdio/u32-u32-asprintf.c: New file.
84736         * lib/unistdio/u32-u32-snprintf.c: New file.
84737         * lib/unistdio/u32-u32-sprintf.c: New file.
84738         * lib/unistdio/u32-u32-vasnprintf.c: New file.
84739         * lib/unistdio/u32-u32-vasprintf.c: New file.
84740         * lib/unistdio/u32-u32-vsnprintf.c: New file.
84741         * lib/unistdio/u32-u32-vsprintf.c: New file.
84742         * tests/unistdio/test-ulc-asnprintf1.c: New file.
84743         * tests/unistdio/test-ulc-asnprintf1.h: New file.
84744         * tests/unistdio/test-ulc-printf1.h: New file.
84745         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
84746         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
84747         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
84748         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
84749         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
84750         * tests/unistdio/test-ulc-vasprintf1.c: New file.
84751         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
84752         * tests/unistdio/test-ulc-vsprintf1.c: New file.
84753         * tests/unistdio/test-u8-asnprintf1.c: New file.
84754         * tests/unistdio/test-u8-asnprintf1.h: New file.
84755         * tests/unistdio/test-u8-printf1.h: New file.
84756         * tests/unistdio/test-u8-vasnprintf1.c: New file.
84757         * tests/unistdio/test-u8-vasnprintf2.c: New file.
84758         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
84759         * tests/unistdio/test-u8-vasnprintf3.c: New file.
84760         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
84761         * tests/unistdio/test-u8-vasprintf1.c: New file.
84762         * tests/unistdio/test-u8-vsnprintf1.c: New file.
84763         * tests/unistdio/test-u8-vsprintf1.c: New file.
84764         * tests/unistdio/test-u16-asnprintf1.c: New file.
84765         * tests/unistdio/test-u16-asnprintf1.h: New file.
84766         * tests/unistdio/test-u16-printf1.h: New file.
84767         * tests/unistdio/test-u16-vasnprintf1.c: New file.
84768         * tests/unistdio/test-u16-vasnprintf2.c: New file.
84769         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
84770         * tests/unistdio/test-u16-vasnprintf3.c: New file.
84771         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
84772         * tests/unistdio/test-u16-vasprintf1.c: New file.
84773         * tests/unistdio/test-u16-vsnprintf1.c: New file.
84774         * tests/unistdio/test-u16-vsprintf1.c: New file.
84775         * tests/unistdio/test-u32-asnprintf1.c: New file.
84776         * tests/unistdio/test-u32-asnprintf1.h: New file.
84777         * tests/unistdio/test-u32-printf1.h: New file.
84778         * tests/unistdio/test-u32-vasnprintf1.c: New file.
84779         * tests/unistdio/test-u32-vasnprintf2.c: New file.
84780         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
84781         * tests/unistdio/test-u32-vasnprintf3.c: New file.
84782         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
84783         * tests/unistdio/test-u32-vasprintf1.c: New file.
84784         * tests/unistdio/test-u32-vsnprintf1.c: New file.
84785         * tests/unistdio/test-u32-vsprintf1.c: New file.
84786         * modules/unistdio/base: New file.
84787         * modules/unistdio/u-printf-args: New file.
84788         * modules/unistdio/ulc-asnprintf: New file.
84789         * modules/unistdio/ulc-asprintf: New file.
84790         * modules/unistdio/ulc-fprintf: New file.
84791         * modules/unistdio/ulc-printf-parse: New file.
84792         * modules/unistdio/ulc-snprintf: New file.
84793         * modules/unistdio/ulc-sprintf: New file.
84794         * modules/unistdio/ulc-vasnprintf: New file.
84795         * modules/unistdio/ulc-vasprintf: New file.
84796         * modules/unistdio/ulc-vfprintf: New file.
84797         * modules/unistdio/ulc-vsnprintf: New file.
84798         * modules/unistdio/ulc-vsprintf: New file.
84799         * modules/unistdio/u8-asnprintf: New file.
84800         * modules/unistdio/u8-asprintf: New file.
84801         * modules/unistdio/u8-printf-parse: New file.
84802         * modules/unistdio/u8-snprintf: New file.
84803         * modules/unistdio/u8-sprintf: New file.
84804         * modules/unistdio/u8-vasnprintf: New file.
84805         * modules/unistdio/u8-vasprintf: New file.
84806         * modules/unistdio/u8-vsnprintf: New file.
84807         * modules/unistdio/u8-vsprintf: New file.
84808         * modules/unistdio/u8-u8-asnprintf: New file.
84809         * modules/unistdio/u8-u8-asprintf: New file.
84810         * modules/unistdio/u8-u8-snprintf: New file.
84811         * modules/unistdio/u8-u8-sprintf: New file.
84812         * modules/unistdio/u8-u8-vasnprintf: New file.
84813         * modules/unistdio/u8-u8-vasprintf: New file.
84814         * modules/unistdio/u8-u8-vsnprintf: New file.
84815         * modules/unistdio/u8-u8-vsprintf: New file.
84816         * modules/unistdio/u16-asnprintf: New file.
84817         * modules/unistdio/u16-asprintf: New file.
84818         * modules/unistdio/u16-printf-parse: New file.
84819         * modules/unistdio/u16-snprintf: New file.
84820         * modules/unistdio/u16-sprintf: New file.
84821         * modules/unistdio/u16-vasnprintf: New file.
84822         * modules/unistdio/u16-vasprintf: New file.
84823         * modules/unistdio/u16-vsnprintf: New file.
84824         * modules/unistdio/u16-vsprintf: New file.
84825         * modules/unistdio/u16-u16-asnprintf: New file.
84826         * modules/unistdio/u16-u16-asprintf: New file.
84827         * modules/unistdio/u16-u16-snprintf: New file.
84828         * modules/unistdio/u16-u16-sprintf: New file.
84829         * modules/unistdio/u16-u16-vasnprintf: New file.
84830         * modules/unistdio/u16-u16-vasprintf: New file.
84831         * modules/unistdio/u16-u16-vsnprintf: New file.
84832         * modules/unistdio/u16-u16-vsprintf: New file.
84833         * modules/unistdio/u32-asnprintf: New file.
84834         * modules/unistdio/u32-asprintf: New file.
84835         * modules/unistdio/u32-printf-parse: New file.
84836         * modules/unistdio/u32-snprintf: New file.
84837         * modules/unistdio/u32-sprintf: New file.
84838         * modules/unistdio/u32-vasnprintf: New file.
84839         * modules/unistdio/u32-vasprintf: New file.
84840         * modules/unistdio/u32-vsnprintf: New file.
84841         * modules/unistdio/u32-vsprintf: New file.
84842         * modules/unistdio/u32-u32-asnprintf: New file.
84843         * modules/unistdio/u32-u32-asprintf: New file.
84844         * modules/unistdio/u32-u32-snprintf: New file.
84845         * modules/unistdio/u32-u32-sprintf: New file.
84846         * modules/unistdio/u32-u32-vasnprintf: New file.
84847         * modules/unistdio/u32-u32-vasprintf: New file.
84848         * modules/unistdio/u32-u32-vsnprintf: New file.
84849         * modules/unistdio/u32-u32-vsprintf: New file.
84850         * modules/unistdio/ulc-asnprintf-tests: New file.
84851         * modules/unistdio/ulc-vasnprintf-tests: New file.
84852         * modules/unistdio/ulc-vasprintf-tests: New file.
84853         * modules/unistdio/ulc-vsnprintf-tests: New file.
84854         * modules/unistdio/ulc-vsprintf-tests: New file.
84855         * modules/unistdio/u8-asnprintf-tests: New file.
84856         * modules/unistdio/u8-vasnprintf-tests: New file.
84857         * modules/unistdio/u8-vasprintf-tests: New file.
84858         * modules/unistdio/u8-vsnprintf-tests: New file.
84859         * modules/unistdio/u8-vsprintf-tests: New file.
84860         * modules/unistdio/u16-asnprintf-tests: New file.
84861         * modules/unistdio/u16-vasnprintf-tests: New file.
84862         * modules/unistdio/u16-vasprintf-tests: New file.
84863         * modules/unistdio/u16-vsnprintf-tests: New file.
84864         * modules/unistdio/u16-vsprintf-tests: New file.
84865         * modules/unistdio/u32-asnprintf-tests: New file.
84866         * modules/unistdio/u32-vasnprintf-tests: New file.
84867         * modules/unistdio/u32-vasprintf-tests: New file.
84868         * modules/unistdio/u32-vsnprintf-tests: New file.
84869         * modules/unistdio/u32-vsprintf-tests: New file.
84870         * MODULES.html.sh (Unicode string functions): Add the new modules.
84872 2007-07-01  Bruno Haible  <bruno@clisp.org>
84874         * lib/sprintf.c (sprintf): Limit the available length estimation,
84875         to avoid address wraparound.
84876         * lib/vsprintf.c (vsprintf): Likewise.
84877         * modules/sprintf-posix (Dependencies): Add stdint.
84878         * modules/vsprintf-posix (Dependencies): Likewise.
84880 2007-07-01  Bruno Haible  <bruno@clisp.org>
84882         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
84883         Windows PATH as well. Conservative double-quoting. Comments.
84885 2007-07-01  Bruno Haible  <bruno@clisp.org>
84886             Eric Blake  <ebb9@byu.net>
84887             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84889         * gnulib-tool (self_abspathname): Fix algorithm to cope with
84890         empty components in $PATH, denoting '.'.
84892 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84894         * gnulib-tool: Fix indentation.
84895         (func_create_megatestdir): Likewise.
84896         Report by Bruno Haible.
84898 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84900         Sync from Automake.
84901         * build-aux/gnupload: Fix shell portability issues with for loops.
84902         Report by Karl Berry.
84904 2007-06-29  Simon Josefsson  <simon@josefsson.org>
84906         * build-aux/maint.mk (POURL): Use translationproject.org.
84908 2007-06-27  Simon Josefsson  <simon@josefsson.org>
84909             Bruno Haible  <bruno@clisp.org>
84911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
84912         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
84913         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
84914         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
84915         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
84917 2007-06-27  Bruno Haible  <bruno@clisp.org>
84919         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
84920         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
84922 2007-06-26  Karl Berry  <karl@gnu.org>
84924         * MODULES.html.sh: remove xreadlink-with-size.
84926 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84928         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
84929         method that I hope also handles the double-include problem noted
84930         by Bruno Haible in
84931         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
84933 2007-06-23  Bruno Haible  <bruno@clisp.org>
84935         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84936         Don't let the 'mostlyclean' target fail if the last subdirectory could
84937         not be removed.
84938         Reported by Karl Berry.
84940 2007-06-23  Bruno Haible  <bruno@clisp.org>
84942         * gnulib-tool (echo): Add a speedier workaround for ksh.
84943         * tests/test-echo.sh: Likewise.
84945 2007-06-23  Bruno Haible  <bruno@clisp.org>
84947         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
84948         * tests/test-echo.sh: Likewise.
84950 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84952         * gnulib-tool (IFS): Initialize early, so we don't set it to
84953         empty later.
84954         (self_abspathname): Rewrite algorithm to set it, reindent.
84955         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
84956         (func_create_megatestdir): Merge some sed scripts.
84958 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84960         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
84961         exposed by Sun Studio 11 cc on Solaris 8.
84963 2007-06-22  Bruno Haible  <bruno@clisp.org>
84965         * gnulib-tool (echo): Ensure the echo primitive does not interpret
84966         backslashes.
84967         * tests/test-echo.sh: New file.
84969 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84971         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
84972         simplify `sed_replace_build_aux' scripts, they are portable but
84973         echoing them with `echo' is not.
84974         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
84976 2007-06-21  Karl Berry  <karl@gnu.org>
84978         * config/srclist.txt: guess we can't handle the licenses via
84979         srclist at the moment.
84981 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
84983         * MODULES.html.sh: Add include_next.
84984         * modules/include_next: New file.
84986 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
84988         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
84989         INCLUDE_NEXT.
84990         (gl_CHECK_NEXT_HEADERS): New macro.
84991         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
84992         the obsolescent gl_ABSOLUTE_HEADER.
84993         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
84994         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
84995         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
84996         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
84997         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
84998         * m4/math_h.m4 (gl_MATH_H): Likewise.
84999         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
85000         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
85001         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
85002         * m4/stdint.m4 (gl_STDINT_H): Likewise.
85003         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
85004         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
85005         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
85006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
85007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
85008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
85009         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
85010         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
85011         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
85012         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
85013         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
85014         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
85015         * m4/inttypes.m4 (gl_INTTYPES_H): Define
85016         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
85017         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
85018         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
85019         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
85020         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
85021         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
85022         * lib/float_.h: Likewise.
85023         * lib/inttypes_.h: Likewise.
85024         * lib/math_.h: Likewise.
85025         * lib/search_.h: Likewise.
85026         * lib/signal_.h: Likewise.
85027         * lib/stdint_.h: Likewise.
85028         * lib/stdio_.h: Likewise.
85029         * lib/stdlib_.h: Likewise.
85030         * lib/string_.h: Likewise.
85031         * lib/sys_stat_.h: Likewise.
85032         * lib/sys_time_.h: Likewise.
85033         * lib/time_.h: Likewise.
85034         * lib/unistd_.h: Likewise.
85035         * lib/wchar_.h: Likewise.
85036         * lib/wctype_.h: Likewise.
85037         * lib/dirent_.h: Likewise.
85038         * lib/iconv_.h: Likewise.
85039         * lib/locale_.h: Likewise.
85040         * lib/netinet_in_.h: Likewise.
85041         * lib/sys_select_.h: Likewise.
85042         * lib/sys_socket_.h: Likewise.
85043         * lib/sysexits_.h: Likewise.
85044         * modules/fcntl (Depends-on): Depend on include_next, not
85045         absolute_header.
85046         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
85047         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
85048         * modules/fchdir: Likewise.
85049         * modules/float: Likewise.
85050         * modules/iconv_open: Likewise.
85051         * modules/inttypes: Likewise.
85052         * modules/locale: Likewise.
85053         * modules/math: Likewise.
85054         * modules/netinet_in: Likewise.
85055         * modules/search: Likewise.
85056         * modules/signal: Likewise.
85057         * modules/stdint: Likewise.
85058         * modules/stdio: Likewise.
85059         * modules/stdlib: Likewise.
85060         * modules/string: Likewise.
85061         * modules/sys_select: Likewise.
85062         * modules/sys_socket: Likewise.
85063         * modules/sys_stat: Likewise.
85064         * modules/sys_time: Likewise.
85065         * modules/sysexits: Likewise.
85066         * modules/time: Likewise.
85067         * modules/unistd: Likewise.
85068         * modules/wchar: Likewise.
85069         * modules/wctype: Likewise.
85070         * modules/sys_stat: Change maintainer to "all".
85071         * modules/unistd: Likewise.
85073 2007-06-20  Karl Berry  <karl@gnu.org>
85075         * config/srclist.txt: track www changes in license files.
85077 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
85079         * build-aux/bootstrap: Remove stray dot.
85080         Make sure build_aux settings are honored when linking
85081         gnulib_extra_files.
85083 2007-06-19  Eric Blake  <ebb9@byu.net>
85085         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
85086         Allow compilation on cygwin.
85088 2007-06-19  Jim Meyering  <jim@meyering.net>
85090         xreadlink-with-size: Remove module.  No longer used.
85091         Ex-callers now use xreadlink or mreadlink-with-size.
85092         * modules/xreadlink-with-size: Remove module.
85093         * lib/xreadlink-with-size.c: Remove file.
85094         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
85095         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
85096         just before the function definition *is* accurate.
85098         Eliminate one way canonicalize_filename_mode could exit.
85099         * lib/canonicalize.c (canonicalize_filename_mode):
85100         Use mreadlink_with_size, not xreadlink_with_size.
85102 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
85104         Detect porting problems to FreeBSD/arm, which has time_t wider than
85105         long int.  Original problem reported for GNU diff by Xin Li in
85106         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
85107         * modules/getdate (Depends-on): Add intprops, verify.
85108         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
85109         is an integer type no wider than long int.
85111 2007-06-18  Jim Meyering  <jim@meyering.net>
85113         New module: mreadlink-with-size.
85114         * MODULES.html.sh: Add mreadlink-with-size.
85115         * modules/mreadlink-with-size: New module
85116         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
85117         not xreadlink-with-size.
85118         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
85120 2007-06-16  Bruno Haible  <bruno@clisp.org>
85122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
85123         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
85124         Reported by Gary V. Vaughan <gary@gnu.org>.
85126 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
85128         Revamp lchown so that it lives in unistd.h where it belongs.
85129         * lib/lchown.h: Remove.
85130         * lib/dirchownmod.c: Don't include lib/lchown.h.
85131         * lib/fchownat.c: Likewise.
85132         * lib/openat.c: Likewise.
85133         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
85134         does not follow symlinks.
85135         (EOPNOTSUPP): Define if not defined.
85136         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
85137         is defined to 0.
85138         (lchown): New decl.
85139         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
85140         Do not check for lchown decl.
85141         Set REPLACE_LCHOWN.
85142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
85143         REPLACE_LCHOWN.
85144         * modules/chown: Make it clear it follows symlinks.
85145         * modules/lchown: Make it clear it doesn't follow symlinks.
85146         (Files): Remove lib/lchown.h
85147         (Depends-on): Add unistd.
85148         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
85149         (Include): Include <unistd.h>, not "lchown.h".
85150         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
85151         REPLACE_LCHOWN.
85153 2007-06-15  Jim Meyering  <jim@meyering.net>
85155         Change license (GPL to LGPL) of fsusage and dependents.
85156         * modules/fsusage (License): Change to LGPL.
85157         * modules/full-read (License): Likewise.
85158         * modules/full-write (License): Likewise.
85159         * modules/safe-read (License): Likewise.
85160         * modules/safe-write (License): Likewise.
85162 2007-06-14  Ben Pfaff  <blp@gnu.org>
85164         Missing part of allocsa -> malloca transition.
85165         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
85166         gl_MALLOCA.
85168 2007-06-12  Bruno Haible  <bruno@clisp.org>
85170         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
85171         to ia64, x86_64, i386.
85172         Reported by Eric Blake.
85174 2007-06-12  Bruno Haible  <bruno@clisp.org>
85176         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
85177         cross-compiling to x86_64.
85179 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
85181         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
85182         glitch reported by Ralf Wildenhues in
85183         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
85185         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
85186         Vin Shelton.
85188 2007-06-11  Bruno Haible  <bruno@clisp.org>
85190         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
85191         replacement string.
85192         Reported by Eric Blake.
85194 2007-06-10  Bruno Haible  <bruno@clisp.org>
85196         Prepare vasnprintf code for use with Unicode strings.
85197         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
85198         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
85199         TYPE_U32_STRING.
85200         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
85201         a_u32_string variants.
85202         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
85203         * lib/printf-args.c: Don't include config.h and the specification
85204         header if PRINTF_FETCHARGS is already defined.
85205         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
85206         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
85207         TYPE_U16_STRING, TYPE_U32_STRING.
85208         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
85209         u16_directive, u16_directives, u32_directive, u32_directives): New
85210         types.
85211         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
85212         New declarations.
85213         * lib/printf-parse.c: Don't include config.h and the specification
85214         header if PRINTF_PARSE is already defined. Eliminate the set of
85215         parameters for WIDE_CHAR_VERSION; the user of this file must provide
85216         them now. Include c-ctype.h.
85217         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
85218         directive and CHAR_T_ONLY_ASCII.
85219         * lib/vasnprintf.c: Don't include config.h and the specification header
85220         if VASNPRINTF is already defined.
85221         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
85222         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
85223         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
85224         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
85225         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
85226         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
85227         code accordingly.
85228         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
85229         pad_ourselves also in this case, with the 'c' and 's' directives, and
85230         with a different notion of "width".
85231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
85233 2007-06-10  Bruno Haible  <bruno@clisp.org>
85235         * modules/unistr/u32-mbsnlen: New file.
85236         * lib/unistr/u32-mbsnlen.c: New file.
85238         * modules/unistr/u16-mbsnlen: New file.
85239         * lib/unistr/u16-mbsnlen.c: New file.
85241         * modules/unistr/u8-mbsnlen: New file.
85242         * lib/unistr/u8-mbsnlen.c: New file.
85244         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
85245         declarations.
85247 2007-06-10  Bruno Haible  <bruno@clisp.org>
85249         * lib/string_.h (mbsnlen): New declaration.
85250         * lib/mbsnlen.c: New file.
85251         * m4/mbsnlen.m4: New file.
85252         * modules/mbsnlen: New file.
85253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
85254         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
85255         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
85257 2007-06-10  Bruno Haible  <bruno@clisp.org>
85259         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
85261 2007-06-10  Bruno Haible  <bruno@clisp.org>
85263         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
85264         * lib/mbuiter.h: Likewise.
85266 2007-06-10  Bruno Haible  <bruno@clisp.org>
85268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
85269         declaration.
85271 2007-06-10  Karl Berry  <karl@gnu.org>
85273         * config/srclist.txt: remove gettext entries, Bruno prefers
85274         to update individually.
85276 2007-06-10  Bruno Haible  <bruno@clisp.org>
85278         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
85279         'maxlen'. Ensure only length + width bytes are allocated, not
85280         length + 1 + width.
85282 2007-06-09  Bruno Haible  <bruno@clisp.org>
85284         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
85285         (CHAR_T): Remove macro.
85286         (VASNPRINTF): Update.
85288 2007-06-09  Bruno Haible  <bruno@clisp.org>
85290         * MODULES.html.sh (Unicode string functions): Add the new modules.
85292         * modules/uniconv/u32-conv-to-enc: New file.
85293         * lib/uniconv/u32-conv-to-enc.c: New file.
85294         * modules/uniconv/u32-conv-to-enc-tests: New file.
85295         * tests/uniconv/test-u32-conv-to-enc.c: New file.
85297         * modules/uniconv/u16-conv-to-enc: New file.
85298         * lib/uniconv/u16-conv-to-enc.c: New file.
85299         * lib/uniconv/u-conv-to-enc.h: New file.
85300         * modules/uniconv/u16-conv-to-enc-tests: New file.
85301         * tests/uniconv/test-u16-conv-to-enc.c: New file.
85303         * modules/uniconv/u8-conv-to-enc: New file.
85304         * lib/uniconv/u8-conv-to-enc.c: New file.
85305         * modules/uniconv/u8-conv-to-enc-tests: New file.
85306         * tests/uniconv/test-u8-conv-to-enc.c: New file.
85308         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
85309         u32_conv_to_encoding): New declarations.
85311 2007-06-09  Bruno Haible  <bruno@clisp.org>
85313         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
85315 2007-06-09  Bruno Haible  <bruno@clisp.org>
85317         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
85318         * modules/malloca: Renamed from modules/allocsa, updated.
85319         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
85320         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
85321         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
85322         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
85323         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
85324         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
85325         * modules/xmalloca: Renamed from modules/xallocsa, updated.
85326         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
85327         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
85328         * modules/c-strcasestr (Depends-on): Update.
85329         * lib/c-strcasestr.c: Update.
85330         * modules/c-strstr (Depends-on): Update.
85331         * lib/c-strstr.c: Update.
85332         * modules/canonicalize-lgpl (Depends-on): Update.
85333         * lib/canonicalize-lgpl.c: Update.
85334         * modules/clean-temp (Depends-on): Update.
85335         * lib/clean-temp.c: Update.
85336         * modules/csharpcomp (Depends-on): Update.
85337         * lib/csharpcomp.c: Update.
85338         * modules/csharpexec (Depends-on): Update.
85339         * lib/csharpexec.c: Update.
85340         * modules/javacomp (Depends-on): Update.
85341         * lib/javacomp.c: Update.
85342         * modules/javaexec (Depends-on): Update.
85343         * lib/javaexec.c: Update.
85344         * modules/mbscasestr (Depends-on): Update.
85345         * lib/mbscasestr.c: Update.
85346         * modules/mbsstr (Depends-on): Update.
85347         * lib/mbsstr.c: Update.
85348         * modules/setenv (Depends-on): Update.
85349         * lib/setenv.c: Update.
85350         * modules/strcasestr (Depends-on): Update.
85351         * lib/strcasestr.c: Update.
85352         * modules/striconveha (Depends-on): Update.
85353         * lib/striconveha.c: Update.
85354         * modules/relocatable-prog-wrapper (Files): Update.
85355         * lib/relocwrapper.c: Update.
85356         * build-aux/install-reloc: Update.
85357         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
85359 2007-06-08  Bruno Haible  <bruno@clisp.org>
85361         Port to uClibc.
85362         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
85363         * lib/fpurge.c (fpurge): Likewise.
85364         * lib/freading.c (freading): Likewise.
85365         * lib/fseeko.c (rpl_fseeko): Likewise.
85366         * lib/fseterr.c (fseterr): Likewise.
85367         * lib/fwriting.c (fwriting): Likewise.
85368         * tests/test-fflush.c (main): Avoid a failure on uClibc.
85370 2007-06-08  Bruno Haible  <bruno@clisp.org>
85372         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
85373         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
85374         * modules/gettext (Files): Add m4/intlmacosx.m4.
85376 2007-06-07  Bruno Haible  <bruno@clisp.org>
85378         * modules/localename-tests: New file.
85379         * tests/test-localename.c: New file.
85381         New module 'localename'.
85382         * lib/localename.h: New file.
85383         * lib/localename.c: New file, from GNU gettext.
85384         * m4/localename.m4: New file.
85385         * modules/localename: New file.
85387 2007-06-07  Bruno Haible  <bruno@clisp.org>
85389         Work around the lack of <wchar.h> on some builds of uClibc.
85390         * doc/headers/wchar.texi: Update.
85391         * lib/wchar_.h: Include <wchar.h> only if it exists.
85392         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
85393         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
85394         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
85395         doesn't exist.
85396         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
85397         * modules/mbfile (Depends-on): Add wchar.
85398         * modules/mbiter (Depends-on): Likewise.
85399         * modules/mbuiter (Depends-on): Likewise.
85400         Reported by Simon Josefsson.
85402 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85404         Work around problem reported by Steven M. Schweda in
85405         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
85406         Tru64 5.1B with the Compaq compiler environment installed declares
85407         an 'isblank' function but does not define it in the C library.
85408         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
85409         * lib/regex_internal.h (isblank): Likewise.
85410         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
85411         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85413 2007-06-05  Bruno Haible  <bruno@clisp.org>
85415         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
85416         ia64.
85417         * modules/printf-safe: New file.
85418         * modules/fprintf-posix (Depends-on): Add printf-safe.
85419         * modules/printf-posix (Depends-on): Likewise.
85420         * modules/snprintf-posix (Depends-on): Likewise.
85421         * modules/sprintf-posix (Depends-on): Likewise.
85422         * modules/vasnprintf-posix (Depends-on): Likewise.
85423         * modules/vasprintf-posix (Depends-on): Likewise.
85424         * modules/vfprintf-posix (Depends-on): Likewise.
85425         * modules/vprintf-posix (Depends-on): Likewise.
85426         * modules/vsnprintf-posix (Depends-on): Likewise.
85427         * modules/vsprintf-posix (Depends-on): Likewise.
85428         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
85429         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
85430         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
85431         "no" on i386, x86_64, ia64.
85432         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
85433         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85434         on i386, x86_64, ia64.
85435         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
85436         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85437         on i386, x86_64, ia64.
85438         * tests/test-vasnprintf-posix.c: Include float.h.
85439         (LDBL80_WORDS): New macro.
85440         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85441         on i386, x86_64, ia64.
85442         * tests/test-vasprintf-posix.c: Include float.h.
85443         (LDBL80_WORDS): New macro.
85444         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85445         on i386, x86_64, ia64.
85446         * tests/test-snprintf-posix.c: Include float.h.
85447         * tests/test-sprintf-posix.c: Likewise.
85448         * tests/test-vsnprintf-posix.c: Likewise.
85449         * tests/test-vsprintf-posix.c: Likewise.
85451 2007-06-05  Bruno Haible  <bruno@clisp.org>
85453         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
85454         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
85455         non-IEEE numbers on i386, x86_64, ia64.
85456         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
85457         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
85458         * tests/test-isnanl.h: Include float.h.
85459         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
85461 2007-06-05  Bruno Haible  <bruno@clisp.org>
85463         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
85464         also the %a / %A. Handle the %a / %A code before this extra handling.
85466 2007-06-05  Bruno Haible  <bruno@clisp.org>
85468         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
85469         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
85471 2007-06-05  Bruno Haible  <bruno@clisp.org>
85473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
85474         typo in variable name.
85476 2007-06-05  Eric Blake  <ebb9@byu.net>
85478         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
85479         Reported by Simon Josefsson.
85481 2007-06-04  Bruno Haible  <bruno@clisp.org>
85483         Avoid test failures on some PowerPC platforms.
85484         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
85485         Define differently for PowerPC.
85486         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
85487         Reported by Gary V. Vaughan <gary@gnu.org>.
85489 2007-06-02  Bruno Haible  <bruno@clisp.org>
85491         Fix test-stdint failure on FreeBSD/ia64.
85492         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
85493         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
85494         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
85495         * doc/headers/stdint.texi: Update.
85497 2007-06-01  Bruno Haible  <bruno@clisp.org>
85499         * tests/test-binary-io.c (main): Pass a third argument to open().
85500         Reported by Gary V. Vaughan <gary@gnu.org>.
85502 2007-06-01  Bruno Haible  <bruno@clisp.org>
85504         * doc/functions/frexpl.texi: Update for mingw.
85506 2007-06-01  Bruno Haible  <bruno@clisp.org>
85508         * tests/test-lseek.c (main): Disable test of errno for invalid third
85509         argument.
85510         * doc/functions/lseek.texi: Update.
85511         Reported by Gary V. Vaughan <gary@gnu.org>.
85513 2007-05-28  Bruno Haible  <bruno@clisp.org>
85515         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
85517 2007-05-31  Eric Blake  <ebb9@byu.net>
85519         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
85520         cross compiling.
85522 2007-05-30  Eric Blake  <ebb9@byu.net>
85523         and Bruno Haible  <bruno@clisp.org>
85525         Work around mingw test failures exposed by m4-1.4.9b.
85526         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
85527         * tests/test-unistd.c: Disable uid_t and git_t tests for the
85528         moment.
85530 2007-05-30  Bruno Haible  <bruno@clisp.org>
85532         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
85533         assuming that they are closed. Needed on HP-UX 11.
85535 2007-05-29  Bruno Haible  <bruno@clisp.org>
85537         Fix a problem with #include_next.
85538         * lib/dirent_.h: Split the double-inclusion guard.
85539         * lib/fcntl_.h: Likewise.
85540         * lib/float_.h: Likewise.
85541         * lib/iconv_.h: Likewise.
85542         * lib/inttypes_.h: Likewise.
85543         * lib/locale_.h: Likewise.
85544         * lib/math_.h: Likewise.
85545         * lib/netinet_in_.h: Likewise.
85546         * lib/search_.h: Likewise.
85547         * lib/signal_.h: Likewise.
85548         * lib/stdint_.h: Likewise.
85549         * lib/stdio_.h: Likewise.
85550         * lib/stdlib_.h: Likewise.
85551         * lib/string_.h: Likewise.
85552         * lib/sys_select_.h: Likewise.
85553         * lib/sys_socket_.h: Likewise.
85554         * lib/sys_stat_.h: Likewise.
85555         * lib/sys_time_.h: Likewise.
85556         * lib/sysexits_.h: Likewise.
85557         * lib/time_.h: Likewise.
85558         * lib/unistd_.h: Likewise.
85559         * lib/wchar_.h: Likewise.
85560         * lib/wctype_.h: Likewise.
85562 2007-05-29  Bruno Haible  <bruno@clisp.org>
85564         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
85565         for the moment.
85567 2007-05-29  Bruno Haible  <bruno@clisp.org>
85569         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
85570         invocation.
85571         Reported by Eric Blake.
85573 2007-05-29  Bruno Haible  <bruno@clisp.org>
85575         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
85576         compiling case.
85578 2007-05-29  Eric Blake  <ebb9@byu.net>
85579             Bruno Haible  <bruno@clisp.org>
85581         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
85582         cross compiles.
85584 2007-05-28  Eric Blake  <ebb9@byu.net>
85586         * modules/closein-tests (test_closein_LDADD): Support test on
85587         cygwin with libtool.
85589 2007-05-28  Bruno Haible  <bruno@clisp.org>
85591         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
85592         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
85593         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
85594         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85595         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85596         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85597         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85598         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85599         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85601 2007-05-28  Eric Blake  <ebb9@byu.net>
85603         Unconditionally include <config.h> in unit tests.
85604         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
85605         * tests/test-allocsa.c, tests/test-arcfour.c,
85606         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
85607         tests/test-array_list.c, tests/test-array_oset.c,
85608         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
85609         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
85610         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
85611         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
85612         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
85613         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
85614         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
85615         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
85616         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
85617         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
85618         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
85619         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
85620         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
85621         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
85622         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
85623         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
85624         test-md5.c, test-memmem.c, test-printf-posix.c,
85625         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
85626         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
85627         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
85628         test-strcasestr.c, test-striconv.c, test-striconveh.c,
85629         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
85630         test-vasnprintf-posix2.c, test-vasnprintf.c,
85631         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
85632         test-vfprintf-posix.c, test-vprintf-posix.c,
85633         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
85634         test-xvasprintf.c: Likewise.
85636 2007-05-28  Bruno Haible  <bruno@clisp.org>
85638         * gnulib-tool (func_import): Remember the --with-tests command-line
85639         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
85640         Reported by Eric Blake.
85642 2007-05-28  Bruno Haible  <bruno@clisp.org>
85644         * modules/ftell-tests: New file.
85645         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
85646         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
85648         * lib/ftell.c: New file.
85649         * modules/ftell: New file.
85650         * m4/ftell.m4: New file.
85651         * doc/functions/ftell.texi: Update.
85652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
85653         REPLACE_FTELL.
85654         * lib/stdio_.h (rpl_ftell): New declaration.
85655         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
85656         REPLACE_FTELL.
85658 2007-05-28  Eric Blake  <ebb9@byu.net>
85660         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
85662 2007-05-28  Bruno Haible  <bruno@clisp.org>
85664         * modules/fseek-tests: New file.
85665         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
85666         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
85668         * lib/fseek.c: New file.
85669         * modules/fseek: New file.
85670         * m4/fseek.m4: New file.
85671         * doc/functions/fseek.texi: Update.
85672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
85673         REPLACE_FSEEK.
85674         * lib/stdio_.h (rpl_fseek): New declaration.
85675         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
85676         REPLACE_FSEEK.
85678 2007-05-28  Bruno Haible  <bruno@clisp.org>
85680         * lib/stdio_.h (fflush): More comments.
85682 2007-05-28  Bruno Haible  <bruno@clisp.org>
85684         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
85685         runtime test.
85687 2007-05-28  Eric Blake  <ebb9@byu.net>
85689         Improve lseek module.
85690         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
85691         * lib/unistd_.h (lseek): Scale back link warning message.
85692         * tests/test-lseek.c: Beef up test.
85693         * tests/test-lseek.sh: Exercise more facets of lseek.
85694         Reported by Bruno Haible.
85696 2007-05-28  Bruno Haible  <bruno@clisp.org>
85698         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
85699         to define.
85701 2007-05-27  Bruno Haible  <bruno@clisp.org>
85703         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
85705 2007-05-27  Bruno Haible  <bruno@clisp.org>
85707         * modules/openmp: New file.
85708         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
85709         Noah Misch.
85711 2007-05-26  Bruno Haible  <bruno@clisp.org>
85713         * modules/chdir-long (Depends-on): Add fchdir.
85714         * modules/chdir-safer (Depends-on): Likewise.
85715         * modules/fts (Depends-on): Likewise.
85716         * modules/fts-lgpl (Depends-on): Likewise.
85717         * modules/openat (Depends-on): Likewise.
85718         * modules/savewd (Depends-on): Likewise.
85720 2007-05-24  Eric Blake  <ebb9@byu.net>
85722         Fix lseek on mingw.
85723         * modules/lseek: New module.
85724         * m4/lseek.m4: New file.
85725         * lib/lseek.c: New file.
85726         * modules/lseek-tests: New file.
85727         * tests/test-lseek.c: New file.
85728         * tests/test-lseek.sh: New file.
85729         * MODULES.html.sh: Document lseek module.
85730         * modules/fflush (Depends-on): Add lseek, fseeko.
85731         * modules/fseeko (Depends-on): Likewise.
85732         * modules/ftello (Depends-on): Likewise.
85733         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
85734         broken.
85735         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
85736         broken.
85737         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
85738         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
85739         * lib/ftello.c (rpl_ftello): Likewise.
85740         * tests/test-fseeko.c (main): Test this.
85741         * tests/test-fseeko.sh: Likewise.
85742         * tests/test-ftello.c (main): Likewise.
85743         * tests/test-ftello.sh: Likewise.
85744         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
85745         implies replacing fseek.
85746         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
85747         HAVE_FTELLO.
85748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
85749         * modules/unistd (Makefile.am): Likewise.
85750         * lib/unistd_.h (lseek): Declare a replacement.
85751         * doc/functions/lseek.texi (lseek): Document this fix.
85752         * doc/functions/fseek.texi (fseek): Likewise.
85753         * doc/functions/ftell.texi (ftell): Likewise.
85755 2007-05-24  Bruno Haible  <bruno@clisp.org>
85757         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
85758         in the printed representation of a NaN.
85759         * tests/test-vasprintf-posix.c (test_function): Likewise.
85760         * tests/test-snprintf-posix.h (test_function): Likewise.
85761         * tests/test-sprintf-posix.h (test_function): Likewise.
85762         Reported by Eric Blake.
85764 2007-05-23  Eric Blake  <ebb9@byu.net>
85766         Fix fseeko/ftello on cygwin 1.5.24.
85767         * doc/functions/fseeko.texi (fseeko): Document the fix.
85768         * doc/functions/ftello.texi (ftello): Document the fix.
85769         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
85770         * doc/functions/stdout.text (stdout): New file.
85771         * doc/functions/stderr.text (stderr): New file.
85772         * doc/gnulib.texi (Function Substitutes): Use new files.
85773         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
85774         prior to 1.7.0.
85775         * tests/test-ftello.c (main): Likewise for ftello.
85776         * tests/test-fseeko.sh: New file.
85777         * tests/test-ftello.sh: New file.
85778         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
85779         with seekable stdin.
85780         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
85781         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
85782         (gl_REPLACE_FSEEKO): New macro.
85783         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
85784         * modules/fseeko (Files): Distribute fseeko.c.
85785         * modules/ftello (Files): Distribute ftello.c.
85786         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
85787         mode.
85788         * lib/ftello.c (rpl_ftello): New file.
85789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
85790         fseeko, ftello.
85791         (gl_STDIN_LARGE_OFFSET): New macro.
85792         * modules/stdio (Makefile.am): Perform the replacement.
85793         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
85795 2007-05-23  Bruno Haible  <bruno@clisp.org>
85797         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
85798         GNULIB_POSIXCHECK is defined.
85800 2007-05-21  Bruno Haible  <bruno@clisp.org>
85802         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
85803         Check also the output for NaN arguments. When cross-compiling, guess
85804         no on IRIX.
85805         * lib/vasnprintf.c: Update comments.
85806         * tests/test-vasnprintf-posix.c (strisnan): New function.
85807         (test_function): Use it.
85808         * tests/test-vasprintf-posix.c (strisnan): New function.
85809         (test_function): Use it.
85810         * tests/test-snprintf-posix.h (strisnan): New function.
85811         (test_function): Use it.
85812         * tests/test-sprintf-posix.h (strisnan): New function.
85813         (test_function): Use it.
85814         Reported by Eric Blake.
85816 2007-05-20  Bruno Haible  <bruno@clisp.org>
85818         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
85819         numbers that fails on BeOS.
85820         * doc/functions/frexpl.texi: Update.
85822 2007-05-20  Jim Meyering  <jim@meyering.net>
85824         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
85825         forced upon us by glibc-2.6.
85827 2007-05-20  Bruno Haible  <bruno@clisp.org>
85829         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
85830         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
85831         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
85832         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
85833         NEED_PRINTF_INFINITE.
85834         (is_infinitel): New function.
85835         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
85836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
85837         gl_PREREQ_VASNPRINTF_INFINITE.
85838         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
85839         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85840         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
85841         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
85842         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
85843         gl_PREREQ_VASNPRINTF_INFINITE.
85844         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85848         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85849         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85850         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85851         * doc/functions/fprintf.texi: Update.
85852         * doc/functions/printf.texi: Update.
85853         * doc/functions/snprintf.texi: Update.
85854         * doc/functions/sprintf.texi: Update.
85855         * doc/functions/vfprintf.texi: Update.
85856         * doc/functions/vprintf.texi: Update.
85857         * doc/functions/vsnprintf.texi: Update.
85858         * doc/functions/vsprintf.texi: Update.
85860 2007-05-20  Bruno Haible  <bruno@clisp.org>
85862         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
85863         was not found in libc.
85864         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
85866 2007-05-20  Bruno Haible  <bruno@clisp.org>
85868         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
85869         printed as "-nan" instead of "nan".
85870         * tests/test-vasprintf-posix.c (test_function): Likewise.
85871         * tests/test-snprintf-posix.h (test_function): Likewise.
85872         * tests/test-sprintf-posix.h (test_function): Likewise.
85873         Needed for HP-UX 11.
85875 2007-05-20  Jim Meyering  <jim@meyering.net>
85877         Fix buggy test for the fchownat-deref bug.
85878         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
85879         symlink required for the run-test.  Without it, this test would
85880         always declare that fchownat doesn't work, and client code would
85881         unnecessarily use the replacement function with fixed libc.
85882         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
85883         Reported by Greg Schafer.
85885 2007-05-19  Bruno Haible  <bruno@clisp.org>
85887         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
85888         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
85889         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
85890         Needed for IRIX 6.5 and Solaris 2.5.1.
85892 2007-05-19  Bruno Haible  <bruno@clisp.org>
85894         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
85895         (test_function): Skip tests involving -0.0 on platforms where
85896         -0.0 = 0.0.
85897         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
85898         (test_function): Skip tests involving -0.0 on platforms where
85899         -0.0 = 0.0.
85900         * tests/test-snprintf-posix.h (have_minus_zero): New function.
85901         (test_function): Skip tests involving -0.0 on platforms where
85902         -0.0 = 0.0.
85903         * tests/test-sprintf-posix.h (have_minus_zero): New function.
85904         (test_function): Skip tests involving -0.0 on platforms where
85905         -0.0 = 0.0.
85906         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
85907         tests.
85908         * tests/test-printf-posix.h (test_function): Likewise.
85909         * tests/test-printf-posix.output: Remove all -0.0 related results.
85910         Needed for IRIX 6.5.
85912 2007-05-19  Bruno Haible  <bruno@clisp.org>
85914         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
85915         printed as "nan0x7fffffff" instead of "nan".
85916         * tests/test-vasprintf-posix.c (test_function): Likewise.
85917         * tests/test-snprintf-posix.h (test_function): Likewise.
85918         * tests/test-sprintf-posix.h (test_function): Likewise.
85919         * tests/test-fprintf-posix.h (NaN): Remove macro.
85920         (test_function): Remove all NaN related tests.
85921         * tests/test-printf-posix.h (NaN): Remove macro.
85922         (test_function): Remove all NaN related tests.
85923         * tests/test-printf-posix.output: Remove all NaN related results.
85924         Needed for IRIX 6.5.
85926 2007-05-19  Bruno Haible  <bruno@clisp.org>
85928         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
85929         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
85931 2007-05-19  Bruno Haible  <bruno@clisp.org>
85933         * lib/float_.h: New file.
85934         * m4/float_h.m4: New file.
85935         * modules/float: New file.
85936         * modules/isnanl (Dependencies): Add float.
85937         * modules/isnanl-nolibm (Dependencies): Likewise.
85938         * modules/mathl (Dependencies): Likewise.
85939         * modules/printf-frexpl (Dependencies): Likewise.
85940         * modules/signbit (Dependencies): Likewise.
85941         * modules/vasnprintf (Dependencies): Likewise.
85942         * doc/headers/float.texi: Update.
85944 2007-05-19  Jim Meyering  <jim@meyering.net>
85946         * lib/utimens.c (gl_futimens): Rename from futimens,
85947         now that glibc-2.6 declares futimens.
85948         * lib/utimens.h: Likewise.
85950 2007-05-19  Bruno Haible  <bruno@clisp.org>
85952         Avoid test failures on mingw.
85953         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
85954         * tests/test-printf-posix.sh: Likewise.
85955         * tests/test-vfprintf-posix.sh: Likewise.
85956         * tests/test-vprintf-posix.sh: Likewise.
85958 2007-05-19  Bruno Haible  <bruno@clisp.org>
85960         Fix *printf result for NaN, Inf, -0.0 on mingw.
85961         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
85962         * lib/vasnprintf.c: Include math.h and isnan.h.
85963         (is_infinite_or_zero): New function.
85964         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
85965         values in the %f, %F, %e, %E, %g, %G directives.
85966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
85967         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85968         gl_PRINTF_INFINITE and test its result. Invoke
85969         gl_PREREQ_VASNPRINTF_INFINITE.
85970         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85971         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85974         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85975         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85977         * doc/functions/fprintf.texi: Update.
85978         * doc/functions/printf.texi: Update.
85979         * doc/functions/snprintf.texi: Update.
85980         * doc/functions/sprintf.texi: Update.
85981         * doc/functions/vfprintf.texi: Update.
85982         * doc/functions/vprintf.texi: Update.
85983         * doc/functions/vsnprintf.texi: Update.
85984         * doc/functions/vsprintf.texi: Update.
85986 2007-05-19  Bruno Haible  <bruno@clisp.org>
85988         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
85989         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
85990         Instead of multiplying with 10^k, set extra_zeroes to k.
85991         (scale10_round_long_double): Remove function.
85993 2007-05-18  Bruno Haible  <bruno@clisp.org>
85995         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
85996         introduced on 2007-05-06.
85998 2007-05-18  Bruno Haible  <bruno@clisp.org>
86000         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
86001         %g directives.
86002         * tests/test-vasprintf-posix.c (test_function): Likewise.
86003         * tests/test-snprintf-posix.h (test_function): Likewise.
86004         * tests/test-sprintf-posix.h (test_function): Likewise.
86006 2007-05-18  Bruno Haible  <bruno@clisp.org>
86008         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
86009         (strmatch): New function.
86010         (test_function): Test the %f directive on numbers of various exponents.
86011         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
86012         (strmatch): New function.
86013         (test_function): Test the %f directive on numbers of various exponents.
86014         * tests/test-snprintf-posix.h (strmatch): New function.
86015         (test_function): Test the %f directive on numbers of various exponents.
86016         * tests/test-sprintf-posix.h (strmatch): New function.
86017         (test_function): Test the %f directive on numbers of various exponents.
86018         * tests/test-snprintf-posix.c (SIZEOF): New macro.
86019         * tests/test-sprintf-posix.c (SIZEOF): New macro.
86020         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
86021         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
86023 2007-05-18  Bruno Haible  <bruno@clisp.org>
86025         Add support for 'long double' number output.
86026         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
86027         * lib/vasnprintf.c: Include math.h and float+.h.
86028         (mp_limb_t): New type.
86029         (GMP_LIMB_BITS): New macro.
86030         (mp_twolimb_t): New type.
86031         (GMP_TWOLIMB_BITS): New macro.
86032         (mpn_t): New type.
86033         (multiply, divide, convert_to_decimal, decode_long_double,
86034         scale10_round_long_double, scale10_round_decimal_long_double,
86035         floorlog10l): New functions.
86036         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
86037         for the %f, %F, %e, %E, %g, %G directives.
86038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
86039         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86040         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
86041         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
86042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86043         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86044         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86045         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86046         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86048         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86049         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
86050         * modules/snprintf-posix (Depends-on): Likewise.
86051         * modules/sprintf-posix (Depends-on): Likewise.
86052         * modules/vasnprintf-posix (Depends-on): Likewise.
86053         * modules/vasprintf-posix (Depends-on): Likewise.
86054         * modules/vfprintf-posix (Depends-on): Likewise.
86055         * modules/vsnprintf-posix (Depends-on): Likewise.
86056         * modules/vsprintf-posix (Depends-on): Likewise.
86057         * modules/vasnprintf (Files): Add lib/float+.h.
86058         * doc/functions/fprintf.texi: Update.
86059         * doc/functions/printf.texi: Update.
86060         * doc/functions/snprintf.texi: Update.
86061         * doc/functions/sprintf.texi: Update.
86062         * doc/functions/vfprintf.texi: Update.
86063         * doc/functions/vprintf.texi: Update.
86064         * doc/functions/vsnprintf.texi: Update.
86065         * doc/functions/vsprintf.texi: Update.
86067 2007-05-18  Bruno Haible  <bruno@clisp.org>
86069         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
86071 2007-05-18  Bruno Haible  <bruno@clisp.org>
86073         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
86074         for printing 64-bit integers. Needed for mingw.
86076 2007-05-18  Bruno Haible  <bruno@clisp.org>
86078         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
86079         gl_FUNC_FREXPL_WORKS.
86080         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
86082 2007-05-18  Bruno Haible  <bruno@clisp.org>
86084         * modules/frexpl-nolibm-tests: New file.
86086         * modules/frexpl-nolibm: New file.
86087         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
86089 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86091         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
86092         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
86093         GCC 4.2, which otherwise issues a lot of warnings.
86094         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
86095         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
86096         Likewise.
86097         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
86098         * modules/iconv_open (iconv.h): Likewise.
86099         * modules/locale (locale.h): Likewise.
86100         * modules/netinet_in (netinet/in.h): Likewise.
86101         * modules/sys_select (sys_select.h): Likewise.
86102         * modules/sys_socket (sys/socket.h): Likewise.
86103         * modules/sys_stat (sys/stat.h): Likewise.
86104         * modules/sysexits (sysexits.h): Likewise.
86105         * modules/unistd (unistd.h): Likewise.
86107 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86109         * modules/closein-tests (Makefile.am): Distribute
86110         `test-closein.sh'.
86112 2007-05-17  Bruno Haible  <bruno@clisp.org>
86114         * tests/test-printf-posix.output: Renamed from
86115         tests/test-fprintf-posix.out.
86116         * modules/fprintf-posix-tests: Update.
86117         * modules/printf-posix-tests: Update.
86118         * modules/vfprintf-posix-tests: Update.
86119         * modules/vprintf-posix-tests: Update.
86120         * tests/test-fprintf-posix.sh: Update.
86121         * tests/test-printf-posix.sh: Update.
86122         * tests/test-vfprintf-posix.sh: Update.
86123         * tests/test-vprintf-posix.sh: Update.
86124         Reported by Ralf Wildenhues.
86126 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86128         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
86129         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
86130         GCC 4.2, which otherwise issues a lot of warnings.
86131         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
86132         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
86133         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
86134         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
86135         it should no longer be needed.
86136         * lib/string_.h: Likewise.
86137         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
86138         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
86139         * modules/inttypes (inttypes.h): Likewise.
86140         * modules/math (math.h): Likewise.
86141         * modules/search (search.h): Likewise.
86142         * modules/signal (signal.h): Likewise.
86143         * modules/stdint (stdint.h): Likewise.
86144         * modules/stdio (stdio.h): Likewise.
86145         * modules/stdlib (stdlib.h): Likewise.
86146         * modules/string (string.h): Likewise.
86147         * modules/sys_time (sys/time.h): Likewise.
86148         * modules/time (time.h): Likewise.
86149         * modules/wchar (wchar.h): Likewise.
86150         * modules/wctype (wtype.h): Likewise.
86152 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
86154         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
86156 2007-05-13  Bruno Haible  <bruno@clisp.org>
86158         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
86159         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
86160         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
86161         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
86162         (gl_PREREQ_STRTOK_R): Don't require it here.
86164 2007-05-13  Bruno Haible  <bruno@clisp.org>
86166         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
86167         when used in C++ mode.
86169 2007-05-12  Bruno Haible  <bruno@clisp.org>
86171         * lib/linebuffer.h: Tweak doc.
86172         * lib/linebuffer.c: Likewise.
86174 2007-05-12  James Youngman  <jay@gnu.org>
86176         * lib/linebuffer.c (readlinebuffer_delim): New function,
86177         like readlinebuffer, but use a caller-specified delimiter.
86178         (readlinebuffer): Just call readlinebuffer_delim with '\n'
86179         as the delimiter.
86180         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
86182 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
86184         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
86185         * modules/openat (Files): Remove openat-die.c.
86186         (Depends-on): Add openat-die.
86187         * modules/openat-die: New module.
86189 2007-05-06  Bruno Haible  <bruno@clisp.org>
86191         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
86192         Update with info about Cygwin.
86193         * doc/functions/fprintf.texi: Update.
86194         * doc/functions/printf.texi: Update.
86195         * doc/functions/snprintf.texi: Update.
86196         * doc/functions/sprintf.texi: Update.
86197         * doc/functions/vfprintf.texi: Update.
86198         * doc/functions/vprintf.texi: Update.
86199         * doc/functions/vsnprintf.texi: Update.
86200         * doc/functions/vsprintf.texi: Update.
86201         Reported by Eric Blake.
86203 2007-05-06  Bruno Haible  <bruno@clisp.org>
86205         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
86206         padding ourselves for the floating-point directives.
86207         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
86208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
86209         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86210         gl_PRINTF_FLAG_ZERO and test its result. Invoke
86211         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
86212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86213         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
86214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86219         * tests/test-snprintf-posix.h (test_function): Also check the width
86220         and some flags in the %f directive.
86221         * tests/test-sprintf-posix.h (test_function): Likewise.
86222         * tests/test-vasnprintf-posix.c (test_function): Likewise.
86223         * tests/test-vasprintf-posix.c (test_function): Likewise.
86224         * doc/functions/fprintf.texi: Update.
86225         * doc/functions/printf.texi: Update.
86226         * doc/functions/snprintf.texi: Update.
86227         * doc/functions/sprintf.texi: Update.
86228         * doc/functions/vfprintf.texi: Update.
86229         * doc/functions/vprintf.texi: Update.
86230         * doc/functions/vsnprintf.texi: Update.
86231         * doc/functions/vsprintf.texi: Update.
86233 2007-05-06  Bruno Haible  <bruno@clisp.org>
86235         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
86236         pass the ' flag character to sprintf or snprintf.
86237         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
86238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
86239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86240         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
86241         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
86242         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86243         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
86244         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86245         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86246         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86248         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86249         * tests/test-snprintf-posix.h (test_function): Also check the grouping
86250         flag.
86251         * tests/test-sprintf-posix.h (test_function): Likewise.
86252         * tests/test-vasnprintf-posix.c (test_function): Likewise.
86253         * tests/test-vasprintf-posix.c (test_function): Likewise.
86254         * doc/functions/fprintf.texi: Update.
86255         * doc/functions/printf.texi: Update.
86256         * doc/functions/snprintf.texi: Update.
86257         * doc/functions/sprintf.texi: Update.
86258         * doc/functions/vfprintf.texi: Update.
86259         * doc/functions/vprintf.texi: Update.
86260         * doc/functions/vsnprintf.texi: Update.
86261         * doc/functions/vsprintf.texi: Update.
86263 2007-05-01  Bruno Haible  <bruno@clisp.org>
86265         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
86267 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
86269         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
86270         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
86272 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
86274         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
86275         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
86276         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
86278 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
86280         * lib/argp-help.c (struct hol_entry): New member `ord'.
86281         (HOL_ENTRY_PTRCMP): Use ord for comparison
86282         (hol_sort): Initialize ord.
86284 2007-05-01  Bruno Haible  <bruno@clisp.org>
86286         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
86287         Reported by Eric Blake.
86288         * doc/gnulib.texi (Function Substitutes): Update.
86290 2007-05-01  Bruno Haible  <bruno@clisp.org>
86292         * doc/functions.texi: Remove file, now redundant through
86293         doc/functions/*.texi.
86295 2007-05-01  Bruno Haible  <bruno@clisp.org>
86297         * modules/argp (Depends-on): Add sleep.
86299 2007-05-01  Bruno Haible  <bruno@clisp.org>
86301         * modules/sleep-tests: New file.
86302         * tests/test-sleep.c: New file.
86304         * modules/sleep: New file.
86305         * lib/sleep.c: New file.
86306         * m4/sleep.m4: New file.
86307         * lib/unistd_.h (sleep): New declaration.
86308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
86309         HAVE_SLEEP.
86310         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
86311         * doc/functions/sleep.texi: Document the sleep module.
86313 2007-05-01  Bruno Haible  <bruno@clisp.org>
86315         * lib/sigprocmask.h: Remove file.
86316         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
86317         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
86318         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
86319         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
86320         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
86321         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
86322         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
86323         HAVE_SIGSET_T as a shell variable.
86324         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
86325         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
86326         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
86327         (Depends-on): Add signal. Remove verify.
86328         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
86329         (Include): Mention <signal.h> instead of sigprocmask.h.
86330         * NEWS: Mention the change.
86331         * lib/fatal-signal.c: Don't include sigprocmask.h.
86333 2007-05-01  Bruno Haible  <bruno@clisp.org>
86335         * modules/signal: New file.
86336         * lib/signal_.h: New file.
86337         * m4/signal_h.m4: New file.
86339 2007-05-01  Bruno Haible  <bruno@clisp.org>
86341         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
86342         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
86343         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
86344         HAVE_WCTYPE_CTMP_BUG into wctype.h.
86346 2007-05-01  Bruno Haible  <bruno@clisp.org>
86348         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
86349         configure time.
86350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
86351         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
86352         * modules/sys_stat (Makefile.am): Substitute their values into
86353         sys/stat.h.
86355 2007-05-01  Bruno Haible  <bruno@clisp.org>
86357         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
86358         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
86359         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
86361 2007-05-01  Bruno Haible  <bruno@clisp.org>
86363         * doc/header/assert.texi: Undo last change: don't mention the gnulib
86364         'assert' module here.
86366 2007-05-01  Bruno Haible  <bruno@clisp.org>
86368         * doc/functions/*.texi: New files.
86369         * doc/functions/google-ranking.txt: New file.
86370         * doc/gnulib.texi (Function Substitutes): New chapter.
86371         (ctime, inet_ntoa): Remove sections.
86372         * doc/ctime.texi: Remove file.
86373         * doc/inet_ntoa.texi: Remove file.
86374         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
86375         dependencies.
86376         (%.info): New rule, specifying a --reference-limit.
86378 2007-05-01  Bruno Haible  <bruno@clisp.org>
86380         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
86382 2007-05-01  Bruno Haible  <bruno@clisp.org>
86384         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
86385         the portability of 'mkdir' to mingw systems.
86387 2007-05-01  Bruno Haible  <bruno@clisp.org>
86389         * doc/headers/google-ranking.txt: New file.
86391 2007-04-30  Eric Blake  <ebb9@byu.net>
86393         Prefer fseeko to fseek.
86394         * modules/getpass (Depends-on): Add fseeko.
86395         * lib/getpass.c (getpass): Use fseeko, not fseek.
86397 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
86399         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
86400         assumes the sorting is stable, while most qsort implementations
86401         are not.  Use argument addresses to ensure they never compare as
86402         equal.
86404         * tests/test-argp-2.sh (usage-indent test): Fix output
86405         (func_compare): Restore diff options
86406         * tests/test-argp.c: Restore #include "progname.h"
86408 2007-04-29  Bruno Haible  <bruno@clisp.org>
86410         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
86411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86412         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
86413         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86414         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
86415         (configure.ac): Define CHECK_SNPRINTF_POSIX.
86416         (TESTS, check_PROGRAMS): Add test-snprintf.
86417         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
86418         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
86419         (TESTS, check_PROGRAMS): Add test-vsnprintf.
86420         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
86421         assertions that fail on HP-UX, OSF/1, or IRIX.
86422         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
86424 2007-04-29  Bruno Haible  <bruno@clisp.org>
86426         * MODULES.html.sh (posix_functions): Remove 'contents'.
86428 2007-04-29  Karl Berry  <karl@gnu.org>
86430         * config/srclist.txt (gendocs_template_min): new entry.
86432 2007-04-29  Bruno Haible  <bruno@clisp.org>
86434         Work around fpurge bug on BSD systems.
86435         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
86436         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
86437         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
86438         fpurge to rpl_fpurge if the system already has this function.
86439         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
86440         the case where the system already has this function. Correct invariants
86441         on BSD systems.
86442         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
86443         BSD systems.
86445 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
86447         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
86448         proposed by Sven Verdoolaege.
86450         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
86451         options.
86452         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
86453         (usage and help tests): Update
86455 2007-04-29  Bruno Haible  <bruno@clisp.org>
86457         * tests/test-fflush.c (main): Use a file of size 17, not 10.
86458         Print more information in case of failure. Disable a test on BeOS.
86460 2007-04-29  Bruno Haible  <bruno@clisp.org>
86462         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
86463         This helps debugging on systems on which no gdb is available.
86465 2007-04-29  Bruno Haible  <bruno@clisp.org>
86467         * lib/freading.h: Improve comments.
86468         * lib/fwriting.h: Likewise.
86469         * tests/test-freading.c (main): Don't check freading immediately after
86470         repositioning. Needed for glibc.
86472 2007-04-29  Bruno Haible  <bruno@clisp.org>
86474         * lib/freading.c (freading): Trivial simplification.
86476 2007-04-28  Bruno Haible  <bruno@clisp.org>
86478         * tests/test-fwriting.c (main): Also test the interaction between
86479         fflush and fwriting.
86480         * modules/fwriting-tests (Depends-on): Add fflush.
86482         * tests/test-freading.c (main): Also test the interaction between
86483         fflush and freading.
86484         * modules/freading-tests (Depends-on): Add fflush.
86486 2007-04-28  Bruno Haible  <bruno@clisp.org>
86488         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
86489         fseeko and ftello.
86490         Suggested by Eric Blake.
86492 2007-04-28  Jim Meyering  <jim@meyering.net>
86494         Avoid false-negative in gl_STDINT_H's C99 conformance test.
86495         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
86496         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
86498 2007-04-27  Eric Blake  <ebb9@byu.net>
86500         * doc/headers/assert.texi (assert.h): Document assert module use.
86502 2007-04-27  Bruno Haible  <bruno@clisp.org>
86504         * doc/headers/*.texi: New files.
86505         * doc/gnulib.texi (Header File Substitutes): New chapter.
86506         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
86507         dependencies.
86508         (standards.info ,standards.html, standards.dvi): Update dependencies.
86509         (mostlyclean, clean): New targets.
86511 2007-04-27  Bruno Haible  <bruno@clisp.org>
86513         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
86514         * modules/sysexits (Files, Makefile.am): Update.
86516         * lib/sys_socket_.h: Renamed from lib/socket_.h.
86517         * modules/sys_socket (Files, Makefile.am): Update.
86519         * lib/sys_stat_.h: Renamed from lib/stat_.h.
86520         * modules/sys_stat (Files, Makefile.am): Update.
86522 2007-04-27  Eric Blake  <ebb9@byu.net>
86524         * lib/freading.h: Improve comments.
86525         * lib/fwriting.h: Likewise.
86526         * lib/fflush.c: Likewise.
86528         Fix closein for mingw.
86529         * modules/closein-tests: Add tests for closein.
86530         * tests/test-closein.c: New file.
86531         * tests/test-closein.sh: Likewise.
86532         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
86533         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
86535 2007-04-27  Bruno Haible  <bruno@clisp.org>
86537         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
86538         version is < 6.
86539         * lib/math_.h [__DECC]: Likewise.
86540         * lib/stdio_.h [__DECC]: Likewise.
86541         * lib/stdlib_.h [__DECC]: Likewise.
86542         * lib/string_.h [__DECC]: Likewise.
86543         * lib/time_.h [__DECC]: Likewise.
86544         * lib/wchar_.h [__DECC]: Likewise.
86545         * lib/wctype_.h [__DECC]: Likewise.
86547 2007-04-27  Bruno Haible  <bruno@clisp.org>
86549         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
86551 2007-04-27  Bruno Haible  <bruno@clisp.org>
86553         * lib/fflush.c: Add comments.
86554         * modules/fpurge-tests (Depends-on): Add fflush.
86555         * modules/freadable-tests (Depends-on): Likewise.
86556         * modules/fwritable-tests (Depends-on): Likewise.
86558 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
86560         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
86561         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
86562         Report by Bruno Haible <bruno@clisp.org>.
86564 2007-04-26  Eric Blake  <ebb9@byu.net>
86566         Fix fflush on mingw.
86567         * modules/fflush (Depends-on): Add freading.
86568         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
86569         but unread data.
86571 2007-04-26  Eric Blake  <ebb9@byu.net>
86572         and Bruno Haible  <bruno@clisp.org>
86574         Implement freading and fwriting.
86575         * lib/freading.c: New file.
86576         * lib/freading.h: Likewise.
86577         * m4/freading.m4: Likewise.
86578         * modules/freading: Likewise.
86579         * modules/freading-tests: Likewise.
86580         * tests/test-freading.c: Likewise.
86581         * lib/fwriting.c: New file.
86582         * lib/fwriting.h: Likewise.
86583         * m4/fwriting.m4: Likewise.
86584         * modules/fwriting: Likewise.
86585         * modules/fwriting-tests: Likewise.
86586         * tests/test-fwriting.c: Likewise.
86587         * MODULES.html.sh (File stream based Input/Output): Mention them.
86589 2007-04-26  Bruno Haible  <bruno@clisp.org>
86591         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
86592         'long' when we assume it.
86593         Suggested by Eric Blake.
86595 2007-04-26  Bruno Haible  <bruno@clisp.org>
86597         Ensure fseeko, ftello are declared on glibc systems.
86598         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
86599         * modules/fseeko (configure.ac-early): Likewise.
86600         * modules/ftello (configure.ac-early): Likewise.
86601         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
86602         AC_FUNC_FSEEKO for this.
86603         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
86604         (gl_CHECK_FSEEKO): Remove macro.
86606 2007-04-26  Bruno Haible  <bruno@clisp.org>
86608         * tests/test-fflush.c (main): Also check the ftell result after
86609         fflush and fseek/fseeko.
86610         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
86611         file descriptor position cache in the stream.
86612         * lib/fseeko.c (rpl_fseeko): Likewise.
86614 2007-04-26  Bruno Haible  <bruno@clisp.org>
86616         * modules/fflush-tests (Depends-on): Add fseeko.
86618 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
86619             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86621         * lib/argz_.h: ensure error_t definition is obtained in same
86622         mechanism system argz.h would have.
86623         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
86624         argz facilities are known bad.  Err on the side of caution if
86625         cross-compiling.
86627 2007-04-25  Eric Blake  <ebb9@byu.net>
86629         * lib/fpurge.c (includes): Use stdlib.h for free.
86630         * tests/test-fflush.c (main): Also test fflush-fseeko.
86632 2007-04-25  Bruno Haible  <bruno@clisp.org>
86634         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
86635         * lib/fseeko.c: New file.
86636         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
86637         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
86638         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
86639         gl_FUNC_FSEEKO.
86640         (gl_FUNC_FSEEKO): Invoke it.
86641         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
86642         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
86643         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
86645 2007-04-25  Bruno Haible  <bruno@clisp.org>
86647         * modules/fflush (Depends-on): Add ftello.
86649 2007-04-25  Bruno Haible  <bruno@clisp.org>
86651         * modules/ftello-tests: New file.
86652         * tests/test-ftello.c: New file.
86654         * modules/ftello: New file.
86655         * m4/ftello.m4: New file.
86656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
86657         HAVE_FTELLO.
86658         * lib/stdio_.h (ftello): New declaration.
86659         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
86660         HAVE_FTELLO.
86662 2007-04-25  Bruno Haible  <bruno@clisp.org>
86664         * modules/fseeko-tests: New file.
86665         * tests/test-fseeko.c: New file.
86667         * modules/fseeko: New file.
86668         * m4/fseeko.m4: New file.
86669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
86670         HAVE_FSEEKO.
86671         * lib/stdio_.h (fseeko): New declaration.
86672         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
86673         HAVE_FSEEKO.
86675 2007-04-25  Bruno Haible  <bruno@clisp.org>
86677         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
86679 2007-04-25  Bruno Haible  <bruno@clisp.org>
86681         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
86682         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
86683         * tests/test-unistd.c: Likewise.
86684         * tests/test-fcntl.c: Likewise.
86686 2007-04-23  Eric Blake  <ebb9@byu.net>
86688         * lib/fflush.c: Fix missing include.
86689         Reported by Bruno Haible.
86691 2007-04-23  Bruno Haible  <bruno@clisp.org>
86693         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
86694         Reported by Eric Blake.
86696 2007-04-23  Bruno Haible  <bruno@clisp.org>
86698         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
86700 2007-04-23  Bruno Haible  <bruno@clisp.org>
86702         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
86704 2007-04-23  Bruno Haible  <bruno@clisp.org>
86706         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
86707         Needed on HP-UX 11.
86709 2007-04-16  Eric Blake  <ebb9@byu.net>
86711         Make fflush rely on fpurge.
86712         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
86713         open coding all variants.
86714         * modules/fflush (Depends-on): Add fpurge and unistd.
86715         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
86716         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
86718         Fix --with-tests compilation on cygwin.
86719         * modules/argmatch-tests (Makefile.am): List gnulib library first
86720         in LDADD.
86721         * modules/argp-tests (Makefile.am): Likewise.
86722         * modules/array-list-tests (Makefile.am): Likewise.
86723         * modules/array-oset-tests (Makefile.am): Likewise.
86724         * modules/avltree-list-tests (Makefile.am): Likewise.
86725         * modules/avltree-oset-tests (Makefile.am): Likewise.
86726         * modules/avltreehash-list-tests (Makefile.am): Likewise.
86727         * modules/carray-list-tests (Makefile.am): Likewise.
86728         * modules/dirname-tests (Makefile.am): Likewise.
86729         * modules/frexp-tests (Makefile.am): Likewise.
86730         * modules/isnanl-tests (Makefile.am): Likewise.
86731         * modules/linked-list-tests (Makefile.am): Likewise.
86732         * modules/linkedhash-list-tests (Makefile.am): Likewise.
86733         * modules/lock-tests (Makefile.am): Likewise.
86734         * modules/rbtree-list-tests (Makefile.am): Likewise.
86735         * modules/rbtree-oset-tests (Makefile.am): Likewise.
86736         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
86737         * modules/tls-tests (Makefile.am): Likewise.
86738         * modules/tsearch-tests (Makefile.am): Likewise.
86739         * modules/xvasprintf-tests (Makefile.am): Likewise.
86741         Fix fpurge for cygwin.
86742         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
86743         value.
86744         * modules/fpurge-tests (Depends-on): Clean up trash.
86746 2007-04-16  Simon Josefsson  <simon@josefsson.org>
86748         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
86750         * m4/autobuild.m4: Re-indent.
86752 2007-04-13  Bruno Haible  <bruno@clisp.org>
86754         * modules/fpurge-tests: New file.
86755         * tests/test-fpurge.c: New file.
86757         * modules/fpurge: New file.
86758         * lib/fpurge.h: New file.
86759         * lib/fpurge.c: New file.
86760         * m4/fpurge.m4: New file.
86762 2007-04-13  Bruno Haible  <bruno@clisp.org>
86764         * modules/fbufmode-tests: New file.
86765         * tests/test-fbufmode.c: New file.
86767         * modules/fbufmode: New file.
86768         * lib/fbufmode.h: New file.
86769         * lib/fbufmode.c: New file.
86770         * m4/fbufmode.m4: New file.
86772 2007-04-13  Bruno Haible  <bruno@clisp.org>
86774         * modules/fwritable-tests: New file.
86775         * tests/test-fwritable.c: New file.
86777         * modules/fwritable: New file.
86778         * lib/fwritable.h: New file.
86779         * lib/fwritable.c: New file.
86780         * m4/fwritable.m4: New file.
86782 2007-04-13  Bruno Haible  <bruno@clisp.org>
86784         * modules/freadable-tests: New file.
86785         * tests/test-freadable.c: New file.
86787         * modules/freadable: New file.
86788         * lib/freadable.h: New file.
86789         * lib/freadable.c: New file.
86790         * m4/freadable.m4: New file.
86792 2007-04-13  Bruno Haible  <bruno@clisp.org>
86794         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
86795         MOSTLYCLEANFILES.
86797 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86799         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
86800         gzip bootstrap.conf to avoid dragging in i18n machinery.
86801         (gnulib_tool_option): Use it.
86803 2007-04-13  Bruno Haible  <bruno@clisp.org>
86805         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
86806         %F directives.
86807         * tests/test-vasprintf-posix.c (test_function): Likewise.
86808         * tests/test-snprintf-posix.h (test_function): Likewise.
86809         * tests/test-sprintf-posix.h (test_function): Likewise.
86810         * tests/test-fprintf-posix.h (test_function): Likewise.
86811         * tests/test-printf-posix.h (test_function): Likewise.
86812         * tests/test-fprintf-posix.out: Likewise.
86814 2007-04-13  Bruno Haible  <bruno@clisp.org>
86816         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
86817         * modules/tls-tests (configure.ac): Likewise.
86818         Reported by Arto C. Nirkko <anirkko@insel.ch>.
86820 2007-04-13  Bruno Haible  <bruno@clisp.org>
86822         * lib/tls.c (glthread_tls_get): Fix return type.
86823         Patch by Arto C. Nirkko <anirkko@insel.ch>.
86825 2007-04-12  Eric Blake  <ebb9@byu.net>
86827         * modules/gettime (Depends-on): Remove gettime.
86828         Reported by Dmitry V. Levin.
86830 2007-04-12  Bruno Haible  <bruno@clisp.org>
86832         * modules/fflush (Include): Mention <stdio.h>.
86833         * modules/strtoimax (Include): Mention <inttypes.h>.
86834         * modules/strtoumax (Include): Likewise.
86836 2007-04-12  Eric Blake  <ebb9@byu.net>
86838         * .cvsignore: New file.
86839         * .gitignore: Likewise.
86841 2007-04-12  Bruno Haible  <bruno@clisp.org>
86843         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
86844         not before, since $(LDADD) often contains libgnu.a.
86845         * modules/striconv-tests (test_striconv_LDADD): Likewise.
86846         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
86847         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
86848         Needed on Cygwin.
86850 2007-04-12  Eric Blake  <ebb9@byu.net>
86852         Work around glibc's failure to flush stdin on fclose.
86853         * lib/closein.c (close_stdin): Flush stdin before closing.
86855         Work around glibc's failure to reset seekable stdin on exit.
86856         * modules/closein: New module.
86857         * lib/closein.c: New file.
86858         * lib/closein.h: Likewise.
86859         * m4/closein.m4: Likewise.
86860         * MODULES.html.sh (File stream based Input/Output): Document it.
86862 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86864         * gnulib-tool: Rename generated 'autobuild' script to
86865         'do-autobuild' in --create-megatestdir output.
86867         * doc/gnulib.texi (Build robot for gnulib): Fix.
86869 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86871         * modules/sysexits (Depends-on): Add absolute-header.
86873 2007-04-12  Eric Blake  <ebb9@byu.net>
86875         No need to preserve errno on success.
86876         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
86877         Reported by Bruno Haible.
86879 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86881         * MODULES.html.sh (Support for maintaining and releasing
86882         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
86884 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86886         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
86888 2007-04-12  Simon Josefsson  <simon@josefsson.org>
86890         * modules/autobuild: New module.
86892         * m4/autobuild.m4: New file.
86894 2007-04-11  Bruno Haible  <bruno@clisp.org>
86896         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
86897         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
86898         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
86899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
86900         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86901         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86902         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86904         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86905         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86906         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
86907         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86908         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
86910         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86911         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
86913         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86914         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86915         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
86916         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86917         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
86919         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86920         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86921         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
86922         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
86923         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
86924         Reported by Eric Blake.
86926 2007-04-11  Bruno Haible  <bruno@clisp.org>
86928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
86930 2007-04-10  Bruno Haible  <bruno@clisp.org>
86932         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
86933         for NaN and Infinity. Needed on FreeBSD 6.1.
86934         * tests/test-vasnprintf-posix.c (test_function): Undo last change
86935         regarding results for "%010a" of Infinity and NaN.
86936         * tests/test-vasprintf-posix.c (test_function): Likewise.
86937         * tests/test-snprintf-posix.h (test_function): Likewise.
86938         * tests/test-sprintf-posix.h (test_function): Likewise.
86939         * tests/test-fprintf-posix.h (test_function): Likewise.
86940         * tests/test-printf-posix.h (test_function): Likewise.
86941         * tests/test-fprintf-posix.out: Likewise.
86943 2007-04-10  Bruno Haible  <bruno@clisp.org>
86945         * modules/locale-tests: New file.
86946         * tests/test-locale.c: New file.
86948         * modules/locale: New file.
86949         * lib/locale_.h: New file.
86950         * m4/locale_h.m4: New file.
86952 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
86953             Bruno Haible  <bruno@clisp.org>
86955         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
86956         be determined, test for availability of the copysignf, copysign,
86957         copysignl functions.
86958         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
86959         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
86960         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
86962 2007-04-09  Eric Blake  <ebb9@byu.net>
86964         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
86965         * modules/stdio (Makefile.am): Support fflush.
86966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
86967         * modules/fflush: New file.
86968         * lib/fflush.c: Likewise.
86969         * m4/fflush.m4: Likewise.
86970         * modules/fflush-tests: New test.
86971         * tests/test-fflush.c: Likewise.
86972         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
86974 2007-04-06  Bruno Haible  <bruno@clisp.org>
86976         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
86977         (VASNPRINTF): Use signbit for faster determination whether to print a
86978         minus sign.
86979         * modules/vasnprintf (Files): Remove lib/float+.h.
86980         * modules/fprintf-posix (Depends-on): Add signbit.
86981         * modules/snprintf-posix (Depends-on): Likewise.
86982         * modules/sprintf-posix (Depends-on): Likewise.
86983         * modules/vasnprintf-posix (Depends-on): Likewise.
86984         * modules/vasprintf-posix (Depends-on): Likewise.
86985         * modules/vfprintf-posix (Depends-on): Likewise.
86986         * modules/vsnprintf-posix (Depends-on): Likewise.
86987         * modules/vsprintf-posix (Depends-on): Likewise.
86989 2007-04-06  Bruno Haible  <bruno@clisp.org>
86991         * tests/test-frexp.c (main): Test also the sign bit of zero results.
86992         * tests/test-frexpl.c (main): Likewise.
86993         * tests/test-ldexpl.c (main): Likewise.
86994         * modules/frexp-tests (Depends-on): Add signbit.
86995         * modules/frexpl-tests (Depdends-on): Likewise.
86996         * modules/ldexpl-tests (Depdends-on): Likewise.
86998 2007-04-06  Bruno Haible  <bruno@clisp.org>
87000         * modules/signbit-tests: New file.
87001         * tests/test-signbit.c: New file.
87003         * modules/signbit: New file.
87004         * lib/signbitf.c: New file.
87005         * lib/signbitd.c: New file.
87006         * lib/signbitl.c: New file.
87007         * m4/signbit.m4: New file.
87008         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
87009         (signbit): New macro.
87010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
87011         REPLACE_SIGNBIT.
87012         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
87013         REPLACE_FREXPL into math.h.
87015 2007-04-06  Bruno Haible  <bruno@clisp.org>
87017         * modules/isnanf-nolibm-tests: New file.
87018         * tests/test-isnanf.c: New file.
87020         * modules/isnanf-nolibm: New file.
87021         * lib/isnanf.h: New file.
87022         * lib/isnanf.c: New file.
87023         * lib/isnan.c: Consider the USE_FLOAT macro.
87024         * m4/isnanf.m4: New file.
87026 2007-04-06  Bruno Haible  <bruno@clisp.org>
87028         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
87029         (Link): New section.
87031         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
87033 2007-04-06  Bruno Haible  <bruno@clisp.org>
87035         Assume the 'long double' type.
87036         * m4/longdouble.m4: Remove file.
87037         * config/srclist.txt: Don't mention longdouble.m4.
87038         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
87039         * lib/float+.h: Likewise.
87040         * lib/frexp.c: Likewise.
87041         * lib/printf-args.h: Likewise.
87042         * lib/printf-args.c: Likewise.
87043         * lib/printf-frexp.c: Likewise.
87044         * lib/printf-parse.c: Likewise.
87045         * lib/vasnprintf.c: Likewise.
87046         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
87047         * m4/intl.m4: Likewise.
87048         * m4/isnanl.m4: Likewise.
87049         * m4/printf.m4: Likewise.
87050         * m4/printf-frexpl.m4: Likewise.
87051         * m4/vasnprintf.m4: Likewise.
87052         * modules/allocsa (Files): Remove m4/longdouble.m4.
87053         * modules/gettext (Files): Likewise.
87054         * modules/relocatable-prog-wrapper (Files): Likewise.
87055         * modules/vasnprintf (Files): Likewise.
87056         * modules/isnanl (Files): Likewise.
87057         (Include): Simplify.
87058         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
87059         (Include): Simplify.
87060         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
87061         (Include): Simplify.
87062         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
87063         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87064         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
87065         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87066         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
87067         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87068         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
87069         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87070         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
87071         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87072         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
87073         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87074         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
87075         * tests/test-isnanl.c: Likewise.
87076         * tests/test-snprintf-posix.h: Likewise.
87077         * tests/test-sprintf-posix.h: Likewise.
87078         * tests/test-vasnprintf-posix.c: Likewise.
87079         * tests/test-vasnprintf-posix2.c: Likewise.
87080         * tests/test-vasprintf-posix.c: Likewise.
87082 2007-04-06  Bruno Haible  <bruno@clisp.org>
87084         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
87085         * lib/math_.h [__DECC]: Include the overridden include file through
87086         #include_next, outside the double-inclusion guard.
87087         * lib/stdio_.h [__DECC]: Likewise.
87088         * lib/stdlib_.h [__DECC]: Likewise.
87089         * lib/string_.h [__DECC]: Likewise.
87090         * lib/time_.h [__DECC]: Likewise.
87091         * lib/wchar_.h [__DECC]: Likewise.
87092         * lib/wctype_.h [__DECC]: Likewise.
87093         * lib/inttypes_.h [__DECC]: Likewise.
87094         Reported by Albert Chin <china@thewrittenword.com> in
87095         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
87097 2007-04-04  Eric Blake  <ebb9@byu.net>
87099         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
87100         1.5.x.
87102 2007-04-04  Bruno Haible  <bruno@clisp.org>
87104         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
87105         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
87107 2007-04-04  Bruno Haible  <bruno@clisp.org>
87109         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
87110         results for "%010a" of Infinity and NaN.
87111         * tests/test-vasprintf-posix.c (test_function): Likewise.
87112         * tests/test-snprintf-posix.h (test_function): Likewise.
87113         * tests/test-sprintf-posix.h (test_function): Likewise.
87114         * tests/test-fprintf-posix.h (test_function): Remove these tests.
87115         * tests/test-printf-posix.h (test_function): Likewise.
87116         * tests/test-fprintf-posix.out: Update.
87117         Needed for FreeBSD 6.1.
87119 2007-04-04  Bruno Haible  <bruno@clisp.org>
87121         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
87122         directly used by the gnulib modules nor by gnulib-tool.
87124 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87126         * DEPENDENCIES: Give overall description of version dependency
87127         desirability.  Use more-typical names for apps.
87128         Add shell, coreutils, diffutils, grep, tar, gzip.
87130 2007-04-04  Simon Josefsson  <simon@josefsson.org>
87132         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
87134 2007-04-04  Karl Berry  <karl@gnu.org>
87136         * MODULES.html.sh (func_module): missing '.
87138 2007-04-03  Bruno Haible  <bruno@clisp.org>
87140         * modules/argmatch-tests (Makefile.am): New variable
87141         test_argmatch_LDADD.
87142         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
87143         * modules/array-list-tests (Makefile.am): New variable
87144         test_array_list_LDADD.
87145         * modules/array-oset-tests (Makefile.am): New variable
87146         test_array_oset_LDADD.
87147         * modules/avltree-list-tests (Makefile.am): New variable
87148         test_avltree_list_LDADD.
87149         * modules/avltree-oset-tests (Makefile.am): New variable
87150         test_avltree_oset_LDADD.
87151         * modules/avltreehash-list-tests (Makefile.am): New variable
87152         test_avltreehash_list_LDADD.
87153         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
87154         test_canonicalize_lgpl_LDADD.
87155         * modules/carray-list-tests (Makefile.am): New variable
87156         test_carray_list_LDADD.
87157         * modules/dirname-tests (Makefile.am): New variable
87158         test_dirname_LDADD.
87159         * modules/linked-list-tests (Makefile.am): New variable
87160         test_linked_list_LDADD.
87161         * modules/linkedhash-list-tests (Makefile.am): New variable
87162         test_linkedhash_list_LDADD.
87163         * modules/rbtree-list-tests (Makefile.am): New variable
87164         test_rbtree_list_LDADD.
87165         * modules/rbtree-oset-tests (Makefile.am): New variable
87166         test_rbtree_oset_LDADD.
87167         * modules/rbtreehash-list-tests (Makefile.am): New variable
87168         test_rbtreehash_list_LDADD.
87169         * modules/xvasprintf-tests (Makefile.am): New variable
87170         test_xvasprintf_LDADD.
87171         Reported by Eric Blake.
87173 2007-04-03  Eric Blake  <ebb9@byu.net>
87175         * DEPENDENCIES: Weaken m4 requirements.
87177 2007-04-03  Bruno Haible  <bruno@clisp.org>
87179         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
87180         * modules/isnanl-tests (configure.ac): Likewise.
87182 2007-04-03  Ben Pfaff  <blp@gnu.org>
87184         * modules/iconv_open: Add $(srcdir)/ to source directory
87185         references in Makefile fragments that call gperf, to fix VPATH
87186         builds.
87188 2007-04-03  Bruno Haible  <bruno@clisp.org>
87190         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
87191         * lib/ldexpl.c: Undo last change.
87193 2007-04-03  Bruno Haible  <bruno@clisp.org>
87195         * modules/printf-frexpl (Depends-on): Undo last change.
87196         (Files): Add m4/ldexpl.m4.
87198 2007-04-03  Bruno Haible  <bruno@clisp.org>
87200         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
87201         * modules/isnanl (Link): New section.
87203         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
87204         * modules/frexp (Link): New section.
87206         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
87207         * modules/frexpl (Link): New section.
87209         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
87210         * modules/ldexpl (Link): New section.
87212 2007-04-03  Bruno Haible  <bruno@clisp.org>
87214         * modules/TEMPLATE-EXTENDED: New file.
87215         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
87217 2007-04-03  Bruno Haible  <bruno@clisp.org>
87219         * DEPENDENCIES: New file.
87220         Suggested by Simon Josefsson.
87222 2007-04-03  Bruno Haible  <bruno@clisp.org>
87224         * doc/gnulib.texi: Escape @.
87226 2007-04-03  James Youngman  <jay@gnu.org>
87227         and Paul Eggert  <eggert@cs.ucla.edu>
87229         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
87230         birthtime on all systems that have birthtime, not just those which
87231         use st_birthtimensec rather than st_birthtim.  Putting zero in
87232         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
87233         that the birth time is not available for files on an NFS mount.
87235 2007-04-03  Simon Josefsson  <simon@josefsson.org>
87237         * modules/memxor: Move back from crypto/, suggested by Bruno.
87238         * modules/crypto/hmac-sha1: Fix memxor dependency.
87240         * modules/crypto/gc: Moved from ../.
87242 2007-04-02  Eric Blake  <ebb9@byu.net>
87244         * lib/ldexpl.c (includes): Avoid libm.
87246         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
87248 2007-04-02  Bruno Haible  <bruno@clisp.org>
87250         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
87251         on IRIX.
87253 2007-04-02  Bruno Haible  <bruno@clisp.org>
87255         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
87256         x86 or x86_64 platforms running MacOS X.
87257         Reported by Ryan Schmidt <@ryandesign.com>.
87259 2007-04-02  Bruno Haible  <bruno@clisp.org>
87261         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
87262         i386.
87264 2007-04-01  Simon Josefsson  <simon@josefsson.org>
87266         * modules/crypto/arcfour: Moved from ../.
87267         * modules/crypto/arcfour-tests: Moved from ../.
87268         * modules/crypto/arctwo: Moved from ../.
87269         * modules/crypto/arctwo-tests: Moved from ../.
87270         * modules/crypto/des: Moved from ../.
87271         * modules/crypto/des-tests: Moved from ../.
87272         * modules/crypto/gc-arcfour: Moved from ../.
87273         * modules/crypto/gc-arcfour-tests: Moved from ../.
87274         * modules/crypto/gc-arctwo: Moved from ../.
87275         * modules/crypto/gc-arctwo-tests: Moved from ../.
87276         * modules/crypto/gc-des: Moved from ../.
87277         * modules/crypto/gc-des-tests: Moved from ../.
87278         * modules/crypto/gc-hmac-md5: Moved from ../.
87279         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
87280         * modules/crypto/gc-hmac-sha1: Moved from ../.
87281         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
87282         * modules/crypto/gc-md2: Moved from ../.
87283         * modules/crypto/gc-md2-tests: Moved from ../.
87284         * modules/crypto/gc-md4: Moved from ../.
87285         * modules/crypto/gc-md4-tests: Moved from ../.
87286         * modules/crypto/gc-md5: Moved from ../.
87287         * modules/crypto/gc-md5-tests: Moved from ../.
87288         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
87289         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
87290         * modules/crypto/gc-random: Moved from ../.
87291         * modules/crypto/gc-rijndael: Moved from ../.
87292         * modules/crypto/gc-rijndael-tests: Moved from ../.
87293         * modules/crypto/gc-sha1: Moved from ../.
87294         * modules/crypto/gc-sha1-tests: Moved from ../.
87295         * modules/crypto/gc-tests: Moved from ../.
87296         * modules/crypto/hmac-md5: Moved from ../.
87297         * modules/crypto/hmac-md5-tests: Moved from ../.
87298         * modules/crypto/hmac-sha1: Moved from ../.
87299         * modules/crypto/hmac-sha1-tests: Moved from ../.
87300         * modules/crypto/md2: Moved from ../.
87301         * modules/crypto/md2-tests: Moved from ../.
87302         * modules/crypto/md4: Moved from ../.
87303         * modules/crypto/md4-tests: Moved from ../.
87304         * modules/crypto/md5: Moved from ../.
87305         * modules/crypto/md5-tests: Moved from ../.
87306         * modules/crypto/memxor: Moved from ../.
87307         * modules/crypto/rijndael: Moved from ../.
87308         * modules/crypto/rijndael-tests: Moved from ../.
87309         * modules/crypto/sha1: Moved from ../.
87311 2007-03-30  James Youngman  <jay@gnu.org>
87313         * tests/test-stat-time.c (prepare_test): use chmod() rather than
87314         rename() to change the ctime of a file (because ctime is unaffected
87315         by rename on jfs2 on AIX 5.1).
87316         (main): Start by doing cleanup, in case a previous run failed leaving
87317         test files behind.
87319 2007-03-31  Bruno Haible  <bruno@clisp.org>
87321         Support old proprietary implementations of iconv.
87322         * modules/iconv_open: New file.
87323         * lib/iconv_.h: New file.
87324         * m4/iconv_h.m4: New file.
87325         * lib/iconv_open.c: New file.
87326         * lib/iconv_open-aix.gperf: New file.
87327         * lib/iconv_open-hpux.gperf: New file.
87328         * lib/iconv_open-irix.gperf: New file.
87329         * lib/iconv_open-osf.gperf: New file.
87330         * m4/iconv_open.m4: New file.
87331         * modules/linebreak (Depends-on): Add iconv_open.
87332         * modules/striconv (Depends-on): Likewise.
87333         * modules/striconveh (Depends-on): Likewise.
87334         * modules/unicodeio (Depends-on): Likewise.
87335         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
87336         (iconv_t)(-1).
87337         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
87338         conversion if cd is (iconv_t)(-1).
87339         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
87340         is not possible.
87342 2007-03-31  Bruno Haible  <bruno@clisp.org>
87344         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87345         work on Solaris either. Protect also second use of "autodetect_jp".
87347 2007-03-31  Bruno Haible  <bruno@clisp.org>
87349         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
87350         the function is not present.
87352 2007-03-31  Bruno Haible  <bruno@clisp.org>
87354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
87355         the function is not present.
87357 2007-03-31  Bruno Haible  <bruno@clisp.org>
87359         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
87360         a bug in HP-UX iconv_open().
87362 2007-03-31  Bruno Haible  <bruno@clisp.org>
87364         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
87365         (Mathematics <math.h>): New section, add fpieee.
87366         (Input/output <stdio.h>): Add fseterr.
87367         (Mathematics <math.h>): New section, add printf-frexp.
87368         (Container data structures): Add sublist.
87369         (Core language properties): Add fpucw, inline.
87370         (Functions for greatest-width integer types <inttypes.h>): Add
87371         imaxabs, imaxdiv, inttypes.
87372         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
87373         isnanl-nolibm, ldexp.
87374         (Mathematics <math.h>): New section, add printf-frexpl.
87375         (Support for systems lacking POSIX:2001): Add fprintf-posix,
87376         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
87377         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
87378         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
87379         (Unicode string functions): Add unistr/u*-mbtoucr.
87380         (Java): Add javacomp-script, javaexec-script.
87381         (C#): Add csharpcomp-script, csharpexec-script.
87382         (Support for building libraries and executables): Add havelib,
87383         relocatable-*.
87384         (Support for maintaining and releasing projects): Renamed from
87385         'Support for maintaining and release projects'. Add announce-gen.
87387 2007-03-31  Bruno Haible  <bruno@clisp.org>
87389         * README: Talk primarily about git.
87390         (git and CVS): Renamed from CVS.
87391         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
87392         gnulib is available through git.
87393         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
87395 2007-03-30  Bruno Haible  <bruno@clisp.org>
87397         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
87398         * lib/poll_.h: Likewise.
87399         * lib/stat_.h: Likewise.
87400         * lib/sys_time_.h: Likewise.
87401         * lib/sysexit_.h: Likewise.
87402         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
87403         * lib/stdbool_.h: Likewise.
87404         * lib/byteswap_.h: Add double-inclusion guard.
87406 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
87408         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
87410 2007-03-30  Karl Berry  <karl@gnu.org>
87412         * config/srclist-update: double space after USA in the license
87413         substitution, since that's how it's usually (?) written.
87415 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
87417         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
87418         reported by Bruno Haible.
87420 2007-03-29  Bruno Haible  <bruno@clisp.org>
87422         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
87423         a bug in AIX iconv().
87425 2007-03-29  Bruno Haible  <bruno@clisp.org>
87427         * modules/ldexpl-tests: New file.
87428         * tests/test-ldexpl.c: New file.
87430 2007-03-29  Bruno Haible  <bruno@clisp.org>
87432         * lib/ldexpl.c: Include fpucw.h.
87433         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
87434         multiplication.
87435         * modules/ldexpl (Depends-on): Add fpucw.
87437 2007-03-29  Bruno Haible  <bruno@clisp.org>
87439         * modules/ldexpl: New file.
87440         * m4/ldexpl.m4: New file.
87441         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
87442         set.
87443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
87444         REPLACE_LDEXPL.
87445         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
87446         REPLACE_LDEXPL.
87447         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
87448         gl_FUNC_LDEXPL_WORKS.
87449         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
87450         * modules/mathl (Files): Remove lib/ldexpl.c.
87451         (Depends-on): Add ldexpl.
87453 2007-03-29  Bruno Haible  <bruno@clisp.org>
87455         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
87457 2007-03-29  Bruno Haible  <bruno@clisp.org>
87459         * tests/test-striconveh.c (main): Don't assume that a direct conversion
87460         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
87461         and possibly also HP-UX.
87462         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87463         work on AIX, IRIX, HP-UX, OSF/1.
87464         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
87465         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
87466         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
87467         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
87468         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
87469         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
87471 2007-03-29  Bruno Haible  <bruno@clisp.org>
87473         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
87475 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
87477         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
87478         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
87480 2007-03-29  Eric Blake  <ebb9@byu.net>
87482         * lib/acl-internal.h: Remove redundant include.
87483         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
87484         Cygwin when a file is locked.
87486 2007-03-29  Bruno Haible  <bruno@clisp.org>
87488         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
87489         file.
87490         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
87492 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
87494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
87495         try to remove a parent directory if the child couldn't be removed
87496         (except for the first rmdir, which could fail because the child
87497         doesn't exist).  Problem reported by Jeff Blaine in
87498         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
87500 2007-03-28  Bruno Haible  <bruno@clisp.org>
87502         * lib/striconveh.c (utf8conv_carefully): New function.
87503         (mem_cd_iconveh_internal): Invoke it.
87505 2007-03-28  Bruno Haible  <bruno@clisp.org>
87507         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
87508         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
87509         input.
87510         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
87511         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
87512         unistr/u8-uctomb.
87514 2007-03-28  Bruno Haible  <bruno@clisp.org>
87516         * modules/unistr/u8-mbtoucr: New file.
87517         * lib/unistr/u8-mbtoucr.c: New file.
87518         * modules/unistr/u16-mbtoucr: New file.
87519         * lib/unistr/u16-mbtoucr.c: New file.
87520         * modules/unistr/u16-mbtoucr: New file.
87521         * lib/unistr/u16-mbtoucr.c: New file.
87522         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
87524 2007-03-27  Simon Josefsson  <simon@josefsson.org>
87525             Bruno Haible  <bruno@clisp.org>
87527         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
87528         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
87529         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
87531         * m4/stdio_h.m4: Add stubs for vasprintf too.
87533         * modules/stdio: Support vasprintf in sed command.
87535         * modules/vasprintf: Depend on stdio for prototypes.  Remove
87536         vasprintf.h.  Add stdio module indicator.
87538         * lib/stdio_.h: Declare asprintf and vasprintf, based on
87539         vasprintf.h.
87541         * lib/vasprintf.h: File removed.
87543         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
87544         * lib/vasprintf.c: Ditto.
87545         * lib/xvasprintf.c: Ditto.
87546         * tests/test-vasprintf-posix.c: Ditto.
87547         * tests/test-vasprintf.c: Ditto.
87549 2007-03-27  Bruno Haible  <bruno@clisp.org>
87551         Make vasnprintf multithread-safe.
87552         * lib/vasnprintf.c (decimal_point_char): New function.
87553         (VASNPRINTF): Use it.
87554         Suggested by Simon Josefsson.
87556 2007-03-27  Eric Blake  <ebb9@byu.net>
87558         Support sub-second birthtime on cygwin.
87559         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
87560         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
87561         (get_stat_birthtime): Also work with st_birthtim.
87563 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
87565         * lib/stat-time.h (USE_BIRTHTIME): Remove.
87566         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
87567         (get_stat_birthtime_ns): Do not try to use "spare" fields.
87568         (get_stat_birthtime_ns): Simplify compile-time tests.
87569         (get_stat_birthtime): Change the API to look like
87570         get_stat_mtime etc., except return a negative tv_nsec on error.
87571         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
87572         Don't check for "spare" fields.
87573         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
87574         or for struct stat.st_birthtime, as these tests aren't used.
87575         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
87577 2007-03-27  Bruno Haible  <bruno@clisp.org>
87579         * lib/stat-time.h: Include <sys/stat.h>.
87581 2007-03-27  James Youngman  <jay@gnu.org>
87583         * lib/stat-time.h (get_stat_birthtime): New function for
87584           retrieving st_birthtime as provided by UFS2 (hence *BSD).
87585         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
87586           and its variants.
87587         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
87588         * modules/stat-time-test: New file.
87589         * tests/test-stat-time.c: New test, devised by Bruno Haible.
87591 2007-03-26  Bruno Haible  <bruno@clisp.org>
87593         Better support of signalling NaNs.
87594         * lib/atanl.c: Include isnanl.h.
87595         (atanl): Perform test for NaN at the beginning of the function and
87596         through a call to isnanl.
87597         * lib/cosl.c: Include isnanl.h.
87598         (cosl): Perform test for NaN at the beginning of the function and
87599         through a call to isnanl.
87600         * lib/ldexpl.c: Include isnanl.h.
87601         (ldexpl): Perform test for NaN through a call to isnanl.
87602         * lib/logl.c: Include isnanl.h.
87603         (logl): Perform test for NaN at the beginning of the function and
87604         through a call to isnanl.
87605         * lib/sinl.c: Include isnanl.h.
87606         (sinl): Perform test for NaN at the beginning of the function and
87607         through a call to isnanl.
87608         * lib/sqrtl.c: Include isnanl.h.
87609         (sqrtl): Perform test for NaN at the beginning of the function and
87610         through a call to isnanl.
87611         * lib/tanl.c: Include isnanl.h.
87612         (tanl): Perform test for NaN at the beginning of the function and
87613         through a call to isnanl.
87614         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
87615         * modules/mathl (Depends-on): Add isnanl.
87617 2007-03-26  Eric Blake  <ebb9@byu.net>
87619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
87620         regression in logic sense of previous patch.
87622 2007-03-26  Bruno Haible  <bruno@clisp.org>
87624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
87625         unportable shell command "if ! ...".
87626         Reported by Ralf Wildenhues.
87628 2007-03-25  Bruno Haible  <bruno@clisp.org>
87630         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
87631         <sysexits.h> file, and only add EX_CONFIG.
87632         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
87633         absolute file name and whether it is sufficient. Substitute also
87634         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
87635         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
87636         ABSOLUTE_SYSEXITS_H into sysexits.h.
87638 2007-03-25  Bruno Haible  <bruno@clisp.org>
87640         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
87641         hints is NULL.
87643 2007-03-25  Bruno Haible  <bruno@clisp.org>
87645         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
87646         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
87648 2007-03-25  Bruno Haible  <bruno@clisp.org>
87650         * lib/vasnprintf.c: Include langinfo.h.
87651         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
87652         multithread-safe.
87653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
87654         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
87655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87658         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87659         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87660         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
87661         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87662         Reported by Simon Josefsson.
87664 2007-03-25  Bruno Haible  <bruno@clisp.org>
87666         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
87667         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
87668         * modules/vasnprintf (Depends-on): Add stdint.
87670 2007-03-25  Bruno Haible  <bruno@clisp.org>
87672         * modules/fpieee: New file.
87673         * m4/fpieee.m4: New file.
87674         * modules/isnan-nolibm (Depends-on): Add fpieee.
87675         * modules/isnanl-nolibm (Depends-on): Add fpieee.
87676         * modules/isnanl (Depends-on): Add fpieee.
87678 2007-03-25  Bruno Haible  <bruno@clisp.org>
87680         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
87682 2007-03-25  Bruno Haible  <bruno@clisp.org>
87684         Avoid test failures on IRIX 6.5.
87685         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
87686         (main): Use it.
87687         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
87688         macros.
87689         (main): Use them.
87691 2007-03-25  Bruno Haible  <bruno@clisp.org>
87693         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
87694         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
87695         exists but doesn't work.
87696         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
87697         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
87698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
87699         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
87700         math.h.
87702 2007-03-25  Bruno Haible  <bruno@clisp.org>
87704         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
87705         returns inf. Needed on IRIX 6.5.
87707 2007-03-25  Bruno Haible  <bruno@clisp.org>
87709         * tests/test-frexpl.c: Include isnanl-nolibm.h.
87710         (main): Use isnanl instead of x != x idiom.
87711         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
87713         * tests/test-frexp.c: Include isnan.h.
87714         (main): Use isnan instead of x != x idiom.
87715         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
87717 2007-03-25  Bruno Haible  <bruno@clisp.org>
87719         * tests/test-frexp.c (NaN): New function/macro.
87720         (main): Use it instead of 0.0 / 0.0.
87721         * tests/test-isnan.c (NaN): New function/macro.
87722         (main): Use it instead of 0.0 / 0.0.
87723         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
87724         (test_function): Use it instead of 0.0 / 0.0.
87725         * tests/test-vasprintf-posix.c (NaN): New function/macro.
87726         (test_function): Use it instead of 0.0 / 0.0.
87727         * tests/test-snprintf-posix.h (NaN): New function/macro.
87728         (test_function): Use it instead of 0.0 / 0.0.
87729         * tests/test-sprintf-posix.h (NaN): New function/macro.
87730         (test_function): Use it instead of 0.0 / 0.0.
87731         * tests/test-fprintf-posix.h (NaN): New function/macro.
87732         (test_function): Use it instead of 0.0 / 0.0.
87733         * tests/test-printf-posix.h (NaN): New function/macro.
87734         (test_function): Use it instead of 0.0 / 0.0.
87736         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
87738 2007-03-25  Bruno Haible  <bruno@clisp.org>
87740         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
87742 2007-03-25  Bruno Haible  <bruno@clisp.org>
87744         * lib/regexec.c (merge_state_with_log): Make static.
87746 2007-03-25  Bruno Haible  <bruno@clisp.org>
87748         * lib/trigl.c (kernel_rem_pio2): Make static.
87750 2007-03-25  Bruno Haible  <bruno@clisp.org>
87752         * lib/sincosl.c (sincosl_table): Make static.
87754 2007-03-25  Bruno Haible  <bruno@clisp.org>
87756         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
87757         if the compiler does not support C99.
87759 2007-03-25  Bruno Haible  <bruno@clisp.org>
87761         * modules/time (Makefile.am): Ensure all rule action lines start with a
87762         tab.
87764 2007-03-24  Bruno Haible  <bruno@clisp.org>
87766         * modules/tsearch-tests: New file.
87767         * tests/test-tsearch.sh: New file.
87768         * tests/test-tsearch.c: New file, mostly copied from glibc.
87770         * modules/search-tests: New file.
87771         * tests/test-search.c: New file.
87773         * modules/search: New file.
87774         * lib/search_.h: New file, incorporating lib/tsearch.h.
87775         * m4/search_h.m4: New file.
87776         * lib/tsearch.h: Remove file.
87777         * lib/tsearch.c: Include search.h instead of tsearch.h.
87778         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
87779         HAVE_TSEARCH.
87780         * modules/tsearch (Files): Remove lib/tsearch.h.
87781         (Depends-on): Add search.
87782         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
87783         (Include): Change tsearch.h into search.h.
87785 2007-03-24  Bruno Haible  <bruno@clisp.org>
87787         * modules/fpucw: New file.
87788         * lib/fpucw.h: New file.
87789         * lib/frexp.c: Include fpucw.h.
87790         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
87791         (FUNC): Use them.
87792         * lib/printf-frexp.c: Include fpucw.h.
87793         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
87794         (FUNC): Use them.
87795         * lib/vasnprintf.c: Include fpucw.h.
87796         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
87797         'long double' calculations.
87798         * tests/test-frexpl.c: Include fpucw.h.
87799         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
87800         * tests/test-printf-frexpl.c: Include fpucw.h.
87801         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
87802         * modules/frexpl (Depends-on): Add fpucw.
87803         * modules/printf-frexpl (Depends-on): Likewise.
87804         * modules/fprintf-posix (Depends-on): Likewise.
87805         * modules/snprintf-posix (Depends-on): Likewise.
87806         * modules/sprintf-posix (Depends-on): Likewise.
87807         * modules/vasnprintf-posix (Depends-on): Likewise.
87808         * modules/vasprintf-posix (Depends-on): Likewise.
87809         * modules/vfprintf-posix (Depends-on): Likewise.
87810         * modules/vsnprintf-posix (Depends-on): Likewise.
87811         * modules/vsprintf-posix (Depends-on): Likewise.
87812         * modules/frexpl-tests (Depends-on): Likewise.
87813         * modules/printf-frexpl-tests (Depends-on): Likewise.
87815 2007-03-24  Bruno Haible  <bruno@clisp.org>
87817         * lib/float+.h: New file.
87818         * lib/isnan.c: Include float+.h.
87819         (SIZE): New macro.
87820         (FUNC): Compare only SIZE bytes of the value.
87821         * lib/vasnprintf.c: Include float+.h.
87822         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
87823         SIZEOF_LDBL or SIZEOF_DBL bytes.
87824         * modules/isnan-nolibm (Files): Add lib/float+.h.
87825         * modules/isnanl-nolibm (Files): Add lib/float+.h.
87826         * modules/isnanl (Files): Add lib/float+.h.
87827         * modules/vasnprintf (Files): Add lib/float+.h.
87829 2007-03-24  Bruno Haible  <bruno@clisp.org>
87831         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
87832         include isnanl-nolibm.h.
87834 2007-03-24  Bruno Haible  <bruno@clisp.org>
87836         * tests/test-read-file.c (main): Don't produce spurious output for
87837         expected situations. Make the test fail if it encountered unexpected
87838         results.
87840 2007-03-24  Bruno Haible  <bruno@clisp.org>
87842         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
87843         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
87845 2007-03-24  Bruno Haible  <bruno@clisp.org>
87847         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
87849 2007-03-24  Bruno Haible  <bruno@clisp.org>
87851         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
87852         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
87854         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
87855         * modules/utf8-ucs4: Turn into a symbolic link to module
87856         unistr/u8-mbtouc.
87858         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
87859         utf8-ucs4-unsafe.
87860         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
87861         unistr/u8-mbtouc-unsafe.
87863         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
87864         * modules/utf16-ucs4: Turn into a symbolic link to module
87865         unistr/u16-mbtouc.
87867         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
87868         utf16-ucs4-unsafe.
87869         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
87870         unistr/u16-mbtouc-unsafe.
87872         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
87873         * modules/ucs4-utf8: Turn into a symbolic link to module
87874         unistr/u8-ubtomb.
87876         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
87877         * modules/ucs4-utf16: Turn into a symbolic link to module
87878         unistr/u16-ubtomb.
87880 2007-03-24  Bruno Haible  <bruno@clisp.org>
87882         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
87883         Enable the function only if HAVE_INLINE.
87884         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
87885         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
87886         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
87887         Enable the function only if HAVE_INLINE.
87888         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
87889         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
87890         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
87891         Enable the function only if HAVE_INLINE.
87892         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
87893         Enable the function only if HAVE_INLINE.
87894         * modules/utf8-ucs4: Update.
87895         * modules/utf8-ucs4-unsafe: Update.
87896         * modules/utf16-ucs4: Update.
87897         * modules/utf16-ucs4-unsafe: Update.
87898         * modules/ucs4-utf8: Update.
87899         * modules/ucs4-utf16: Update.
87901 2007-03-24  Bruno Haible  <bruno@clisp.org>
87903         * lib/utf8-ucs4.h: Remove file.
87904         * lib/utf8-ucs4-unsafe.h: Remove file.
87905         * lib/utf16-ucs4.h: Remove file.
87906         * lib/utf16-ucs4-unsafe.h: Remove file.
87907         * lib/ucs4-utf8.h: Remove file.
87908         * lib/ucs4-utf16.h: Remove file.
87909         * lib/unistr.h: Include their previous contents.
87910         * m4/utf-ucs4.m4: Remove file.
87911         * m4/ucs4-utf.m4: Remove file.
87912         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
87913         (Depends-on): Add unistr/base.
87914         (configure.ac): Remove gl_UTF_UCS4.
87915         (Makefile.am): Update.
87916         (Include): Change to unistr.h.
87917         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
87918         (Depends-on): Add unistr/base.
87919         (configure.ac): Remove gl_UTF_UCS4.
87920         (Makefile.am): Update.
87921         (Include): Change to unistr.h.
87922         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
87923         (Depends-on): Add unistr/base.
87924         (configure.ac): Remove gl_UTF_UCS4.
87925         (Makefile.am): Update.
87926         (Include): Change to unistr.h.
87927         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
87928         (Depends-on): Add unistr/base.
87929         (configure.ac): Remove gl_UTF_UCS4.
87930         (Makefile.am): Update.
87931         (Include): Change to unistr.h.
87932         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
87933         (Depends-on): Add unistr/base.
87934         (configure.ac): Remove gl_UCS4_UTF.
87935         (Makefile.am): Update.
87936         (Include): Change to unistr.h.
87937         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
87938         (Depends-on): Add unistr/base.
87939         (configure.ac): Remove gl_UCS4_UTF.
87940         (Makefile.am): Update.
87941         (Include): Change to unistr.h.
87942         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
87943         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
87944         utf8-ucs4-unsafe.h.
87945         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
87946         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
87947         utf16-ucs4-unsafe.h.
87948         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
87949         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
87950         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
87951         * lib/unistr/u8-strchr.c: Likewise.
87952         * lib/unistr/u8-strrchr.c: Likewise.
87953         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
87954         * lib/unistr/u16-strchr.c: Likewise.
87955         * lib/unistr/u16-strrchr.c: Likewise.
87956         * lib/striconveh.c: Update.
87957         * lib/linebreak.c: Update.
87959 2007-03-24  Bruno Haible  <bruno@clisp.org>
87961         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
87962         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
87964 2007-03-22  Bruno Haible  <bruno@clisp.org>
87966         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
87968 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87970         * MODULES.html.sh (File system functions): New module write-any-file.
87971         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
87972         * m4/write-any-file.m4: New files.
87974 2007-03-23  Eric Blake  <ebb9@byu.net>
87976         * gnulib-tool: Rearrange space-tab sequences, since some editors
87977         like to eat them.
87979 2007-03-23  Eric Blake  <ebb9@byu.net>
87981         * lib/version-etc.c (version_etc_va): Update license wording to
87982         be more concise.  Recommended by Richard Stallman.
87984 2007-03-22  Bruno Haible  <bruno@clisp.org>
87986         * lib/poll.c (MSG_PEEK): New fallback definition.
87988 2007-03-22  Bruno Haible  <bruno@clisp.org>
87990         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
87991         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
87992         (main): Update.
87993         Fixes a compilation error on BeOS.
87995 2007-03-22  Bruno Haible  <bruno@clisp.org>
87997         * modules/frexpl-tests: New file.
87998         * tests/test-frexpl.c: New file.
88000         * modules/frexpl: New file.
88001         * m4/frexpl.m4: New file.
88002         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
88003         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
88004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
88005         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
88006         (Depends-on): Add frexpl. Remove isnanl-nolibm.
88007         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
88009 2007-03-22  Bruno Haible  <bruno@clisp.org>
88011         * lib/frexpl.c: Share code with lib/frexp.c.
88012         * modules/mathl (Files): Add lib/frexp.c.
88013         (Depends-on): Add isnanl-nolibm.
88015 2007-03-22  Bruno Haible  <bruno@clisp.org>
88017         * modules/printf-frexp (Files): Add m4/frexp.m4.
88018         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
88019         only if the found frexp function actually works.
88021 2007-03-22  Bruno Haible  <bruno@clisp.org>
88023         * lib/frexp.c: Remove older implementation that uses divisions.
88025 2007-03-21  Bruno Haible  <bruno@clisp.org>
88027         * modules/frexp-tests: New file.
88028         * tests/test-frexp.c: New file.
88030         * modules/frexp: New file.
88031         * lib/frexp.c: New file.
88032         * m4/frexp.m4: New file.
88033         * lib/math_.h (frexp): New declaration.
88034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
88035         REPLACE_FREXP.
88036         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
88038 2007-03-21  Bruno Haible  <bruno@clisp.org>
88040         * modules/isnanl-tests: New file.
88041         * tests/test-isnanl.c: New file.
88043         * modules/isnanl: New file.
88044         * lib/isnanl.h: New file.
88045         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
88046         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
88047         gl_FUNC_ISNANL_WORKS.
88048         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
88049         New macros.
88051 2007-03-21  Bruno Haible  <bruno@clisp.org>
88053         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
88054         lib/isnanl.h.
88055         (Include): Update.
88056         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
88057         * lib/vasnprintf.c: Update.
88058         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
88059         tests/test-isnanl.h, remove tests/test-isnanl.c.
88060         (Makefile.am): Update.
88061         * tests/test-isnanl-nolibm.c: New file.
88062         * tests/test-isnanl.h: New file.
88063         * tests/test-isnanl.c: Remove file.
88065 2007-03-21  Jim Meyering  <jim@meyering.net>
88067         When trying to open ".", treat ESTALE like EACCES.
88068         * lib/savewd.c (savewd_save): Resort to forking not just upon
88069         failure with EACCES, but also when errno is ESTALE.
88071 2007-03-20  Bruno Haible  <bruno@clisp.org>
88073         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
88074         Needed on AIX 5.1. Reported by Matthew Woehlke.
88076 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88078         Suggestions by Bruno Haible:
88079         * lib/acl-internal.h: Include "gettext.h" rather than rolling
88080         our own.
88081         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
88082         * modules/acl (Depends-on): Add gettext.
88084 2007-03-19  Bruno Haible  <bruno@clisp.org>
88086         * modules/iconvme: Remove file.
88087         * lib/iconvme.h: Remove file.
88088         * lib/iconvme.c: Remove file.
88089         * m4/iconvme.m4: Remove file.
88091 2007-03-19  Bruno Haible  <bruno@clisp.org>
88093         * doc/relocatable-maint.texi: Break long shell script line.
88094         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
88096 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88098         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
88099         handle file_has_acl.
88100         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
88101         * lib/acl.c: Move header inclusions and related macro defns into
88102         lib/acl-internal.h.
88103         (S_ISLNK): Remove defn, since that's now done for us.
88104         (file_has_acl): Move to lib/file-has-acl.c.
88105         Call acl_trivial if available.  This is the crucial part of the fix.
88106         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
88107         shared within the library.  Rewrite a bit, partly to make it compatible
88108         with the GNU coding style.
88109         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
88110         Remove unnecessary double-quotes.
88111         Don't test for acl_to_text; the build will catch that.
88112         Replace acl_entries if it doesn't exist and it is needed.
88113         Check for -lsec and acl_trivial (as used on Solaris 10).
88114         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
88115         lib/file-has-acl.c.
88116         (Depends-on): Add sys_stat, for S_ISLNK.
88118 2007-03-19  Ben Pfaff  <blp@gnu.org>
88120         * doc/gnulib.texi: Fix typos.
88121         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
88123 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88125         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
88126         If size is zero here, buf must be zero.
88128 2007-03-19  Simon Josefsson  <simon@josefsson.org>
88130         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
88131         <bruno@clisp.org>.
88133 2007-03-18  Bruno Haible  <bruno@clisp.org>
88135         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
88136         Suggested by Eric Blake.
88138 2007-03-18  Ben Pfaff  <blp@gnu.org>
88140         * doc/relocatable.texi: Recommend using as prefix a directory
88141         that does not exist and will never be created.  Based on
88142         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
88143         and others.
88145 2007-03-17  Bruno Haible  <bruno@clisp.org>
88147         * lib/fchownat.c: Include lchown.h.
88149 2007-03-17  Bruno Haible  <bruno@clisp.org>
88151         Fix endless loop when the given allocated size was > INT_MAX.
88152         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
88153         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
88154         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
88155         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
88156         * lib/sprintf.c (sprintf): Likewise.
88158 2007-03-17  Bruno Haible  <bruno@clisp.org>
88160         * tests/test-argp-2.sh (func_compare): Output a context diff.
88162 2007-03-17  Bruno Haible  <bruno@clisp.org>
88164         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
88165         locale's decimal-point character.
88167 2007-03-17  Bruno Haible  <bruno@clisp.org>
88169         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
88170         before comparing it. Needed because on some platforms (e.g. x86) a
88171         'long double' occupies less bytes than sizeof (long double).
88173 2007-03-17  Bruno Haible  <bruno@clisp.org>
88175         * tests/test-crc.c (main): Make printf statements 64-bit clean.
88176         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
88177         * tests/test-getaddrinfo.c (simple): Likewise.
88178         * tests/test-read-file.c (main): Likewise.
88180 2007-03-17  Bruno Haible  <bruno@clisp.org>
88182         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
88184 2007-03-17  Bruno Haible  <bruno@clisp.org>
88186         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
88187         unused variable.
88189 2007-03-17  Bruno Haible  <bruno@clisp.org>
88191         * tests/test-c-strcasecmp.c: Include c-strcase.h.
88192         * tests/test-c-strncasecmp.c: Likewise.
88194 2007-03-17  Bruno Haible  <bruno@clisp.org>
88196         * modules/stdlib (Depends-on): Add unistd.
88197         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
88198         Needed for MacOS X 10.3.
88200 2007-03-17  Bruno Haible  <bruno@clisp.org>
88202         * lib/unistr/u-strdup.h: Include <stdlib.h>.
88204 2007-03-17  Bruno Haible  <bruno@clisp.org>
88206         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
88208 2007-03-17  Bruno Haible  <bruno@clisp.org>
88210         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
88211         to reflect files copied from gnulib (with or without modifications).
88212         Suggested by Jim Meyering.
88214 2007-03-17  Eric Blake  <ebb9@byu.net>
88216         * NEWS: Document stdlib change from 2007-02-18.
88218 2007-03-17  Jim Meyering  <jim@meyering.net>
88220         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
88221         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
88222         someone uses a name containing shell meta-characters.
88223         Reported by Alfred M. Szmidt.
88225         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
88227 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
88229         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
88230         and copy gettext configuration files only if configure.ac contains
88231         a use of AM_GNU_GETTEXT_VERSION.
88233 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
88235         * build-aux/bootstrap (gnulib_name): New variable.
88236         (gnulib_tool_options): Use it.
88238 2007-03-13  Simon Josefsson  <simon@josefsson.org>
88240         * tests/test-des.c: Use new namespace.
88242 2007-03-15  Bruno Haible  <bruno@clisp.org>
88244         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
88245         Reported by James Youngman <jay@gnu.org>.
88247 2007-03-15  Bruno Haible  <bruno@clisp.org>
88249         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
88250         declared prototype. Needed with cc on OSF/1 5.1.
88252 2007-03-15  Bruno Haible  <bruno@clisp.org>
88254         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
88255         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
88256         (struct gl_list_implementation): Add dispose_fn argument to the
88257         'create_empty', 'create' methods.
88258         (struct gl_list_impl_base): Add field 'dispose_fn'.
88259         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
88260         argument.
88261         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
88262         dispose_fn argument.
88263         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
88264         dispose_fn on the dropped values.
88265         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
88266         dispose_fn argument.
88267         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
88268         dropped values.
88269         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
88270         (gl_tree_remove_node): Call dispose_fn on the dropped value.
88271         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
88272         (gl_tree_remove_node): Call dispose_fn on the dropped value.
88273         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
88274         argument.
88275         (gl_tree_list_free): Call dispose_fn on the dropped values.
88276         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
88277         the dropped values.
88278         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
88279         Add dispose_fn argument.
88280         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
88281         Call dispose_fn on the dropped values.
88282         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
88283         Add dispose_fn argument.
88284         (gl_sublist_create): Initialize the 'dispose_fn' field.
88285         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
88286         * tests/test-array_list.c (main): Update.
88287         * tests/test-carray_list.c (main): Update.
88288         * tests/test-avltree_list.c (main): Update.
88289         * tests/test-rbtree_list.c (main): Update.
88290         * tests/test-avltreehash_list.c (main): Update.
88291         * tests/test-rbtreehash_list.c (main): Update.
88292         * tests/test-linked_list.c (main): Update.
88293         * tests/test-linkedhash_list.c (main): Update.
88294         * tests/test-array_oset.c (main): Update.
88296 2007-03-15  Bruno Haible  <bruno@clisp.org>
88298         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
88299         (gl_oset_create_empty): Add dispose_fn argument.
88300         (struct gl_oset_implementation): Add dispose_fn argument to
88301         'create_empty' method.
88302         (struct gl_oset_impl_base): Add dispose_fn field.
88303         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
88304         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
88305         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
88306         values.
88307         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
88308         (gl_tree_oset_free): Call dispose_fn on the dropped values.
88309         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
88310         dropped value.
88311         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
88312         dropped value.
88313         * tests/test-array_oset.c (main): Update.
88314         * tests/test-avltree_oset.c (main): Update.
88315         * tests/test-rbtree_oset.c (main): Update.
88316         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
88318 2007-03-13  Bruno Haible  <bruno@clisp.org>
88320         * tests/test-stdbool.c (i): Update after last patch.
88322 2007-03-12  Bruno Haible  <bruno@clisp.org>
88324         * lib/quotearg.c: Include <wctype.h> early, before the definition of
88325         the iswprint macro. Needed on Solaris 2.5.1.
88327 2007-03-12  Bruno Haible  <bruno@clisp.org>
88329         * tests/test-printf-frexp.c (main): Declare x as volatile.
88331 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88333         * doc/gnulib.texi (Build robot for gnulib): New section.
88335 2007-03-12  Jim Meyering  <jim@meyering.net>
88337         * build-aux/bootstrap: New file.
88338         * build-aux/bootstrap.conf: New file, from coreutils.
88340 2007-03-11  Bruno Haible  <bruno@clisp.org>
88342         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
88344 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88346         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
88347         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
88348         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
88350 2007-03-11  Bruno Haible  <bruno@clisp.org>
88352         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
88353         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
88355 2007-03-11  Bruno Haible  <bruno@clisp.org>
88357         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
88358         formula. Needed for SunPRO C 5.0.
88360 2007-03-11  Bruno Haible  <bruno@clisp.org>
88362         * modules/long-options (Depends-on): Add getopt.
88364 2007-03-11  Bruno Haible  <bruno@clisp.org>
88366         * modules/modechange (Depends-on): Add stdbool.
88368 2007-03-11  Bruno Haible  <bruno@clisp.org>
88370         * modules/i-ring (Depends-on): Add stdbool.
88372 2007-03-11  Bruno Haible  <bruno@clisp.org>
88374         * modules/gc-des (Depends-on): Add stdbool.
88376 2007-03-11  Bruno Haible  <bruno@clisp.org>
88378         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
88380 2007-03-11  Bruno Haible  <bruno@clisp.org>
88382         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
88384 2007-03-11  Bruno Haible  <bruno@clisp.org>
88386         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
88388 2007-03-11  Bruno Haible  <bruno@clisp.org>
88390         * lib/vasnprintf.c (sprintf): Undefine.
88392 2007-03-11  Bruno Haible  <bruno@clisp.org>
88394         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
88395         initializers in SunPRO C and Compaq C compilers.
88397 2007-03-11  Bruno Haible  <bruno@clisp.org>
88399         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
88400         decrementing code ANSI C compliant.
88402 2007-03-11  Bruno Haible  <bruno@clisp.org>
88404         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
88405         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
88407 2007-03-11  Bruno Haible  <bruno@clisp.org>
88409         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
88410         <stdbool.h> substitute doesn't pass.
88412 2007-03-11  Bruno Haible  <bruno@clisp.org>
88414         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
88416 2007-03-11  Bruno Haible  <bruno@clisp.org>
88418         * gnulib-tool (func_create_megatestdir): Create also an autobuild
88419         script, for submission to autobuild.josefsson.org.
88421 2007-03-10  Bruno Haible  <bruno@clisp.org>
88423         * modules/canonicalize-lgpl-tests: New file.
88424         * tests/test-canonicalize-lgpl.sh: New file.
88425         * tests/test-canonicalize-lgpl.c: New file.
88427         * modules/c-strcase-tests: New file.
88428         * tests/test-c-strcase.sh: New file.
88429         * tests/test-c-strcasecmp.c: New file.
88430         * tests/test-c-strncasecmp.c: New file.
88432         * modules/atexit-tests: New file.
88433         * tests/test-atexit.sh: New file.
88434         * tests/test-atexit.c: New file.
88436 2007-03-10  Bruno Haible  <bruno@clisp.org>
88438         * tests/test-binary-io.sh: Use temporary filenames that are not so
88439         likely to clash with those of other tests (in a parallel make).
88440         * tests/test-binary-io.c: Likewise.
88442 2007-03-10  Bruno Haible  <bruno@clisp.org>
88444         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
88445         fallback; use #error instead.
88446         Suggested by Simon Josefsson.
88448 2007-03-10  Bruno Haible  <bruno@clisp.org>
88450         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
88451         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
88452         first and the last.
88454 2007-03-10  Bruno Haible  <bruno@clisp.org>
88456         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
88458 2007-03-10  Bruno Haible  <bruno@clisp.org>
88460         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
88461         "make distcheck".
88462         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
88463         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
88464         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
88466 2007-03-10  Bruno Haible  <bruno@clisp.org>
88468         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
88469         variable.
88470         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
88471         variable.
88473 2007-03-09  Eric Blake  <ebb9@byu.net>
88474         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
88476         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
88477         types are not being provided by gnulib.
88478         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
88479         types are supported.
88481 2007-03-10  Bruno Haible  <bruno@clisp.org>
88483         * lib/stdio_.h (__attribute__): New macro.
88484         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
88485         vsprintf): Specify __attribute__ __format__ for GCC.
88486         Suggested by Eric Blake.
88488 2007-03-09  Bruno Haible  <bruno@clisp.org>
88490         * modules/printf-posix-tests: New file.
88491         * tests/test-printf-posix.sh: New file.
88492         * tests/test-printf-posix.c: New file.
88494         * modules/printf-posix: New file.
88495         * lib/printf.c: New file.
88496         * m4/printf-posix-rpl.m4: New file.
88497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
88498         REPLACE_PRINTF.
88499         * lib/stdio_.h (printf): New declaration.
88500         (format, __format__, ____printf____, ____scanf____, ____strftime____,
88501         ____strfmon____): New macros.
88502         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
88503         REPLACE_PRINTF.
88505 2007-03-09  Bruno Haible  <bruno@clisp.org>
88507         * tests/test-vasnprintf-posix2.sh: New file.
88508         * tests/test-vasnprintf-posix2.c: New file.
88509         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
88510         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
88511         (Makefile.am): Activate test-vasnprintf-posix2.sh.
88513         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
88514         a locale dependent decimal point, rather than always '.'.
88516 2007-03-09  Eric Blake  <ebb9@byu.net>
88518         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
88519         spite of platforms like Tandem/NSK that define it to -1.
88521 2007-03-08  Bruno Haible  <bruno@clisp.org>
88523         * modules/vprintf-posix-tests: New file.
88524         * tests/test-vprintf-posix.sh: New file.
88525         * tests/test-vprintf-posix.c: New file.
88526         * tests/test-printf-posix.h: New file.
88528         * modules/vprintf-posix: New file.
88529         * lib/vprintf.c: New file.
88530         * m4/vprintf-posix.m4: New file.
88531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
88532         REPLACE_VPRINTF.
88533         * lib/stdio_.h (vprintf): New declaration.
88534         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
88535         REPLACE_VPRINTF.
88537 2007-03-08  Bruno Haible  <bruno@clisp.org>
88539         * modules/fprintf-posix-tests: New file.
88540         * tests/test-fprintf-posix.sh: New file.
88541         * tests/test-fprintf-posix.c: New file.
88543         * modules/fprintf-posix: New file.
88544         * lib/fprintf.c: New file.
88545         * m4/fprintf-posix.m4: New file.
88546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
88547         REPLACE_FPRINTF.
88548         * lib/stdio_.h (fprintf): New declaration.
88549         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
88550         REPLACE_FPRINTF.
88552 2007-03-08  Bruno Haible  <bruno@clisp.org>
88554         * modules/vfprintf-posix-tests: New file.
88555         * tests/test-vfprintf-posix.sh: New file.
88556         * tests/test-vfprintf-posix.c: New file.
88557         * tests/test-fprintf-posix.h: New file.
88558         * tests/test-fprintf-posix.out: New file.
88560         * modules/vfprintf-posix: New file.
88561         * lib/vfprintf.c: New file.
88562         * m4/vfprintf-posix.m4: New file.
88563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
88564         REPLACE_VFPRINTF.
88565         * lib/stdio_.h (vfprintf): New declaration.
88566         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
88567         REPLACE_VFPRINTF.
88569 2007-03-08  Bruno Haible  <bruno@clisp.org>
88571         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
88573 2007-03-08  Bruno Haible  <bruno@clisp.org>
88575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
88576         instead of 'expr' invocations.
88577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88580         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88581         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88582         Suggested by Paul Eggert.
88584 2007-03-08  Bruno Haible  <bruno@clisp.org>
88586         * modules/fseterr-tests: New file.
88587         * tests/test-fseterr.c: New file.
88589         * modules/fseterr: New file.
88590         * lib/fseterr.h: New file.
88591         * lib/fseterr.c: New file.
88593 2007-03-08  Bruno Haible  <bruno@clisp.org>
88595         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
88596         * lib/getopt_.h: Likewise.
88597         * lib/mbswidth.h: Likewise.
88598         * lib/setenv.h: Likewise.
88599         * lib/vasnprintf.h: Likewise.
88600         * lib/vasprintf.h: Likewise.
88601         * lib/verror.h: Likewise.
88602         * lib/xsetenv.h: Likewise.
88603         * lib/xvasprintf.h: Likewise.
88605 2007-03-08  Jim Meyering  <jim@meyering.net>
88607         * users.txt: Add parted.
88609         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
88611 2007-03-07  Bruno Haible  <bruno@clisp.org>
88613         * m4/printf.m4: Make the shell script snippets copy&pastable.
88615 2007-03-02  Bruno Haible  <bruno@clisp.org>
88617         * lib/netinet_in_.h: New file.
88618         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
88619         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
88620         * modules/netinet_in (Files): Add lib/netinet_in_.h.
88621         (Depends-on): Add absolute-header.
88622         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
88623         into netinet/in.h.
88625 2007-03-03  Bruno Haible  <bruno@clisp.org>
88627         * lib/sys_select_.h: New file.
88628         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
88629         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
88630         * modules/sys_select (Files): Add lib/sys_select_.h.
88631         (Depends-on): Add absolute-header.
88632         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
88633         into sys/select.h.
88635 2007-03-02  Bruno Haible  <bruno@clisp.org>
88637         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
88638         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
88639         values.
88640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
88641         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
88642         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
88643         * modules/sys_socket (Depends-on): Add absolute-header.
88644         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
88645         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
88646         (Include): Remove requirement of inclusion of <sys/types.h>.
88648 2007-03-02  Bruno Haible  <bruno@clisp.org>
88650         * lib/byteswap_.h (bswap_32): Fix formula.
88652 2007-03-06  Bruno Haible  <bruno@clisp.org>
88654         * modules/sprintf-posix-tests: New file.
88655         * tests/test-sprintf-posix.c: New file.
88657         * modules/sprintf-posix: New file.
88658         * lib/sprintf.c: New file.
88659         * m4/sprintf-posix.m4: New file.
88660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
88661         REPLACE_SPRINTF.
88662         * lib/stdio_.h (sprintf): New declaration.
88663         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
88664         REPLACE_SPRINTF.
88666 2007-03-06  Bruno Haible  <bruno@clisp.org>
88668         * modules/vsprintf-posix-tests: New file.
88669         * tests/test-vsprintf-posix.c: New file.
88670         * tests/test-sprintf-posix.h: New file.
88672         * modules/vsprintf-posix: New file.
88673         * lib/vsprintf.c: New file.
88674         * m4/vsprintf-posix.m4: New file.
88675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
88676         REPLACE_VSPRINTF.
88677         * lib/stdio_.h (vsprintf): New declaration.
88678         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
88679         REPLACE_VSPRINTF.
88681 2007-03-06  Bruno Haible  <bruno@clisp.org>
88683         * modules/vsnprintf (Depend-on): Remove minmax.
88685 2007-03-06  Bruno Haible  <bruno@clisp.org>
88687         * modules/snprintf-posix-tests: New file.
88688         * tests/test-snprintf-posix.c: New file.
88690         * modules/snprintf-posix: New file.
88691         * m4/snprintf-posix.m4: New file.
88692         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
88693         gl_FUNC_SNPRINTF.
88694         (gl_FUNC_SNPRINTF): Invoke it.
88695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
88696         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
88697         is set.
88698         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
88700 2007-03-06  Bruno Haible  <bruno@clisp.org>
88702         * modules/vsnprintf-posix-tests: New file.
88703         * tests/test-vsnprintf-posix.c: New file.
88704         * tests/test-snprintf-posix.h: New file.
88706         * modules/vsnprintf-posix: New file.
88707         * m4/vsnprintf-posix.m4: New file.
88708         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
88709         gl_FUNC_VSNPRINTF.
88710         (gl_FUNC_VSNPRINTF): Invoke it.
88711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
88712         * lib/stdio_.h (vsnprintf): Define as a replacement if
88713         REPLACE_VSNPRINTF is set.
88714         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
88716 2007-03-06  Bruno Haible  <bruno@clisp.org>
88718         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
88719         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
88721 2007-03-06  Bruno Haible  <bruno@clisp.org>
88723         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
88724         (asinl): Declare also if HAVE_DECL_ASINL is set.
88725         (atanl): Declare also if HAVE_DECL_ATANL is set.
88726         (ceill): Declare also if HAVE_DECL_CEILL is set.
88727         (cosl): Declare also if HAVE_DECL_COSL is set.
88728         (expl): Declare also if HAVE_DECL_EXPL is set.
88729         (floorl): Declare also if HAVE_DECL_FLOORL is set.
88730         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
88731         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
88732         (logl): Declare also if HAVE_DECL_LOGL is set.
88733         (sinl): Declare also if HAVE_DECL_SINL is set.
88734         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
88735         (tanl): Declare also if HAVE_DECL_TANL is set.
88736         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
88737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
88738         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
88739         declaration of frexpl, ldexpl.
88740         * modules/printf-frexpl (Depends-on): Add math.
88741         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
88743 2007-03-05  Bruno Haible  <bruno@clisp.org>
88745         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
88746         frexpl and ldexpl are declared.
88747         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
88749 2007-03-05  Bruno Haible  <bruno@clisp.org>
88751         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
88752         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
88754 2007-03-05  Bruno Haible  <bruno@clisp.org>
88756         * lib/stdio_.h: Include <stddef.h>.
88758 2007-03-05  Bruno Haible  <bruno@clisp.org>
88760         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
88762 2007-03-05  Bruno Haible  <bruno@clisp.org>
88764         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
88765         NetBSD 4, from Ralf Wildenhues.
88767 2007-03-04  Bruno Haible  <bruno@clisp.org>
88769         * lib/vasprintf.h: Update #if logic for the case when the functions
88770         exist but are overridden.
88772 2007-03-04  Bruno Haible  <bruno@clisp.org>
88774         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
88775         implementations: glibc-2.4 and MacOS X 10.3.
88776         * tests/test-vasnprintf-posix.c (test_function): Test also the case
88777         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
88778         * tests/test-vasprintf-posix.c (test_function): Likewise.
88780 2007-03-04  Bruno Haible  <bruno@clisp.org>
88782         * modules/vasprintf-posix-tests: New file.
88783         * tests/test-vasprintf-posix.c: New file.
88785         * modules/vasprintf-posix: New file.
88786         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
88787         defined.
88788         * m4/vasprintf-posix.m4: New file.
88789         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
88790         gl_FUNC_VASPRINTF.
88791         (gl_FUNC_VASPRINTF): Invoke it.
88792         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
88793         here.
88794         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
88796 2007-03-04  Bruno Haible  <bruno@clisp.org>
88798         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
88799         REPLACE_GETTIMEOFDAY.
88800         * modules/sys_time (Makefile.am): Likewise.
88801         * m4/sys_time_h.m4: Likewise.
88802         * m4/gettimeofday.m4: Likewise.
88804 2007-03-04  Bruno Haible  <bruno@clisp.org>
88806         * modules/vasnprintf-posix-tests: New file.
88807         * tests/test-vasnprintf-posix.c: New file.
88809         * modules/vasnprintf-posix: New file.
88810         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
88811         printf-frexpl.h.
88812         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
88813         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
88814         REPLACE_VASNPRINTF is defined.
88815         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
88816         gl_FUNC_VASNPRINTF.
88817         (gl_FUNC_VASNPRINTF): Invoke it.
88818         * m4/vasnprintf-posix.m4: New file.
88819         * m4/printf.m4: New file.
88821 2007-03-04  Bruno Haible  <bruno@clisp.org>
88823         Compile progreloc.c only if --enable-relocatable is specified.
88824         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
88825         if --enable-relocatable was specified.
88826         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
88827         lib_SOURCES.
88829 2007-03-04  Jim Meyering  <jim@meyering.net>
88831         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
88832         Use it consistently, rather than enumerating errno constants.
88834 2007-03-04  Bruno Haible  <bruno@clisp.org>
88836         * modules/xvasprintf-tests: New file.
88837         * tests/test-xvasprintf.c: New file.
88839         * modules/vasprintf-tests: New file.
88840         * tests/test-vasprintf.c: New file.
88842         * modules/vasnprintf-tests: New file.
88843         * tests/test-vasnprintf.c: New file.
88845         * modules/vsnprintf-tests: New file.
88846         * tests/test-vsnprintf.c: New file.
88848         * modules/snprintf-tests: New file.
88849         * tests/test-snprintf.c: New file.
88851 2007-03-04  Bruno Haible  <bruno@clisp.org>
88853         Compile relocatable.c only if --enable-relocatable is specified.
88854         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
88855         gl_RELOCATABLE_LIBRARY.
88856         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
88857         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
88858         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
88859         gl_RELOCATABLE_LIBRARY.
88860         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
88861         (Makefile.am): Remove lib_SOURCES.
88862         * modules/relocatable-lib-lgpl (configure.ac): Invoke
88863         gl_RELOCATABLE_LIBRARY.
88864         (Makefile.am): Remove lib_SOURCES.
88865         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
88866         always.
88867         * modules/relocatable-prog-wrapper (configure.ac): Invoke
88868         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
88870 2007-03-04  Bruno Haible  <bruno@clisp.org>
88872         * modules/argmatch-tests: New file.
88873         * tests/test-argmatch.c: New file.
88875         * tests/test-allocsa.c (main): Halve the number of loop runs.
88877         * modules/alloca-opt-tests: New file.
88878         * tests/test-alloca-opt.c: New file.
88880 2007-03-04  Jim Meyering  <jim@meyering.net>
88882         Work around difference between Linux ACLs and Solaris 10 ZFS.
88883         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
88884         for EINVAL.
88886 2007-03-03  Bruno Haible  <bruno@clisp.org>
88888         * modules/relocatable-prog (Depends-on): Add back progreloc's
88889         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
88891 2007-03-03  Bruno Haible  <bruno@clisp.org>
88893         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
88894         * modules/relocatable-lib: New file.
88896 2007-03-03  Bruno Haible  <bruno@clisp.org>
88898         * modules/relocatable-prog: Renamed from modules/relocatable.
88899         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
88901 2007-03-03  Bruno Haible  <bruno@clisp.org>
88903         * modules/relocatable-script (Files): Add doc/relocatable.texi,
88904         m4/relocatable-lib.m4.
88905         (Depends-on): Remove 'relocatable'.
88906         (configure.ac): Add gl_RELOCATABLE_NOP.
88908 2007-03-03  Bruno Haible  <bruno@clisp.org>
88910         * modules/relocatable-prog-wrapper: New file.
88911         * modules/relocatable (Depends-on): Add it. Remove all other
88912         dependencies except progname.
88913         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
88915         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
88916         (gl_FUNC_STRERROR): Nop.
88917         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
88919         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
88920         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
88922         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
88923         (gl_FUNC_READLINK): Update.
88925         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
88927 2007-03-03  Bruno Haible  <bruno@clisp.org>
88929         * lib/xreadlink.c: Include <unistd.h> unconditionally.
88930         * modules/xreadlink (Depends-on): Add unistd.
88931         * modules/xreadlink-with-size (Depends-on): Likewise.
88933 2007-03-03  Bruno Haible  <bruno@clisp.org>
88935         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
88936         extracted from gt_FUNC_SETENV.
88937         (gt_FUNC_SETENV): Remove macro.
88938         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
88939         remove gt_FUNC_SETENV.
88941 2007-03-03  Bruno Haible  <bruno@clisp.org>
88943         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
88944         ENABLE_RELOCATABLE here.
88945         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
88947 2007-03-03  Bruno Haible  <bruno@clisp.org>
88949         * modules/rbtreehash-list-tests (Depends-on): Add progname.
88950         * tests/test-rbtreehash_list.c: Include progname.h.
88951         (main): Call set_program_name.
88953         * modules/rbtree-oset-tests (Depends-on): Add progname.
88954         * tests/test-rbtree_oset.c: Include progname.h.
88955         (main): Call set_program_name.
88957         * modules/rbtree-list-tests (Depends-on): Add progname.
88958         * tests/test-rbtree_list.c: Include progname.h.
88959         (main): Call set_program_name.
88961         * modules/linked-list-tests (Depends-on): Add progname.
88962         * tests/test-linked_list.c: Include progname.h.
88963         (main): Call set_program_name.
88965 2007-03-03  Bruno Haible  <bruno@clisp.org>
88967         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
88968         All uses of __restrict changed to _Restrict_.
88969         * lib/glob_.h (__restrict): Remove macro.
88971 2007-03-02  Bruno Haible  <bruno@clisp.org>
88973         * modules/gettext (configure.ac): Require gettext infrastructure
88974         from version 0.16.1.
88976 2007-03-02  Bruno Haible  <bruno@clisp.org>
88978         * modules/linkedhash-list-tests (Depends-on): Add progname.
88979         * tests/test-linkedhash_list.c: Include progname.h.
88980         (main): Call set_program_name.
88982         * modules/carray-list-tests (Depends-on): Add progname.
88983         * tests/test-carray_list.c: Include progname.h.
88984         (main): Call set_program_name.
88986         * modules/avltreehash-list-tests (Depends-on): Add progname.
88987         * tests/test-avltreehash_list.c: Include progname.h.
88988         (main): Call set_program_name.
88990         * modules/avltree-oset-tests (Depends-on): Add progname.
88991         * tests/test-avltree_oset.c: Include progname.h.
88992         (main): Call set_program_name.
88994         * modules/avltree-list-tests (Depends-on): Add progname.
88995         * tests/test-avltree_list.c: Include progname.h.
88996         (main): Call set_program_name.
88998         * modules/array-oset-tests (Depends-on): Add progname.
88999         * tests/test-array_oset.c: Include progname.h.
89000         (main): Call set_program_name.
89002         * modules/array-list-tests (Depends-on): Add progname.
89003         * tests/test-array_list.c: Include progname.h.
89004         (main): Call set_program_name.
89006         * modules/argp-tests (Depends-on): Add progname.
89007         * tests/test-argp.c: Include argp.h first. Include progname.h.
89008         (main): Call set_program_name.
89010 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
89012         * doc/gnulib-tool.texi (Initial import): Reword description of
89013         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
89014         limited effect even if defined after the first system include.
89016 2007-03-01  Bruno Haible  <bruno@clisp.org>
89018         * build-aux/config.libpath: Update to libtool-1.5.22.
89019         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89021 2007-03-01  Bruno Haible  <bruno@clisp.org>
89023         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
89024         foo_CFLAGS.
89025         Reported by Ralf Wildenhues.
89027 2007-03-01  Bruno Haible  <bruno@clisp.org>
89029         * build-aux/install-reloc: Remove object files left over by some
89030         compilers.
89031         Reported by Ralf Wildenhues.
89033 2007-03-01  Bruno Haible  <bruno@clisp.org>
89035         * build-aux/install-reloc: Break long lines.
89037 2007-03-01  Bruno Haible  <bruno@clisp.org>
89039         * doc/relocatable.texi: Document that it may not work on OpenBSD.
89040         Reported by Ralf Wildenhues.
89042 2007-03-01  Bruno Haible  <bruno@clisp.org>
89044         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
89045         include ordering constraints.
89047 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89049         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
89050         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
89051         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
89052         as another example.
89053         * lib/time_.h: Fix misspelling.
89054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
89055         Require gl_HEADER_TIME_H_DEFAULTS.
89056         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
89057         * m4/time_r.m4 (gl_TIME_R): Likewise.
89058         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
89060 2007-03-01  Bruno Haible  <bruno@clisp.org>
89062         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
89063         * m4/utimens.m4 (gl_UTIMENS): Likewise.
89065 2007-03-01  Jim Meyering  <jim@meyering.net>
89067         * modules/xreadlink (Maintainer): Add my name.
89068         * modules/xreadlink-with-size (Depends-on): Alphabetize.
89070 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
89071             Bruno Haible  <bruno@clisp.org>
89073         * build-aux/install-reloc: Compile also c-ctype.c.
89074         * build-aux/relocatable.sh.in: New file.
89075         * doc/relocatable.texi: New file.
89076         * doc/relocatable-maint.texi: New file.
89077         * doc/gnulib.texi: Include relocatable-maint.texi.
89078         * lib/progreloc.c: Include unistd.h unconditionally.
89079         * lib/relocwrapper.c: Include unistd.h unconditionally.
89080         Include c-ctype.h.
89081         (add_dotbin): Use c_tolower.
89082         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
89083         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
89084         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
89085         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
89086         to m4/relocatable-lib.m4.
89087         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
89088         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
89089         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
89090         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
89091         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
89092         * modules/relocatable: New file.
89093         * modules/relocatable-lib: New file.
89094         * modules/relocatable-script: New file.
89096 2007-02-28  Bruno Haible  <bruno@clisp.org>
89098         Import --enable-relocatable infrastructure.
89099         * build-aux/config.libpath: New file, from GNU gettext.
89100         * build-aux/install-reloc: New file, from GNU gettext.
89101         * build-aux/reloc-ldflags: New file, from GNU gettext.
89102         * lib/relocatable.h: New file, from GNU gettext.
89103         * lib/relocatable.c: New file, from GNU gettext.
89104         * lib/relocwrapper.c: New file, from GNU gettext.
89105         * m4/relocatable.m4: New file, from GNU gettext.
89107 2007-02-28  Bruno Haible  <bruno@clisp.org>
89109         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
89111         * modules/xreadlink: New file, from GNU gettext with modifications.
89112         * lib/xreadlink.c: New file, from GNU gettext.
89113         * lib/xreadlink.h: Add comments.
89114         (xreadlink): New declaration.
89116         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
89117         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
89118         lib/xreadlink-with-size.c.
89119         (configure.ac): Remove gl_XREADLINK invocation.
89120         (Makefile.am): Augment lib_SOURCES.
89121         * m4/xreadlink.m4: Remove file.
89122         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
89123         (xreadlink_with_size): Renamed from xreadink.
89124         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
89125         * modules/canonicalize (Depends-on): Replace xreadlink with
89126         xreadlink-with-size.
89127         * lib/canonicalize.c (canonicalize_filename_mode): Update.
89129 2007-02-25  Jim Meyering  <jim@meyering.net>
89131         * build-aux/announce-gen: When complaining about excess arguments,
89132         list them.
89134 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89136         * README: Document signed integer overflow situation more
89137         accurately.
89139 2007-02-25  Bruno Haible  <bruno@clisp.org>
89141         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
89142         'a' or 'A' conversion.
89144 2007-02-25  Bruno Haible  <bruno@clisp.org>
89146         * modules/filename: Renamed from modules/pathname.
89147         (Files): Replace lib/pathname.h with lib/filename.h. Replace
89148         lib/concatpath.c with lib/concat-filename.c.
89149         (Makefile.am): Update.
89150         (Include): Replace pathname.h with filename.h.
89151         * lib/filename.h: Renamed from lib/pathname.h.
89152         (concatenated_filename): Renamed from concatenated_pathname.
89153         * lib/concat-filename.c: Renamed from lib/concatpath.c.
89154         (concatenated_filename): Renamed from concatenated_pathname.
89155         * lib/findprog.c: Include filename.h instead of pathname.h.
89156         (find_in_path): Update.
89157         * lib/javacomp.c: Include filename.h instead of pathname.h.
89158         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
89159         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
89160         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
89161         is_oldgcj_14_13_usable, is_javac_usable): Update.
89162         * lib/javaexec.c: Include filename.h instead of pathname.h.
89163         (execute_java_class): Update.
89164         * modules/findprog: Update.
89165         * modules/javacomp: Update.
89166         * modules/javaexec: Update.
89167         * MODULES.html.sh (File system functions): Add 'filename', remove
89168         'pathname'.
89170 2007-02-25  Bruno Haible  <bruno@clisp.org>
89172         * modules/printf-frexpl-tests: New file.
89173         * tests/test-printf-frexpl.c: New file.
89175         * modules/printf-frexpl: New file.
89176         * lib/printf-frexpl.h: New file.
89177         * lib/printf-frexpl.c: New file.
89178         * m4/printf-frexpl.m4: New file.
89180 2007-02-25  Bruno Haible  <bruno@clisp.org>
89182         * modules/printf-frexp-tests: New file.
89183         * tests/test-printf-frexp.c: New file.
89185         * modules/printf-frexp: New file.
89186         * lib/printf-frexp.h: New file.
89187         * lib/printf-frexp.c: New file.
89188         * m4/printf-frexp.m4: New file.
89190 2007-02-25  Bruno Haible  <bruno@clisp.org>
89192         Assume automake >= 1.10 for the tests.
89193         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
89194         * modules/arctwo-tests: Likewise.
89195         * modules/argp-tests: Likewise.
89196         * modules/avltree-list-tests: Likewise.
89197         * modules/avltree-oset-tests: Likewise.
89198         * modules/avltreehash-list-tests: Likewise.
89199         * modules/carray-list-tests: Likewise.
89200         * modules/crc-tests: Likewise.
89201         * modules/des-tests: Likewise.
89202         * modules/gc-arcfour-tests: Likewise.
89203         * modules/gc-arctwo-tests: Likewise.
89204         * modules/gc-des-tests: Likewise.
89205         * modules/gc-hmac-md5-tests: Likewise.
89206         * modules/gc-hmac-sha1-tests: Likewise.
89207         * modules/gc-md2-tests: Likewise.
89208         * modules/gc-md4-tests: Likewise.
89209         * modules/gc-md5-tests: Likewise.
89210         * modules/gc-pbkdf2-sha1-tests: Likewise.
89211         * modules/gc-rijndael-tests: Likewise.
89212         * modules/gc-sha1-tests: Likewise.
89213         * modules/gc-tests: Likewise.
89214         * modules/getaddrinfo-tests: Likewise.
89215         * modules/hmac-md5-tests: Likewise.
89216         * modules/hmac-sha1-tests: Likewise.
89217         * modules/linked-list-tests: Likewise.
89218         * modules/linkedhash-list-tests: Likewise.
89219         * modules/lock-tests: Likewise.
89220         * modules/md2-tests: Likewise.
89221         * modules/md4-tests: Likewise.
89222         * modules/md5-tests: Likewise.
89223         * modules/rbtree-list-tests: Likewise.
89224         * modules/rbtree-oset-tests: Likewise.
89225         * modules/rbtreehash-list-tests: Likewise.
89226         * modules/read-file-tests: Likewise.
89227         * modules/rijndael-tests: Likewise.
89228         * modules/stdint-tests: Likewise.
89229         * modules/tls-tests: Likewise.
89231 2007-02-24  Bruno Haible  <bruno@clisp.org>
89233         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
89234         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
89235         function; instead check whether isnan with a double argument links.
89236         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
89237         function; instead check whether isnan with a 'long double' argument
89238         links.
89239         Reported by Eric Blake <ebb9@byu.net>.
89241 2007-02-24  Bruno Haible  <bruno@clisp.org>
89243         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
89244         defined.
89245         * lib/isnanl.c: Remove all code. Just include isnan.c.
89246         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
89248 2007-02-25  Jim Meyering  <jim@meyering.net>
89250         Avoid conflicting types for 'unsetenv' on FreeBSD.
89251         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
89252         conflicting with FreeBSD's (5.0 and 6.1) function declaration
89253         in stdlib.h.
89255 2007-02-24  Bruno Haible  <bruno@clisp.org>
89257         * modules/isnanl-nolibm-tests: New file.
89258         * tests/test-isnanl.c: New file.
89260         * modules/isnanl-nolibm: New file.
89261         * lib/isnanl.h: New file.
89262         * lib/isnanl.c: New file.
89263         * m4/isnanl.m4: New file.
89265 2007-02-24  Bruno Haible  <bruno@clisp.org>
89267         * modules/isnan-nolibm-tests: New file.
89268         * tests/test-isnan.c: New file.
89270         * modules/isnan-nolibm: New file.
89271         * lib/isnan.h: New file.
89272         * lib/isnan.c: New file.
89273         * m4/isnan.m4: New file.
89275 2007-02-24  Bruno Haible  <bruno@clisp.org>
89277         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
89278         assume that an exponent fits in 20 bits.
89280 2007-02-24  Jim Meyering  <jim@meyering.net>
89282         * m4/regex.m4: Update the description of the configure-time option,
89283         --without-included-regex, to state accurately what the defaults are,
89284         and perhaps to give people an idea why using this option is risky.
89286 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
89288         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
89289         loops on small arguments.  This attempts to avoid the problem
89290         Bruno Haible reported for AIX 4.3.2 in
89291         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
89293 2007-02-23  Bruno Haible  <bruno@clisp.org>
89295         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
89296         Needed for help2man.
89298 2007-02-23  Karl Berry  <karl@gnu.org>
89300         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
89301         exists, foo.h should be cvs-ignored, not committed.
89303 2007-02-23  Eric Blake  <ebb9@byu.net>
89305         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
89306         * lib/stat-time.h (includes): Likewise.
89307         * lib/utimecmp.c (includes): Likewise.
89308         * lib/utimens.h (includes): Likewise.
89309         * lib/getdate.y (includes): Also include "timespec.h" for use
89310         internal to the module.
89311         * modules/utimens (Depends-on): Revert yesterday's patch.
89312         * modules/nanosleep (Depends-on): Add missing dependency.
89314 2007-02-22  Bruno Haible  <bruno@clisp.org>
89316         * lib/glob.c: Don't include getlogin_r.h.
89318 2007-02-22  Jim Meyering  <jim@meyering.net>
89320         * modules/utimens (Depends-on): Add timespec, required for
89321         utimens.h's inclusion of timespec.h.
89323 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
89325         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
89326         long unreadable paths in GNU/Linux.  Problem reported by Andreas
89327         Schwab in
89328         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
89329         I'll try to think of a better way to fix the Solaris problem.
89331         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
89332         like glibc; on Solaris 10, it fails with errno == EINVAL.
89333         POSIX says the behavior is unspecified if the first argument is NULL,
89334         so play it safe and never pass NULL to the system getcwd.
89336 2007-02-21  Jim Meyering  <jim@meyering.net>
89338         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
89339         of gettimeofday.  It would conflict with the one now always
89340         provided via sys_time_.h.  Reported by Matthew Woehlke, as
89341         an IRIX 6.5 build failure.
89343 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
89345         Minor fixups to port to Solaris 10 with Sun C 5.8.
89346         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
89347         * modules/getcwd (Depends-on): Add dirfd.
89348         * lib/putenv.c (putenv): #undef it.
89349         (rpl_putenv): New decl.
89350         (malloc, free): Include <stdlib.h> rather than prototyping separately.
89352 2007-02-20  Bruno Haible  <bruno@clisp.org>
89354         * modules/stdio-tests: New file.
89355         * tests/test-stdio.c: New file.
89357         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
89358         (Depends-on): Add stdio.
89359         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89360         (Include): Use <stdio.h> instead of vsnprintf.h.
89361         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89362         HAVE_DECL_VSNPRINTF.
89363         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
89365         * modules/snprintf (Files): Remove lib/snprintf.h.
89366         (Depends-on): Add stdio.
89367         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89368         (Include): Use <stdio.h> instead of snprintf.h.
89369         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89370         HAVE_DECL_SNPRINTF.
89371         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
89372         * lib/getaddrinfo.c: Likewise.
89374         * modules/stdio: New file.
89375         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
89376         * lib/snprintf.h: Remove file.
89377         * lib/vsnprintf.h: Remove file.
89378         * lib/.cppi-disable: Remove snprintf.h.
89379         * m4/stdio_h.m4: New file.
89380         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
89382 2007-02-20  Jim Meyering  <jim@meyering.net>
89384         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
89385         used by e.g., mingw.  From Bruno Haible.
89387 2007-02-19  Bruno Haible  <bruno@clisp.org>
89389         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
89390         warnings.
89391         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89393 2007-02-19  Bruno Haible  <bruno@clisp.org>
89395         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
89396         from mingw users.
89398 2007-02-19  Bruno Haible  <bruno@clisp.org>
89400         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
89401         warnings.
89402         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
89404 2007-02-19  Jim Meyering  <jim@meyering.net>
89406         Don't use FD after a successful "fdopendir (fd)".
89407         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
89408         Reset it by calling dirfd on the just-obtained DIR*.
89410         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
89411         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
89413 2007-02-18  Bruno Haible  <bruno@clisp.org>
89415         * lib/readlink.c: Include <unistd.h>.
89416         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
89417         HAVE_READLINK.
89418         * modules/readlink (Depends-on): Add unistd.
89419         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89420         (Include): Add <unistd.h>.
89422         * lib/getlogin_r.h: Remove file.
89423         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
89424         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
89425         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
89426         HAVE_DECL_GETLOGIN_R.
89427         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
89428         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89429         (Include): Use <unistd.h> instead of getlogin_r.h.
89431         * lib/getcwd.h: Remove file.
89432         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
89433         * lib/xgetcwd.c: Likewise.
89434         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
89435         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
89436         * modules/getcwd (Files): Remove lib/getcwd.h.
89437         (Depends-on): Add unistd.
89438         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89439         (Include): Use <unistd.h> instad of getcwd.h.
89441         * lib/ftruncate.c: Include <unistd.h> first.
89442         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
89443         Set HAVE_FTRUNCATE.
89444         * modules/ftruncate (Depends-on): Add unistd.
89445         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89447         * lib/fchdir.c: Include <unistd.h> first.
89448         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
89449         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
89450         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
89451         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89452         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
89454         * lib/dup2.c: Include <unistd.h> first.
89455         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
89456         HAVE_DUP2.
89457         * modules/dup2 (Depends-on): Add unistd.
89458         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89460         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
89461         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
89462         REPLACE_CHOWN. Don't define chown as a macro here.
89463         * modules/chown (Depends-on): Add unistd.
89464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89466         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
89467         Add definition for GL_LINK_WARNING.
89468         (chown, dup2): New declarations.
89469         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
89470         link warning.
89471         (ftruncate): New declaration.
89472         (getcwd): New declaration, taken from old getcwd.h.
89473         (getlogin_r): New declaration, taken from old getlogin_r.h.
89474         (readlink): New declaration.
89475         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
89476         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
89477         (gl_PREREQ_UNISTD): Remove macro.
89478         (gl_UNISTD_MODULE_INDICATOR): New macro.
89479         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
89480         many new variables. Don't set UNISTD_H.
89481         * modules/unistd (Description): Change.
89482         (Depends-on): Add link-warning.
89483         (configure.ac): Update.
89484         (Makefile.am): Create unistd.h always. Substitute many new variables
89485         into it.
89487 2007-02-18  Bruno Haible  <bruno@clisp.org>
89489         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
89490         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
89491         HAVE_GETSUBOPT.
89492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
89493         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
89494         * lib/getsubopt.h: Remove file.
89495         * modules/getsubopt (Files): Remove lib/getsubopt.h.
89496         (Depends-on): Add stdlib.
89497         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89498         (Includes): Use <stdlib.h> instead of getsubopt.h.
89499         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
89500         Set HAVE_GETSUBOPT.
89501         * lib/getsubopt.c: Don't include getsubopt.h.
89503 2007-02-18  Bruno Haible  <bruno@clisp.org>
89505         * modules/fchdir (Depends-on): Add dup2.
89507 2007-02-18  Bruno Haible  <bruno@clisp.org>
89509         * lib/stdlib_.h: Handle glibc's special invocation convention
89510         specially.
89512 2007-02-18  Bruno Haible  <bruno@clisp.org>
89514         * modules/stdlib-tests: New file.
89515         * tests/test-stdlib.c: New file.
89517         * modules/mkstemp (Files): Remove lib/mkstemp.h.
89518         (Depends-on): Add stdlib.
89519         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89520         (Includes): Use <stdlib.h> instead of mkstemp.h.
89521         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
89522         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
89523         * lib/mkstemp.c: Don't include mkstemp.h.
89524         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
89525         * lib/stdlib--.h: Don't include mkstemp.h.
89527         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
89528         (Depends-on): Add stdlib.
89529         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89530         (Includes): Use <stdlib.h> instead of mkdtemp.h.
89531         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
89532         HAVE_MKDTEMP.
89533         * lib/mkdtemp.c: Don't include mkdtemp.h.
89534         * lib/clean-temp.c: Don't include mkdtemp.h.
89536         * modules/exit (Files): Remove lib/exit.h.
89537         (Depends-on): Add stdlib.
89538         (Makefile.am): Remove lib_SOURCES.
89539         (Include): Use <stdlib.h> instead of exit.h.
89540         * lib/argmatch.c: Don't include exit.h.
89541         * lib/execute.c: Likewise.
89542         * lib/pagealign_alloc.c: Likewise.
89543         * lib/pipe.c: Likewise.
89544         * lib/wait-process.c: Likewise.
89545         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
89546         * lib/exitfail.c: Likewise.
89547         * lib/savewd.c: Likewise.
89548         * lib/xsetenv.c: Likewise.
89550         * modules/stdlib: New file.
89551         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
89552         and extra comments about mkstemp().
89553         * lib/exit.h: Remove file.
89554         * lib/mkdtemp.h: Remove file.
89555         * lib/mkstemp.h: Remove file.
89556         * m4/stdlib_h.m4: New file.
89557         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
89559 2007-02-18  Bruno Haible  <bruno@clisp.org>
89561         * modules/math-tests: New file.
89562         * tests/test-math.c: New file.
89564         * modules/math: New file.
89565         * modules/mathl (Files): Remove lib/mathl.h.
89566         (Depends-on): Add math.
89567         (Makefile.am): Don't mention mathl.h.
89568         (Include): Use <math.h> instead of mathl.h.
89569         * lib/math_.h: New file.
89570         * lib/mathl.h: Remove file.
89571         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
89572         mathl.h.
89573         * lib/asinl.c: Likewise.
89574         * lib/atanl.c: Likewise.
89575         * lib/ceill.c: Likewise.
89576         * lib/cosl.c: Likewise.
89577         * lib/expl.c: Likewise.
89578         * lib/floorl.c: Likewise.
89579         * lib/frexpl.c: Likewise.
89580         * lib/ldexpl.c: Likewise.
89581         * lib/logl.c: Likewise.
89582         * lib/sincosl.c: Likewise.
89583         * lib/sinl.c: Likewise.
89584         * lib/sqrtl.c: Likewise.
89585         * lib/tanl.c: Likewise.
89586         * lib/trigl.c: Likewise.
89587         * m4/math_h.m4: New file.
89588         * MODULES.html.sh (Mathematics): Add math.
89590 2007-02-17  Bruno Haible  <bruno@clisp.org>
89592         * modules/wctype-tests: New file.
89593         * tests/test-wctype.c: New file.
89595         * modules/wchar-tests: New file.
89596         * tests/test-wchar.c: New file.
89598         * modules/unistd-tests: New file.
89599         * tests/test-unistd.c: New file.
89601         * modules/time-tests: New file.
89602         * tests/test-time.c: New file.
89604         * modules/sysexits-tests: New file.
89605         * tests/test-sysexits.c: New file.
89607         * modules/sys_time-tests: New file.
89608         * tests/test-sys_time.c: New file.
89610         * modules/sys_stat-tests: New file.
89611         * tests/test-sys_stat.c: New file.
89613         * modules/sys_socket-tests: New file.
89614         * tests/test-sys_socket.c: New file.
89616         * modules/sys_select-tests: New file.
89617         * tests/test-sys_select.c: New file.
89619         * modules/string-tests: New file.
89620         * tests/test-string.c: New file.
89622         * modules/stdbool-tests: New file.
89623         * tests/test-stdbool.c: New file.
89625         * modules/netinet_in-tests: New file.
89626         * tests/test-netinet_in.c: New file.
89628         * modules/inttypes-tests: New file.
89629         * tests/test-inttypes.c: New file.
89631         * modules/fcntl-tests: New file.
89632         * tests/test-fcntl.c: New file.
89634         * modules/byteswap-tests: New file.
89635         * tests/test-byteswap.c: New file.
89637         * modules/arpa_inet-tests: New file.
89638         * tests/test-arpa_inet.c: New file.
89640 2007-02-17  Bruno Haible  <bruno@clisp.org>
89642         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
89643         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
89644         if the corresponding module is not enabled. Emit link warnings if
89645         the function is used nevertheless.
89646         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
89647         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
89648         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
89649         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
89650         * modules/inttypes (Depends-on): Add link-warning.
89651         (Makefile.am): Copy the contents of build-aux/link-warning.h into
89652         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
89653         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
89654         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
89655         * modules/imaxdiv (configure.ac): Likewise.
89656         * modules/strtoimax (configure.ac): Likewise.
89657         * modules/strtoumax (configure.ac): Likewise.
89659 2007-02-17  Bruno Haible  <bruno@clisp.org>
89661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
89662         gl_STRING_MODULE_INDICATOR_DEFAULTS.
89663         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
89664         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
89666 2007-02-17  Bruno Haible  <bruno@clisp.org>
89668         * modules/link-warning: New file.
89669         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
89670         * lib/string_.h (GL_LINK_WARNING): Remove definition.
89671         * modules/string (Depends-on): Add link-warning.
89672         (Makefile.am): Copy the contents of build-aux/link-warning.h into
89673         string.h.
89674         * MODULES.html.sh (Support for building libraries and executables): Add
89675         link-warning.
89677 2007-02-17  Bruno Haible  <bruno@clisp.org>
89679         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
89680         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
89681         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
89682         long lines.
89684 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
89685             Bruno Haible  <bruno@clisp.org>
89687         * modules/tmpfile: New file.
89688         * lib/tmpfile.c: New file.
89689         * m4/tmpfile.m4: New file.
89690         * MODULES.html.sh (func_all_modules): New section "Input/output".
89692 2007-02-15  Bruno Haible  <bruno@clisp.org>
89694         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
89695         (supports_delete_on_close): New function.
89696         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
89698 2007-02-14  Bruno Haible  <bruno@clisp.org>
89700         * modules/mbspcasecmp-tests: New file.
89701         * tests/test-mbspcasecmp.sh: New file.
89702         * tests/test-mbspcasecmp.c: New file.
89704         New module mbspcasecmp.
89705         * modules/mbspcasecmp: New file.
89706         * lib/mbspcasecmp.c: New file.
89707         * lib/string_.h (strncasecmp): Change warning message.
89708         (mbspcasecmp): New declaration.
89709         * m4/mbspcasecmp.m4: New file.
89710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89711         GNULIB_MBSPCASECMP.
89712         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
89713         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
89715 2007-02-14  Bruno Haible  <bruno@clisp.org>
89717         * modules/mbsncasecmp-tests: New file.
89718         * tests/test-mbsncasecmp.sh: New file.
89719         * tests/test-mbsncasecmp.c: New file.
89721         New module mbsncasecmp.
89722         * modules/mbsncasecmp: New file.
89723         * lib/mbsncasecmp.c: New file.
89724         * lib/string_.h (mbsncasecmp): New declaration.
89725         * m4/mbsncasecmp.m4: New file.
89726         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89727         GNULIB_MBSNCASECMP.
89728         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
89729         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
89731 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
89733         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
89734         Verify that it doesn't overlap with our flags.
89735         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
89736         do not have the desired effect in multibyte locales; instead, use
89737         mbscasecmp.
89738         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
89739         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
89740         we don't require GNU fnmatch ourselves (if our users require it, they
89741         should do so explicitly).
89743         Fix regex code so it doesn't rely on strcasecmp.
89744         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
89745         Otherwise, include gnulib's langinfo.h.
89746         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
89747         undesirable behavior in non-C locales.  Instead, rely on localecharset.
89748         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
89749         * modules/regex (FILES): Remove m4/codeset.m4.
89750         (Depends-on): Add localcharset.  Remove strcase.
89752 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89754         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
89755         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
89757 2007-02-13  Bruno Haible  <bruno@clisp.org>
89759         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
89760         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89762 2007-02-12  Bruno Haible  <bruno@clisp.org>
89764         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
89765         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
89766         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
89767         time warning rather than a link error.
89769 2007-02-12  Bruno Haible  <bruno@clisp.org>
89771         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
89772         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
89773         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89775 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
89777         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
89778         args, not 2.
89780 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
89782         New module 'time', so that apps can include <time.h> as per
89783         POSIX and GNU instead of separate include files like time_r.h
89784         and timegm.h.  This implementation tries out a simpler approach
89785         for replacing decls in standard include files (as compared to
89786         the string module), somewhat as an experiment.
89788         * config/srclist.txt: Comment out mktime.c for now.
89789         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
89790         since it doesn't apply any more.  Use generic wording instead.
89791         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
89792         'time'.
89793         * lib/time_.h, m4/time_h.m4, modules/time: New files.
89794         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
89795         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
89796         Don't include <sys/types.h>; no longer needed since we assume C89.
89797         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
89798         * lib/strftime.c: Likewise.
89799         * lib/time_r.c: Likewise.
89800         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
89801         * lib/nanosleep.c: Include <time.h> first, to check interface.
89802         * lib/strptime.c: Likewise.
89803         * lib/time_r.c: Likewise.
89804         * lib/timegm.c: Likewise.
89805         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
89806         needed.
89807         * lib/timegm.c: Don't include timegm.h; no longer needed.
89808         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
89809         time.h now handles any problems in that area.
89810         (struct timespec, nanosleep): Remove; time.h now arranges for these.
89811         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
89812         that time.h defines struct timespec.
89813         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
89814         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
89815         handles that.
89816         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
89817         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
89818         needed.  Set REPLACE_LOCALTIME.
89819         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
89820         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
89821         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
89822         nanosleep; time_h.m4 now does that.  Don't require
89823         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
89824         module handles this now.
89825         * modules/getdate (Depends-on): Remove timespec.  Add time.
89826         * modules/nanosleep (Depends-on): Likewise.
89827         * modules/stat-time (Depends-on): Likewise.
89828         * modules/nanosleep (Include): Include time.h, not timespec.h.
89829         * modules/strptime (Files): Remove lib/strptime.h.
89830         (Depends-on): Add extensions, time.
89831         (Include): Include time.h, not strptime.h.
89832         * modules/time_r (Files): Remove lib/time_r.h.
89833         (Depends-on): Add time.
89834         (Include): Include time.h, not time_r.h.
89835         * modules/timegm: Likewise.
89836         * modules/timespec (Description): Now does timespec-related decls
89837         of our own, instead of struct timespec itself.
89838         (Depends-on): Add time; remove extensions.
89839         (Maintainer): Add self.
89840         * modules/utimecmp (Depends-on): Add time; remove timespec.
89841         * modules/utimens (Depends-on): Likewise.
89842         * modules/xnanosleep (Depends-on): Likewise.
89844 2007-02-11  Bruno Haible  <bruno@clisp.org>
89846         * lib/c-strstr.c: Include allocsa.h.
89847         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89848         * lib/c-strcasestr.c: Include allocsa.h.
89849         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89850         * lib/strcasestr.c: Include allocsa.h.
89851         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
89852         * lib/mbsstr.c: Include allocsa.h.
89853         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
89854         allocsa/freesa instead of malloc/free.
89855         * lib/mbscasestr.c: Include allocsa.h.
89856         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
89857         allocsa/freesa instead of malloc/free.
89858         * modules/c-strstr (Depends-on): Add allocsa.
89859         * modules/c-strcasestr (Depends-on): Likewise.
89860         * modules/strcasestr (Depends-on): Likewise.
89861         * modules/mbsstr (Depends-on): Likewise.
89862         * modules/mbscasestr (Depends-on): Likewise.
89864 2007-02-11  Bruno Haible  <bruno@clisp.org>
89866         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
89868         * modules/mbsspn-tests: New file.
89869         * tests/test-mbsspn.sh: New file.
89870         * tests/test-mbsspn.c: New file.
89872 2007-02-11  Bruno Haible  <bruno@clisp.org>
89874         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
89876         * modules/mbspbrk-tests: New file.
89877         * tests/test-mbspbrk.sh: New file.
89878         * tests/test-mbspbrk.c: New file.
89880 2007-02-11  Bruno Haible  <bruno@clisp.org>
89882         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
89883         unneeded cast.
89885         * modules/mbscspn-tests: New file.
89886         * tests/test-mbscspn.sh: New file.
89887         * tests/test-mbscspn.c: New file.
89889 2007-02-11  Bruno Haible  <bruno@clisp.org>
89891         * modules/mbscasecmp-tests: New file.
89892         * tests/test-mbscasecmp.sh: New file.
89893         * tests/test-mbscasecmp.c: New file.
89895 2007-02-11  Bruno Haible  <bruno@clisp.org>
89897         Ensure O(n) worst-case complexity of mbscasestr.
89898         * lib/mbscasestr.c: Include stdbool.h.
89899         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
89900         functions.
89901         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
89902         the bookkeeping indicates that it's worth it.
89903         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
89905         * modules/mbscasestr-tests: New file.
89906         * tests/test-mbscasestr1.c: New file.
89907         * tests/test-mbscasestr2.sh: New file.
89908         * tests/test-mbscasestr2.c: New file.
89909         * tests/test-mbscasestr3.sh: New file.
89910         * tests/test-mbscasestr3.c: New file.
89911         * tests/test-mbscasestr4.sh: New file.
89912         * tests/test-mbscasestr4.c: New file.
89913         * m4/locale-tr.m4: New file.
89915 2007-02-11  Bruno Haible  <bruno@clisp.org>
89917         Ensure O(n) worst-case complexity of mbsstr.
89918         * lib/mbsstr.c: Include stdbool.h.
89919         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
89920         functions.
89921         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
89922         bookkeeping indicates that it's worth it.
89923         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
89925         * modules/mbsstr-tests: New file.
89926         * tests/test-mbsstr1.c: New file.
89927         * tests/test-mbsstr2.sh: New file.
89928         * tests/test-mbsstr2.c: New file.
89929         * tests/test-mbsstr3.sh: New file.
89930         * tests/test-mbsstr3.c: New file.
89931         * m4/locale-fr.m4: New file.
89933 2007-02-11  Bruno Haible  <bruno@clisp.org>
89935         * lib/mbsrchr.c (mbsrchr): Fix bug.
89937         * modules/mbsrchr-tests: New file.
89938         * tests/test-mbsrchr.sh: New file.
89939         * tests/test-mbsrchr.c: New file.
89941 2007-02-11  Bruno Haible  <bruno@clisp.org>
89943         * lib/mbschr.c (mbschr): Fix bug.
89945         * modules/mbschr-tests: New file.
89946         * tests/test-mbschr.sh: New file.
89947         * tests/test-mbschr.c: New file.
89948         * m4/locale-zh.m4: New file.
89950 2007-02-11  Bruno Haible  <bruno@clisp.org>
89952         Support for copying multibyte string iterators.
89953         * lib/mbiter.h: Include <string.h>.
89954         (mbiter_multi_copy): New function.
89955         (mbi_copy): New macro.
89956         * lib/mbuiter.h: Include <string.h>.
89957         (mbuiter_multi_copy): New function.
89958         (mbui_copy): New macro.
89960 2007-02-11  Bruno Haible  <bruno@clisp.org>
89962         New module mbslen.
89963         * modules/mbslen: New file.
89964         * lib/mbslen.c: New file.
89965         * lib/string_.h (mbslen): New declaration.
89966         * m4/mbslen.m4: New file.
89967         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89968         GNULIB_MBSLEN.
89969         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
89970         * MODULES.html.sh (Internationalization functions): Add mbslen.
89972 2007-02-11  Bruno Haible  <bruno@clisp.org>
89974         Ensure O(n) worst-case complexity of strcasestr substitute.
89975         * lib/strcasestr.c: Include stdbool.h.
89976         (knuth_morris_pratt): New function.
89977         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
89978         bookkeeping indicates that it's worth it.
89979         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
89981         * modules/strcasestr-tests: New file.
89982         * tests/test-strcasestr.c: New file.
89984 2007-02-11  Bruno Haible  <bruno@clisp.org>
89986         Ensure O(n) worst-case complexity of c_strcasestr.
89987         * lib/c-strcasestr.c: Include stdbool.h, string.h.
89988         (knuth_morris_pratt): New function.
89989         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
89990         the bookkeeping indicates that it's worth it.
89991         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
89993         * modules/c-strcasestr-tests: New file.
89994         * tests/test-c-strcasestr.c: New file.
89996 2007-02-11  Bruno Haible  <bruno@clisp.org>
89998         Ensure O(n) worst-case complexity of c_strstr.
89999         * lib/c-strstr.c: Include stdbool.h, string.h.
90000         (knuth_morris_pratt): New function.
90001         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
90002         bookkeeping indicates that it's worth it.
90003         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
90005         * lib/c-strstr.c: Complete rewrite for maintainability.
90007         * modules/c-strstr-tests: New file.
90008         * tests/test-c-strstr.c: New file.
90010 2007-02-11  Bruno Haible  <bruno@clisp.org>
90012         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
90013         5.2.1 and earlier, whereby \055 was treated just like the range
90014         delimiter '-'.
90015         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
90017 2007-02-08  Bruno Haible  <bruno@clisp.org>
90019         * modules/regex (Depends-on): Add stdbool.
90020         Reported by Dalibor Topic <robilad@kaffe.org>.
90022 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
90024         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
90025         Prefer returning from main to exiting from it.
90026         Remove unnecessary parens after sizeof.
90028 2007-02-05  Bruno Haible  <bruno@clisp.org>
90030         New module mbssep.
90031         * modules/mbssep: New file.
90032         * lib/mbssep.c: New file.
90033         * lib/string_.h (strsep): Add a conditional link warning.
90034         (mbssep): New declaration.
90035         * m4/mbssep.m4: New file.
90036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90037         GNULIB_MBSSEP.
90038         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
90039         * MODULES.html.sh (Internationalization functions): Add mbssep.
90041 2007-02-05  Bruno Haible  <bruno@clisp.org>
90043         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
90044         Optimize search in case of 1 delimiter.
90046 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
90048         * lib/acl.h: Include sys/types.h before sys/acl.h.
90050 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
90052         Merge upstream fix for glibc bugzilla #3957:
90054         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
90056         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
90057         bit for RE_HAT_LISTS_NOT_NEWLINE.
90058         (build_charclass_op): Remove bogus comment.
90060 2007-02-05  Simon Josefsson  <simon@josefsson.org>
90062         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
90064 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
90066         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
90067         * lib/memmem.c [!defined _LIBC]: Include config.h.
90069 2007-02-04  Bruno Haible  <bruno@clisp.org>
90071         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
90072         warning message.
90074 2007-02-04  Bruno Haible  <bruno@clisp.org>
90076         New module mbstok_r.
90077         * modules/mbstok_r: New file.
90078         * lib/mbstok_r.c: New file.
90079         * lib/string_.h (strtok_r): Change argument names to match the
90080         comments. Add a conditional link warning.
90081         (mbstok_r): New declaration.
90082         * m4/mbstok_r.m4: New file.
90083         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90084         GNULIB_MBSTOK_R.
90085         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
90086         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
90088 2007-02-04  Bruno Haible  <bruno@clisp.org>
90090         New module mbsspn.
90091         * modules/mbsspn: New file.
90092         * lib/mbsspn.c: New file.
90093         * lib/string_.h (strspn): Add a conditional link warning.
90094         (mbsspn): New declaration.
90095         * m4/mbsspn.m4: New file.
90096         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90097         GNULIB_MBSSPN.
90098         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
90099         * MODULES.html.sh (Internationalization functions): Add mbsspn.
90101 2007-02-04  Bruno Haible  <bruno@clisp.org>
90103         New module mbspbrk.
90104         * modules/mbspbrk: New file.
90105         * lib/mbspbrk.c: New file.
90106         * lib/string_.h (strpbrk): Add a conditional link warning.
90107         (mbspbrk): New declaration.
90108         * m4/mbspbrk.m4: New file.
90109         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90110         GNULIB_MBSPBRK.
90111         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
90112         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
90114 2007-02-04  Bruno Haible  <bruno@clisp.org>
90116         New module mbscspn.
90117         * modules/mbscspn: New file.
90118         * lib/mbscspn.c: New file.
90119         * lib/string_.h (strcspn): Add a conditional link warning.
90120         (mbscspn): New declaration.
90121         * m4/mbscspn.m4: New file.
90122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90123         GNULIB_MBSCSPN.
90124         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
90125         * MODULES.html.sh (Internationalization functions): Add mbscspn.
90127 2007-02-04  Bruno Haible  <bruno@clisp.org>
90129         New module mbscasestr, reduced goal of strcasestr.
90130         * modules/mbscasestr: New file.
90131         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
90132         (mbscasestr): Renamed from strcasestr.
90133         * lib/strcasestr.c: Don't include mbuiter.h.
90134         (strcasestr): Remove support for multibyte locales.
90135         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
90136         Change the conditional link warning.
90137         (mbscasestr): New declaration.
90138         * m4/mbscasestr.m4: New file.
90139         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
90140         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
90141         REPLACE_STRCASESTR.
90142         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
90143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90144         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
90145         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
90146         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
90147         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
90148         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
90149         (Depends-on): Remove mbuiter.
90150         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
90152 2007-02-04  Bruno Haible  <bruno@clisp.org>
90154         Simplify handling of strncasecmp.
90155         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
90156         the conditional link warning.
90157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90158         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
90159         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
90160         * modules/strcase (configure.ac): Don't invoke
90161         gl_STRING_MODULE_INDICATOR.
90162         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
90164 2007-02-04  Bruno Haible  <bruno@clisp.org>
90166         New module mbscasecmp, reduced goal of strcasecmp.
90167         * modules/mbscasecmp: New file.
90168         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
90169         (mbscasecmp): Renamed from strcasecmp.
90170         * lib/strcasecmp.c: Don't include mbuiter.h.
90171         (strcasecmp): Remove support for multibyte locales.
90172         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
90173         Change the conditional link warning.
90174         (mbscasecmp): New declaration.
90175         * m4/mbscasecmp.m4: New file.
90176         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
90177         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
90178         REPLACE_STRCASECMP.
90179         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
90180         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90181         GNULIB_MBSCASECMP.
90182         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
90183         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
90184         * modules/strcase (Files): Remove m4/mbrtowc.m4.
90185         (Depends-on): Remove mbuiter.
90186         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
90188 2007-02-04  Bruno Haible  <bruno@clisp.org>
90190         New module mbsstr. Remove module strstr.
90191         * modules/mbsstr: New file.
90192         * modules/strstr: Remove file.
90193         * lib/mbsstr.c: Renamed from lib/strstr.c.
90194         (mbsstr): Renamed from strstr.
90195         * lib/string_.h (strstr): Remove declaration. Change the conditional
90196         link warning.
90197         (mbsstr): New declaration.
90198         * m4/mbsstr.m4: New file.
90199         * m4/strstr.m4: Remove file.
90200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
90201         REPLACE_STRSTR.
90202         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
90203         Don't initialize GNULIB_STRSTR.
90204         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
90205         substitute GNULIB_STRSTR and REPLACE_STRSTR.
90206         * MODULES.html.sh (Internationalization functions): Add mbsstr.
90207         (Support for systems lacking ANSI C 89): Remove strstr.
90209 2007-02-04  Bruno Haible  <bruno@clisp.org>
90211         New module mbsrchr.
90212         * modules/mbsrchr: New file.
90213         * lib/mbsrchr.c: New file.
90214         * lib/string_.h (strrchr): Add a conditional link warning.
90215         (mbsrchr): New declaration.
90216         * m4/mbsrchr.m4: New file.
90217         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90218         GNULIB_MBSRCHR.
90219         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
90220         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
90222 2007-02-04  Bruno Haible  <bruno@clisp.org>
90224         New module mbschr.
90225         * modules/mbschr: New file.
90226         * lib/mbschr.c: New file.
90227         * lib/string_.h (strchr): Add a conditional link warning.
90228         (mbschr): New declaration.
90229         * m4/mbschr.m4: New file.
90230         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90231         GNULIB_MBSCHR.
90232         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
90233         * MODULES.html.sh (Internationalization functions): Add mbschr.
90235 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
90237         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
90239         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
90241 2007-02-04  Bruno Haible  <bruno@clisp.org>
90243         New module description section 'configure.ac-early'.
90244         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
90245         (func_get_autoconf_early_snippet): New function.
90246         (func_import, func_create_testdir): Use it. Remove special cases for
90247         modules 'extensions' and 'lock'.
90248         * modules/extensions (configure.ac-early): Require
90249         gl_USE_SYSTEM_EXTENSIONS.
90250         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
90252 2007-02-04  Bruno Haible  <bruno@clisp.org>
90254         Make use of gcj-4.3's -fsource and -ftarget option.
90255         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
90256         and if so try the options -fsource and -ftarget.
90257         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
90258         source_version, ftarget_option, target_version arguments.
90259         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
90260         (is_envjavac_oldgcj_14_14_usable): Renamed from
90261         is_envjavac_gcj_14_14_usable.
90262         (is_envjavac_oldgcj_14_13_usable): Renamed from
90263         is_envjavac_gcj_14_13_usable.
90264         (is_gcj_present): Update.
90265         (is_gcj_43, is_gcj43_usable): New functions.
90266         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
90267         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
90268         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
90269         try the options -fsource and -ftarget.
90271 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
90273         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
90274         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
90275         larger value.
90277 2007-02-03  Jim Meyering  <jim@meyering.net>
90279         Give tools a better chance to allocate space for very large buffers.
90280         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
90282         Make pwd and readlink work also when run with an unreadable parent dir
90283         on systems with openat support.
90284         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
90285         provided getcwd function, even when we have openat support.
90286         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
90288 2007-02-02  Bruno Haible  <bruno@clisp.org>
90290         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
90291         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
90292         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
90293         portability problems if one of these functions is only used on specific
90294         platforms.
90295         Reported by Paul Eggert.
90297 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
90299         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
90300         is causing more trouble than it's curing.
90301         * lib/regex_internal.h (__mempcpy): Remove.
90302         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
90303         (and make the code a tad smaller to boot).
90304         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
90306 2007-02-02  Jim Meyering  <jim@meyering.net>
90308         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
90309         section, not in the Makefile.am: one.
90311 2007-02-02  Eric Blake  <ebb9@byu.net>
90313         * lib/strchrnul.c: Always include config.h first.
90315         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
90316         gnulib strstr is not necessary here.
90318 2007-02-02  Simon Josefsson  <simon@josefsson.org>
90320         * m4/socklen.m4: Fix typo.
90322 2007-02-02  Eric Blake  <ebb9@byu.net>
90324         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
90325         * modules/netinet_in (Makefile.am): Likewise.
90327 2007-02-01  Bruno Haible  <bruno@clisp.org>
90329         * lib/string_.h (GL_LINK_WARNING): New macro.
90330         (strcasecmp, strstr, strcasestr): If provided by the system,
90331         conditionally define as a macro that leads to a warning instead of to
90332         an error.
90333         (strncasecmp): Conditionally define as a macro that leads to a warning.
90335 2007-02-01  Karl Berry  <karl@gnu.org>
90337         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
90339 2007-02-01  Bruno Haible  <bruno@clisp.org>
90341         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
90342         renamings.
90344 2007-02-01  Eric Blake  <ebb9@byu.net>
90346         * modules/regex (Depends-on): Revert dependence on mempcpy.
90347         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
90348         module's definition of mempcpy.
90349         Reported by Paul Eggert.
90351 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
90353         * lib/string_.h: If the gnulib module XYZ is not present, undefine
90354         the symbol XYZ before redefining it.  This fixes a problem with
90355         programs that don't use XYZ, when compiled on systems that define
90356         XYZ to something else.
90358 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
90360         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
90361         occurs when "mkdir -m foo" creates a setgid directory that is (1)
90362         writeable to group or other and (2) is intended to have a special
90363         mode bit that is set or cleared.  In such a case, the directory
90364         should be neither group- nor other-writeable until the special
90365         mode bits are right.
90367 2007-01-31  Eric Blake  <ebb9@byu.net>
90369         * modules/mountlist (Depends-on): Add strstr.
90371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
90372         bug.
90373         * modules/string (Makefile.am): Remove redundant replacement.
90374         * modules/regex (Depends-on): Add mempcpy.
90376 2007-01-31  Bruno Haible  <bruno@clisp.org>
90378         New module description field 'Link'.
90379         * gnulib-tool (func_usage): Document --extract-link-directive.
90380         (sed_extract_prog): Recognize 'Link' directive.
90381         (func_get_link_directive): New function.
90382         (func_import): Show summary of link directives.
90383         Handle --extract-link-directive option.
90384         * modules/acl (Link): New section.
90385         * modules/clock-time (Link): New section.
90386         * modules/euidaccess (Link): New section.
90387         * modules/gettext (Link): New section.
90388         * modules/iconv (Link): New section.
90389         * modules/lock (Link): New section.
90390         * modules/nanosleep (Link): New section.
90391         * modules/readline (Link): New section.
90393 2007-01-27  Bruno Haible  <bruno@clisp.org>
90395         Enforce the use of gnulib modules for unportable <string.h> functions.
90396         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
90397         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
90398         (gl_HEADER_STRING_H_BODY): Require it.
90399         * lib/string_.h: If the gnulib module XYZ is not present, redefine
90400         the symbol XYZ to one that gives a link error.
90401         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
90402         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
90403         * modules/mempcpy (configure.ac): Likewise.
90404         * modules/memrchr (configure.ac): Likewise.
90405         * modules/stpcpy (configure.ac): Likewise.
90406         * modules/stpncpy (configure.ac): Likewise.
90407         * modules/strcase (configure.ac): Likewise.
90408         * modules/strcasestr (configure.ac): Likewise.
90409         * modules/strchrnul (configure.ac): Likewise.
90410         * modules/strdup (configure.ac): Likewise.
90411         * modules/strndup (configure.ac): Likewise.
90412         * modules/strnlen (configure.ac): Likewise.
90413         * modules/strpbrk (configure.ac): Likewise.
90414         * modules/strsep (configure.ac): Likewise.
90415         * modules/strstr (configure.ac): Likewise.
90416         * modules/strtok_r (configure.ac): Likewise.
90418 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
90420         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
90422 2007-01-30  Jim Meyering  <jim@meyering.net>
90424         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
90426 2007-01-29  Bruno Haible  <bruno@clisp.org>
90428         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
90429         * lib/execute.c: Likewise.
90430         * lib/pipe.c: Likewise.
90431         * lib/printf-args.h: Likewise.
90432         * lib/printf-args.c: Likewise.
90433         * lib/printf-parse.c: Likewise.
90434         * lib/vasnprintf.c: Likewise.
90436 2007-01-29  Eric Blake  <ebb9@byu.net>
90438         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
90439         declaration.
90441 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
90443         * lib/strptime.h (strptime): Use 'restrict' for args where
90444         POSIX requires this.
90445         * lib/strptime.c (strptime): Likewise.
90446         Change license notice from LGPL to GPL, since gnulib-tool will
90447         change this as needed.
90448         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
90449         defined.
90450         Include "strptime.h" first, to check interface.
90451         Do not #undef _LIBC and _NL_CURRENT.
90452         Do not include <stdlib.h>; no longer needed.
90453         Include "time_r.h" and declare ptime_locale_status
90454         only if _LIBC is not defined.
90455         (__P): Remove unused macro.
90456         (match_string): Bring back glibc version, but use it only if _LIBC
90457         is defined.
90458         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
90459         Remove unnecessary assertion and abort() call.
90460         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
90461         * m4/strptime.m4: Fix serial number comment.
90462         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
90463         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
90464         (Depends-on): Add time_r.
90466 2007-01-29  Bruno Haible  <bruno@clisp.org>
90468         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90469         strptime.
90470         * modules/strptime (Depends-on): Add stdbool.
90471         * lib/strptime.h: Include <time.h> always. Add comments.
90473 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90475         * modules/strptime: New file.
90476         * lib/strptime.h: New file.
90477         * lib/strptime.c: New file.
90478         * m4/strptime.m4: New file.
90480 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
90482         * MODULES.html.sh: New module mpsort.
90483         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
90485         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
90486         a circularity problem with HP-UX ia64 reported by Bob Proulx in
90487         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
90488         All uses changed.
90489         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
90490         All uses changed.
90491         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
90492         to _Restrict_.
90493         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
90494         the parameter matches the prototype.
90496 2007-01-28  Jim Meyering  <jim@meyering.net>
90498         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
90499         sys/time.h here, reverting that part of the previous patch:
90500         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
90502 2007-01-28  Bruno Haible  <bruno@clisp.org>
90504         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
90505         value of $(SYS_TIME_H).
90506         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
90507         remove it conditionally, too. [added by Jim Meyering]
90508         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
90509         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
90510         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
90511         GETTIMEOFDAY_REPLACEMENT to 1.
90513 2007-01-28  Bruno Haible  <bruno@clisp.org>
90515         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
90516         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
90517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
90518         Set UNISTD_H instead of UNISTD_H2.
90519         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
90521 2007-01-28  Bruno Haible  <bruno@clisp.org>
90523         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
90524         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
90526 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90528         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
90529         (func_create_testdir): Ensure C locale for `grep' and `tr'
90530         character ranges.
90531         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
90532         ACLOCAL_AMFLAGS parsing state machine.
90534 2007-01-27  Bruno Haible  <bruno@clisp.org>
90536         * modules/unistr/base: Update.
90538 2007-01-27  Bruno Haible  <bruno@clisp.org>
90540         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
90541         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
90542         * modules/unistr/u32-mbtouc-unsafe: Renamed from
90543         modules/unistr/u32-mbtouc.
90544         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
90545         * lib/unistr.h: Update.
90546         * lib/linebreak.c: Update.
90547         * modules/unistr/u32-mbtouc: Renamed from
90548         modules/unistr/u32-mbtouc-safe.
90549         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
90550         * lib/unistr.h: Update.
90551         * lib/unistr/u32-to-u8.c: Update.
90552         * lib/unistr/u32-to-u16.c: Update.
90554 2007-01-27  Bruno Haible  <bruno@clisp.org>
90556         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
90557         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
90558         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
90559         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
90560         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
90561         * modules/unistr/u16-mbtouc-unsafe: Renamed from
90562         modules/unistr/u16-mbtouc.
90563         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
90564         * lib/unistr.h: Update.
90565         * lib/linebreak.c: Update.
90566         * modules/linebreak: Update.
90567         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
90568         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
90569         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
90570         * modules/unistr/u16-mbtouc: Renamed from
90571         modules/unistr/u16-mbtouc-safe.
90572         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
90573         * lib/unistr.h: Update.
90574         * lib/unistr/u16-to-u8.c: Update.
90575         * modules/unistr/u16-to-u8: Update.
90576         * lib/unistr/u16-to-u32.c: Update.
90577         * modules/unistr/u16-to-u32: Update.
90579 2007-01-27  Bruno Haible  <bruno@clisp.org>
90581         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
90582         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
90583         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
90584         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
90585         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
90586         * modules/unistr/u8-mbtouc-unsafe: Renamed from
90587         modules/unistr/u8-mbtouc.
90588         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
90589         * lib/unistr.h: Update.
90590         * lib/striconveh.c: Update.
90591         * modules/striconveh: Update.
90592         * lib/linebreak.c: Update.
90593         * modules/linebreak: Update.
90594         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
90595         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
90596         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
90597         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
90598         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
90599         * lib/unistr.h: Update.
90600         * lib/striconveh.c: Update.
90601         * modules/striconveh: Update.
90602         * lib/unistr/u8-to-u16.c: Update.
90603         * modules/unistr/u8-to-u16: Update.
90604         * lib/unistr/u8-to-u32.c: Update.
90605         * modules/unistr/u8-to-u32: Update.
90607 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90609         Sync from Libtool.
90610         * lib/argz.c: Do not include strings.h nor memory.h, include
90611         string.h unconditionally.  Patch by Simon Josefsson.
90613 2007-01-27  Bruno Haible  <bruno@clisp.org>
90615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
90616         from gl_HEADER_STRING_H_BODY.
90617         (gl_HEADER_STRING_H_BODY): Require it.
90618         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
90619         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
90620         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
90621         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
90622         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
90623         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
90624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90625         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
90626         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
90627         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
90628         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
90629         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
90630         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
90631         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90632         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
90634 2007-01-27  Bruno Haible  <bruno@clisp.org>
90636         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
90637         check_PROGRAMS into noinst_PROGRAMS.
90638         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
90639         check_PROGRAMS in this case.
90640         (func_import): Set for_test to false.
90641         (func_create_testdir): Set for_test to true.
90643 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90644             Bruno Haible  <bruno@clisp.org>
90646         * modules/strcasestr (Files): Remove lib/strcasestr.h.
90647         (Depends-on): Add string.
90648         (Includes): Use <string.h> instead of strcasestr.h.
90649         * modules/string (Makefile.am): Also substitute the value of
90650         REPLACE_STRCASESTR.
90651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
90652         assume strcasestr is declared in <string.h> not <strings.h>. Also
90653         set REPLACE_STRCASESTR.
90654         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
90655         REPLACE_STRCASESTR.
90656         * lib/strcasestr.h: Remove file.
90657         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
90658         * lib/string_.h (strcasestr): New declaration.
90660 2007-01-27  Bruno Haible  <bruno@clisp.org>
90662         * lib/string_.h: Use 'extern'.
90664 2007-01-27  Jim Meyering  <jim@meyering.net>
90666         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
90667         of set-but-not-used local, "q".
90669         * lib/mempcpy.c: Include <config.h> before <string.h>.
90670         This fixes a compilation error on HP-UX, due to the system's
90671         "restrict"-using mempcpy prototype.
90673 2007-01-26  Bruno Haible  <bruno@clisp.org>
90675         Small optimization.
90676         * lib/javacomp.c: Include c-strstr.h.
90677          (is_envjavac_gcj): Use c_strstr instead of strstr.
90678         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
90680 2007-01-26  Bruno Haible  <bruno@clisp.org>
90682         * MODULES.html.sh (Unicode string functions): Add the new modules.
90684         * modules/uniconv/u32-strconv-to-locale: New file.
90685         * lib/uniconv/u32-strconv-to-locale.c: New file.
90687         * modules/uniconv/u16-strconv-to-locale: New file.
90688         * lib/uniconv/u16-strconv-to-locale.c: New file.
90690         * modules/uniconv/u8-strconv-to-locale: New file.
90691         * lib/uniconv/u8-strconv-to-locale.c: New file.
90693         * modules/uniconv/u32-strconv-from-locale: New file.
90694         * lib/uniconv/u32-strconv-from-locale.c: New file.
90696         * modules/uniconv/u16-strconv-from-locale: New file.
90697         * lib/uniconv/u16-strconv-from-locale.c: New file.
90699         * modules/uniconv/u8-strconv-from-locale: New file.
90700         * lib/uniconv/u8-strconv-from-locale.c: New file.
90702         * modules/uniconv/u32-strconv-to-enc: New file.
90703         * lib/uniconv/u32-strconv-to-enc.c: New file.
90704         * modules/uniconv/u32-strconv-to-enc-tests: New file.
90705         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
90707         * modules/uniconv/u16-strconv-to-enc: New file.
90708         * lib/uniconv/u16-strconv-to-enc.c: New file.
90709         * lib/uniconv/u-strconv-to-enc.h: New file.
90710         * modules/uniconv/u16-strconv-to-enc-tests: New file.
90711         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
90713         * modules/uniconv/u8-strconv-to-enc: New file.
90714         * lib/uniconv/u8-strconv-to-enc.c: New file.
90715         * modules/uniconv/u8-strconv-to-enc-tests: New file.
90716         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
90718         * modules/uniconv/u32-strconv-from-enc: New file.
90719         * lib/uniconv/u32-strconv-from-enc.c: New file.
90720         * modules/uniconv/u32-strconv-from-enc-tests: New file.
90721         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
90723         * modules/uniconv/u16-strconv-from-enc: New file.
90724         * lib/uniconv/u16-strconv-from-enc.c: New file.
90725         * modules/uniconv/u16-strconv-from-enc-tests: New file.
90726         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
90728         * modules/uniconv/u8-strconv-from-enc: New file.
90729         * lib/uniconv/u8-strconv-from-enc.c: New file.
90730         * lib/uniconv/u-strconv-from-enc.h: New file.
90731         * modules/uniconv/u8-strconv-from-enc-tests: New file.
90732         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
90734         * modules/uniconv/u32-conv-from-enc: New file.
90735         * lib/uniconv/u32-conv-from-enc.c: New file.
90736         * modules/uniconv/u32-conv-from-enc-tests: New file.
90737         * tests/uniconv/test-u32-conv-from-enc.c: New file.
90739         * modules/uniconv/u16-conv-from-enc: New file.
90740         * lib/uniconv/u16-conv-from-enc.c: New file.
90741         * lib/uniconv/u-conv-from-enc.h: New file.
90742         * modules/uniconv/u16-conv-from-enc-tests: New file.
90743         * tests/uniconv/test-u16-conv-from-enc.c: New file.
90745         * modules/uniconv/u8-conv-from-enc: New file.
90746         * lib/uniconv/u8-conv-from-enc.c: New file.
90747         * modules/uniconv/u8-conv-from-enc-tests: New file.
90748         * tests/uniconv/test-u8-conv-from-enc.c: New file.
90750         * modules/uniconv/base: New file.
90751         * lib/uniconv.h: New file.
90753 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
90755         * doc/gnulib-tool.texi (Initial import): Update to match current
90756         behavior with strdup module.
90757         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
90758         * lib/memmem.h: Remove; all uses removed.  This is now done
90759         by <string.h>.
90760         * lib/mempcpy.h: Likewise.
90761         * lib/memrchr.h: Likewise.
90762         * lib/stpcpy.h: Likewise.
90763         * lib/stpncpy.h: Likewise.
90764         * lib/strcase.h: Likewise.
90765         * lib/strchrnul.h: Likewise.
90766         * lib/strdup.h: Likewise.
90767         * lib/strndup.h: Likewise.
90768         * lib/strnlen.h: Likewise.
90769         * lib/strpbrk.h: Likewise.
90770         * lib/strsep.h: Likewise.
90771         * lib/strstr.h: Likewise.
90772         * lib/strtok_r.h: Likewise.
90773         * lib/string_.h: New file.
90774         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
90775         Rely on <string.h> instead.
90776         * lib/canon-host.c: Likewise.
90777         * lib/chdir-long.c: Likewise.
90778         * lib/concatpath.c: Likewise.
90779         * lib/exclude.c: Likewise.
90780         * lib/fchdir.c: Likewise.
90781         * lib/getaddrinfo.c: Likewise.
90782         * lib/getcwd.c: Likewise.
90783         * lib/getsubopt.c: Likewise.
90784         * lib/glob.c: Likewise.
90785         * lib/hard-locale.c: Likewise.
90786         * lib/iconvme.c: Likewise.
90787         * lib/javacomp.c: Likewise.
90788         * lib/mempcpy.c: Likewise.
90789         * lib/memrchr.c: Likewise.
90790         * lib/regex_internal.h: Likewise.
90791         * lib/stpncpy.c: Likewise.
90792         * lib/strcasecmp.c: Likewise.
90793         * lib/strchrnul.c: Likewise.
90794         * lib/strdup.c: Likewise.
90795         * lib/striconv.c: Likewise.
90796         * lib/striconveh.c: Likewise.
90797         * lib/striconveha.c: Likewise.
90798         * lib/strncasecmp.c: Likewise.
90799         * lib/strndup.c: Likewise.
90800         * lib/strnlen.c: Likewise.
90801         * lib/strsep.c: Likewise.
90802         * lib/strstr.c: Likewise.
90803         * lib/strtok_r.c: Likewise.
90804         * lib/userspec.c: Likewise.
90805         * lib/w32spawn.h: Likewise.
90806         * lib/xstrndup.c: Likewise.
90807         * lib/mountlist.c (strstr): Remove decl.
90808         * m4/string_h.m4: New file.
90809         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
90810         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
90811         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
90812         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
90813         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
90814         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
90815         Set REPLACE_STRCASECMP if necessary.
90816         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
90817         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
90818         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
90819         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
90820         HAVE_DECL_STRDUP if necessary.
90821         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
90822         since gl_FUNC_STRNDUP does that now.
90823         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
90824         Check for decl here...
90825         (gl_PREREQ_STRNLEN): ... not here.
90826         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
90827         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
90828         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
90829         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
90830         necessary.
90831         * modules/string: New file.
90832         * modules/memmem (Files): Remove special-purpose include file.
90833         (Depends-on): Add string.
90834         (Include): Include <string.h>, not the removed file.
90835         * modules/mempcpy: Likewise.
90836         * modules/memrchr: Likewise.
90837         * modules/stpcpy: Likewise.
90838         * modules/stpncpy: Likewise.
90839         * modules/strcase: Likewise.
90840         * modules/strchrnul: Likewise.
90841         * modules/strdup: Likewise.
90842         * modules/strndup: Likewise.
90843         * modules/strnlen: Likewise.
90844         * modules/strpbrk: Likewise.
90845         * modules/strsep: Likewise.
90846         * modules/strstr: Likewise.
90847         * modules/strtok_r: Likewise.
90848         * tests/test-dirname.c: Don't include "strdup.h", since
90849         <string.h> now suffices.
90850         * tests/test-memmem.c: Don't include "memmem.h", since
90851         <string.h> now suffices.
90853 2007-01-25  Bruno Haible  <bruno@clisp.org>
90855         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
90856         *resultp is 0.
90858         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
90859         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
90860         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
90861         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
90863         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
90864         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
90865         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
90866         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
90867         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
90868         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
90870 2007-01-24  Bruno Haible  <bruno@clisp.org>
90872         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
90873         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
90874         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
90875         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
90876         gl_FUNC_FTS_CORE.
90877         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
90878         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
90879         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90880         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
90881         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
90882         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
90883         gl_FUNC_FCHOWNAT.
90884         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
90885         gl_FUNC_STRFTIME.
90886         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
90887         Reported by Ralf Wildenhues.
90889 2007-01-24  Bruno Haible  <bruno@clisp.org>
90891         Drop AC_REQUIRE calls that are redundant with the module dependencies.
90892         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
90893         gl_GETADDRINFO.
90894         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
90895         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
90896         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
90898 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
90900         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
90901         Don't use 'exit'; just return from 'main'.
90902         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
90904         * lib/fnmatch_.h: Readjust white space and comments to match
90905         glibc, to avoid spurious diffs.
90907 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
90909         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
90910         2004-12-01 change by Jakub Jelinek, since this code won't compile
90911         if !LIBC.  Problem reported by Bob Proulx.
90913 2007-01-23  Bruno Haible  <bruno@clisp.org>
90915         * lib/striconveh.c: Include c-strcaseeq.h.
90916         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
90917         * modules/striconveh (Depends-on): Add c-strcaseeq.
90919 2007-01-23  Bruno Haible  <bruno@clisp.org>
90921         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
90923         * modules/c-strcaseeq: New file.
90924         * lib/c-strcaseeq.h: New file.
90926         * modules/streq: New file.
90927         * lib/streq.h: New file.
90929 2007-01-23  Bruno Haible  <bruno@clisp.org>
90931         * modules/striconveha-tests: New file.
90932         * tests/test-striconveha.c: New file.
90934         * lib/striconveha.h: Include <stdbool.h>.
90935         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
90936         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
90937         (mem_iconveha_notranslit): Renamed from mem_iconveha.
90938         (mem_iconveha): New function.
90939         (str_iconveha_notranslit): Renamed from str_iconveha.
90940         (str_iconveha): New function.
90941         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
90942         c-strcase.
90944 2007-01-23  Bruno Haible  <bruno@clisp.org>
90946         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
90947         encodings without forgiving before trying any encoding with handler.
90948         (str_iconveha): Try all encodings without forgiving before trying any
90949         encoding with handler.
90951 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
90953         Import the following changes from libc.
90955         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
90957         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
90959         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
90961         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
90962         normal_bracket label.
90964         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
90966         [BZ #361]
90967         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
90968         to normal_bracket after fetching the next character.
90970 2007-01-22  Bruno Haible  <bruno@clisp.org>
90972         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
90973         argument.
90974         * lib/striconveh.c (iconv_carefully_1): New function.
90975         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
90976         argument.
90977         (str_cd_iconveh): Update.
90978         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
90979         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
90980         * tests/test-striconveh.c (MAGIC): New macro.
90981         (new_offsets): New function.
90982         (main): Test call with and without offsets.
90984 2007-01-22  Bruno Haible  <bruno@clisp.org>
90986         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
90987         * modules/sys_select (Makefile.am): Likewise.
90988         * modules/sys_socket (Makefile.am): Likewise.
90989         * modules/sys_time (Makefile.am): Likewise.
90991 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
90993         * modules/gettimeofday (License): Change from GPL to LGPL, since
90994         gettimeofday is a library function.
90996 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90998         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
91000 2007-01-21  Bruno Haible  <bruno@clisp.org>
91002         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
91004 2007-01-21  Bruno Haible  <bruno@clisp.org>
91006         * modules/striconveha: New file.
91007         * lib/striconveha.h: New file.
91008         * lib/striconveha.c: New file.
91009         * MODULES.html.sh (Internationalization functions): Add striconveha.
91010         * lib/striconv.c (str_iconv): Optimize the case of an empty input
91011         string.
91012         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
91014 2007-01-21  Bruno Haible  <bruno@clisp.org>
91016         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
91017         * lib/striconveh.c (str_iconveh): Likewise.
91019 2007-01-21  Bruno Haible  <bruno@clisp.org>
91021         * lib/striconveh.h (mem_iconveh): New declaration.
91022         * lib/striconveh.c (mem_iconveh): New function.
91023         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
91025 2007-01-21  Bruno Haible  <bruno@clisp.org>
91027         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
91029         * lib/striconveh.h (mem_cd_iconveh): Change specification.
91030         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
91031         original result buffer.
91032         (str_cd_iconveh): Update.
91033         * tests/test-striconveh.c (main): Update.
91035         * lib/striconv.h (mem_cd_iconv): Change specification.
91036         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
91037         result buffer.
91038         (str_cd_iconv): Update.
91039         * tests/test-striconv.c (main): Update.
91041 2007-01-21  Bruno Haible  <bruno@clisp.org>
91043         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
91045 2007-01-20  Jim Meyering  <jim@meyering.net>
91047         * lib/userspec.c (parse_with_separator): If a user or group string
91048         starts with "+", skip the corresponding name-to-ID look-up, since
91049         such a look-up must fail: user and group names may not include "+".
91051 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
91053         * lib/poll.c: Include sys/time.h and time.h unconditionally,
91054         since we now assume the sys_time module.
91055         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
91056         check for sys/time.h; no longer needed.
91057         * modules/poll (Depends-on): Depend on sys_time.
91059 2007-01-18  Bruno Haible  <bruno@clisp.org>
91061         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
91062         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
91064         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
91065         gettimeofday.
91067         * tests/test-gettimeofday.c: Include <time.h>.
91068         (dummy): Remove variable.
91070         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
91071         gl_HEADER_SYS_TIME_H.
91072         (gl_HEADER_SYS_TIME_H): New macro.
91074         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
91075         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91076         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
91077         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
91078         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91079         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
91080         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
91081         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91082         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
91083         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
91084         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91086         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
91087         last change; it caused a compilation error when cross-compiling to
91088         Cygwin.
91090 2007-01-18  Jim Meyering  <jim@meyering.net>
91092         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
91093         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
91094         than the race-prone "test -d sys || mkdir sys".
91095         (configure.ac): Use AC_PROG_MKDIR_P.
91096         * modules/sys_select: Likewise.
91097         * modules/sys_socket: Likewise.
91098         * modules/sys_time: Likewise.
91100 2007-01-18  Eric Blake  <ebb9@byu.net>
91102         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
91103         replace gettimeofday.
91104         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
91105         name, to avoid infinite recursion.
91107 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
91109         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
91110         module sys_time.
91111         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
91112         assume timespec.h defines struct timeval.
91113         * lib/settime.c: Likewise.
91114         * lib/utimens.c: Likewise.
91115         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
91116         since we now assume the gettimeofday module.
91117         * lib/tempname.c (__gen_tempname): Likewise.
91118         * lib/gettimeofday.h: Remove.
91119         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
91120         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
91121         Include <time.h>, for 'time()'.
91122         (localtime_buffer_addr): Also use this workaround if
91123         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
91124         to simplify the uses.  All uses changed.
91125         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
91126         that #undef is inside {}, and 'const' follows type name consistently.
91127         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
91128         (gettimeofday): Do not use the maximum possible value for
91129         tv->tv_usec, since that might break usages other than ls.c.
91130         Instead, we'll leave ls.c alone.  This undoes today's patch
91131         by Bruno.  Add a compile-time warning for 1s-clock resolution;
91132         we've never observed the problem but might as well keep the
91133         canary.
91134         * lib/nanosleep.c: Include timespec.h first, for interface check.
91135         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
91136         now assume the sys_time module.
91137         * lib/tempname.c: Likewise.
91138         * lib/timespec.h: Likewise.
91139         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
91140         needed.
91141         * lib/strftime.c: Likewise.
91142         * lib/timespec.h: Likewise.
91143         * lib/posixtm.c: Include posixtm.h first, for interface check.
91144         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
91145         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
91146         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
91147         * lib/sys_time_.h: New file.
91148         * lib/timespec.h (struct timespec): Use long int, not long.
91149         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
91150         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
91151         Remove obsolescent call to AC_HEADER_TIME.
91152         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
91153         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
91154         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
91155         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
91156         Likewise.
91157         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
91158         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
91159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
91160         into the sys_time module.  Check for gettimeofday just once.
91161         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
91162         for gettimeofday signature to just check the signature.  Merely
91163         compile it, since linking doesn't test signature.  Improve test for
91164         whether gettimeofday.o is actually needed.
91165         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
91166         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
91167         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
91168         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91169         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
91170         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
91171         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
91172         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
91173         than worrying about sys/time.h.
91174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91175         Don't bother worrying about TIME_WITH_SYS_TIME.
91176         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
91177         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
91178         * m4/sys_time_h.m4: New file.
91179         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
91180         Don't include sys/time.h.  Return from main rather than exiting.
91181         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
91182         all uses changed.
91183         * modules/gethrxtime (Depends-on): Add sys_time.
91184         * modules/gettime (Depends-on): Likewise.
91185         * modules/gettimeofday (Depends-on): Likewise.
91186         * modules/nanosleep (Depends-on): Likewise.
91187         * modules/settime (Depends-on): Likewise.
91188         * modules/tempname (Depends-on): Likewise.
91189         * modules/utimens (Depends-on): Likewise.
91190         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
91191         (Include): Change back to <sys/time.h>.
91192         (Maintainer): Add self.
91193         * modules/sys_time: New file.
91194         * modules/tempname (Depends-on): Add gettimeofday.
91195         * tests/test-gettimeofday.c: Include <sys/time.h>
91196         rather than gettimeofday.h.
91198 2007-01-17  Bruno Haible  <bruno@clisp.org>
91200         * gnulib-tool (func_get_license): Revert last patch. Instead, let
91201         the license default to GPL.
91202         (func_create_testdir): Don't complain if a module is LGPL and its
91203         tests module depends on GPLed modules.
91205 2007-01-17  Bruno Haible  <bruno@clisp.org>
91207         * lib/gettimeofday.c (gettimeofday): Add code for the case
91208         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
91209         maximum possible value for tv->tv_usec, rather than the minimum one.
91211 2005-10-08  Martin Lambers  <marlam@marlam.de>
91212 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
91213 2007-01-16  Bruno Haible  <bruno@clisp.org>
91215         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
91216         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
91217         gl_FUNC_GETTIMEOFDAY.
91218         (Include): Add gettimeofday.h.
91219         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
91220         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
91221         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
91222         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
91223         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
91224         * lib/gettimeofday.h: New file.
91225         * lib/gettimeofday.c: Include <sys/timeb.h>.
91226         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
91227         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91228         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
91229         fall back on time().
91231         * tests/test-gettimeofday.c: New file.
91232         * modules/gettimeofday-tests: New file.
91234 2007-01-16  Eric Blake  <ebb9@byu.net>
91236         * modules/fnmatch (Depends-on): Depend on wchar.
91237         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
91238         * m4/fnmatch.m4: Likewise.
91239         * modules/mbchar (Makefile.am): Assume <wchar.h>.
91240         * m4/mbchar.m4: Likewise.
91241         * modules/mbswidth (Depends-on): Depend on wchar.
91242         * lib/mbswidth.c: Assume <wchar.h>.
91243         * m4/mbswidth.m4: Likewise.
91244         * modules/quotearg (Depends-on): Depend on wchar.
91245         * lib/quotearg.c: Assume <wchar.h>.
91246         * m4/quotearg.m4: Likewise.
91247         * modules/regex (Depends-on): Depend on wchar.
91248         * lib/regex_internal.h: Assume <wchar.h>.
91249         * m4/regex.m4: Likewise.
91250         * modules/stdint (Depends-on): Depend on wchar.
91251         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
91252         * m4/stdint.m4: Likewise.
91253         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
91254         * modules/strftime (Depends-on): Depend on wchar.
91255         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
91256         * modules/strtol (Depends-on): Depend on wchar.
91257         * lib/strtol.c: Assume <wchar.h>.
91258         * modules/wcwidth (Depends-on): Depend on wchar.
91259         * lib/wcwidth.h: Assume <wchar.h>.
91260         * m4/wcwidth.m4: Likewise.
91262 2007-01-16  Bruno Haible  <bruno@clisp.org>
91264         * modules/csharpexec-script: New, created from...
91265         * modules/csharpexec: ... this.
91267 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
91269         * modules/javaexec-script: New, created from...
91270         * modules/javaexec: ... this.
91272 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91274         * modules/poll (Dependencies): Add sys_select.
91276 2007-01-15  Jim Meyering  <jim@meyering.net>
91278         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
91279         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
91280         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
91281         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
91283 2007-01-15  Bruno Haible  <bruno@clisp.org>
91285         * modules/striconveh: New file.
91286         * lib/striconveh.h: New file.
91287         * lib/striconveh.c: New file.
91288         * MODULES.html.sh (Internationalization functions): Add striconveh.
91290         * modules/striconveh-tests: New file.
91291         * tests/test-striconveh.c: New file.
91293 2007-01-15  Bruno Haible  <bruno@clisp.org>
91295         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
91296         not from GNU libiconv or GNU libc.
91298 2007-01-15  Bruno Haible  <bruno@clisp.org>
91300         * doc/gnulib-intro.texi (Copyright): Explain the different license
91301         terms for module descriptions, autoconf macros, tests, documentation.
91303 2007-01-14  Bruno Haible  <bruno@clisp.org>
91305         * modules/striconv-tests: New file.
91306         * tests/test-striconv.c: New file.
91308 2007-01-14  Bruno Haible  <bruno@clisp.org>
91310         * modules/iconv-tests: New file.
91311         * tests/test-iconv.c: New file.
91313 2007-01-14  Bruno Haible  <bruno@clisp.org>
91315         * gnulib-tool (func_get_license): For test modules, use the license of
91316         the main module.
91318 2007-01-14  Bruno Haible  <bruno@clisp.org>
91320         * modules/iconv (Include): Clarify that <iconv.h> can only be included
91321         if iconv is found to exist.
91323 2007-01-14  Bruno Haible  <bruno@clisp.org>
91325         * modules/c-ctype-tests: New file.
91326         * tests/test-c-ctype.c: New file.
91328 2007-01-14  Bruno Haible  <bruno@clisp.org>
91330         * modules/binary-io-tests: New file.
91331         * tests/test-binary-io.sh: New file.
91332         * tests/test-binary-io.c: New file.
91334 2007-01-14  Bruno Haible  <bruno@clisp.org>
91336         * modules/array-oset-tests: New file.
91337         * tests/test-array_oset.c: New file.
91339 2007-01-14  Bruno Haible  <bruno@clisp.org>
91341         * modules/array-list-tests: New file.
91342         * tests/test-array_list.c: New file.
91344 2007-01-14  Bruno Haible  <bruno@clisp.org>
91346         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
91347         and make.
91348         Reported by Simon Josefsson in
91349         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
91351 2007-01-14  Bruno Haible  <bruno@clisp.org>
91353         * modules/allocsa-tests: New file.
91354         * tests/test-allocsa.c: New file.
91356 2007-01-14  Bruno Haible  <bruno@clisp.org>
91358         * modules/fchdir (Depends-on): Add absolute-header.
91359         * modules/unistd (Depends-on): Likewise.
91361 2006-12-30  Bruno Haible  <bruno@clisp.org>
91363         * modules/fchdir: New file.
91364         * modules/unistd (Files): Add lib/unistd_.h.
91365         (Makefile.am): Generate unistd.h from unistd_.h.
91366         * lib/fchdir.c: New file.
91367         * lib/dirent_.h: New file.
91368         * lib/unistd_.h: New file.
91369         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
91370         * m4/fchdir.m4: New file.
91371         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
91372         (gl_HEADER_UNISTD): Invoke it.
91373         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
91374         function.
91375         * lib/backupfile.c (opendir, closedir): Undefine.
91376         * lib/chown.c (open, close): Undefine.
91377         * lib/clean-temp.c (open, close): Undefine.
91378         * lib/copy-file.c (open, close): Undefine.
91379         * lib/execute.c (open, close): Undefine.
91380         * lib/fsusage.c (open, close): Undefine.
91381         * lib/gc-gnulib.c (open, close): Undefine.
91382         * lib/getcwd.c (opendir, closedir): Undefine.
91383         * lib/glob.c (opendir, closedir): Undefine.
91384         * lib/javacomp.c (open, close): Undefine.
91385         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
91386         * lib/openat-proc.c (open, close): Undefine.
91387         * lib/pagealign_alloc.c (open, close): Undefine.
91388         * lib/pipe.c (open, close): Undefine.
91389         * lib/progreloc.c (open, close): Undefine.
91390         * lib/savedir.c (opendir, closedir): Undefine.
91391         * lib/utime.c (open, close): Undefine.
91392         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
91394 2007-01-10  Bruno Haible  <bruno@clisp.org>
91396         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
91398 2007-01-12  Eric Blake  <ebb9@byu.net>
91400         Provide a robust <wchar.h>.  Further simplifications are now
91401         possible in other modules, but not included here.
91402         * modules/wchar: New module.
91403         * m4/wchar.m4: New file.
91404         * lib/wchar_.h: Likewise.
91405         * modules/mbchar (Depends-on): Depend on wchar, as the first use
91406         of the new module.
91407         * MODULES.html.sh (Extended multibyte and wide character utilities):
91408         New section.
91410 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
91412         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
91413         to a reasonable default for memory allocation.
91414         (xreadlink): Don't allocate a huge buffer, to work around a buggy
91415         file system that reports garbage st_size values for symlinks.
91416         Problem reported by Liyang Hu.
91418 2007-01-11  Simon Josefsson  <simon@josefsson.org>
91420         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
91421         Emacs .#* auto-save files).
91423 2007-01-11  Bruno Haible  <bruno@clisp.org>
91425         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
91426         directory.
91428 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
91430         Use @...@ consistently in lib/wctype_.h.
91431         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
91432         on it being set to 1 or 0.
91433         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
91434         go back to AC_SUBSTing it.
91435         * modules/wctype (Makefile.am): Undo previous change.
91437 2007-01-10  Eric Blake  <ebb9@byu.net>
91439         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
91440         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
91441         * modules/wctype (Makefile.am): Likewise.
91442         Reported by Chris McGuire.
91444 2007-01-10  Jim Meyering  <jim@meyering.net>
91446         fts.c: a small readability/maintainability improvement
91447         * lib/fts.c (fts_read): Make this code slightly more readable and
91448         maintainable by hoisting the "sp->fts_cur = p" assignments to
91449         immediately follow the statements that set P.  Derived from
91450         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
91452 2007-01-10  Eric Blake  <ebb9@byu.net>
91454         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
91455         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
91456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91457         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
91458         Reported by Chris McGuire.
91460 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91462         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
91463         in sed script.
91465 2007-01-09  Bruno Haible  <bruno@clisp.org>
91467         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
91468         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
91469         variables.
91470         (func_module): Use them.
91472 2007-01-09  Bruno Haible  <bruno@clisp.org>
91474         * modules/unistr/base: New file.
91475         * lib/unistr.h: New file.
91477         * modules/unistr/u8-to-u16: New file.
91478         * lib/unistr/u8-to-u16.c: New file.
91480         * modules/unistr/u8-to-u32: New file.
91481         * lib/unistr/u8-to-u32.c: New file.
91483         * modules/unistr/u16-to-u8: New file.
91484         * lib/unistr/u16-to-u8.c: New file.
91486         * modules/unistr/u16-to-u32: New file.
91487         * lib/unistr/u16-to-u32.c: New file.
91489         * modules/unistr/u32-to-u8: New file.
91490         * lib/unistr/u32-to-u8.c: New file.
91492         * modules/unistr/u32-to-u16: New file.
91493         * lib/unistr/u32-to-u16.c: New file.
91495         * modules/unistr/u8-check: New file.
91496         * modules/unistr/u16-check: New file.
91497         * modules/unistr/u32-check: New file.
91498         * lib/unistr/u8-check.c: New file.
91499         * lib/unistr/u16-check.c: New file.
91500         * lib/unistr/u32-check.c: New file.
91502         * modules/unistr/u8-chr: New file.
91503         * modules/unistr/u16-chr: New file.
91504         * modules/unistr/u32-chr: New file.
91505         * lib/unistr/u8-chr.c: New file.
91506         * lib/unistr/u16-chr.c: New file.
91507         * lib/unistr/u32-chr.c: New file.
91509         * modules/unistr/u8-cmp: New file.
91510         * modules/unistr/u16-cmp: New file.
91511         * modules/unistr/u32-cmp: New file.
91512         * lib/unistr/u8-cmp.c: New file.
91513         * lib/unistr/u16-cmp.c: New file.
91514         * lib/unistr/u32-cmp.c: New file.
91516         * modules/unistr/u8-cpy: New file.
91517         * modules/unistr/u16-cpy: New file.
91518         * modules/unistr/u32-cpy: New file.
91519         * lib/unistr/u8-cpy.c: New file.
91520         * lib/unistr/u16-cpy.c: New file.
91521         * lib/unistr/u32-cpy.c: New file.
91522         * lib/unistr/u-cpy.h: New file.
91524         * modules/unistr/u8-cpy-alloc: New file.
91525         * modules/unistr/u16-cpy-alloc: New file.
91526         * modules/unistr/u32-cpy-alloc: New file.
91527         * lib/unistr/u8-cpy-alloc.c: New file.
91528         * lib/unistr/u16-cpy-alloc.c: New file.
91529         * lib/unistr/u32-cpy-alloc.c: New file.
91530         * lib/unistr/u-cpy-alloc.h: New file.
91532         * modules/unistr/u8-endswith: New file.
91533         * modules/unistr/u16-endswith: New file.
91534         * modules/unistr/u32-endswith: New file.
91535         * lib/unistr/u8-endswith.c: New file.
91536         * lib/unistr/u16-endswith.c: New file.
91537         * lib/unistr/u32-endswith.c: New file.
91538         * lib/unistr/u-endswith.h: New file.
91540         * modules/unistr/u8-mblen: New file.
91541         * modules/unistr/u16-mblen: New file.
91542         * modules/unistr/u32-mblen: New file.
91543         * lib/unistr/u8-mblen.c: New file.
91544         * lib/unistr/u16-mblen.c: New file.
91545         * lib/unistr/u32-mblen.c: New file.
91547         * modules/unistr/u8-mbtouc: New file.
91548         * modules/unistr/u16-mbtouc: New file.
91549         * modules/unistr/u32-mbtouc: New file.
91550         * lib/unistr/u8-mbtouc.c: New file.
91551         * lib/unistr/u16-mbtouc.c: New file.
91552         * lib/unistr/u32-mbtouc.c: New file.
91554         * modules/unistr/u8-mbtouc-safe: New file.
91555         * modules/unistr/u16-mbtouc-safe: New file.
91556         * modules/unistr/u32-mbtouc-safe: New file.
91557         * lib/unistr/u8-mbtouc-safe.c: New file.
91558         * lib/unistr/u16-mbtouc-safe.c: New file.
91559         * lib/unistr/u32-mbtouc-safe.c: New file.
91561         * modules/unistr/u8-move: New file.
91562         * modules/unistr/u16-move: New file.
91563         * modules/unistr/u32-move: New file.
91564         * lib/unistr/u8-move.c: New file.
91565         * lib/unistr/u16-move.c: New file.
91566         * lib/unistr/u32-move.c: New file.
91567         * lib/unistr/u-move.h: New file.
91569         * modules/unistr/u8-next: New file.
91570         * modules/unistr/u16-next: New file.
91571         * modules/unistr/u32-next: New file.
91572         * lib/unistr/u8-next.c: New file.
91573         * lib/unistr/u16-next.c: New file.
91574         * lib/unistr/u32-next.c: New file.
91576         * modules/unistr/u8-prev: New file.
91577         * modules/unistr/u16-prev: New file.
91578         * modules/unistr/u32-prev: New file.
91579         * lib/unistr/u8-prev.c: New file.
91580         * lib/unistr/u16-prev.c: New file.
91581         * lib/unistr/u32-prev.c: New file.
91583         * modules/unistr/u8-set: New file.
91584         * modules/unistr/u16-set: New file.
91585         * modules/unistr/u32-set: New file.
91586         * lib/unistr/u8-set.c: New file.
91587         * lib/unistr/u16-set.c: New file.
91588         * lib/unistr/u32-set.c: New file.
91589         * lib/unistr/u-set.h: New file.
91591         * modules/unistr/u8-startswith: New file.
91592         * modules/unistr/u16-startswith: New file.
91593         * modules/unistr/u32-startswith: New file.
91594         * lib/unistr/u8-startswith.c: New file.
91595         * lib/unistr/u16-startswith.c: New file.
91596         * lib/unistr/u32-startswith.c: New file.
91597         * lib/unistr/u-startswith.h: New file.
91599         * modules/unistr/u8-stpcpy: New file.
91600         * modules/unistr/u16-stpcpy: New file.
91601         * modules/unistr/u32-stpcpy: New file.
91602         * lib/unistr/u8-stpcpy.c: New file.
91603         * lib/unistr/u16-stpcpy.c: New file.
91604         * lib/unistr/u32-stpcpy.c: New file.
91605         * lib/unistr/u-stpcpy.h: New file.
91607         * modules/unistr/u8-stpncpy: New file.
91608         * modules/unistr/u16-stpncpy: New file.
91609         * modules/unistr/u32-stpncpy: New file.
91610         * lib/unistr/u8-stpncpy.c: New file.
91611         * lib/unistr/u16-stpncpy.c: New file.
91612         * lib/unistr/u32-stpncpy.c: New file.
91613         * lib/unistr/u-stpncpy.h: New file.
91615         * modules/unistr/u8-strcat: New file.
91616         * modules/unistr/u16-strcat: New file.
91617         * modules/unistr/u32-strcat: New file.
91618         * lib/unistr/u8-strcat.c: New file.
91619         * lib/unistr/u16-strcat.c: New file.
91620         * lib/unistr/u32-strcat.c: New file.
91621         * lib/unistr/u-strcat.h: New file.
91623         * modules/unistr/u8-strchr: New file.
91624         * modules/unistr/u16-strchr: New file.
91625         * modules/unistr/u32-strchr: New file.
91626         * lib/unistr/u8-strchr.c: New file.
91627         * lib/unistr/u16-strchr.c: New file.
91628         * lib/unistr/u32-strchr.c: New file.
91630         * modules/unistr/u8-strcmp: New file.
91631         * modules/unistr/u16-strcmp: New file.
91632         * modules/unistr/u32-strcmp: New file.
91633         * lib/unistr/u8-strcmp.c: New file.
91634         * lib/unistr/u16-strcmp.c: New file.
91635         * lib/unistr/u32-strcmp.c: New file.
91637         * modules/unistr/u8-strcpy: New file.
91638         * modules/unistr/u16-strcpy: New file.
91639         * modules/unistr/u32-strcpy: New file.
91640         * lib/unistr/u8-strcpy.c: New file.
91641         * lib/unistr/u16-strcpy.c: New file.
91642         * lib/unistr/u32-strcpy.c: New file.
91643         * lib/unistr/u-strcpy.h: New file.
91645         * modules/unistr/u8-strcspn: New file.
91646         * modules/unistr/u16-strcspn: New file.
91647         * modules/unistr/u32-strcspn: New file.
91648         * lib/unistr/u8-strcspn.c: New file.
91649         * lib/unistr/u16-strcspn.c: New file.
91650         * lib/unistr/u32-strcspn.c: New file.
91651         * lib/unistr/u-strcspn.h: New file.
91653         * modules/unistr/u8-strdup: New file.
91654         * modules/unistr/u16-strdup: New file.
91655         * modules/unistr/u32-strdup: New file.
91656         * lib/unistr/u8-strdup.c: New file.
91657         * lib/unistr/u16-strdup.c: New file.
91658         * lib/unistr/u32-strdup.c: New file.
91659         * lib/unistr/u-strdup.h: New file.
91661         * modules/unistr/u8-strlen: New file.
91662         * modules/unistr/u16-strlen: New file.
91663         * modules/unistr/u32-strlen: New file.
91664         * lib/unistr/u8-strlen.c: New file.
91665         * lib/unistr/u16-strlen.c: New file.
91666         * lib/unistr/u32-strlen.c: New file.
91667         * lib/unistr/u-strlen.h: New file.
91669         * modules/unistr/u8-strmblen: New file.
91670         * modules/unistr/u16-strmblen: New file.
91671         * modules/unistr/u32-strmblen: New file.
91672         * lib/unistr/u8-strmblen.c: New file.
91673         * lib/unistr/u16-strmblen.c: New file.
91674         * lib/unistr/u32-strmblen.c: New file.
91676         * modules/unistr/u8-strmbtouc: New file.
91677         * modules/unistr/u16-strmbtouc: New file.
91678         * modules/unistr/u32-strmbtouc: New file.
91679         * lib/unistr/u8-strmbtouc.c: New file.
91680         * lib/unistr/u16-strmbtouc.c: New file.
91681         * lib/unistr/u32-strmbtouc.c: New file.
91683         * modules/unistr/u8-strncat: New file.
91684         * modules/unistr/u16-strncat: New file.
91685         * modules/unistr/u32-strncat: New file.
91686         * lib/unistr/u8-strncat.c: New file.
91687         * lib/unistr/u16-strncat.c: New file.
91688         * lib/unistr/u32-strncat.c: New file.
91689         * lib/unistr/u-strncat.h: New file.
91691         * modules/unistr/u8-strncmp: New file.
91692         * modules/unistr/u16-strncmp: New file.
91693         * modules/unistr/u32-strncmp: New file.
91694         * lib/unistr/u8-strncmp.c: New file.
91695         * lib/unistr/u16-strncmp.c: New file.
91696         * lib/unistr/u32-strncmp.c: New file.
91698         * modules/unistr/u8-strncpy: New file.
91699         * modules/unistr/u16-strncpy: New file.
91700         * modules/unistr/u32-strncpy: New file.
91701         * lib/unistr/u8-strncpy.c: New file.
91702         * lib/unistr/u16-strncpy.c: New file.
91703         * lib/unistr/u32-strncpy.c: New file.
91704         * lib/unistr/u-strncpy.h: New file.
91706         * modules/unistr/u8-strnlen: New file.
91707         * modules/unistr/u16-strnlen: New file.
91708         * modules/unistr/u32-strnlen: New file.
91709         * lib/unistr/u8-strnlen.c: New file.
91710         * lib/unistr/u16-strnlen.c: New file.
91711         * lib/unistr/u32-strnlen.c: New file.
91712         * lib/unistr/u-strnlen.h: New file.
91714         * modules/unistr/u8-strpbrk: New file.
91715         * modules/unistr/u16-strpbrk: New file.
91716         * modules/unistr/u32-strpbrk: New file.
91717         * lib/unistr/u8-strpbrk.c: New file.
91718         * lib/unistr/u16-strpbrk.c: New file.
91719         * lib/unistr/u32-strpbrk.c: New file.
91720         * lib/unistr/u-strpbrk.h: New file.
91722         * modules/unistr/u8-strrchr: New file.
91723         * modules/unistr/u16-strrchr: New file.
91724         * modules/unistr/u32-strrchr: New file.
91725         * lib/unistr/u8-strrchr.c: New file.
91726         * lib/unistr/u16-strrchr.c: New file.
91727         * lib/unistr/u32-strrchr.c: New file.
91729         * modules/unistr/u8-strspn: New file.
91730         * modules/unistr/u16-strspn: New file.
91731         * modules/unistr/u32-strspn: New file.
91732         * lib/unistr/u8-strspn.c: New file.
91733         * lib/unistr/u16-strspn.c: New file.
91734         * lib/unistr/u32-strspn.c: New file.
91735         * lib/unistr/u-strspn.h: New file.
91737         * modules/unistr/u8-strstr: New file.
91738         * modules/unistr/u16-strstr: New file.
91739         * modules/unistr/u32-strstr: New file.
91740         * lib/unistr/u8-strstr.c: New file.
91741         * lib/unistr/u16-strstr.c: New file.
91742         * lib/unistr/u32-strstr.c: New file.
91743         * lib/unistr/u-strstr.h: New file.
91745         * modules/unistr/u8-strtok: New file.
91746         * modules/unistr/u16-strtok: New file.
91747         * modules/unistr/u32-strtok: New file.
91748         * lib/unistr/u8-strtok.c: New file.
91749         * lib/unistr/u16-strtok.c: New file.
91750         * lib/unistr/u32-strtok.c: New file.
91751         * lib/unistr/u-strtok.h: New file.
91753         * modules/unistr/u8-uctomb: New file.
91754         * modules/unistr/u16-uctomb: New file.
91755         * modules/unistr/u32-uctomb: New file.
91756         * lib/unistr/u8-uctomb.c: New file.
91757         * lib/unistr/u16-uctomb.c: New file.
91758         * lib/unistr/u32-uctomb.c: New file.
91760         * MODULES.html.sh (Unicode string functions): Add the new modules.
91762 2007-01-08  Bruno Haible  <bruno@clisp.org>
91764         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
91765         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
91766         subdirectories.
91768 2007-01-08  Karl Berry  <karl@gnu.org>
91770         * doc/error.texi: mention that main() fns must set program_name
91771         when progname is used.
91773 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
91775         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
91776         WCTYPE_H is empty, for the benefit of builds from non-distclean
91777         directories.  Problem reported by Eric Blake in
91778         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
91780 2007-01-08  Bruno Haible  <bruno@clisp.org>
91782         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
91783         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
91784         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
91785         PROVIDE_CANONICALIZE_FILENAME_MODE.
91786         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
91788 2007-01-08  Bruno Haible  <bruno@clisp.org>
91790         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
91791         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
91792         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
91793         * lib/fts.c: Likewise.
91794         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
91796 2006-12-25  Bruno Haible  <bruno@clisp.org>
91798         * modules/utf8-ucs4-safe: New file.
91799         * lib/utf8-ucs4-safe.h: New file.
91800         * lib/unistr/utf8-ucs4-safe.c: New file.
91802         * modules/utf16-ucs4-safe: New file.
91803         * lib/utf16-ucs4-safe.h: New file.
91804         * lib/unistr/utf16-ucs4-safe.c: New file.
91806         * MODULES.html.sh (Unicode string functions): Add the new modules.
91808 2007-01-08  Bruno Haible  <bruno@clisp.org>
91810         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
91811         (Depends-on): Add unitypes.
91812         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
91813         (u8_mbtouc_aux): Move out to separate file.
91814         (u8_mbtouc): Use ucs4_t, uint8_t types.
91815         * lib/unistr/utf8-ucs4.c: New file.
91817         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
91818         (Depends-on): Add unitypes.
91819         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
91820         (u16_mbtouc_aux): Move out to separate file.
91821         (u16_mbtouc): Use ucs4_t, uint16_t types.
91822         * lib/unistr/utf16-ucs4.c: New file.
91824         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
91825         (Depends-on): Add unitypes.
91826         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
91827         (u8_uctomb_aux): Move out to separate file.
91828         (u8_uctomb): Use ucs4_t, uint8_t types.
91829         * lib/unistr/ucs4-utf8.c: New file.
91831         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
91832         (Depends-on): Add unitypes.
91833         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
91834         (u16_uctomb_aux): Move out to separate file.
91835         (u16_uctomb): Use ucs4_t, uint16_t types.
91836         * lib/unistr/ucs4-utf16.c: New file.
91838 2006-12-25  Bruno Haible  <bruno@clisp.org>
91840         * modules/unitypes: New file.
91841         * lib/unitypes.h: New file.
91842         * MODULES.html.sh (func_all_modules): New section "Unicode string
91843         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
91844         this section. Add unitypes.
91846 2007-01-08  Bruno Haible  <bruno@clisp.org>
91848         Avoid variable names that conflict with those from libtool.
91849         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
91850         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
91851         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
91852         library_names_spec to acl_library_names_spec, hardcode_* to
91853         acl_hardcode_*.
91854         Reported by Ralf Wildenhues.
91856 2007-01-08  Bruno Haible  <bruno@clisp.org>
91858         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
91859         definition.
91860         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
91861         definition.
91862         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
91863         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
91864         definition.
91865         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
91866         definition.
91867         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
91868         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
91869         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
91870         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
91871         definition.
91872         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
91873         definition.
91874         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
91875         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
91876         GC_USE_<algorithm>.
91877         * lib/gc-libgcrypt.c: Likewise.
91878         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
91879         * modules/gc-arctwo (configure.ac): Likewise.
91880         * modules/gc-des (configure.ac): Likewise.
91881         * modules/gc-hmac-md5 (configure.ac): Likewise.
91882         * modules/gc-hmac-sha1 (configure.ac): Likewise.
91883         * modules/gc-md2 (configure.ac): Likewise.
91884         * modules/gc-md4 (configure.ac): Likewise.
91885         * modules/gc-md5 (configure.ac): Likewise.
91886         * modules/gc-random (configure.ac): Likewise.
91887         * modules/gc-rijndael (configure.ac): Likewise.
91888         * modules/gc-sha1 (configure.ac): Likewise.
91890 2007-01-08  Bruno Haible  <bruno@clisp.org>
91892         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
91893         macro definition.
91894         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
91895         definition.
91896         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
91897         definition.
91898         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
91899         * modules/fcntl-safer (configure.ac): Likewise.
91900         * modules/fopen-safer (configure.ac): Likewise.
91901         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
91902         GNULIB_FWRITEERROR macro definition.
91904 2007-01-08  Bruno Haible  <bruno@clisp.org>
91906         * m4/gnulib-common.m4: New file.
91907         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
91908         (func_get_filelist): Add m4/gnulib-common.m4.
91910 2007-01-08  Bruno Haible  <bruno@clisp.org>
91912         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
91913         command.
91915 2007-01-08  Jim Meyering  <jim@meyering.net>
91917         Use a more robust test for a "can't happen" condition.
91918         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
91919         narrowed the st_size value.  Presuming the "can't happen" condition
91920         is true, that narrowing could conceivably convert an invalid st_size
91921         value into a valid one.  Instead, use a change based on Matthew
91922         Woehlke's original patch.
91924         Slight readability improvement: use an assert-like macro
91925         in place of literal "abort ()" uses.
91926         * lib/fts.c (fts_assert): Define.
91927         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
91928         Use this macro instead of a bare 'abort'.
91930 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
91932         Don't worry about using IRIX 5.3's wctype.h broken definitions;
91933         simply work around them.
91934         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
91935         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
91936         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
91937         declaring.
91938         Don't bother to define as macros, since the standard doesn't require it.
91939         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
91940         longer worry about IRIX 5.3.
91941         (HAVE_WCTYPE_CTMP_BUG): Remove.
91943 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
91945         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
91946         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
91947         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
91948         Problems reported by Georg Schwarz for IRIX 5.3.
91950         * gnulib-tool (autoconf_minversion): Take the maximum version number
91951         found, not the minimum.  Problem reported by James Youngman.
91953 2007-01-03  Karl Berry  <karl@gnu.org>
91955         * doc/error.texi: new file, explaining interaction with progname.
91956         * doc/gnulib.texi: include it.  Update copyright.
91958 2007-01-03  Simon Josefsson  <simon@josefsson.org>
91960         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
91961         AC_CANONICAL_HOST, to improve autobuild outputs.
91963 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
91964             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
91966         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
91967         sockets, server sockets, and other file descriptors.  Count errors
91968         to compute the return value.  Reorder the code a bit to be easier
91969         to follow.  Don't set event bits that were not requested (except
91970         POLLERR and POLLHUP).
91972 2007-01-01  Bruno Haible  <bruno@clisp.org>
91974         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
91976 2007-01-03  Jim Meyering  <jim@meyering.net>
91978         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
91980 2007-01-02  Bruno Haible  <bruno@clisp.org>
91982         * modules/settime (Include): Require timespec.h.
91983         * modules/nanosleep (Include): Likewise.
91985 2007-01-01  Bruno Haible  <bruno@clisp.org>
91987         * gnulib-tool (func_emit_copyright_notice): Bump year.
91988         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
91990 2007-01-01  Bruno Haible  <bruno@clisp.org>
91992         Improve support for OpenBSD.
91993         * build-aux/config.rpath (libname_spec): Export.
91994         (library_names_spec): New variable. Export.
91995         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
91996         library_names_spec from the config.rpath output. Locate shared library
91997         through the name pattern in library_names_spec.
91999 2007-01-01  Eric Blake  <ebb9@byu.net>
92001         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
92003 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
92005         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
92006         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
92007         assume the C locale, and avoid an "eval" that could cause trouble.
92008         Problem with SORT reported by Bob Proulx.
92010         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
92011         Define.  Trivial patch from Henning Nielsen Lund, originally
92012         sent to bug-grep@gnu.org today.
92014 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
92016         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
92017         struct stat.  Problem reported by Henning Nielsen Lund.
92018         * lib/acl.c: Include acl.h first, to check interface.  Don't
92019         bother to include sys/types.h and sys/stat.h again.
92021 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
92023         Import the following change from libc; problem reported by
92024         Sven Verdoolaege.
92026         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
92028         [BZ #1373]
92029         * lib/argp.h: Remove __NTH for __argp_usage inline function.
92031 2006-12-28  Jim Meyering  <jim@meyering.net>
92033         * build-aux/announce-gen: Do not assume that the package
92034         builds any of tar.gz, tar.bz2, and .xdelta files.
92035         Suggestion from Simon Josefsson.
92037 2006-12-28  Simon Josefsson  <simon@josefsson.org>
92039         * modules/announce-gen: New file.
92041 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
92043         * lib/mbchar.h: Just include <wctype.h>; the wctype module
92044         handles its gotchas now.
92045         * lib/mbswidth.c: Likewise.
92046         * lib/wcwidth.h: Likewise.
92047         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
92048         and iswcntrl; the wctype module does this stuff now.
92049         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
92050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
92051         * modules/mbchar (Depends-on): Add wctype.
92052         * modules/mbswidth (Depends-on): Likewise.
92053         * modules/wcwidth (Depends-on): Likewise.
92055 2006-12-27  Eric Blake  <ebb9@byu.net>
92057         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
92058         module uses more than what <wctype.h> is required to provide.
92060 2006-12-26  Eric Blake  <ebb9@byu.net>
92062         * gnulib-tool (sed_extract_prog): Avoid space-tab.
92064 2006-12-26  Eric Blake  <ebb9@byu.net>
92066         * modules/absolute-header: New module.
92067         * modules/fcntl (Depends-on): Depend on it.
92068         * modules/inttypes (Depends-on): Likewise.
92069         * modules/stdint (Depends-on): Likewise.
92070         * modules/sys_stat (Depends-on): Likewise.
92071         * modules/wctype (Depends-on): Likewise.
92072         * MODULES.html.sh (Support for building libraries and
92073         executables): Document it.
92075 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
92077         * gnulib-tool (SED): Remove, undoing previous change.
92078         The problem was that it broke coreutils on Solaris, because
92079         "sed --posix" leaked into a makefile.
92080         (sed): New alias, if 'alias' and GNU sed.
92082 2006-12-24  Jim Meyering  <jim@meyering.net>
92084         Work around an fchownat bug in glibc-2.4:
92085         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
92086         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
92087         in spite of the -P option.
92088         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
92089         New macros.
92090         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
92091         * modules/openat (Files): Add lib/fchownat.c.
92092         * lib/openat.c (fchownat): Don't define here.  Move to...
92093         * lib/fchownat.c: ...this new file.
92095 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
92097         Fix bug reported by Bruno Haible in
92098         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
92099         where quotearg.c didn't compile on Mac OS X 10.2 because it
92100         lacks <wchar.h> and wint_t.
92101         * lib/wctype_.h (__wctype_wint_t): New type.
92102         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
92103         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
92104         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
92105         Arg is now of type __wctype_wint_t, not wint_t.
92106         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
92107         substitute HAVE_WINT_T.
92108         * modules/wctype (Files): Add m4/wint_t.m4.
92109         (wctype.h): Substitute HAVE_WINT_T.
92111 2006-12-23  Bruno Haible  <bruno@clisp.org>
92113         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
92115 2006-12-23  Bruno Haible  <bruno@clisp.org>
92117         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
92118         S_ISLNK.
92119         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
92120         mingw.
92122 2006-12-22  Bruno Haible  <bruno@clisp.org>
92124         * lib/copy-file.c: Include acl.h.
92125         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
92126         Close the file descriptors only after being done with copy_acl.
92127         * modules/copy-file (Depends-on): Add acl.
92129 2006-12-22  Bruno Haible  <bruno@clisp.org>
92131         * gnulib-tool (SED): New variable.
92132         Use $SED instead of sed everywhere.
92134 2006-12-22  Bruno Haible  <bruno@clisp.org>
92136         * modules/no-c++: New file.
92137         * m4/no-c++.m4: New file.
92138         * MODULES.html.sh (Support for building libraries and executables):
92139         Add no-c++.
92141 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
92143         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
92144         Include <limits.h>, and use its INT_MAX to rewrite the
92145         j loop so that it does not overflow 'int'.  Problem reported by
92146         Ralf Wildenhues in
92147         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
92148         Play it safe by shifting left by 1 rather than multiplying by 2,
92149         as GCC is less likely to optimize this away when the value
92150         is signed (when it assumes overflow leads to undefined behavior).
92151         Also, don't assume time_t uses two's complement.
92153 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
92155         * MODULES.html.sh: New module wctype.
92156         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
92157         * lib/fnmatch.c: Don't bother to include <wchar.h> before
92158         <wctype.h>, since the new wctype module should fix this.
92159         * lib/quotearg.c: Include <wctype.h> unconditionally, since
92160         the wctype module should arrange for it.
92161         * lib/regex_internal.h: Likewise.
92162         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
92163         since the wctype module should handle this now.
92164         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
92165         * modules/fnmatch (Depends-on): Add wctype.
92166         * modules/quotearg (Depends-on): Likewise.
92167         * modules/regex (Depends-on): Likewise.
92169 2006-12-19  Bruno Haible  <bruno@clisp.org>
92171         * lib/strdup.h [C++]: Wrap definitions in extern "C".
92172         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
92174 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92176         * modules/savewd (Depends-on): Fix dependency on fcntl.
92178 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
92180         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
92181         conforms to C99, rather than relying on the user's environment
92182         setting of STDINT_H.
92184 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
92185         and Eric Blake  <ebb9@byu.net>
92187         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
92188         This is more consistent with the other defines here.
92189         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
92190         Port to z/OS.  Problem reported by Paul Gilmartin.
92191         Change local vars to use gl_ prefix rather than ac_.
92192         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
92193         with other defines.
92194         * modules/double-slash-root: New module.
92195         * modules/dirname (Files): Remove m4/double-slash-root.m4.
92196         (Depends-on): Add double-slash-root.
92197         * MODULES.html.sh (File system functions): Mention new module.
92199 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
92201         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
92202         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
92203         This is for the benefit of gzip, which doesn't do i18n.
92205 2006-12-12  Jim Meyering  <jim@meyering.net>
92207         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
92208         Reported by Andreas Schwab <schwab@suse.de>.
92210 2006-12-12  Bruno Haible  <bruno@clisp.org>
92212         Merge these changes.
92213         2006-09-05  Bruno Haible  <bruno@clisp.org>
92214         * lib/iconvme.c (iconv_string): No need to save and restore errno when
92215         iconv_alloc succeeded.
92216         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
92217         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
92218         test for " && dest " at the end - dest is always != NULL there. Call
92219         iconv with 4xNULL arguments initially, to reset the state. Call iconv
92220         with 2xNULL arguments, also to flush the state storage. Handle the
92221         IRIX iconv behaviour. Realloc the final result, to throw away unused
92222         memory.
92224 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
92226         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
92227         and fchmodat unconditionally, since glibc 2.4 has them.
92228         Problem reported by Arkadiusz Miskiewicz.
92230 2006-12-10  Bruno Haible  <bruno@clisp.org>
92232         * gnulib-tool (func_import): Show the include files only for those
92233         modules that are copied and specified.
92234         Reported by Karl Berry.
92236 2006-12-08  Jim Meyering  <jim@meyering.net>
92238         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
92239         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
92241         * build-aux/announce-gen: Add two new options, both optional:
92242         --bootstrap-tools=TOOL_LIST
92243               a comma-separated list of tools, e.g.,
92244               autoconf,automake,bison,gnulib
92245         --gnulib-snapshot-date=DATE
92246               if gnulib is in the bootstrap tool list,
92247               then report this as the snapshot date.
92248               If not specified, use the current date/time.
92249               If you specify a date here, be sure it's UTC.
92251 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92253         * tests/test-argp-2.sh: Fix test to match actual output.
92254         (func_compare): Fix sed script to be portable.
92256 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
92258         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
92259         workaround for this case.  It is not autoconfigured now; offhand
92260         it's hard to see how to autoconfigure it.
92262 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
92264         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
92265         a directory that is about to be chowned.  Such a directory's
92266         initial file permissions should permit the owner only and this
92267         should not be changed until after the chown, since the group and
92268         other bits would be incorrect if they granted permission before
92269         the chown.
92271         Fix porting problem for iswctype reported by Georg Schwarz in:
92272         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
92273         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
92274         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
92275         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
92276         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
92278 2006-12-03  Jim Meyering  <jim@meyering.net>
92280         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
92281         p->fts_statp may not yet be defined.
92282         (fts_read): Instead, set it in the caller, once p->fts_statp is
92283         sure to be defined, and corresponds to a top-level directory.
92284         This bug made du -x fail.  Here's the coreutils test case:
92285         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
92286         Reported by Mike Frysinger.
92288 2006-12-01  Jim Meyering  <jim@meyering.net>
92290         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
92291         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
92292         Reported by Simon Josefsson.
92294 2006-11-30  Jim Meyering  <jim@meyering.net>
92296         * m4/warning.m4: Use the all-permissive copyright notice
92297         recommended by RMS (rather than LGPL).
92298         * m4/vararrays.m4: Likewise.
92299         * m4/flexmember.m4: Likewise.
92301 2006-11-29  Bruno Haible  <bruno@clisp.org>
92303         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92304         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
92305         using +=.
92306         Reported by Simon Josefsson <simon@josefsson.org>.
92308 2006-11-28  James Youngman  <jay@gnu.org>
92310         * README: Advise users that they might find the bug-gnulib@gnu.org
92311         and autotools-announce@gnu.org mailing lists useful.
92313 2006-11-28  Bruno Haible  <bruno@clisp.org>
92315         * m4/ptrdiff_max.m4: Remove file.
92317 2006-11-21  Bruno Haible  <bruno@clisp.org>
92319         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
92320         _AC_COMPUTE_INT.
92321         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92322         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
92323         _AC_COMPUTE_INT.
92324         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92325         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
92326         _AC_COMPUTE_INT.
92327         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92329 2006-11-28  Jim Meyering  <jim@meyering.net>
92331         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
92332         warning from "gcc -Wshadow" about shadowing the builtin.
92334 2006-11-27  Bruno Haible  <bruno@clisp.org>
92336         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
92337         _AC_COMPUTE_INT.
92338         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92340 2006-11-27  Bruno Haible  <bruno@clisp.org>
92341             Paul Eggert  <eggert@cs.ucla.edu>
92343         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
92345 2006-11-26  Bruno Haible  <bruno@clisp.org>
92347         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92348         noinst_LTLIBRARIES.
92350 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
92351             Bruno Haible  <bruno@clisp.org>
92353         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
92354         if compiling with "gcc -ansi".
92356 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
92358         Fix some incompatibilities with gcc -ansi -pedantic.
92359         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
92360         if compiling pedantically with GCC, unless it's C99 or later.
92361         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
92362         it mishandles gcc -ansi -pedantic as well.
92363         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
92364         if gcc -pedantic.
92365         * lib/regexec.c (check_node_accept_bytes): Don't use auto
92366         initializers for struct if -pedantic, unless it's C99 or later.
92368 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
92370         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
92371         Don't close an fd more than once. Identical atimes indicate
92372         success, not failure.
92374 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
92376         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
92378 2006-11-23  Jim Meyering  <jim@meyering.net>
92380         * build-aux/announce-gen: New file.  From coreutils.
92382 2006-11-22  Jim Meyering  <jim@meyering.net>
92384         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
92385         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
92386         (fts_read): Use a temporary to narrow the overused st_size member
92387         before using it in a switch statement.  Reported by Matthew Woehlke.
92389         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
92390         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
92392 2006-11-20  Bruno Haible  <bruno@clisp.org>
92394         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
92395         changequote instead of pairs of brackets.
92396         Reported by Andreas Schwab <schwab@suse.de>.
92398 2006-11-21  Jim Meyering  <jim@meyering.net>
92400         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
92401         so as to remain compatible with older compilers.
92402         Patch from Michael Deutschmann.
92404 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92406         * MODULES.html.sh (File system functions): Add openat.
92408         * lib/openat.h (rpl_fstatat): New macro, if
92409         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
92410         (fstatat): Define to rpl_fstatat under the same conditions,
92411         unless COMPILING_FSTATAT.
92412         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
92413         seems to have the bug.
92414         * lib/fstatat.c: New file.
92415         * modules/openat (Files): Add it.
92417 2006-11-20  Bruno Haible  <bruno@clisp.org>
92419         * Makefile: New file.
92421 2006-11-20  Jim Meyering  <jim@meyering.net>
92423         The beginnings of syntax-related checks for gnulib.
92424         * lib/Makefile: New file.
92425         * lib/t-idcache: New script.  Ensure that the two halves of
92426         idcache.c stay in sync.
92428         * lib/idcache.c: Adjust comments in user- and group- portions to
92429         be more accurate, and to be consistent with one another.
92431 2006-11-20  Jim Meyering  <jim@meyering.net>
92433         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
92434         continue using the flexible array member (thus, this module performs
92435         half as many malloc calls), with the addition that...
92436         (getgroup, getuser): Consistently record a non-match via an empty
92437         "name" string, and map an empty string match to a NULL return value.
92438         * modules/idcache (Depends-on): Re-add flexmember.
92440         * lib/idcache.c (getuser): Remove all uses of the register keyword.
92441         (getuidbyname, getgroup, getgidbyname): Likewise.
92443         Use cleaner syntax: NULL rather than 0.
92444         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
92446 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92448         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
92449         It mishandled the case where the group was missing.
92450         Problem reported by Greg Schafer.
92451         * modules/idcache: Likewise.
92453 2006-11-18  Jim Meyering  <jim@meyering.net>
92455         * check-module (%exempt_header): Add exception for some
92456         conditionally-included headers.
92458         * modules/i-ring (Depends-on): Add verify.
92459         (License): Change to LGPL.
92461 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
92463         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
92464         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
92465         and inttostr.h.  Use snprintf rather than uinttostr, so that
92466         LGPLed code doesn't depend on GPLed.
92468 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
92470         * modules/inline (License): Change from GPL to LGPL.
92472 2006-11-17  Jim Meyering  <jim@meyering.net>
92474         * modules/d-type (License): Switch to LGPL.
92476 2006-11-15  Bruno Haible  <bruno@clisp.org>
92478         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
92480 2006-11-15  Eric Blake  <ebb9@byu.net>
92482         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
92483         the module dependency.
92485 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92486             Bruno Haible  <bruno@clisp.org>
92488         * gnulib-tool (func_create_testdir): Add license consistency check.
92490 2006-11-15  Eric Blake  <ebb9@byu.net>
92492         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
92493         random "(cached)" in configure output.
92495 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92497         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
92498         test for conforming inttypes.h is both announced and cached.
92500         * MODULES.html.sh (seen_modules, seen_files): New variables.
92501         (func_module): Rewrite to use a few less gnulib-tool and sed
92502         invocations.  Avoid a couple of quadratic algorithms for ...
92503         (missed_modules, missed_files): ... these, with ...
92504         (func_append, func_tmpdir): ... these new functions, from
92505         gnulib-tool.  Analogously, install traps for cleanup.
92507         * tests/test-gc.c (main): Remove unused variables.
92508         * tests/test-read-file.c: Include stdlib.h, for 'free'.
92510 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
92512         * modules/inttostr (License): Change to LGPL.
92514 2006-11-14  Eric Blake  <ebb9@byu.net>
92516         * modules/tempname (License): Change to LGPL.
92518 2006-11-14  Eric Blake  <ebb9@byu.net>
92520         * doc/functions.texi (Function Portability): *printf functions on
92521         Cygwin now understand all POSIX size specifiers.
92523 2006-11-14  Bruno Haible  <bruno@clisp.org>
92525         * modules/c-ctype (License): Change to LGPL.
92527 2006-11-12  Bruno Haible  <bruno@clisp.org>
92529         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92530         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
92531         for GNOME libraries, for which the include files are installed in
92532         subdirectories of $prefix/include.
92534 2006-11-12  Bruno Haible  <bruno@clisp.org>
92536         * m4/lib-link.m4: Require at least autoconf-2.54.
92537         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
92538         name to underscores for the --with option.
92540 2006-11-13  Bruno Haible  <bruno@clisp.org>
92542         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
92543         the tests directory.
92544         Reported by Ralf Wildenhues.
92546 2006-11-13  Bruno Haible  <bruno@clisp.org>
92548         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
92549         (func_emit_initmacro_end): Undo the override here.
92550         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
92551         Works around the famous automake error in coreutils.
92553 2006-11-13  Eric Blake  <ebb9@byu.net>
92555         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
92556         element, not its node.
92558 2006-11-12  Bruno Haible  <bruno@clisp.org>
92560         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
92561         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
92563 2006-11-12  Bruno Haible  <bruno@clisp.org>
92565         * gnulib-tool: New option --local-symlink.
92566         (func_usage): Document it.
92567         (lsymbolic): New variable.
92568         (func_import, func_create_testdir): If --symlink was not specified,
92569         test whether --local-symlink was specified and the file comes from
92570         the local_gnulib_dir.
92572 2006-11-12  Bruno Haible  <bruno@clisp.org>
92574         * gnulib-tool (func_ln): New function.
92575         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
92577 2006-11-12  Bruno Haible  <bruno@clisp.org>
92579         Finish support for source files in subdirectories.
92580         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
92581         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
92582         AUTOMAKE_OPTIONS.
92583         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
92585 2006-11-12  Bruno Haible  <bruno@clisp.org>
92587         * gnulib-tool (func_get_automake_snippet): Synthesize also an
92588         EXTRA_lib_SOURCES augmentation.
92589         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
92591 2006-11-12  Jim Meyering  <jim@meyering.net>
92593         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
92594         file descriptors.  This also averts a failure on systems with
92595         native openat support when a traversed directory lacks "x" access.
92596         * lib/fts_.h: Include "i-ring.h"
92597         (struct FTS) [fts_fd_ring]: New member.
92598         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
92599         (FCHDIR): Add parentheses.
92600         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
92601         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
92602         When descending, rather than simply closing the previous
92603         fts_cwd_fd value, push that file descriptor onto the ring.
92604         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
92605         (fts_open): Initialize the new fd_ring member.
92606         (fts_close): Clear the ring.
92607         (fts_safe_changedir): When possible, use our new fd_ring to skip
92608         the diropen and fstat and dev/ino comparison that would normally
92609         accompany a virtual `chdir ("..")'.
92611         * modules/fts (Depends-on): Add i-ring.
92612         * modules/i-ring: New module.
92613         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
92614         * m4/i-ring.m4: New file.
92616 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92618         * gnulib-tool (func_create_testdir): Fix replacement of
92619         `build-aux' in configure.ac.  Run autotools in gltests
92620         subdirectory.
92621         (func_create_testdir, func_create_megatestdir, test): There is
92622         no need for '--force' in most autotool invocations in a new
92623         tree.  Actually fail the whole test if any of the tools, or the
92624         configure or make stages fail.
92626         Sync from Automake.
92627         * build-aux/gnupload: Revert last change.  Add pointer to upload
92628         instructions of the GNU Maintenance Instructions.
92629         Suggestion by Karl Berry.
92631 2006-11-10  Jim Meyering  <jim@meyering.net>
92633         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
92635 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
92637         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
92638         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
92639         (bind_textdomain_codeset) [! ENABLE_NLS]:
92640         Evaluate all the arguments.  That way, callers get compatible behavior
92641         if the arguments have side effects.  Also, it avoids some GCC
92642         diagnostics in some cases; Joel E. Denny reported problems when Bison
92643         was configured with --enable-gcc-warnigs.
92645 2006-11-10  Jim Meyering  <jim@meyering.net>
92647         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
92648         relevant options in CFLAGS (like -O, -fno-inline) are taken into
92649         account.
92651 2006-11-10  Jim Meyering  <jim@meyering.net>
92653         * modules/inline: New file/module.
92654         * modules/xalloc (Files): Remove m4/inline.m4.
92655         (Depends-on): Add inline, instead.
92656         * modules/oset: Likewise.
92657         * modules/list: Likewise.
92659 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
92661         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
92662         Problem reported by Matthew Woehlke.
92664 2006-11-09  Bruno Haible  <bruno@clisp.org>
92666         * lib/tempname.c (gen_tempname): Remove variant that invokes
92667         __gen_tempname.
92668         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
92669         __gen_tempname.
92671 2006-11-08  Bruno Haible  <bruno@clisp.org>
92673         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
92674         to 'yes' instead of 'cross-compiling'.
92676 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
92678         * lib/quotearg.h (quotearg_free): New decl.
92679         * lib/quotearg.c (quotearg_free): New function.
92680         (slot0, nslots, slotvec0, slotvec):
92681         Now file-scope so that quotearg_free can get at them.
92683 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92685         Sync from Automake.
92686         * build-aux/gnupload: Add missing 'gnu' to example URL.
92687         Report by Karl Berry.
92689 2006-11-08  Bruno Haible  <bruno@clisp.org>
92691         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
92692         Suggested by Paul Eggert.
92694 2006-11-08  Jim Meyering  <jim@meyering.net>
92696         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
92697         It's already included if !_LIBC.
92698         (fts_safe_changedir): Add a comment.
92700 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
92702         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
92703         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
92704         Matthew Woehlke.
92706         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
92707         definitions up, to avoid colliding with change below.
92708         (static_inline) [HAVE_INLINE]: New macro.
92709         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
92710         Provide extern decls when !HAVE_INLINE.  Do not define unless
92711         static_inline is defined, either by us or by xmalloc.c.  Use
92712         static_inline rather than static inline.
92713         (XCALLOC): Optimize sizeof(T) = 1 case.
92714         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
92716 2006-11-07  Bruno Haible  <bruno@clisp.org>
92718         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
92719         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
92720         AC_C_INLINE.
92721         * modules/xalloc (Files): Add m4/inline.m4.
92723 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92725         * README: Fix typo.
92726         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
92727         (Miscellanous Notes): ...from this.
92729 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
92731         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
92732         Mention that offsetof should be used instead of sizeof.
92733         From Bruno Haible.
92735 2006-11-07  Bruno Haible  <bruno@clisp.org>
92737         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
92739 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
92741         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
92742         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
92743         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
92744         (gl_tree_add_before, gl_tree_add_after):
92745         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
92746         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
92747         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
92748         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
92749         (gl_linked_add_after, gl_linked_add_at): Likewise.
92750         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
92751         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
92752         (gl_tree_add_before, gl_tree_add_after): Likewise.
92753         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
92754         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
92755         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
92757 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92759         * lib/gl_oset.h: Use C comment style, not C++ comment style.
92761 2006-11-06  Bruno Haible  <bruno@clisp.org>
92763         * m4/inline.m4: New file.
92764         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
92765         * modules/list (Files): Add m4/inline.m4.
92766         * modules/oset (Files): Likewise.
92768 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
92770         * lib/idcache.c: Include <stddef.h>, for offsetof.
92771         (struct userid.name): Change from char * to a flexible array member.
92772         All uses changed.
92773         * modules/idcache (Depends-on): Add flexmember.
92775         * MODULES.html.sh (Core language properties): New module flexmember.
92776         * modules/flexmember, m4/flexmember.m4: New files.
92778         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
92779         inline functions that are identical with the old xnmalloc_inline,
92780         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
92781         that we can avoid some unnecessary integer multiplications and
92782         divisions in the common case where the element size is known at
92783         compile time.
92784         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
92785         needed.
92786         (xnboundedmalloc): Remove.
92787         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
92788         arguments, for consistency with rest of this header.
92789         (xcharalloc): Rewrite using XNMALLOC.
92790         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
92791         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
92792         versions have been moved to lib/xalloc.h and renamed to be the
92793         non-*_inline versions.
92794         (xmalloc, xrealloc): Implement without reference to the xnmalloc
92795         and xnrealloc functions, since those functions are now inline and
92796         now call us.
92797         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
92798         renaming described above.
92799         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
92800         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
92801         captures the dependency in AC_C_INLINE.
92803         New module canonicalize-lgpl, proposed by Charles Wilson in
92804         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
92805         with a few small changes afterwards.
92806         * MODULES.html.sh (File system functions): New module
92807         canonicalize-lgpl.
92808         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
92809         and canonicalize_file_name.
92810         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
92811         * modules/canonicalize-lgpl: New files.
92813 2006-11-05  Bruno Haible  <bruno@clisp.org>
92815         * gnulib-tool (func_import, func_create_testdir): Create directories
92816         also for files in subdirectories of lib/.
92818 2006-11-05  Bruno Haible  <bruno@clisp.org>
92820         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
92821         ANSI C compliant.
92823 2006-11-03  Bruno Haible  <bruno@clisp.org>
92825         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
92826         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
92827         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
92828         (xnboundedmalloc): New inline function.
92829         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
92830         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
92831         xmalloc.
92832         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
92833         xmalloc.
92834         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
92835         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
92836         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
92837         xmalloc.
92838         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
92839         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
92840         xmalloc.
92841         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
92842         gl_tree_add_after): Use XMALLOC instead of xmalloc.
92843         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
92844         xmalloc.
92845         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
92846         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
92847         gl_tree_add_after): Use XMALLOC instead of xmalloc.
92848         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
92849         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
92850         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
92851         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
92853 2006-11-03  Bruno Haible  <bruno@clisp.org>
92855         * lib/c-ctype.h [C++]: Define functions without name mangling.
92856         * lib/fwriteerror.h [C++]: Likewise.
92857         * lib/gcd.h [C++]: Likewise.
92858         * lib/linebreak.h [C++]: Likewise.
92860 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
92862         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
92863         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
92864         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
92865         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
92866         Check for functions and headers just once.
92867         Check for declaration of canonicalize_file_name.
92868         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
92870 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
92872         * gnulib-tool (func_import): Fix typo in actioncmd.
92874 2006-11-02  Bruno Haible  <bruno@clisp.org>
92876         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
92877         newline sequence in the Makefile.am snippet as a space, like "make"
92878         does.
92879         Reported by Roger Persson <perrog@gmail.com>.
92881 2006-11-01  Bruno Haible  <bruno@clisp.org>
92883         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
92884         already declared in <string.h>.
92885         * lib/strcase.h (strncasecmp): Don't declare it if yes.
92887 2006-11-01  Bruno Haible  <bruno@clisp.org>
92889         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
92890         * lib/strcase.h: Include <string.h>.
92891         (strcasecmp): Define to rpl_strcasecmp here.
92893 2006-11-01  Bruno Haible  <bruno@clisp.org>
92895         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
92897 2006-11-01  Eric Blake  <ebb9@byu.net>
92899         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
92901         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
92903 2006-10-29  Bruno Haible  <bruno@clisp.org>
92905         Make it compile in C++ mode.
92906         * lib/full-write.c (full_rw): Add a cast.
92908 2006-11-01  Bruno Haible  <bruno@clisp.org>
92910         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
92911         be POSIX compliant.
92912         Reported by Roger Persson <perrog@gmail.com>.
92914 2006-11-01  Eric Blake  <ebb9@byu.net>
92916         * lib/getopt_.h: Fix comments.
92918 2006-10-31  Eric Blake  <ebb9@byu.net>
92920         * modules/tmpdir (Depends-on): Add sys_stat.
92921         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
92922         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
92923         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
92924         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
92925         tempname.
92927 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
92929         Avoid some C++ diagnostics reported by Bruno Haible.
92930         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
92931         xmalloc.
92932         (quotearg_alloc): Use xcharalloc rather than xmalloc.
92933         (struct slotvec): Move to top level.
92934         (quotearg_n_options): Rewrite to avoid xmalloc.
92935         * lib/xalloc.h (xcharalloc): New function.
92936         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
92937         [defined __cplusplus]: Add function template that provides result
92938         type propagation.  This part of the change is from Bruno Haible.
92940 2006-10-29  Bruno Haible  <bruno@clisp.org>
92942         Make it compile in C++ mode.
92943         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
92944         * lib/strnlen1.c (strnlen1): Cast memchr result.
92945         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
92946         * lib/clean-temp.c (string_equals, string_hash): Add casts.
92947         (create_temp_dir): Rename local variable 'template'.
92948         (compile_csharp_using_sscli): Add cast.
92949         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
92950         * lib/findprog.c (find_in_path): Likewise.
92951         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
92952         * lib/wait-process.c (register_slave_subprocess): Likewise.
92954 2006-10-22  Bruno Haible  <bruno@clisp.org>
92956         * modules/tsearch: New file.
92957         * lib/tsearch.h: New file.
92958         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
92959         * m4/tsearch.m4: New file.
92960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
92962 2006-10-29  Eric Blake  <ebb9@byu.net>
92964         * lib/arcfour.c: Assume config.h.
92965         * lib/arctwo.c: Likewise.
92966         * lib/base64.c: Likewise.
92967         * lib/check-version.c: Likewise.
92968         * lib/crc.c: Likewise.
92969         * lib/des.c: Likewise.
92970         * lib/gc-gnulib.c: Likewise.
92971         * lib/gc-libgcrypt.c: Likewise.
92972         * lib/gc-pbkdf2-sha1.c: Likewise.
92973         * lib/getaddrinfo.c: Likewise.
92974         * lib/getdelim.c: Likewise.
92975         * lib/getline.c: Likewise.
92976         * lib/hmac-md5.c: Likewise.
92977         * lib/hmac-sha1.c: Likewise.
92978         * lib/iconvme.c: Likewise.
92979         * lib/md2.c: Likewise.
92980         * lib/md4.c: Likewise.
92981         * lib/memxor.c: Likewise.
92982         * lib/read-file.c: Likewise.
92983         * lib/readline.c: Likewise.
92984         * lib/rijndael-alg-fst.c: Likewise.
92985         * lib/rijndael-api-fst.c: Likewise.
92986         * lib/xgetdomainname.c: Likewise.
92988 2006-10-28  Eric Blake  <ebb9@byu.net>
92990         * lib/xstrndup.c: Assume config.h.
92992 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
92994         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
92995         stat-macros.h is now for our own macros, whereas stat_h is for
92996         macros in the <sys/stat.h> name space.
92997         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
92998         (STAT_MACROS_H): Remove.
92999         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
93000         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
93001         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
93002         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
93003         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
93004         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
93005         Move these macros to ...
93006         * lib/stat_.h: here.  Don't include stat-macros.h.
93007         * lib/canonicalize.c: Don't include stat-macros.h.
93008         * lib/chown.c: Likewise.
93009         * lib/euidaccess.c: Likewise.
93010         * lib/file-type.c: Likewise.
93011         * lib/filemode.c: Likewise.
93012         * lib/glob.c: Likewise.
93013         * lib/isapipe.c: Likewise.
93014         * lib/lchown.c: Likewise.
93015         * lib/lstat.c: Likewise.
93016         * lib/mkdir-p.c: Likewise.
93017         * lib/rmdir.c: Likewise.
93018         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
93019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
93020         unless mkdir isn't declared, to speed up 'configure'.
93021         Always create sys/stat.h, since it's unlikely any real sys/stat.h
93022         would define all the S_* symbols.
93023         * modules/canonicalize (Depends-on):
93024         Depend on sys_stat, not stat-macros.
93025         * modules/chown: Likewise.
93026         * modules/euidaccess: Likewise.
93027         * modules/filemode: Likewise.
93028         * modules/file-type: Likewise.
93029         * modules/glob: Likewise.
93030         * modules/isapipe: Likewise.
93031         * modules/lchown: Likewise.
93032         * modules/lstat: Likewise.
93033         * modules/mkancesdirs: Likewise.
93034         * modules/rmdir: Likewise.
93035         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
93036         * modules/modechange: Likewise.
93037         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
93038         (configure.ac): Remove gl_STAT_MACROS.
93039         * modules/sys_stat (Depends-on): Remove stat-macros.
93041 2006-10-27  Bruno Haible  <bruno@clisp.org>
93043         * m4/signed.m4: Remove file.
93044         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
93045         invocation.
93046         * modules/vasnprintf (Files): Remove m4/signed.m4.
93048 2006-10-27  Bruno Haible  <bruno@clisp.org>
93050         Update to GNU gettext 0.16.
93051         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
93052         m4/inttypes-h.m4, m4/signed.m4.
93053         * m4/gettext.m4: Update to GNU gettext 0.16.
93054         * m4/intl.m4: New file, from GNU gettext.
93055         * m4/intldir.m4: New file, from GNU gettext.
93056         * config/srclist.txt: Update
93058 2006-10-27  Eric Blake  <ebb9@byu.net>
93060         * MODULES.html.sh: Document tempname.
93061         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
93062         dependencies.
93063         (Files): Move lib/tempname.c...
93064         * modules/tempname: ...to this new module.
93065         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
93066         (gl_PREREQ_TEMPNAME): Move...
93067         * m4/tempname.m4: ...to this new file.
93068         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
93069         * modules/sys_stat (Depends-on): Add stat-macros.
93070         * lib/stat_.h (includes): Pick up stat macros.
93071         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
93072         if stat macros are broken.
93073         * lib/tempname.c (includes): No need to include "stat-macros.h".
93074         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
93075         (direxists, __path_search) [!_LIBC]: Don't compile these in
93076         gnulib; the tmpdir module covers that.
93077         * lib/tempname.h: New file.
93079 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
93081         * COPYING: Explain how gnulib-tool converts licence headers.
93082         Almost all wording by Eric Blake.
93084 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
93086         * lib/mbchar.h (is_basic_table): Make read-only.
93087         * lib/mbchar.c (is_basic_table): Likewise.
93088         Reported by John Darrington.
93090 2006-10-25  Bruno Haible  <bruno@clisp.org>
93092         * lib/progname.h (set_program_name): Undefine before defining.
93094 2006-10-25  Bruno Haible  <bruno@clisp.org>
93096         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
93097         false for non-gcc C++ compilers.
93098         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
93100 2006-10-24  Bruno Haible  <bruno@clisp.org>
93102         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
93103         iconv implementations like Irix iconv.
93105 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93107         * modules/vararrays: New file.
93108         * m4/vararrays.m4: New file, taken from diffutils.
93109         * MODULES.html.sh: New module vararrays.
93111 2006-10-24  Karl Berry  <karl@gnu.org>
93113         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
93114         Don't call GNU Unix.
93116 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93118         * users.txt: Add Libtool.
93120         Sync from Libtool:
93122         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93124         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
93125         to gnulib's policy of including config.h unconditionally.
93127 2006-10-24  Bruno Haible  <bruno@clisp.org>
93129         * modules/wcwidth (Files): Add m4/wint_t.m4.
93130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
93131         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
93133 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93135         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
93136         to pacify GCC with some -W flags enabled.  Problem reported by
93137         Bruno Haible.
93139 2006-10-24  Jim Meyering  <jim@meyering.net>
93141         * MODULES.html.sh: Remove uinttostr.  It's not a module.
93142         Reported by Karl Berry.
93144 2006-10-23  Bruno Haible  <bruno@clisp.org>
93146         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
93148 2006-10-24  Bruno Haible  <bruno@clisp.org>
93150         * lib/gl_list.h: Use C comment style, not C++ comment style.
93152 2006-10-23  Eric Blake  <ebb9@byu.net>
93154         * lib/getaddrinfo.c (includes): Add missing include.
93156 2006-10-23  Bruno Haible  <bruno@clisp.org>
93157             Paul Eggert  <eggert@cs.ucla.edu>
93159         Ability to rename obstack_free.
93160         * lib/obstack.h (__obstack_free): New macro. Declare instead of
93161         obstack_free.
93162         (obstack_free): Invoke the __obstack_free macro.
93163         * lib/obstack.c (obstack_free): Use __obstack_free macro.
93165 2006-10-23  Bruno Haible  <bruno@clisp.org>
93166             Paul Eggert  <eggert@cs.ucla.edu>
93168         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
93169         __argc, __argv from the declaration. (They are defined as macros on
93170         mingw.)
93172 2006-10-22  Bruno Haible  <bruno@clisp.org>
93174         * doc/gnulib-intro.texi: New file.
93175         * doc/gnulib.texi: Include it.
93177 2006-10-21  Bruno Haible  <bruno@clisp.org>
93179         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
93180         "Introduction", "Miscellanous Notes", "Particular Modules".
93182 2006-10-21  Bruno Haible  <bruno@clisp.org>
93184         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93185         Change mostlyclean-local rule to avoid sh syntax error from bash
93186         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
93188 2006-10-23  Jim Meyering  <jim@meyering.net>
93190         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
93191         in place of snprintf.
93193         * modules/inttostr (Files): Add lib/uinttostr.c.
93194         * lib/uinttostr.c (inttostr): New file/function.
93195         * lib/inttostr.h (uinttostr): Declare.
93196         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
93197         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
93198         Add uinttostr.
93199         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
93201 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
93203         * lib/canonicalize.c (ELOOP): Define if not already defined.
93204         Problem reported by Bruno Haible in
93205         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
93207 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
93209         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
93210         Problem reported by Perry Smith and Ville Laurikari.
93212         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
93213         uses.
93215 2006-10-19  Bruno Haible  <bruno@clisp.org>
93217         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
93218         for mingw.
93220 2006-10-19  Bruno Haible  <bruno@clisp.org>
93222         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
93223         Needed for mingw.
93225 2006-10-19  Bruno Haible  <bruno@clisp.org>
93227         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
93229 2006-10-19  Bruno Haible  <bruno@clisp.org>
93231         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
93232         it.
93234 2006-10-19  Bruno Haible  <bruno@clisp.org>
93236         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
93237         invocation.
93239 2006-10-19  Bruno Haible  <bruno@clisp.org>
93241         * gnulib-tool (func_create_testdir): Don't include ftruncate and
93242         mountlist by default.
93244 2006-10-16  Bruno Haible  <bruno@clisp.org>
93246         * lib/c-strstr.c: Include c-strstr.h.
93248 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
93250         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
93251         in a slash.
93253 2006-10-18  Bruno Haible  <bruno@clisp.org>
93255         * lib/lock.h [C++]: Wrap definitions in extern "C".
93257 2006-10-18  Bruno Haible  <bruno@clisp.org>
93259         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
93260         gl_LIBOBJS list.
93262 2006-10-18  Bruno Haible  <bruno@clisp.org>
93264         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
93266 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
93268         * lib/xstrtol.h: Include gettext.h.
93269         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
93270         Problem reported by Eric Blake.
93271         * modules/xstrtol (Depends-on): Add gettext-h.
93273 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
93275         * lib/strftime.c (advance): New macro.
93276         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
93277         incomplete type, so you can't add 0 to it.  Problem and patch
93278         reported by Eelco Dolstra for dietlibc.
93280 2006-10-18  Jim Meyering  <jim@meyering.net>
93282         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
93283         type for a local, and rename it: s/up/user_proc/.
93285 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
93287         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
93288         READ_UTMP_USER_PROCESS.
93289         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
93291 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
93293         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
93294         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
93296 2006-10-17  Eric Blake  <ebb9@byu.net>
93298         * lib/sigprocmask.c (sigprocmask): Fix typo.
93300         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
93302         * modules/clean-temp (Makefile.am): Don't add to make output...
93303         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
93304         config.h.
93306 2006-10-17  Bruno Haible  <bruno@clisp.org>
93308         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
93309         differently if DEFAULT_TEXT_DOMAIN is set.
93311 2006-10-16  Bruno Haible  <bruno@clisp.org>
93313         * lib/clean-temp.c: Include fwriteerror.h.
93315 2006-10-16  Bruno Haible  <bruno@clisp.org>
93317         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
93319 2006-10-16  Bruno Haible  <bruno@clisp.org>
93321         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
93322         * lib/sigprocmask.h: Include <sys/types.h>.
93323         (sigset_t): Use the system's definition if present.
93325 2006-10-17  Eric Blake  <ebb9@byu.net>
93327         * lib/xvasprintf.c (includes): Assume config.h.
93328         * lib/xasprintf.c (includes): Likewise.
93330 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
93332         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
93333         at least as wide as intmax_t.
93335 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
93337         (Imported from Automake.)
93338         * build-aux/gnupload: Update to version 1.1 of directive file.
93340 2006-10-16  Eric Blake  <ebb9@byu.net>
93342         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
93343         match Automake 1.10a.
93345 2006-10-14  Bruno Haible  <bruno@clisp.org>
93347         * modules/sigprocmask: New file.
93348         * lib/sigprocmask.h: New file.
93349         * lib/sigprocmask.c: New file.
93350         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
93351         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
93352         request sigprocmask.o.
93353         (gl_PREREQ_SIGPROCMASK): New macro.
93354         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
93355         (Depends-on): Add sigprocmask.
93356         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
93357         gt_SIGNALBLOCKING. Test for 'raise' only once.
93358         * lib/fatal-signal.c: Include sigprocmask.h.
93359         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
93360         unblock_fatal_signals): Define always.
93361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93362         sigprocmask.
93364 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
93366         Sync from Automake.
93367         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
93368         which incorrectly sets the mode of an existing destination
93369         directory.  In some cases the unpatched install-sh could do the
93370         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
93371         system.  We hope this is rare in practice, but it's clearly worth
93372         fixing.  Problem reported by Alex Unleashed in
93373         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
93374         Also, don't bother to check for -m bugs unless we're using -m;
93375         suggested by Stepan Kasal.
93377 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93379         Sync from Automake.
93380         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
93381         `-c' flag, so they appear at the same position as in %FASTDEP%
93382         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
93383         which ignores unknown options only after the first non-option.
93384         Bug report against M4 by Nelson H. F. Beebe.
93386 2006-10-13  Jim Meyering  <jim@meyering.net>
93388         Fix a bug in yesterday's change.
93389         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
93390         p->fts_statp->st_dev would be used uninitialized.
93391         Ensures that we always call fts_stat on the very first entry.
93392         Miklos Szeredi reported that find -xdev stopped working.
93394 2006-10-12  Bruno Haible  <bruno@clisp.org>
93396         * gnulib-tool (func_get_automake_snippet): Append an automatically
93397         computed EXTRA_DIST augmentation.
93398         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
93399         * modules/alloca-opt (Makefile.am): Likewise.
93400         * modules/allocsa (Makefile.am): Likewise.
93401         * modules/arcfour (Makefile.am): Likewise.
93402         * modules/arctwo (Makefile.am): Likewise.
93403         * modules/argmatch (Makefile.am): Likewise.
93404         * modules/argz (Makefile.am): Likewise.
93405         * modules/atexit (Makefile.am): Likewise.
93406         * modules/backupfile (Makefile.am): Likewise.
93407         * modules/byteswap (Makefile.am): Likewise.
93408         * modules/c-strtod (Makefile.am): Likewise.
93409         * modules/c-strtold (Makefile.am): Likewise.
93410         * modules/calloc (Makefile.am): Likewise.
93411         * modules/canon-host (Makefile.am): Likewise.
93412         * modules/canonicalize (Makefile.am): Likewise.
93413         * modules/chdir-long (Makefile.am): Likewise.
93414         * modules/chdir-safer (Makefile.am): Likewise.
93415         * modules/check-version (Makefile.am): Likewise.
93416         * modules/chown (Makefile.am): Likewise.
93417         * modules/cloexec (Makefile.am): Likewise.
93418         * modules/close-stream (Makefile.am): Likewise.
93419         * modules/closeout (Makefile.am): Likewise.
93420         * modules/crc (Makefile.am): Likewise.
93421         * modules/csharpexec (Makefile.am): Likewise.
93422         * modules/cycle-check (Makefile.am): Likewise.
93423         * modules/des (Makefile.am): Likewise.
93424         * modules/dev-ino (Makefile.am): Likewise.
93425         * modules/dirfd (Makefile.am): Likewise.
93426         * modules/dirname (Makefile.am): Likewise.
93427         * modules/dup2 (Makefile.am): Likewise.
93428         * modules/eealloc (Makefile.am): Likewise.
93429         * modules/error (Makefile.am): Likewise.
93430         * modules/euidaccess (Makefile.am): Likewise.
93431         * modules/exclude (Makefile.am): Likewise.
93432         * modules/exitfail (Makefile.am): Likewise.
93433         * modules/fcntl-safer (Makefile.am): Likewise.
93434         * modules/fcntl (Makefile.am): Likewise.
93435         * modules/file-type (Makefile.am): Likewise.
93436         * modules/fileblocks (Makefile.am): Likewise.
93437         * modules/filemode (Makefile.am): Likewise.
93438         * modules/filenamecat (Makefile.am): Likewise.
93439         * modules/fnmatch (Makefile.am): Likewise.
93440         * modules/fopen-safer (Makefile.am): Likewise.
93441         * modules/fpending (Makefile.am): Likewise.
93442         * modules/fprintftime (Makefile.am): Likewise.
93443         * modules/free (Makefile.am): Likewise.
93444         * modules/fsusage (Makefile.am): Likewise.
93445         * modules/ftruncate (Makefile.am): Likewise.
93446         * modules/fts (Makefile.am): Likewise.
93447         * modules/gc-arcfour (Makefile.am): Likewise.
93448         * modules/gc-des (Makefile.am): Likewise.
93449         * modules/gc-hmac-md5 (Makefile.am): Likewise.
93450         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
93451         * modules/gc-md4 (Makefile.am): Likewise.
93452         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
93453         * modules/gc-sha1 (Makefile.am): Likewise.
93454         * modules/gc (Makefile.am): Likewise.
93455         * modules/getaddrinfo (Makefile.am): Likewise.
93456         * modules/getcwd (Makefile.am): Likewise.
93457         * modules/getdelim (Makefile.am): Likewise.
93458         * modules/getdomainname (Makefile.am): Likewise.
93459         * modules/getgroups (Makefile.am): Likewise.
93460         * modules/gethostname (Makefile.am): Likewise.
93461         * modules/gethrxtime (Makefile.am): Likewise.
93462         * modules/getline (Makefile.am): Likewise.
93463         * modules/getloadavg (Makefile.am): Likewise.
93464         * modules/getlogin_r (Makefile.am): Likewise.
93465         * modules/getndelim2 (Makefile.am): Likewise.
93466         * modules/getopt (Makefile.am): Likewise.
93467         * modules/getpagesize (Makefile.am): Likewise.
93468         * modules/getpass-gnu (Makefile.am): Likewise.
93469         * modules/getpass (Makefile.am): Likewise.
93470         * modules/getsubopt (Makefile.am): Likewise.
93471         * modules/gettime (Makefile.am): Likewise.
93472         * modules/gettimeofday (Makefile.am): Likewise.
93473         * modules/getugroups (Makefile.am): Likewise.
93474         * modules/getusershell (Makefile.am): Likewise.
93475         * modules/glob (Makefile.am): Likewise.
93476         * modules/group-member (Makefile.am): Likewise.
93477         * modules/hard-locale (Makefile.am): Likewise.
93478         * modules/hash (Makefile.am): Likewise.
93479         * modules/hmac-md5 (Makefile.am): Likewise.
93480         * modules/hmac-sha1 (Makefile.am): Likewise.
93481         * modules/human (Makefile.am): Likewise.
93482         * modules/idcache (Makefile.am): Likewise.
93483         * modules/imaxabs (Makefile.am): Likewise.
93484         * modules/imaxdiv (Makefile.am): Likewise.
93485         * modules/inet_ntop (Makefile.am): Likewise.
93486         * modules/inet_pton (Makefile.am): Likewise.
93487         * modules/intprops (Makefile.am): Likewise.
93488         * modules/inttostr (Makefile.am): Likewise.
93489         * modules/inttypes (Makefile.am): Likewise.
93490         * modules/isapipe (Makefile.am): Likewise.
93491         * modules/javaversion (Makefile.am): Likewise.
93492         * modules/lchmod (Makefile.am): Likewise.
93493         * modules/lchown (Makefile.am): Likewise.
93494         * modules/localcharset (Makefile.am): Likewise.
93495         * modules/long-options (Makefile.am): Likewise.
93496         * modules/lstat (Makefile.am): Likewise.
93497         * modules/malloc (Makefile.am): Likewise.
93498         * modules/mathl (Makefile.am): Likewise.
93499         * modules/mbchar (Makefile.am): Likewise.
93500         * modules/md2 (Makefile.am): Likewise.
93501         * modules/md4 (Makefile.am): Likewise.
93502         * modules/md5 (Makefile.am): Likewise.
93503         * modules/memcasecmp (Makefile.am): Likewise.
93504         * modules/memchr (Makefile.am): Likewise.
93505         * modules/memcmp (Makefile.am): Likewise.
93506         * modules/memcoll (Makefile.am): Likewise.
93507         * modules/memcpy (Makefile.am): Likewise.
93508         * modules/memmem (Makefile.am): Likewise.
93509         * modules/memmove (Makefile.am): Likewise.
93510         * modules/mempcpy (Makefile.am): Likewise.
93511         * modules/memrchr (Makefile.am): Likewise.
93512         * modules/memset (Makefile.am): Likewise.
93513         * modules/memxor (Makefile.am): Likewise.
93514         * modules/mkancesdirs (Makefile.am): Likewise.
93515         * modules/mkdir-p (Makefile.am): Likewise.
93516         * modules/mkdir (Makefile.am): Likewise.
93517         * modules/mkdtemp (Makefile.am): Likewise.
93518         * modules/mkstemp (Makefile.am): Likewise.
93519         * modules/mktime (Makefile.am): Likewise.
93520         * modules/modechange (Makefile.am): Likewise.
93521         * modules/mountlist (Makefile.am): Likewise.
93522         * modules/nanosleep (Makefile.am): Likewise.
93523         * modules/obstack (Makefile.am): Likewise.
93524         * modules/openat (Makefile.am): Likewise.
93525         * modules/pagealign_alloc (Makefile.am): Likewise.
93526         * modules/pathmax (Makefile.am): Likewise.
93527         * modules/physmem (Makefile.am): Likewise.
93528         * modules/poll (Makefile.am): Likewise.
93529         * modules/posixtm (Makefile.am): Likewise.
93530         * modules/posixver (Makefile.am): Likewise.
93531         * modules/putenv (Makefile.am): Likewise.
93532         * modules/quote (Makefile.am): Likewise.
93533         * modules/quotearg (Makefile.am): Likewise.
93534         * modules/raise (Makefile.am): Likewise.
93535         * modules/read-file (Makefile.am): Likewise.
93536         * modules/readline (Makefile.am): Likewise.
93537         * modules/readlink (Makefile.am): Likewise.
93538         * modules/readtokens (Makefile.am): Likewise.
93539         * modules/readutmp (Makefile.am): Likewise.
93540         * modules/realloc (Makefile.am): Likewise.
93541         * modules/regex (Makefile.am): Likewise.
93542         * modules/rename-dest-slash (Makefile.am): Likewise.
93543         * modules/rename (Makefile.am): Likewise.
93544         * modules/rijndael (Makefile.am): Likewise.
93545         * modules/rmdir (Makefile.am): Likewise.
93546         * modules/rpmatch (Makefile.am): Likewise.
93547         * modules/safe-read (Makefile.am): Likewise.
93548         * modules/safe-write (Makefile.am): Likewise.
93549         * modules/same-inode (Makefile.am): Likewise.
93550         * modules/same (Makefile.am): Likewise.
93551         * modules/save-cwd (Makefile.am): Likewise.
93552         * modules/savedir (Makefile.am): Likewise.
93553         * modules/setenv (Makefile.am): Likewise.
93554         * modules/settime (Makefile.am): Likewise.
93555         * modules/sha1 (Makefile.am): Likewise.
93556         * modules/sig2str (Makefile.am): Likewise.
93557         * modules/snprintf (Makefile.am): Likewise.
93558         * modules/stat-macros (Makefile.am): Likewise.
93559         * modules/stat-time (Makefile.am): Likewise.
93560         * modules/stdbool (Makefile.am): Likewise.
93561         * modules/stdint (Makefile.am): Likewise.
93562         * modules/stdlib-safer (Makefile.am): Likewise.
93563         * modules/stpcpy (Makefile.am): Likewise.
93564         * modules/stpncpy (Makefile.am): Likewise.
93565         * modules/strcase (Makefile.am): Likewise.
93566         * modules/strcasestr (Makefile.am): Likewise.
93567         * modules/strchrnul (Makefile.am): Likewise.
93568         * modules/strcspn (Makefile.am): Likewise.
93569         * modules/strdup (Makefile.am): Likewise.
93570         * modules/strerror (Makefile.am): Likewise.
93571         * modules/strftime (Makefile.am): Likewise.
93572         * modules/strndup (Makefile.am): Likewise.
93573         * modules/strnlen (Makefile.am): Likewise.
93574         * modules/strpbrk (Makefile.am): Likewise.
93575         * modules/strsep (Makefile.am): Likewise.
93576         * modules/strstr (Makefile.am): Likewise.
93577         * modules/strtod (Makefile.am): Likewise.
93578         * modules/strtoimax (Makefile.am): Likewise.
93579         * modules/strtok_r (Makefile.am): Likewise.
93580         * modules/strtol (Makefile.am): Likewise.
93581         * modules/strtoll (Makefile.am): Likewise.
93582         * modules/strtoul (Makefile.am): Likewise.
93583         * modules/strtoull (Makefile.am): Likewise.
93584         * modules/strtoumax (Makefile.am): Likewise.
93585         * modules/strverscmp (Makefile.am): Likewise.
93586         * modules/sys_socket (Makefile.am): Likewise.
93587         * modules/sys_stat (Makefile.am): Likewise.
93588         * modules/sysexits (Makefile.am): Likewise.
93589         * modules/time_r (Makefile.am): Likewise.
93590         * modules/timegm (Makefile.am): Likewise.
93591         * modules/timespec (Makefile.am): Likewise.
93592         * modules/tmpfile-safer (Makefile.am): Likewise.
93593         * modules/trim (Makefile.am): Likewise.
93594         * modules/unistd-safer (Makefile.am): Likewise.
93595         * modules/unlinkdir (Makefile.am): Likewise.
93596         * modules/unlocked-io (Makefile.am): Likewise.
93597         * modules/userspec (Makefile.am): Likewise.
93598         * modules/utime (Makefile.am): Likewise.
93599         * modules/utimecmp (Makefile.am): Likewise.
93600         * modules/utimens (Makefile.am): Likewise.
93601         * modules/vasnprintf (Makefile.am): Likewise.
93602         * modules/vasprintf (Makefile.am): Likewise.
93603         * modules/vsnprintf (Makefile.am): Likewise.
93604         * modules/xalloc (Makefile.am): Likewise.
93605         * modules/xgetcwd (Makefile.am): Likewise.
93606         * modules/xnanosleep (Makefile.am): Likewise.
93607         * modules/xreadlink (Makefile.am): Likewise.
93608         * modules/xstrtod (Makefile.am): Likewise.
93609         * modules/xstrtol (Makefile.am): Likewise.
93610         * modules/xstrtold (Makefile.am): Likewise.
93611         * modules/yesno (Makefile.am): Likewise.
93612         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
93614 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
93616         * modules/error (Makefile.am): Distribute files through
93617         EXTRA_DIST, not lib_SOURCES.
93619 2006-10-12  Eric Blake  <ebb9@byu.net>
93621         * modules/error (Makefile.am): Distribute files in /lib.
93622         * modules/obstack (Makefile.am): Likewise.
93624 2006-10-12  Bruno Haible  <bruno@clisp.org>
93626         * modules/acl (Makefile.am): Distribute all files in lib/ through
93627         EXTRA_DIST.
93628         * modules/arcfour (Makefile.am): Likewise.
93629         * modules/arctwo (Makefile.am): Likewise.
93630         * modules/argmatch (Makefile.am): Likewise.
93631         * modules/argz (Makefile.am): Likewise.
93632         * modules/atexit (Makefile.am): Likewise.
93633         * modules/backupfile (Makefile.am): Likewise.
93634         * modules/c-strtod (Makefile.am): Likewise.
93635         * modules/c-strtold (Makefile.am): Likewise.
93636         * modules/calloc (Makefile.am): Likewise.
93637         * modules/canon-host (Makefile.am): Likewise.
93638         * modules/canonicalize (Makefile.am): Likewise.
93639         * modules/chdir-long (Makefile.am): Likewise.
93640         * modules/chdir-safer (Makefile.am): Likewise.
93641         * modules/check-version (Makefile.am): Likewise.
93642         * modules/chown (Makefile.am): Likewise.
93643         * modules/cloexec (Makefile.am): Likewise.
93644         * modules/close-stream (Makefile.am): Likewise.
93645         * modules/closeout (Makefile.am): Likewise.
93646         * modules/crc (Makefile.am): Likewise.
93647         * modules/cycle-check (Makefile.am): Likewise.
93648         * modules/des (Makefile.am): Likewise.
93649         * modules/dirfd (Makefile.am): Likewise.
93650         * modules/dirname (Makefile.am): Likewise.
93651         * modules/dup2 (Makefile.am): Likewise.
93652         * modules/euidaccess (Makefile.am): Likewise.
93653         * modules/exclude (Makefile.am): Likewise.
93654         * modules/exitfail (Makefile.am): Likewise.
93655         * modules/fcntl-safer (Makefile.am): Likewise.
93656         * modules/file-type (Makefile.am): Likewise.
93657         * modules/fileblocks (Makefile.am): Likewise.
93658         * modules/filemode (Makefile.am): Likewise.
93659         * modules/filenamecat (Makefile.am): Likewise.
93660         * modules/fnmatch (Makefile.am): Likewise.
93661         * modules/fopen-safer (Makefile.am): Likewise.
93662         * modules/fpending (Makefile.am): Likewise.
93663         * modules/fprintftime (Makefile.am): Likewise.
93664         * modules/free (Makefile.am): Likewise.
93665         * modules/fsusage (Makefile.am): Likewise.
93666         * modules/ftruncate (Makefile.am): Likewise.
93667         * modules/fts (Makefile.am): Likewise.
93668         * modules/gc (Makefile.am): Likewise.
93669         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
93670         * modules/getaddrinfo (Makefile.am): Likewise.
93671         * modules/getcwd (Makefile.am): Likewise.
93672         * modules/getdelim (Makefile.am): Likewise.
93673         * modules/getdomainname (Makefile.am): Likewise.
93674         * modules/getgroups (Makefile.am): Likewise.
93675         * modules/gethostname (Makefile.am): Likewise.
93676         * modules/gethrxtime (Makefile.am): Likewise.
93677         * modules/getline (Makefile.am): Likewise.
93678         * modules/getloadavg (Makefile.am): Likewise.
93679         * modules/getlogin_r (Makefile.am): Likewise.
93680         * modules/getopt (Makefile.am): Likewise.
93681         * modules/getpass (Makefile.am): Likewise.
93682         * modules/getpass-gnu (Makefile.am): Likewise.
93683         * modules/getsubopt (Makefile.am): Likewise.
93684         * modules/gettime (Makefile.am): Likewise.
93685         * modules/gettimeofday (Makefile.am): Likewise.
93686         * modules/getugroups (Makefile.am): Likewise.
93687         * modules/getusershell (Makefile.am): Likewise.
93688         * modules/glob (Makefile.am): Likewise.
93689         * modules/group-member (Makefile.am): Likewise.
93690         * modules/hard-locale (Makefile.am): Likewise.
93691         * modules/hash (Makefile.am): Likewise.
93692         * modules/hmac-md5 (Makefile.am): Likewise.
93693         * modules/hmac-sha1 (Makefile.am): Likewise.
93694         * modules/human (Makefile.am): Likewise.
93695         * modules/idcache (Makefile.am): Likewise.
93696         * modules/imaxabs (Makefile.am): Likewise.
93697         * modules/imaxdiv (Makefile.am): Likewise.
93698         * modules/inet_ntop (Makefile.am): Likewise.
93699         * modules/inet_pton (Makefile.am): Likewise.
93700         * modules/inttostr (Makefile.am): Likewise.
93701         * modules/isapipe (Makefile.am): Likewise.
93702         * modules/lchown (Makefile.am): Likewise.
93703         * modules/long-options (Makefile.am): Likewise.
93704         * modules/lstat (Makefile.am): Likewise.
93705         * modules/malloc (Makefile.am): Likewise.
93706         * modules/mathl (Makefile.am): Likewise.
93707         * modules/mbchar (Makefile.am): Likewise.
93708         * modules/md2 (Makefile.am): Likewise.
93709         * modules/md4 (Makefile.am): Likewise.
93710         * modules/md5 (Makefile.am): Likewise.
93711         * modules/memcasecmp (Makefile.am): Likewise.
93712         * modules/memchr (Makefile.am): Likewise.
93713         * modules/memcmp (Makefile.am): Likewise.
93714         * modules/memcoll (Makefile.am): Likewise.
93715         * modules/memcpy (Makefile.am): Likewise.
93716         * modules/memmem (Makefile.am): Likewise.
93717         * modules/memmove (Makefile.am): Likewise.
93718         * modules/mempcpy (Makefile.am): Likewise.
93719         * modules/memrchr (Makefile.am): Likewise.
93720         * modules/memset (Makefile.am): Likewise.
93721         * modules/memxor (Makefile.am): Likewise.
93722         * modules/mkancesdirs (Makefile.am): Likewise.
93723         * modules/mkdir (Makefile.am): Likewise.
93724         * modules/mkdir-p (Makefile.am): Likewise.
93725         * modules/mkdtemp (Makefile.am): Likewise.
93726         * modules/mkstemp (Makefile.am): Likewise.
93727         * modules/mktime (Makefile.am): Likewise.
93728         * modules/modechange (Makefile.am): Likewise.
93729         * modules/mountlist (Makefile.am): Likewise.
93730         * modules/nanosleep (Makefile.am): Likewise.
93731         * modules/openat (Makefile.am): Likewise.
93732         * modules/pagealign_alloc (Makefile.am): Likewise.
93733         * modules/physmem (Makefile.am): Likewise.
93734         * modules/poll (Makefile.am): Likewise.
93735         * modules/posixtm (Makefile.am): Likewise.
93736         * modules/posixver (Makefile.am): Likewise.
93737         * modules/putenv (Makefile.am): Likewise.
93738         * modules/quote (Makefile.am): Likewise.
93739         * modules/quotearg (Makefile.am): Likewise.
93740         * modules/raise (Makefile.am): Likewise.
93741         * modules/read-file (Makefile.am): Likewise.
93742         * modules/readline (Makefile.am): Likewise.
93743         * modules/readlink (Makefile.am): Likewise.
93744         * modules/readtokens (Makefile.am): Likewise.
93745         * modules/readutmp (Makefile.am): Likewise.
93746         * modules/realloc (Makefile.am): Likewise.
93747         * modules/regex (Makefile.am): Likewise.
93748         * modules/rename (Makefile.am): Likewise.
93749         * modules/rename-dest-slash (Makefile.am): Likewise.
93750         * modules/rijndael (Makefile.am): Likewise.
93751         * modules/rmdir (Makefile.am): Likewise.
93752         * modules/rpmatch (Makefile.am): Likewise.
93753         * modules/safe-read (Makefile.am): Likewise.
93754         * modules/safe-write (Makefile.am): Likewise.
93755         * modules/same (Makefile.am): Likewise.
93756         * modules/save-cwd (Makefile.am): Likewise.
93757         * modules/savedir (Makefile.am): Likewise.
93758         * modules/setenv (Makefile.am): Likewise.
93759         * modules/settime (Makefile.am): Likewise.
93760         * modules/sha1 (Makefile.am): Likewise.
93761         * modules/sig2str (Makefile.am): Likewise.
93762         * modules/snprintf (Makefile.am): Likewise.
93763         * modules/stdlib-safer (Makefile.am): Likewise.
93764         * modules/stpcpy (Makefile.am): Likewise.
93765         * modules/stpncpy (Makefile.am): Likewise.
93766         * modules/strcase (Makefile.am): Likewise.
93767         * modules/strcasestr (Makefile.am): Likewise.
93768         * modules/strchrnul (Makefile.am): Likewise.
93769         * modules/strcspn (Makefile.am): Likewise.
93770         * modules/strdup (Makefile.am): Likewise.
93771         * modules/strerror (Makefile.am): Likewise.
93772         * modules/strftime (Makefile.am): Likewise.
93773         * modules/strndup (Makefile.am): Likewise.
93774         * modules/strnlen (Makefile.am): Likewise.
93775         * modules/strpbrk (Makefile.am): Likewise.
93776         * modules/strsep (Makefile.am): Likewise.
93777         * modules/strstr (Makefile.am): Likewise.
93778         * modules/strtod (Makefile.am): Likewise.
93779         * modules/strtoimax (Makefile.am): Likewise.
93780         * modules/strtok_r (Makefile.am): Likewise.
93781         * modules/strtol (Makefile.am): Likewise.
93782         * modules/strtoll (Makefile.am): Likewise.
93783         * modules/strtoul (Makefile.am): Likewise.
93784         * modules/strtoull (Makefile.am): Likewise.
93785         * modules/strtoumax (Makefile.am): Likewise.
93786         * modules/strverscmp (Makefile.am): Likewise.
93787         * modules/time_r (Makefile.am): Likewise.
93788         * modules/timegm (Makefile.am): Likewise.
93789         * modules/tmpfile-safer (Makefile.am): Likewise.
93790         * modules/unistd-safer (Makefile.am): Likewise.
93791         * modules/unlinkdir (Makefile.am): Likewise.
93792         * modules/userspec (Makefile.am): Likewise.
93793         * modules/utime (Makefile.am): Likewise.
93794         * modules/utimecmp (Makefile.am): Likewise.
93795         * modules/utimens (Makefile.am): Likewise.
93796         * modules/vasnprintf (Makefile.am): Likewise.
93797         * modules/vasprintf (Makefile.am): Likewise.
93798         * modules/vsnprintf (Makefile.am): Likewise.
93799         * modules/xalloc (Makefile.am): Likewise.
93800         * modules/xgetcwd (Makefile.am): Likewise.
93801         * modules/xnanosleep (Makefile.am): Likewise.
93802         * modules/xreadlink (Makefile.am): Likewise.
93803         * modules/xstrtod (Makefile.am): Likewise.
93804         * modules/xstrtol (Makefile.am): Likewise.
93805         * modules/xstrtold (Makefile.am): Likewise.
93806         * modules/yesno (Makefile.am): Likewise.
93808 2006-10-12  Jim Meyering  <jim@meyering.net>
93810         * m4/getloadavg.m4: Revert the change below.
93812         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
93813         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
93814         fail with a symlink, which is what coreutils' ./bootstrap now
93815         creates by default.
93817 2006-10-12  Bruno Haible  <bruno@clisp.org>
93819         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
93820         mingw.
93821         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
93822         MSVC and mingw explicitly.
93824 2006-10-11  Simon Josefsson  <jas@extundo.com>
93825             Bruno Haible  <bruno@clisp.org>
93827         Add support for multiple gnulib-tool invocations in the scope of a
93828         single configure.ac file.
93829         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
93830         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
93831         with the same contents as the _LIBADD variable.
93832         (func_emit_initmacro_start, func_emit_initmacro_end,
93833         func_emit_initmacro_done): New functions.
93834         (func_import, func_create_testdir): Invoke them. Allow the identifiers
93835         gl_LIBOBJS and gl_LTLIBOBJS.
93837 2006-10-11  Bruno Haible  <bruno@clisp.org>
93839         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
93840         (func_create_testdir): Don't create po/Makefile.am, don't invoke
93841         autoreconf. Instead, invoke autopoint explicitly but move back the
93842         *.m4 files from gnulib.
93844 2006-10-11  Bruno Haible  <bruno@clisp.org>
93846         * gnulib-tool (func_usage): Make module names after --create-testdir
93847         optional.
93848         (func_create_testdir): If no module was specified, use nearly all
93849         modules.
93851 2006-10-12  Jim Meyering  <jim@meyering.net>
93853         Big performance improvement for fts-based tools that use FTS_NOSTAT.
93854         Avoid spurious inode-mismatch problems on non-POSIX file systems.
93855         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
93856         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
93857         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
93858         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
93859         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
93860         (fts_set_stat_required): New function.
93861         (fts_open): Defer the calls to fts_stat, if possible or requested.
93862         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
93863         into fts_stat itself.
93864         (fts_read): Perform any required (deferred) fts_stat call.
93865         (fts_build): Likewise, for the directory we're about to open and read.
93866         In the readdir loop, carefully decide whether each entry will require
93867         an eventual call to fts_stat, using dirent.d_type info if available.
93868         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
93869         a command line argument into this function.  Update all callers.
93870         Map a return value of FTS_DOT to FTS_D for a command line argument.
93871         * modules/fts (Depends-on): Add d-type.  Alphabetize.
93872         Thanks to Miklos Szeredi for his tenacity and for the initial
93873         bug report about "find" failing on a FUSE-based file system.
93875         * lib/fts.c (fts_open): Use consistent indentation.
93877 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
93879         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
93880         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
93881         reported by Jim Meyering.  All uses of cache variables renamed
93882         to match Autoconf's.
93883         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
93884         the other one.
93886         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
93887         Fix misspelling in diagnostic.
93889 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
93891         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
93892         defined.  Problem reported by Matthew Woehlke.
93894         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
93895         Add support for Tandem NonStop R series.
93896         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
93897         Use new macro.
93899         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
93900         (has_trailing_slash): Omit size arg; all callers changed.
93901         Omit 'inline', since it doesn't help performance and we'd
93902         need to configure it.
93903         Don't count //, ///, etc. as having a trailing slash.
93904         As a side effect, this removes a C99ism reported by Matthew Woehlke.
93905         (rpl_rename_dest_slash): On failure, use rename's errno rather
93906         than (in some cases) an incorrect or junk errno.
93907         Simplify code by removing need to compute length; this does
93908         cause it to make two passes instead of one over the file name,
93909         but it's worth it.
93911         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
93912         change, since Autoconf's version may no longer be appropriate now
93913         that we are using CVS Autoconf's version.  Add support for Tandem.
93915 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
93916             Bruno Haible  <bruno@clisp.org>
93918         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
93919         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
93920         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
93921         gl_AC_TYPE_LONG_LONG.
93923         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
93924         instead of HAVE_LONG_LONG.
93925         * lib/printf-args.c (printf_fetchargs): Likewise.
93926         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
93927         * lib/vasnprintf.c (VASNPRINTF): Likewise.
93928         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
93929         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
93930         gl_AC_TYPE_LONG_LONG.
93932 2006-10-11  Bruno Haible  <bruno@clisp.org>
93934         * m4/longlong.m4: Add comments.
93935         * m4/ulonglong.m4: Likewise.
93937 2006-10-10  Bruno Haible  <bruno@clisp.org>
93939         Make it possible to #define stpcpy, strdup to aliases.
93940         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
93941         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
93943 2006-10-10  Bruno Haible  <bruno@clisp.org>
93945         Make it possible to #define gcd to an alias.
93946         * lib/gcd.c: Include config.h.
93948 2006-10-10  Bruno Haible  <bruno@clisp.org>
93950         Make it possible to #define c_isascii to an alias.
93951         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
93952         defined. Undefine the macros before defining them, to avoid gcc
93953         warnings.
93954         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
93955         define NO_C_CTYPE_MACROS early.
93957 2006-10-10  Bruno Haible  <bruno@clisp.org>
93959         Make it possible to #define set_program_name to an alias.
93960         * lib/progname.c: Don't undefine set_program_name; instead, undefine
93961         ENABLE_RELOCATABLE early.
93963 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
93965         Port to Tandem NSK OSS, which has 64-bit signed int but at most
93966         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
93967         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
93968         More generally, don't assume that 64-bit signed int is available
93969         if unsigned int is, and vice versa.
93970         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
93971         unsigned symbols, not on their signed counterparts.
93972         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
93973         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
93974         (UINT64_C, UINTMAX_C):
93975         Likewise.
93976         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
93977         unsigned counterparts.
93978         (Have_long_long, Unsigned): New macros.
93979         (Int): Renamed from INT.
93980         (strtoimax): Use the new macros.
93981         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
93982         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
93983         * modules/inttypes (inttypes.h): Substitute
93984         HAVE_UNSIGNED_LONG_LONG_INT.
93985         * modules/stdint (stdint.h): Likewise.
93986         (Files): Add m4/ulonglong.m4.
93988 2006-10-10  Bruno Haible  <bruno@clisp.org>
93990         Fix a gcc -Wshadow warning.
93991         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
93992         to 'bucket'.
93993         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
93994         gl_linked_indexof_from_to): Likewise.
93995         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
93996         Likewise.
93997         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
93998         Likewise.
93999         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
94000         Reported by Eric Blake.
94002 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
94004         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
94005         for NetBSD.  Problem reported by Bruno Haible.
94007 2006-10-09  Jim Meyering  <jim@meyering.net>
94009         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
94010         Patch from Bruno Haible.
94012 2006-10-09  Jim Meyering  <jim@meyering.net>
94014         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
94015         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
94016         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
94018 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
94020         Don't include <config.h> twice; this doesn't work in some cases,
94021         e.g., when config.h has "#define intmax_t long long int" and
94022         we include <config.h>, <inttypes.h>, <config.h> in that order.
94023         Problem reported by Matthew Woehlke in:
94024         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
94025         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
94026         * lib/fts-cycle.c: Don't include config.h.
94027         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
94028         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
94029         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
94030         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
94031         inttypes.h.
94032         * lib/xstrtoumax.c: Likewise.
94033         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
94034         __strtol and the like, so that this module is more like its siblings.
94035         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
94036         Remove; no longer needed now that we assume gnulib inttypes.h.
94038 2006-10-08  Bruno Haible  <bruno@clisp.org>
94040         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
94041         option.
94043 2006-10-07  Jim Meyering  <jim@meyering.net>
94045         * modules/inttypes (inttypes.h): Revert what seems to have been
94046         an inadvertent part of today's change: use "|", not "/" in the
94047         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
94049 2006-10-07  Bruno Haible  <bruno@clisp.org>
94051         * modules/sublist: New file.
94053 2006-10-07  Bruno Haible  <bruno@clisp.org>
94055         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
94056         * modules/argz (argz.h): Likewise.
94057         * modules/arpa_inet (arpa/inet.h): Likewise.
94058         * modules/byteswap (byteswap.h): Likewise.
94059         * modules/configmake (configmake.h): Likewise.
94060         * modules/fcntl (fcntl.h): Likewise.
94061         * modules/fnmatch (fnmatch.h): Likewise.
94062         * modules/getopt (getopt.h): Likewise.
94063         * modules/glob (glob.h): Likewise.
94064         * modules/inttypes (inttypes.h): Likewise.
94065         * modules/netinet_in (netinet/in.h): Likewise.
94066         * modules/poll (poll.h): Likewise.
94067         * modules/stdbool (stdbool.h): Likewise.
94068         * modules/stdint (stdint.h): Likewise.
94069         * modules/sys_select (sys/select.h): Likewise.
94070         * modules/sys_socket (sys/socket.h): Likewise.
94071         * modules/sys_stat (sys/stat.h): Likewise.
94072         * modules/sysexits (sysexits.h): Likewise.
94073         * modules/unistd (unistd.h): Likewise.
94074         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94075         Add a "DO NOT EDIT" comment to the generated file.
94076         (func_import): Likewise for gnulib-comp.m4.
94078 2006-10-07  Bruno Haible  <bruno@clisp.org>
94080         * lib/gl_sublist.h: New file.
94081         * lib/gl_sublist.c: New file.
94083 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
94085         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
94086         name (relative to the original working directory) and the file
94087         name component (relative to the temporary working directory).  All
94088         callers changed.
94089         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
94090         * lib/mkdir-p.c (make_dir_parents): Likewise.
94091         * lib/mkdir-p.h (make_dir_parents): Likewise.
94093 2006-10-06  Eric Blake  <ebb9@byu.net>
94095         Define several macros for use by the clean-temp module.
94096         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
94097         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
94098         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
94100         * lib/clean-temp.h (close_stream_temp): New declaration.
94101         * lib/clean-temp.c (includes): Pull in headers according to what
94102         other modules are in use.
94103         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
94105 2006-10-06  Bruno Haible  <bruno@clisp.org>
94107         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
94108         instead of fopen, fwriteerror.
94110 2006-10-06  Bruno Haible  <bruno@clisp.org>
94112         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
94113         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
94114         int.
94115         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
94116         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
94117         Return an error indicator.
94118         Suggested by Eric Blake.
94120 2006-10-06  Bruno Haible  <bruno@clisp.org>
94122         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
94123         Reported by Eric Blake.
94125 2006-10-06  Bruno Haible  <bruno@clisp.org>
94127         * modules/closeout (Description): Mention stderr too.
94129 2006-10-06  Bruno Haible  <bruno@clisp.org>
94130         and Paul Eggert  <eggert@cs.ucla.edu>
94132         * lib/closeout.c (close_stdout): Also close stderr.
94133         * lib/closeout.h: Update comment.
94135 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
94137         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
94138         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
94139         * lib/dirchownmod.c: Include lchown.h.
94140         * lib/lchown.c: Don't include files that lchown.h now includes.
94141         Don't declare chown, since lchown.h now does that.
94142         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
94143         (lchown): Define to rpl_chown if lchown is declared but
94144         does not exist.  Declare using a prototype if lchown is not
94145         declared.  Add a copyright notice.
94146         * lib/mkstemp.h: Include <unistd.h>.
94147         * lib/openat.c: Include lchown.h.
94149         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
94150         we now test for that separately.
94151         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
94152         rather than O_NOFOLLOW, when testing whether it's possible to
94153         avoid a race condition reliably.
94154         * lib/savewd.c (savewd_chdir): Likewise.
94156         Remove macros that are no longer needed now that stdint.h is
94157         reliable.
94158         * lib/fsusage.c (UINTMAX_MAX): Remove.
94159         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
94160         * lib/utimecmp.c (SIZE_MAX): Remove.
94162         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
94164         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
94165         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
94166         O_NOATIME works.
94168 2006-10-05  Bruno Haible  <bruno@clisp.org>
94170         * lib/gl_list.h (gl_sortedlist_search_from_to,
94171         gl_sortedlist_indexof_from_to): New declarations.
94172         (gl_list_implementation): New fields sortedlist_search_from_to,
94173         sortedlist_indexof_from_to.
94174         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
94175         inline functions.
94176         * lib/gl_list.c (gl_sortedlist_search_from_to,
94177         gl_sortedlist_indexof_from_to): New functions.
94178         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
94179         function.
94180         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
94181         (gl_array_sortedlist_search_from_to): New function.
94182         (gl_array_list_implementation): Update.
94183         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
94184         function.
94185         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
94186         (gl_carray_sortedlist_search_from_to): New function.
94187         (gl_carray_list_implementation): Update.
94188         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
94189         gl_linked_sortedlist_indexof_from_to): New functions.
94190         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
94191         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
94192         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
94193         gl_tree_sortedlist_indexof_from_to): New functions.
94194         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
94195         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
94196         Update.
94197         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
94198         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
94199         Update.
94201 2006-10-05  Bruno Haible  <bruno@clisp.org>
94203         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
94204         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
94205         (struct gl_list_implementation): Add fields search_from_to,
94206         indexof_from_to. Remove fields search, indexof.
94207         (gl_list_search): Use the search_from_to method.
94208         (gl_list_search_from, gl_list_search_from_to): New functions.
94209         (gl_list_indexof): Use the indexof_from_to method.
94210         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
94211         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
94212         (gl_list_search_from, gl_list_search_from_to): New functions.
94213         (gl_list_indexof): Use the indexof_from_to method.
94214         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
94215         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
94216         gl_array_indexof. Add start_index, end_index arguments.
94217         (gl_array_search_from_to): Renamed from gl_array_search. Add
94218         start_index, end_index arguments.
94219         (gl_array_remove, gl_array_list_implementation): Update.
94220         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
94221         gl_carray_indexof. Add start_index, end_index arguments.
94222         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
94223         start_index, end_index arguments.
94224         (gl_carray_remove, gl_carray_list_implementation): Update.
94225         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
94226         gl_linked_search. Add start_index, end_index arguments.
94227         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
94228         start_index, end_index arguments.
94229         (gl_linked_remove): Update.
94230         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
94231         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
94232         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
94233         field to 'size_t'.
94234         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
94235         gl_tree_search. Add start_index, end_index arguments.
94236         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
94237         start_index, end_index arguments.
94238         (gl_tree_remove): Update.
94239         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
94240         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
94241         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
94242         function.
94243         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
94244         gl_tree_search. Add start_index, end_index arguments.
94245         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
94246         start_index, end_index arguments.
94247         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
94248         Update.
94249         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
94251 2006-10-05  Bruno Haible  <bruno@clisp.org>
94253         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
94255         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
94256         fwriteerror_temp): New declarations.
94257         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
94258         (descriptors): New variable.
94259         (cleanup): First, close the descriptors.
94260         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
94261         fclose_temp, fwriteerror_temp): New functions.
94263 2006-10-04  Jim Meyering  <jim@meyering.net>
94265         * lib/fts.c (fts_open): Tiny comment change.
94267 2006-10-04  Bruno Haible  <bruno@clisp.org>
94269         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
94270         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
94271         gl_LOCK_BODY.
94272         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
94273         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
94274         gl_LOCK_EARLY_BODY.
94275         (gl_LOCK): Require gl_LOCK_BODY.
94277 2006-10-04  Bruno Haible  <bruno@clisp.org>
94279         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
94280         (gl_oset_search_atleast): New declaration.
94281         (struct gl_oset_implementation): Add field 'search_atleast'.
94282         (gl_oset_search_atleast): New inline function.
94283         * lib/gl_oset.c (gl_oset_search_atleast): New function.
94284         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
94285         (gl_array_oset_implementation): Update.
94286         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
94287         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
94288         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
94290 2006-10-04  Bruno Haible  <bruno@clisp.org>
94292         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
94294 2006-10-03  Bruno Haible  <bruno@clisp.org>
94296         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
94297         from gl_avltreehash_list_implementation.
94299 2006-10-03  Bruno Haible  <bruno@clisp.org>
94301         * lib/gl_oset.c (gl_oset_add): Fix return type.
94303 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
94305         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
94307 2006-10-02  Eric Blake  <ebb9@byu.net>
94309         * modules/strnlen (Depends-on): Add extensions.
94311 2006-10-02  Eric Blake  <ebb9@byu.net>
94313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
94314         definition in 2.60+.
94316 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
94318         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
94319         checks.
94321 2006-10-02  Bruno Haible  <bruno@clisp.org>
94323         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
94324         to the AUTOMAKE_OPTIONS.
94325         Reported by Jim Meyering.
94327 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
94329         Work around bug in Solaris 10 /proc file system:
94330         /proc/self/fd/NNN/.. isn't the parent directory of
94331         the directory whose file descriptor is NNN.  This needs to
94332         be worked around at run time, not compile time, since a
94333         program might be built on Solaris 8, where things work, and
94334         run on Solaris 10.
94335         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
94336         to use the following interface instead:
94337         (OPENAT_BUFFER_SIZE): New macro.
94338         (openat_proc_name): New function.
94339         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
94340         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
94341         Likewise.
94342         * lib/openat-proc.c: New file.
94343         * modules/openat (Files): Add lib/openat-proc.c.
94344         (Depends-on): Add same-inode, stdbool.
94345         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
94347 2006-09-29  Bruno Haible  <bruno@clisp.org>
94349         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
94350         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
94351         argument. Set stdout_closed before testing for ferror, not after.
94352         (fwriteerror, fwriteerror_no_ebadf): New functions.
94354 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94356         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
94358 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
94360         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
94361         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
94363 2006-09-28  Jim Meyering  <jim@meyering.net>
94365         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
94366         Include <unistd.h>.
94368 2006-09-28  Bruno Haible  <bruno@clisp.org>
94370         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
94371         * modules/linkedhash-list (Depends-on): Likewise.
94372         * modules/rbtreehash-list (Depends-on): Likewise.
94374 2006-09-28  Bruno Haible  <bruno@clisp.org>
94376         * lib/strndup.h: Simplify the redefinition of strndup.
94377         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
94378         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
94380 2006-09-28  Bruno Haible  <bruno@clisp.org>
94382         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
94383         * lib/gl_linkedhash_list.c: Likewise.
94384         * lib/gl_rbtreehash_list.c: Likewise.
94386 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
94388         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
94389         getaddrinfo.
94391         * lib/__fpending.h: Don't include <stdio_ext.h> unless
94392         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
94393         it causes <stdio_ext.h> to cause a compile-time error.
94394         Problem reported by Nelson H. F. Beebe.
94395         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
94396         of HAVE_DECL___PENDING.
94398         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
94399         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
94400         declaration.
94402 2006-09-27  Jim Meyering  <jim@meyering.net>
94404         This file could end up with a definition for a function
94405         named __strndup, rather than rpl_strndup on a system with
94406         incomplete weak_alias support.
94407         * lib/strndup.c (strndup): Rename from __strndup.
94408         Remove #defines that used to map __strndup to strndup.
94409         Don't use K&R prototypes.
94410         Remove LIBC-related code, since this file is not sync'd with glibc.
94411         * lib/strndup.h: Revamp, accordingly.
94412         * m4/strndup.m4: Modernize.
94414 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
94416         * modules/savewd (Depends-on): Add 'raise'.
94417         * lib/savewd.c: Include <signal.h>, for 'raise'.
94419 2006-09-26  Jim Meyering  <jim@meyering.net>
94421         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
94422         when we detect Darwin 8.7.0's acl_get_file bug.
94423         Rearrange to perform the new (below) run-test while $LIBS
94424         contains any acl-related library.  Set USE_ACL at the end.
94425         (gl_ACL_GET_FILE): New function.
94427 2006-09-26  Eric Blake  <ebb9@byu.net>
94429         * lib/verror.c: Include <config.h> unconditionally.
94431 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
94433         * modules/clock-time (Maintainer): Add self.
94434         * modules/getlogin_r (Depends-on): Add extensions.
94436 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94438         * modules/clock-time: New module.
94439         * modules/nanosleep (Depends-on): Add clock-time.
94440         * modules/gethrxtime (Depends-on): Likewise.
94441         * modules/gettime (Depends-on): Likewise.
94442         * modules/settime (Depends-on): Likewise.
94444         * modules/fts-lgpl: Depend on openat.
94445         * modules/mkancesdirs: Depend on savewd.
94446         * modules/mkdir-p: Likewise.
94448 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94450         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
94452         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
94453         `gl_have_arbitrary_file_name_length_limit' to
94454         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
94455         actually works between configure runs.
94457 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94458             Bruno Haible  <bruno@clisp.org>
94460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
94462 2006-09-25  Jim Meyering  <jim@meyering.net>
94464         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
94465         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
94467 2006-09-25  Eric Blake  <ebb9@byu.net>
94469         * gnulib-tool (func_import, func_create_testdir): Fix typos in
94470         exec's in 2006-09-18 patch when shuffling fds.
94472 2006-09-25  Bruno Haible  <bruno@clisp.org>
94474         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
94475         Reported by Jim Meyering.
94477 2006-09-24  Jim Meyering  <jim@meyering.net>
94479         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
94480         compare a pointer against a literal "0".  That caused failures with
94481         at least HP-UX's hpcc.
94483 2006-09-22  Simon Josefsson  <jas@extundo.com>
94485         * modules/gc-sha1:
94486         * modules/gc-md4:
94487         * modules/gc-hmac-sha1:
94488         * modules/gc-hmac-md5:
94489         * modules/gc-des:
94490         * modules/gc-arcfour: Distribute more files.
94492 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94494         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
94495         (gl_linked_iterator_from_to): Initialize struct completely.
94496         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
94497         (gl_tree_iterator_from_to): Likewise
94498         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
94499         * lib/gl_array_list.c [lint] (gl_array_iterator)
94500         (gl_array_iterator_from_to): Likewise.
94501         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
94502         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
94503         (gl_carray_iterator_from_to): Likewise.
94505         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
94506         * lib/md4.c (md4_process_block): Remove unused variable.
94507         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
94508         parentheses for clarity.
94510 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94512         * modules/bison-i18n (Depends-on): Add gettext.
94514 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94516         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
94517         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
94518         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
94519         also add missing comma that caused broken test.
94520         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
94521         stdlib.h, for `abort'.
94522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
94523         variables.
94524         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
94525         include unistd.h if present, for `rmdir'.
94526         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
94527         variables.
94528         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
94529         in the process include standard headers for prototypes.
94530         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
94531         gets declared on GNU/Linux.
94532         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
94533         unistd.h, for `rmdir'.
94534         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
94536         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
94537         always true.
94538         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
94540         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
94542 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94544         * gnulib-tool (func_version): Create output all at once.  This
94545         may help avoid triggering unnecessary SIGPIPEs, and at any
94546         rate it doesn't hurt.
94548 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94549             Bruno Haible  <bruno@clisp.org>
94551         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
94552         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94553         * m4/signed.m4 (bh_C_SIGNED): Likewise.
94555         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
94556         (gl_FUNC_VASPRINTF): Invoke it.
94558 2006-09-22  Bruno Haible  <bruno@clisp.org>
94560         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
94561         getloadavg.c as first argument.
94563 2006-09-22  Bruno Haible  <bruno@clisp.org>
94565         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
94566         at the beginning of the gl_INIT macro.
94567         * modules/getloadavg (configure.ac): Pass $gl_source_base to
94568         gl_GETLOADAVG.
94570 2006-09-22  Bruno Haible  <bruno@clisp.org>
94572         * gnulib-tool (func_create_megatestdir): Don't include the config-h
94573         module.
94574         Suggested by Ralf Wildenhues.
94576 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
94578         Import this patch from libc:
94580         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
94582         * lib/regex_internal.c (re_string_reconstruct): Handle
94583         offset < pstr->valid_raw_len && pstr->offsets_needed case.
94584         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
94585         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
94586         re_string_context_at.
94588         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
94589         now requires it.
94590         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
94591         gl_REGEX now does it for us.
94592         (gl_REGEX): Add test taken from
94593         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
94595         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
94596         Check that large offsets work.  Modernize Autoconf usages.
94597         Prefer "yes" to mean a good thing rather than a bad.
94598         Don't put "#define mkstemp" in config.h, as this might interfere
94599         with standard system headers that "#define mkstemp mkstemp64".
94601         * modules/mkstemp (Depends-on): Add extensions, so that
94602         mkstemp is visible on some platforms.
94603         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
94604         (Include): Change to "mkstemp.h" from <stdlib.h>.
94605         (Files): Add mkstemp.h.
94607         * lib/mkstemp.h: New file, since some standard headers
94608         #define mkstemp.
94609         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
94610         Include "mkstemp.h".
94611         Make the _LIBC code resemble glibc original more,
94612         e.g., use K&R style.
94613         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
94614         (mkstemp): Remove, since mkstemp.h does this for us.
94615         * lib/stdlib--.h: Include mkstemp.h.
94617         Import this patch from libc:
94619         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94621         * lib/tempname.c (__gen_tempname): Change attempts_min
94622         into a macro.  Use preprocessor to decide how to initialize
94623         attempts [Coverity CID 67].
94625 2006-09-20  Bruno Haible  <bruno@clisp.org>
94627         * lib/mkdtemp.c: Import from libc.
94628         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94629                 * sysdeps/posix/tempname.c (__gen_tempname): Change
94630                 attempts_min into a macro.  Use preprocessor to decide how to
94631                 initialize attempts [Coverity CID 67].
94632         2001-11-27  Paul Eggert  <eggert@twinsun.com>
94633                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
94634                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
94636 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94638         * gnulib-tool (func_exit): New function, to allow to pass the
94639         exit status portably through the trap.  Use everywhere.
94640         (--help, --version): Signal a write error.
94641         (trap): catch SIGPIPE, for write errors.
94642         Exit at the end of the trap, with the correct exit status.
94644 2006-09-19  Karl Berry  <karl@gnu.org>
94646         * doc/gnulib.texi: note about the license texinfo files.
94648 2006-09-19  Eric Blake  <ebb9@byu.net>
94650         * gnulib-tool: Avoid space-tab.
94652 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
94654         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
94655         that prevented coreutils 6.1 from building.  Problem reported
94656         by Petter Reinholdtsen.
94658 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
94660         * gnulib-tool (avoidlist): Fix typo that broke options like
94661         --avoid=lock that are used by coreutils bootstrap.
94663 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
94665         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
94666         more systematically.
94668 2006-09-18  Jim Meyering  <jim@meyering.net>
94670         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
94672 2006-09-18  Bruno Haible  <bruno@clisp.org>
94674         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
94676 2006-09-18  Bruno Haible  <bruno@clisp.org>
94678         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
94679         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
94680         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
94681         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
94682         * m4/gettext.m4: Require autoconf >= 2.52.
94683         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
94684         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
94685         of gl_cv_header_inttypes_h.
94687 2006-09-18  Bruno Haible  <bruno@clisp.org>
94689         * lib/javaversion.c: Include configmake.h.
94691 2006-09-18  Bruno Haible  <bruno@clisp.org>
94693         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
94694         avoid that the while loops be executed in a subshell.
94696 2006-09-18  Bruno Haible  <bruno@clisp.org>
94698         * MODULES.html.sh (func_module): Break long lines.
94699         Suggested by Bruce Korb <bkorb@gnu.org>.
94701 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94703         Speed up by a factor of 1.12.
94704         * gnulib-tool (nl): New variable.
94705         (func_import): Rewrite include directive extraction to only read each
94706         directive once.
94708 2006-09-17  Bruno Haible  <bruno@clisp.org>
94710         * modules/javaversion (Makefile.am): Remove DEFS setting.
94711         (Depends-on): Add configmake, for PKGDATADIR definition.
94713 2006-09-17  Bruno Haible  <bruno@clisp.org>
94715         * gnulib-tool (func_create_testdir): Rewrite all files at once.
94717 2006-09-17  Bruno Haible  <bruno@clisp.org>
94719         * gnulib-tool (func_append): New function, stolen from libtool.m4.
94720         (func_modules_transitive_closure, func_modules_add_dummy,
94721         func_modules_to_filelist, func_import, func_create_testdir,
94722         func_create_megatestdir, ...): Use it wherever possible.
94723         Suggested by Ralf Wildenhues.
94725 2006-09-16  Karl Berry  <karl@gnu.org>
94727         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
94728         to avoid sectioning errors.
94729         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
94730         [ifinfo]: blank line after @center-ed titles.
94731         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
94732         Spell FSF address consistently with others.
94733         (These changes approved by rms.)
94735 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94737         Speed up by a factor of 1.61.
94738         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
94739         already checked module names again.
94741 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94743         Speed up by a factor of 1.13.
94744         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
94745         for new_files, and the input to func_add_or_update.
94747 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94749         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
94750         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
94752 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94754         * modules/mkancesdirs (Depends-on): Add fcntl.
94755         * modules/savewd: New file.
94756         * MODULES.html.sh (File system functions): Add savewd.
94758         * modules/configmake (Makefile.am): Add support for the
94759         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
94761 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94763         * m4/savewd.m4: New file.
94765 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
94767         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
94768         (dirchownmod): New arg FD.  All callers changed.
94769         Use FD rather than opening the directory ourself, as opening is
94770         now the caller's responsibility.
94771         * lib/dirchownmod.h: Likewise.
94772         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
94773         hosts that require <sys/types.h> before <sys/stat.h>.  Include
94774         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
94775         (test_dir): Remove.
94776         (mkancesdirs): Return length of prefix of FILE that has already
94777         been made, or -2 if there is a child doing the work.  Redo
94778         algorithm so that it is O(N) rather than O(N**2).  Optimize away
94779         ".", and treat ".." specially since it might stray back into
94780         already-created areas.  Use a subprocess if necessary.  New arg
94781         WD; all users changed.  MAKE_DIR function should now return 1
94782         if it creates a directory that is not readable.  Return -2 if
94783         a child process is spun off.
94784         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
94785         Adjust signature to match code.
94786         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
94787         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
94788         all users changed.
94789         * lib/savewd.c, lib/savewd.h: New files.
94791 2006-09-15  Jim Meyering  <jim@meyering.net>
94793         * modules/rename-dest-slash: New module.
94794         * MODULES.html.sh (posix_compat): Add it here.
94796         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
94798 2006-09-15  Jim Meyering  <jim@meyering.net>
94800         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
94801         file.
94803         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
94805 2006-09-15  Jim Meyering  <jim@meyering.net>
94807         * lib/rename-dest-slash.c (has_trailing_slash): Use
94808         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
94809         (rpl_rename_dest_slash): Perform the cheaper trailing slash
94810         test before testing whether SRC is a directory.
94811         Suggestions from Bruno Haible.
94813         Avoid a warning about an unused variable.
94814         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
94815         into the #ifdef block where it's used.
94817         * lib/rename-dest-slash.c: New file.
94819 2006-09-14  Bruno Haible  <bruno@clisp.org>
94821         * lib/allocsa.c: Include <config.h> unconditionally.
94822         * lib/asnprintf.c: Likewise.
94823         * lib/asprintf.c: Likewise.
94824         * lib/c-strcasecmp.c: Likewise.
94825         * lib/c-strcasestr.c: Likewise.
94826         * lib/c-strncasecmp.c: Likewise.
94827         * lib/c-strstr.c: Likewise.
94828         * lib/classpath.c: Likewise.
94829         * lib/clean-temp.c: Likewise.
94830         * lib/concatpath.c: Likewise.
94831         * lib/copy-file.c: Likewise.
94832         * lib/csharpcomp.c: Likewise.
94833         * lib/csharpexec.c: Likewise.
94834         * lib/execute.c: Likewise.
94835         * lib/fatal-signal.c: Likewise.
94836         * lib/findprog.c: Likewise.
94837         * lib/fwriteerror.c: Likewise.
94838         * lib/gl_array_list.c: Likewise.
94839         * lib/gl_array_oset.c: Likewise.
94840         * lib/gl_avltree_list.c: Likewise.
94841         * lib/gl_avltree_oset.c: Likewise.
94842         * lib/gl_avltreehash_list.c: Likewise.
94843         * lib/gl_carray_list.c: Likewise.
94844         * lib/gl_linked_list.c: Likewise.
94845         * lib/gl_linkedhash_list.c: Likewise.
94846         * lib/gl_list.c: Likewise.
94847         * lib/gl_oset.c: Likewise.
94848         * lib/gl_rbtree_list.c: Likewise.
94849         * lib/gl_rbtree_oset.c: Likewise.
94850         * lib/gl_rbtreehash_list.c: Likewise.
94851         * lib/imaxabs.c: Likewise.
94852         * lib/imaxdiv.c: Likewise.
94853         * lib/javacomp.c: Likewise.
94854         * lib/javaexec.c: Likewise.
94855         * lib/javaversion.c: Likewise.
94856         * lib/linebreak.c: Likewise.
94857         * lib/localcharset.c: Likewise.
94858         * lib/lock.c: Likewise.
94859         * lib/mbchar.c: Likewise.
94860         * lib/mbswidth.c: Likewise.
94861         * lib/mkdtemp.c: Likewise.
94862         * lib/pipe.c: Likewise.
94863         * lib/printf-args.c: Likewise.
94864         * lib/printf-parse.c: Likewise.
94865         * lib/progname.c: Likewise.
94866         * lib/progreloc.c: Likewise.
94867         * lib/readlink.c: Likewise.
94868         * lib/sh-quote.c: Likewise.
94869         * lib/stpcpy.c: Likewise.
94870         * lib/stpncpy.c: Likewise.
94871         * lib/strcasecmp.c: Likewise.
94872         * lib/strcasestr.c: Likewise.
94873         * lib/strcspn.c: Likewise.
94874         * lib/striconv.c: Likewise.
94875         * lib/strncasecmp.c: Likewise.
94876         * lib/strnlen1.c: Likewise.
94877         * lib/strstr.c: Likewise.
94878         * lib/strtok_r.c: Likewise.
94879         * lib/tls.c: Likewise.
94880         * lib/tmpdir.c: Likewise.
94881         * lib/unicodeio.c: Likewise.
94882         * lib/unsetenv.c: Likewise.
94883         * lib/vasnprintf.c: Likewise.
94884         * lib/vasprintf.c: Likewise.
94885         * lib/wait-process.c: Likewise.
94886         * lib/xallocsa.c: Likewise.
94887         * lib/xsetenv.c: Likewise.
94888         * lib/xstriconv.c: Likewise.
94890 2006-09-13  Simon Josefsson  <jas@extundo.com>
94892         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
94893         that internally, suggested by Ralf Wildenhues
94894         <Ralf.Wildenhues@gmx.de>.
94896 2006-09-13  Simon Josefsson  <jas@extundo.com>
94898         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
94899         @LIBOBJS@.
94900         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94902 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
94904         * lib/_fpending.c: Include <config.h> unconditionally, since we no
94905         longer worry about uses that don't define HAVE_CONFIG_H.
94906         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
94907         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
94908         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
94909         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
94910         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
94911         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
94912         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
94913         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
94914         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
94915         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
94916         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
94917         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
94918         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
94919         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
94920         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
94921         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
94922         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
94923         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
94924         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
94925         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
94926         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
94927         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
94928         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
94929         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
94930         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
94931         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
94932         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
94933         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
94934         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
94935         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
94936         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
94937         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
94938         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
94939         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
94940         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
94941         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
94942         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
94943         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
94944         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
94945         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
94946         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
94947         Likewise.
94949 2006-09-13  Eric Blake  <ebb9@byu.net>
94951         * lib/getopt.c: Fix typo in last commit.
94953 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
94955         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
94956         dgettext.
94958 2006-09-12  Jim Meyering  <jim@meyering.net>
94960         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
94961         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
94962         Reported by Nelson H. F. Beebe.
94964 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
94966         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
94967         program_invocation_name and program_invocation_short_name are
94968         initialized.
94969         * lib/argp-namefrob.h: Move declarations of program_invocation_name
94970         and program_invocation_short_name to argp.h, so they are visible
94971         to user programs.
94972         * lib/argp.h: Likewise
94974 2006-09-10  Bruno Haible  <bruno@clisp.org>
94976         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
94977         m4/inttypes_h.m4, m4/uintmax_t.m4.
94979 2006-09-10  Bruno Haible  <bruno@clisp.org>
94981         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
94982         gl_AC_TYPE_UINTMAX_T.
94984 2006-09-10  Bruno Haible  <bruno@clisp.org>
94986         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
94988 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
94990         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
94991         convention.  Text proposed by Bruno Haible.
94992         (struct argp_option): Document the use of N_() wrappers.
94994         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
94995         '\v', and translate the two parts separately, instead of feeding
94996         the whole string to gettext.  This allows to exclude
94997         '\v' from the strings visible to the translator by writing doc
94998         strings as N_("..") "\v" N_("..").
95000 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
95002         * config/srclist.txt: Undo latest change; the bug was fixed.
95004 2006-09-09  Bruno Haible  <bruno@clisp.org>
95006         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
95007         assignments if building a library without libtool.
95008         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
95009         in func_emit_lib_Makefile_am.
95010         (func_import): When building a static library libfoo.a, arrange to
95011         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
95012         (func_create_testdir): Likewise.
95013         * modules/gc (configure.ac, Makefile.am): If building statically,
95014         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
95015         * modules/iconvme (configure.ac, Makefile.am): Likewise.
95016         * modules/striconv (configure.ac, Makefile.am): Likewise.
95017         Based on a suggestion by Ralf Wildenhues.
95019 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95021         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
95022         Check for unistd.h too, since Autoconf doesn't assume POSIX.
95023         Also:
95025         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95026         Add year_2050_test to catch glibc bug 2821
95027         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
95029         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95030         Prefer #ifdef to #if.
95032         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
95033         Return from 'main' instead of calling 'exit'.
95035 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95037         * lib/mktime.c (guess_time_tm): Fix bug where mktime
95038         returned the maximum time_t value rather than (time_t) -1.
95039         Problem originally reported by William Bardwell
95040         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
95042         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
95043         Moved to here ...
95044         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
95045         ... from here.
95047 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95049         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
95050         2821 is fixed.
95052 2006-09-08  Jim Meyering  <jim@meyering.net>
95054         Don't make generated files read-only.  That would bother too many
95055         people.  However, do retain the ability to work when targets are
95056         read-only: remove the destination and temporary files before writing
95057         them (when generated via sed or echo), or by using the -f option for
95058         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
95059         * modules/alloca-opt, modules/argz, modules/arpa_inet:
95060         * modules/byteswap, modules/configmake, modules/fcntl:
95061         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
95062         * modules/localcharset, modules/netinet_in, modules/poll:
95063         * modules/stdbool, modules/stdint, modules/sys_select:
95064         * modules/sys_socket, modules/sys_stat, modules/sysexits:
95066 2006-09-08  Jim Meyering  <jim@meyering.net>
95068         Avoid new build failure on FreeBSD 6.0.
95069         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
95070         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
95071         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
95073 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95075         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
95077 2006-09-07  Jim Meyering  <jim@meyering.net>
95079         Fix global typo in last change: use chmod u-w, not chmod u-x.
95080         Spotted by Paul Eggert and Bruce Korb.
95081         * modules/alloca-opt, modules/argz, modules/arpa_inet:
95082         * modules/byteswap, modules/configmake, modules/fcntl:
95083         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
95084         * modules/localcharset, modules/netinet_in, modules/poll:
95085         * modules/stdbool, modules/stdint, modules/sys_select:
95086         * modules/sys_socket, modules/sys_stat, modules/sysexits:
95088 2006-09-06  Jim Meyering  <jim@meyering.net>
95090         Make generated files be read-only.
95091         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
95092         Ensure that each generated file is now read-only.
95093         * modules/argz: Likewise.
95094         * modules/arpa_inet: Likewise.
95095         * modules/byteswap: Likewise.
95096         * modules/configmake: Likewise.
95097         * modules/fcntl: Likewise.
95098         * modules/fnmatch: Likewise.
95099         * modules/getopt: Likewise.
95100         * modules/glob: Likewise.
95101         * modules/inttypes: Likewise.
95102         * modules/netinet_in: Likewise.
95103         * modules/poll: Likewise.
95104         * modules/stdbool: Likewise.
95105         * modules/stdint: Likewise.
95106         * modules/sys_select: Likewise.
95107         * modules/sys_socket: Likewise.
95108         * modules/sys_stat: Likewise.
95109         * modules/sysexits: Likewise.
95110         * modules/localcharset: Same as above, but continue using temporary
95111         file named "t-$@" (why different?) rather than the "$@-t" used
95112         everywhere else.
95114         * modules/sysexits (Makefile.am): Replace literal occurrences
95115         of "sysexit.h" more readable, and more consistent, "$@".
95117 2006-09-06  Bruno Haible  <bruno@clisp.org>
95119         * modules/striconv: New file.
95120         * modules/xstriconv: New file.
95121         * MODULES.html.sh (Internationalization functions): Add striconv,
95122         xstriconv.
95124 2006-09-06  Bruno Haible  <bruno@clisp.org>
95126         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
95127         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
95128         not using libtool correctly.
95130 2006-09-06  Bruno Haible  <bruno@clisp.org>
95132         * lib/striconv.h: New file.
95133         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
95134         iconvstring.c.
95135         * lib/xstriconv.h: New file.
95136         * lib/xstriconv.c: New file.
95138 2006-09-06  Bruno Haible  <bruno@clisp.org>
95140         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
95141         lib_..._LDFLAGS.
95143 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95145         * lib/argz_.h: Sync from Libtool.
95147         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
95148                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
95150         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
95152 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
95154         * modules/trim: New file.
95156 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
95158         * lib/trim.h: New file.
95159         * lib/trim.c: New file.
95161 2006-09-05  Bruno Haible  <bruno@clisp.org>
95163         * MODULES.html.sh (String handling): Add trim.
95165 2006-09-04  Karl Berry  <karl@gnu.org>
95167         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
95168         until next release.
95170 2006-09-03  Bruno Haible  <bruno@clisp.org>
95172         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
95173         correctly.
95175 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95177         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
95178         not gl_GETLOADAVG.  Omit unneeded semicolons.
95179         Problems reported by Ralf Wildenhues in
95180         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
95181         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
95182         at the end, which is the usual gnulib style.
95184         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
95185         of doing all the work ourselves.
95186         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
95187         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
95189 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95191         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
95192         Problem reported by Ralf Wildenhues in
95193         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
95195         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
95196         HAVE_STRUCT_STATFS_F_FSTYPENAME.
95198 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95200         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
95201         yesterday's patch by changing test -n to test -z.
95203 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95205         * modules/getloadavg (Files): Add m4/getloadavg.m4.
95206         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
95207         the former is now obsolescent.
95209         * modules/chdir-long (Depends-on): Add fcntl.
95211 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95213         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
95214         obsolescent, and programs should use gnulib instead.
95215         * m4/getloadavg.m4: New file, with contents taken from Autoconf
95216         but with prefixes changed.
95218 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95220         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
95221         or stdbool.h, because they might not exist while configuring.
95223         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
95224         Don't include unistd.h or limits.h; not needed, since chdir-long.h
95225         does that for us.
95226         (O_DIRECTORY): Remove.
95228 2006-08-31  Eric Blake  <ebb9@byu.net>
95230         * gnulib-tool: Don't let emacs change spaces to TAB.
95232 2006-08-31  Bruno Haible  <bruno@clisp.org>
95234         * gnulib-tool: When calling func_import more than once, do it in a
95235         subshell.
95236         Reported by Eric Blake <ebb9@byu.net>.
95238 2006-08-31  Bruno Haible  <bruno@clisp.org>
95240         * gnulib-tool (nl): Remove variable.
95241         (sed_transform_lib_file): Use more robust test for config-h module.
95242         (func_import): Fix typo in 2006-08-25 patch.
95244 2006-08-31  Bruno Haible  <bruno@clisp.org>
95246         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
95247         specified, augment Makefile.am variables instead of assigning them.
95249 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95251         Work around a bug in both the Linux and SunOS 64-bit kernels:
95252         nanosleep mishandles sleeps for longer than 2**31 seconds.
95253         Problem reported by Frank v Waveren in
95254         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
95255         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
95256         Check for nanosleep bug.
95257         (LIB_NANOSLEEP): Append clock_gettime library if needed.
95259 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95261         Work around a bug in both the Linux and SunOS 64-bit kernels:
95262         nanosleep mishandles sleeps for longer than 2**31 seconds.
95263         Problem reported by Frank v Waveren in
95264         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
95265         * lib/nanosleep.c (BILLION): New constant.
95266         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
95267         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
95268         implementation.
95270 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95272         * modules/nanosleep (Depends-on): Add gettime.
95274 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95275         and Simon Josefsson  <jas@extundo.com>
95276         and Oskar Liljeblad  <oskar@osk.mine.nu>
95278         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
95279         * gnulib-tool (func_import): New license type 'unmodifiable license
95280         text'.
95281         * modules/fdl: Use it.  Longer description.
95282         * module/gpl, module/lgpl: New files.
95284 2006-08-30  Jim Meyering  <jim@meyering.net>
95286         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
95287         shadowing the parameter.
95289 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95291         Sync from Libtool:
95293         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95295         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
95296         sharing with gnulib.  Report by Eric Blake.
95298 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95300         * modules/isapipe: New file.
95301         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
95303 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95305         * modules/configmake (Makefile.am): Add a comment, and omit
95306         the CONFIGMAKE_ prefix from generated macro names.  Suggested
95307         by Bruno Haible.
95309 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95311         * m4/isapipe.m4: New file.
95313 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95315         * lib/isapipe.c, lib/isapipe.h: New files.
95317 2006-08-29  Jim Meyering  <jim@meyering.net>
95319         * modules/configmake (Makefile.am): Make configmake.h depend on
95320         Makefile.  Otherwise, a stale configmake.h could hang around.
95322 2006-08-29  Eric Blake  <ebb9@byu.net>
95324         * lib/error.c (error_at_line, print_errno_message): Match libc, after
95325         resolution of upstream bug 3044.
95327 2006-08-29  Bruno Haible  <bruno@clisp.org>
95329         * modules/localcharset (Depends-on): Add configmake.
95330         (Makefile.am): Remove setting of LIBDIR through DEFS.
95332 2006-08-29  Bruno Haible  <bruno@clisp.org>
95334         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
95335         defined.
95337 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95339         * modules/fcntl: New file.
95340         * modules/chdir-safer (Depends-on): Add fcntl.
95341         * modules/fts: Likewise.
95342         * modules/mkdir-p: Likewise.
95344         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
95345         This undoes the most recent change, since we're now addressing the
95346         problem in a different way.
95348         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
95349         into output, since the output might be called Makefile.am even
95350         if $makefile_name is something different.
95351         (func_import): Use $makefile_am rather than
95352         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
95353         empty.
95355         * modules/inttypes (Files): Add m4/inttypes-h.m4.
95357 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95359         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
95360         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
95361         recent change to stdint.m4, since we're now addressing the problem in a
95362         different way.
95364 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95366         * m4/fcntl_h.m4: New file.
95368 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95370         * lib/fcntl_.h: New file.
95371         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
95372         the fcntl module.
95373         * lib/dirchownmod.c: Likewise.
95374         * lib/fts.c: Likewise.
95376         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
95377         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
95378         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
95379         just before including <inttypes.h>, to avoid circular inclusion.
95381 2006-08-28  Jim Meyering  <jim@meyering.net>
95383         * doc/visibility.texi: Actually read and correct the grammar of the
95384         sentence affected by yesterday's change.
95386 2006-08-28  Eric Blake  <ebb9@byu.net>
95388         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
95389         needs wrapper.
95391 2006-08-28  Eric Blake  <ebb9@byu.net>
95393         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
95395 2006-08-28  Eric Blake  <ebb9@byu.net>
95397         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
95399 2006-08-28  Bruno Haible  <bruno@clisp.org>
95401         * modules/c-strstr: New file, from GNU gettext.
95402         * MODULES.html.sh (String handling): Add c-strstr.
95404 2006-08-28  Bruno Haible  <bruno@clisp.org>
95406         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
95407         macros.
95408         Reported by Eric Blake.
95410 2006-08-28  Bruno Haible  <bruno@clisp.org>
95412         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
95413         (VASNPRINTF): Return a string of length > INT_MAX without failing.
95414         * lib/vasprintf.c: Include errno.h, limits.h.
95415         (EOVERFLOW): New fallback definition.
95416         (vasprintf): Test here whether the string length is > INT_MAX.
95417         * lib/vsnprintf.c: Include errno.h, limits.h.
95418         (EOVERFLOW): New fallback definition.
95419         (vsnprintf): Fix bug when generated string was too long for the buffer.
95420         Test here whether the string length is > INT_MAX.
95422 2006-08-28  Bruno Haible  <bruno@clisp.org>
95424         * lib/inttypes_.h (SCNX*): Remove definitions.
95425         Reported by Eric Blake.
95427 2006-08-28  Bruno Haible  <bruno@clisp.org>
95429         * lib/c-strstr.h: New file, from GNU gettext.
95430         * lib/c-strstr.c: New file, from GNU gettext.
95432 2006-08-28  Bruno Haible  <bruno@clisp.org>
95434         * gnulib-tool: Reorder some statements.
95436 2006-08-28  Bruno Haible  <bruno@clisp.org>
95438         * gnulib-tool: New option --makefile-name.
95439         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
95440         $makefile_name.
95441         (func_import): Write $makefile_name to the cache file, and read it from
95442         there unless explicitly specified. Use $makefile_name as file name
95443         instead of Makefile.am. Adjust the recommendations accordingly.
95445 2006-08-28  Bruno Haible  <bruno@clisp.org>
95447         * gnulib-tool (func_verify_module): Check against misapplying patch.
95449 2006-08-28  Bruno Haible  <bruno@clisp.org>
95451         * gnulib-tool (func_relativize, func_relconcat): New functions.
95452         Give an error if --local-dir is given with --update.
95453         Remove trailing slashes from $local_gnulib_dir.
95454         (func_import): Store the relativized $local_gnulib_dir in
95455         gnulib-cache.m4, and read it from there if not specified explicitly.
95457 2006-08-28  Bruno Haible  <bruno@clisp.org>
95459         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
95460         is the current directory. Respect also $local_gnulib_dir.
95462 2006-08-28  Bruno Haible  <bruno@clisp.org>
95463             Simon Josefsson  <jas@extundo.com>
95465         BeOS portability.
95466         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
95468 2006-08-27  Jim Meyering  <jim@meyering.net>
95470         * doc/visibility.texi: Remove duplicate word: "pointer".
95472 2006-08-26  Bruno Haible  <bruno@clisp.org>
95474         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
95475         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
95476         (Makefile.am): Create inttypes.h from inttypes_.h.
95477         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
95479         * modules/imaxabs: New file.
95481         * modules/imaxdiv: New file.
95483 2006-08-26  Bruno Haible  <bruno@clisp.org>
95485         * m4/inttypes.m4: New file.
95486         * m4/_inttypes_h.m4: Remove file.
95487         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
95488         PRI_MACROS_BROKEN.
95489         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
95491         * m4/imaxabs.m4: New file.
95493         * m4/imaxdiv.m4: New file.
95495 2006-08-26  Bruno Haible  <bruno@clisp.org>
95497         * lib/inttypes_.h: New file.
95498         * lib/inttypes.h: Remove file.
95499         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
95501         * lib/imaxabs.c: New file.
95503         * lib/imaxdiv.c: New file.
95505 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95507         New config-h module, so that "make" output needn't be cluttered
95508         by -DHAVE_CONFIG_H.
95509         * MODULES.html.sh (Support for building libraries and executables):
95510         Add config-h.
95511         * modules/config-h: New file.
95512         * gnulib-tool (nl, sed_transform_lib_file): New vars.
95513         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
95514         the config-h module is used.
95516         New configmake module, so that "make" output needn't be cluttered
95517         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
95518         * MODULES.html.sh (Support for building libraries and executables):
95519         Add configmake.
95520         * modules/configmake: New file.
95522 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95524         * m4/config-h.m4: New file.
95526 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95528         * config/srclist.txt: Add elisp-comp.
95530 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95532         * MODULES.html.sh (Support for building libraries and executables):
95533         Add elisp-comp.
95534         * build-aux/elisp-comp: New file.
95535         * modules/elisp-comp: New file.
95537 2006-08-24  Bruno Haible  <bruno@clisp.org>
95539         * gnulib-tool (func_create_testdir): Use non-default values of
95540         sourcebase and m4base.
95542 2006-08-24  Bruno Haible  <bruno@clisp.org>
95544         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
95545         HTML structure.
95547 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
95549         * modules/openat (Depends-on): Add lchown.
95551 2006-08-23  Bruno Haible  <bruno@clisp.org>
95553         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
95554         of gl_LOCK_EARLY instead of gl_LOCK.
95556 2006-08-23  Bruno Haible  <bruno@clisp.org>
95558         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
95559         on OSF/1 to no.
95560         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
95562 2006-08-23  Bruno Haible  <bruno@clisp.org>
95564         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
95565         as unusable.
95567         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
95568         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
95569         (gl_LOCK): New macro.
95571 2006-08-22  Simon Josefsson  <jas@extundo.com>
95573         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
95574         to md5 module.
95576 2006-08-22  Simon Josefsson  <jas@extundo.com>
95578         * MODULES.html.sh: Add "Support for maintaining and release
95579         projects".
95581         * build-aux/gnupload: New file, from coreutils.
95583 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95585         Avoid the need for AC_LIBSOURCES in m4 macros.
95586         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
95587         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
95588         * modules/check-version (EXTRA_DIST): Add check-version.h.
95589         * modules/crc (EXTRA_DIST): Add crc.h.
95590         * modules/des (EXTRA_DIST): Add des.h.
95591         * modules/gc (EXTRA_DIST): Add gc.h.
95592         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
95593         * modules/getline (EXTRA_DIST): Add getline.h.
95594         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
95595         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
95596         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
95597         * modules/md2 (EXTRA_DIST): Add md2.h.
95598         * modules/md4 (EXTRA_DIST): Add md4.h.
95599         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
95600         * modules/read-file (EXTRA_DIST): Add read-file.h.
95601         * modules/readline (EXTRA_DIST): Add readline.h.
95602         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
95603         rijndael-api-fst.h.
95605 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95607         * m4/rijndael.m4 (gl_ARCFOUR):
95608         * m4/arctwo.m4 (gl_ARCTWO):
95609         * m4/check-version.m4 (gl_CHECK_VERSION):
95610         * m4/crc.m4 (gl_CRC):
95611         * m4/des.m4 (gl_DES):
95612         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
95613         * m4/gc.m4 (gl_GC):
95614         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
95615         * m4/getline.m4 (gl_FUNC_GETLINE):
95616         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
95617         * m4/hmac-md5.m4 (gl_HMAC_MD5):
95618         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
95619         * m4/md2.m4 (gl_MD2):
95620         * m4/md4.m4 (gl_MD4):
95621         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
95622         * m4/read-file.m4 (gl_FUNC_READ_FILE):
95623         * m4/readline.m4 (gl_FUNC_READLINE):
95624         * m4/rijndael.m4 (gl_RIJNDAEL):
95625         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
95626         to get the necessary .h files and whatnot.
95628 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95630         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
95631         gnulib rather than the other way around.
95632         * config/srclistvars.sh (COREUTILS): Remove.
95634 2006-08-22  Jim Meyering  <jim@meyering.net>
95636         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
95638         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
95640 2006-08-22  Eric Blake  <ebb9@byu.net>
95642         * modules/regexprops-generic: New file.
95643         * MODULES.html.sh (Support for building documentation): List it.
95645 2006-08-22  Eric Blake  <ebb9@byu.net>
95647         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
95648         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
95649         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
95650         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
95652 2006-08-22  Bruno Haible  <bruno@clisp.org>
95654         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
95655         and lib_LTLIBRARIES like the other lib_* variables.
95657 2006-08-22  Bruno Haible  <bruno@clisp.org>
95659         * build-aux/x-to-1.in: New file, from GNU gettext.
95661 2006-08-22  Bruno Haible  <bruno@clisp.org>
95663         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
95664         <utmpx.h> exists.
95666 2006-08-22  Bruno Haible  <bruno@clisp.org>
95668         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
95669         <utmpx.h> exists.
95671 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95673         BeOS portability.
95674         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
95675         exist.
95676         Problem reported by Bruno Haible.
95678 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95680         Avoid the need for AC_LIBSOURCES in m4 macros.
95681         * modules/acl (EXTRA_DIST): Add acl.h.
95682         * modules/argmatch (Files): Add m4/argmatch.m4.
95683         (configure.ac): Add gl_ARGMATCH.
95684         (EXTRA_DIST): Renamed from lib_SOURCES, for
95685         consistency with the other modules.  Remove argmatch.c.
95686         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
95687         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
95688         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
95689         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
95690         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
95691         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
95692         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
95693         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
95694         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
95695         * modules/closeout (EXTRA_DIST): Add closeout.h.
95696         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
95697         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
95698         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
95699         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
95700         dirname.h; remove basename.c and stripslash.c.
95701         * modules/exclude (EXTRA_DIST): Add exclude.h.
95702         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
95703         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
95704         * modules/file-type (EXTRA_DIST): Add file-type.h.
95705         * modules/filemode (EXTRA_DIST): Add filemode.h.
95706         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
95707         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
95708         * modules/fpending (EXTRA_DIST): Add __fpending.h.
95709         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
95710         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
95711         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
95712         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
95713         * modules/getdate (EXTRA_DIST): Add getdate.c.
95714         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
95715         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
95716         * modules/getpass (EXTRA_DIST): Add getpass.h.
95717         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
95718         * modules/group-member (EXTRA_DIST): Add group-member.h.
95719         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
95720         * modules/hash (EXTRA_DIST): Add hash.h.
95721         * modules/human (EXTRA_DIST): Add human.h.
95722         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
95723         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
95724         * modules/lchown (EXTRA_DIST): Add lchown.h.
95725         * modules/long-options (EXTRA_DIST): Add long-options.h.
95726         * modules/lstat (EXTRA_DIST): Add lstat.h.
95727         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
95728         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
95729         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
95730         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
95731         * modules/memxor (EXTRA_DIST): Add memxor.h.
95732         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
95733         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
95734         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
95735         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
95736         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
95737         * modules/physmem (EXTRA_DIST): Add physmem.h.
95738         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
95739         * modules/posixver (EXTRA_DIST): Add posixver.h.
95740         * modules/quote (EXTRA_DIST): Add quote.h.
95741         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
95742         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
95743         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
95744         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
95745         regex_internal.h regexec.c.
95746         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
95747         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
95748         * modules/same (EXTRA_DIST): Add same.h.
95749         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
95750         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
95751         * modules/savedir (EXTRA_DIST): Add savedir.h.
95752         * modules/sha1 (EXTRA_DIST): Add sha1.h.
95753         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
95754         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
95755         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
95756         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
95757         * modules/strdup (EXTRA_DIST): Add strdup.h.
95758         * modules/strftime (EXTRA_DIST): Add strftime.h.
95759         * modules/strndup (EXTRA_DIST): Add strndup.h.
95760         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
95761         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
95762         * modules/time_r (EXTRA_DIST): Add time_r.h.
95763         * modules/timespec (EXTRA_DIST): Add timespec.h.
95764         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
95765         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
95766         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
95767         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
95768         * modules/userspec (EXTRA_DIST): Add userspec.h.
95769         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
95770         * modules/utimens (EXTRA_DIST): Add utimens.h.
95771         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
95772         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
95773         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
95774         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
95775         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
95776         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
95777         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
95778         * modules/yesno (EXTRA_DIST): Add yesno.h.
95780 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
95782         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
95784         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
95785         * m4/dev-ino.m4, same-inode.m4: Remove.
95787         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
95788         * m4/acl.m4 (AC_FUNC_ACL):
95789         * m4/backupfile.m4 (gl_BACKUPFILE):
95790         * m4/c-strtod.m4 (gl_C99_STRTOLD):
95791         * m4/canon-host.m4 (gl_CANON_HOST):
95792         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95793         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
95794         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
95795         * m4/cloexec.m4 (gl_CLOEXEC):
95796         * m4/close-stream.m4 (gl_CLOSE_STREAM):
95797         * m4/closeout.m4 (gl_CLOSEOUT):
95798         * m4/dirfd.m4 (gl_FUNC_DIRFD):
95799         * m4/dirname.m4 (gl_DIRNAME):
95800         * m4/exclude.m4 (gl_EXCLUDE):
95801         * m4/exitfail.m4 (gl_EXITFAIL):
95802         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
95803         * m4/file-type.m4 (gl_FILE_TYPE):
95804         * m4/filemode.m4 (gl_FILEMODE):
95805         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
95806         * m4/fpending.m4 (gl_FUNC_FPENDING):
95807         * m4/fprintftime.m4 (gl_FPRINTFTIME):
95808         * m4/fts.m4 (gl_FUNC_FTS):
95809         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
95810         * m4/getdate.m4 (gl_GETDATE):
95811         * m4/gethrxtime.m4 (gl_GETHRXTIME):
95812         * m4/getpagesize.m4 (gl_GETPAGESIZE):
95813         * m4/getpass.m4 (gl_FUNC_GETPASS):
95814         * m4/gettime.m4 (gl_GETTIME):
95815         * m4/getugroups.m4 (gl_GETUGROUPS):
95816         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
95817         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
95818         * m4/hard-locale.m4 (gl_HARD_LOCALE):
95819         * m4/hash.m4 (gl_HASH):
95820         * m4/idcache.m4 (gl_IDCACHE):
95821         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
95822         * m4/lchown.m4 (gl_FUNC_LCHOWN):
95823         * m4/long-options.m4 (gl_LONG_OPTIONS):
95824         * m4/lstat.m4 (gl_FUNC_LSTAT):
95825         * m4/md5.m4 (gl_MD5):
95826         * m4/memcasecmp.m4 (gl_MEMCASECMP):
95827         * m4/memcoll.m4 (gl_MEMCOLL):
95828         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
95829         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
95830         * m4/memxor.m4 (gl_MEMXOR):
95831         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
95832         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
95833         * m4/modechange.m4 (gl_MODECHANGE):
95834         * m4/mountlist.m4 (gl_MOUNTLIST):
95835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
95836         * m4/openat.m4 (gl_FUNC_OPENAT):
95837         * m4/pathmax.m4 (gl_PATHMAX):
95838         * m4/physmem.m4 (gl_PHYSMEM):
95839         * m4/posixtm.m4 (gl_POSIXTM):
95840         * m4/posixver.m4 (gl_POSIXVER):
95841         * m4/quote.m4 (gl_QUOTE):
95842         * m4/quotearg.m4 (gl_QUOTEARG):
95843         * m4/readtokens.m4 (gl_READTOKENS):
95844         * m4/readutmp.m4 (gl_READUTMP):
95845         * m4/regex.m4 (gl_REGEX):
95846         * m4/safe-read.m4 (gl_SAFE_READ):
95847         * m4/safe-write.m4 (gl_SAFE_WRITE):
95848         * m4/same.m4 (gl_SAME):
95849         * m4/save-cwd.m4 (gl_SAVE_CWD):
95850         * m4/savedir.m4 (gl_SAVEDIR):
95851         * m4/settime.m4 (gl_SETTIME):
95852         * m4/sha1.m4 (gl_SHA1):
95853         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
95854         * m4/stat-macros.m4 (gl_STAT_MACROS):
95855         * m4/stat-time.m4 (gl_STAT_TIME):
95856         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
95857         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
95858         * m4/strdup.m4 (gl_FUNC_STRDUP):
95859         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
95860         * m4/strndup.m4 (gl_FUNC_STRNDUP):
95861         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
95862         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
95863         * m4/time_r.m4 (gl_TIME_R):
95864         * m4/timespec.m4 (gl_TIMESPEC):
95865         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
95866         * m4/unlinkdir.m4 (gl_UNLINKDIR):
95867         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
95868         * m4/userspec.m4 (gl_USERSPEC):
95869         * m4/utimecmp.m4 (gl_UTIMECMP):
95870         * m4/utimens.m4 (gl_UTIMENS):
95871         * m4/xalloc.m4 (gl_XALLOC):
95872         * m4/xgetcwd.m4 (gl_XGETCWD):
95873         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
95874         * m4/xreadlink.m4 (gl_XREADLINK):
95875         * m4/xstrtod.m4 (gl_XSTRTOD):
95876         * m4/yesno.m4 (gl_YESNO):
95877         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
95878         to get the necessary .h files and whatnot.
95880 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
95881             Bruno Haible  <bruno@clisp.org>
95883         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
95884         /bin/sh understanding of '!' conditional negation.
95886 2006-08-21  Jim Meyering  <jim@meyering.net>
95888         * modules/openat (Depends-on): Really alphabetize.
95890         * modules/acl (Depends-on): Add error and quote.
95892         * check-module (find_included_lib_files): Add at-func.c to the
95893         ok-to-include-more-than-once white list.
95895         * modules/openat (Depends-on): Add lstat.  Alphabetize.
95897 2006-08-21  Bruno Haible  <bruno@clisp.org>
95899         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95900         Emit a pkgdata_DATA variable only if some snippets add contents to it.
95901         Reported by Martin Lambers <marlam@marlam.de>.
95903 2006-08-21  Bruno Haible  <bruno@clisp.org>
95905         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
95906         specify an installation location, don't emit a noinst_LIBRARIES or
95907         noinst_LTLIBRARIES assignment.
95909 2006-08-21  Bruno Haible  <bruno@clisp.org>
95911         BeOS portability.
95912         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
95913         BeOS has mbrtowc() but no <wctype.h>.
95915 2006-08-21  Bruno Haible  <bruno@clisp.org>
95917         BeOS portability.
95918         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
95919         exist.
95921 2006-08-21  Bruno Haible  <bruno@clisp.org>
95923         BeOS portability.
95924         * lib/mbchar.h: Include <wctype.h> only if it exists.
95926 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95928         Remove files that are no longer needed by their respective modules.
95929         * m4/obstack.m4: Remove.
95930         * m4/strerror_r.m4: Remove.
95931         * m4/uint32_t.m4: Remove.
95932         * m4/uintptr_t.m4: Remove.
95933         * m4/ullong_max.m4: Remove.
95934         * m4/xstrtoimax.m4: Remove.
95935         * m4/xstrtoumax.m4: Remove.
95937         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
95938         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
95939         dependencies now capture this.
95941         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
95942         Do not use AC_LIBSOURCES, since gnulib modules now do this.
95943         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
95944         * m4/human.m4 (gl_HUMAN): Likewise.
95945         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
95946         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
95948         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
95950         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
95951         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
95952         stdint.
95953         * m4/human.m4 (gl_HUMAN): Likewise.
95954         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
95955         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
95956         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
95957         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
95958         * m4/xstrtol (gl_XSTRTOL): Likewise.
95960         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
95961         AC_TYPE_LONG_LONG_INT.
95962         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
95963         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
95964         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
95965         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
95967         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
95968         on stdbool.
95970         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
95971         (gl_PREREQ_XSTRTOUL): Remove.
95973         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
95975         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
95976         mode.
95978 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95980         Add and change modules to make it easier for coreutils to use
95981         gnulib-tool.
95982         * modules/backupfile (Files): Remove m4/d-ino.m4.
95983         (Depends-on): Add d-ino.
95984         * modules/cycle-check (Depends-on): Add stdint.
95985         (lib_SOURCES): Add cycle-check.h.
95986         * modules/d-ino: New module.
95987         * modules/d-type: New module.
95988         * modules/error (Files): Remove m4/strerror_r.m4.
95989         * modules/filemode (Files): Add m4/st_dm_mode.m4.
95990         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
95991         m4/inttypes_h.m4, m4/uintmax_t.m4.
95992         (Depends-on): Add stdint.
95993         (lib_SOURCES): Add fsusage.h.
95994         * modules/getcwd (Files): Remove d-ino.m4.
95995         (Depends-on): Add d-ino.
95996         * modules/getndelim2 (Depends-on): Add stdint.
95997         * modules/glob (Files): Remove m4/d-type.m4.
95998         (Depends-on): Add d-type.
95999         * modules/host-os: New module.
96000         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
96001         m4/inttypes_h.m4, m4/uintmax_t.m4.
96002         * Depends-on: Add stdint.
96003         (lib_SOURCES): Add human.h.
96004         * modules/inttostr (Files): Remove m4/intmax_t.m4,
96005         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
96006         m4/uintmax_t.m4, m4/ulonglong.m4.
96007         (Depends-on): Add stdint.
96008         (EXTRA_DIST): Add inttostr.h.
96009         * modules/lchmod: New module.
96010         * modules/link-follow: New module.
96011         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
96012         (Depends-on): Add lchmod.
96013         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
96014         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
96015         (Depends-on): Add stdint.
96016         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
96017         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
96018         (Depends-on): Add stdint.
96019         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
96020         * modules/perl: New module.
96021         * modules/regex (Depends-on): Add stdint.
96022         * modules/rmdir-errno: New module.
96023         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
96024         m4/intmax_t.m4.
96025         (Depends-on): Add stdint.
96026         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
96027         m4/uintmax_t.m4.
96028         (Depends-on): Add stdint.
96029         * modules/unlink-busy: New module.
96030         * modules/utimecmp (Depends-on): Add stdint.
96031         * modules/uptime: New module.
96032         * modules/winsz-ioctl: New module.
96033         * modules/winsz-termios: New module.
96034         * modules/xnanosleep (Depends-on): Add nanosleep.
96035         * modules/ullong_max: Remove.
96036         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
96037         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
96038         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
96039         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
96040         (Depends-on): Add inttypes.
96041         (lib_SOURCES): Add xstrtol.h.
96042         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
96043         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
96044         * MODULES.html.sh: Move 'assert' into the assert section.
96045         Move 'dummy' into the linking section.
96046         Remove ullong_max.
96047         Add section for compatibility checks for POSIX:2001 functions,
96048         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
96049         winsz-ioctl, and winsz-termios into it.
96050         Add lchmod.
96051         Add top-level Misc section and put host-os, perl, and uptime
96052         into it.
96054 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96056         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
96057         now assume the stdint module.  Do not include inttypes.h.
96058         * lib/fsusage.h: Likewise.
96059         * lib/getndelim2.c: Likewise.
96060         * lib/human.h: Likewise.
96061         * lib/inttostr.h: Likewise.
96062         * lib/obstack.c: Likewise.
96063         * lib/regex_internal.h: Likewise.
96064         * lib/tempname.c: Likewise.
96065         * lib/utimecmp.c: Likewise.
96066         * lib/xstrtol.h: Likewise.
96068         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
96070         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
96071         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
96072         * lib/xtime.h: Likewise.
96074 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96076         * modules/openat (Files): Add lib/fchmodat.c.
96077         Fixes problem reported by Jay Youngman.
96079 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96081         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
96082         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
96084 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
96085             Bruno Haible  <bruno@clisp.org>
96087         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
96088         and is a script that invokes bison. Tighten the code. Add comments.
96090 2006-08-18  Jim Meyering  <jim@meyering.net>
96092         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
96093         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
96094         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
96095         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
96097 2006-08-18  Bruno Haible  <bruno@clisp.org>
96099         * modules/bison-i18n: New file.
96100         * MODULES.html.sh (Internationalization functions): Add it.
96102 2006-08-18  Bruno Haible  <bruno@clisp.org>
96104         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
96105         sys/statvfs.h. When getmntinfo was found, check its declaration and
96106         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
96108 2006-08-18  Bruno Haible  <bruno@clisp.org>
96110         * m4/bison-i18n.m4: New file, from bison.
96112 2006-08-18  Bruno Haible  <bruno@clisp.org>
96114         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
96115         (ME_DUMMY): Treat "kernfs" as a dummy.
96116         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
96118 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
96120         Update from coreutils.
96122         2006-08-15  Jim Meyering  <jim@meyering.net>
96124         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
96126         2006-01-17  Jim Meyering  <jim@meyering.net>
96128         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
96130         2006-01-11  Jim Meyering  <jim@meyering.net>
96132         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
96133         Check for the lchmod function.
96135 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
96137         Update from coreutils.
96139         * lib/__fpending.h: Add copyright notice.
96140         * lib/fprintftime.h: Likewise.
96141         * lib/savedir.c: Use (C) in copyright notice.
96142         * lib/savedir.h: Likewise.
96144         2006-08-15  Jim Meyering  <jim@meyering.net>
96146         * lib/at-func.c: New file, with the logic of all emulated at-functions.
96147         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
96148         in support of the EXPECTED_ERRNO macro.
96149         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
96150         definitions.  Instead, define the appropriate symbols and include
96151         "at-func.c".
96152         * lib/mkdirat.c (mkdirat): Likewise.
96153         * lib/fchmodat.c (fchmodat): Likewise.
96154         (ENOSYS): Remove definition.
96155         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
96156         it.  Don't include "unistd--.h" -- it wasn't ever used.
96158         2006-01-17  Jim Meyering  <jim@meyering.net>
96160         Rewrite fts.c not to change the current working directory,
96161         by using openat, fstatat, fdopendir, etc..
96163         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
96164         (HAVE_OPENAT_SUPPORT): Define.
96165         [_LIBC] (fchdir): Don't undef or define; no longer used.
96166         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
96167         Now, this `function' always succeeds, and consumes its file descriptor
96168         parameter -- so callers must not close such FDs.  Update callers.
96169         (diropen_fd, opendirat, cwd_advance_fd): New functions.
96170         (diropen): Add parameter, SP.  Adjust all callers.
96171         Implement using diropen_fd, rather than open.
96172         (fts_open): Initialize new member, fts_cwd_fd.
96173         Remove fts_rft-setting code.
96174         (fts_close): Close fts_cwd_fd, if necessary.
96175         (__opendir2): Define in terms of opendir or opendirat,
96176         depending on whether the FST_NOCHDIR flag is set.
96177         (fts_build): Since fts_safe_changedir consumes its FD, and since
96178         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
96179         and close the dup'd file descriptor upon failure.
96180         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
96181         (fts_safe_changedir): Tweak semantics to reflect that this function
96182         now calls cwd_advance_fd and hence consumes its FD argument.
96183         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
96184         [struct FTS] (fts_rft): Remove now-unused member.
96185         [struct FTS] (fts_cycle.state): Improve comment.
96187         * lib/openat.c (openat_needs_fchdir): New function.
96188         * lib/openat.h (openat_needs_fchdir): Declare it.
96190 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
96192         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
96193         Problem and fix reported by Pádraig Brady in
96194         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
96196 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96198         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
96200 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96202         * lib/memcoll.c (memcoll): Optimize for the common case where the
96203         arguments are bytewise equal.
96205 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96207         * doc/regexprops-generic.texi: Add a copyright notice.
96209 2006-08-15  Bruno Haible  <bruno@clisp.org>
96211         * modules/tmpdir (License): Change to LGPL.
96213 2006-08-15  Bruno Haible  <bruno@clisp.org>
96215         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
96216         module.
96218 2006-08-14  Simon Josefsson  <jas@extundo.com>
96220         * config/srclist.txt: Add gnupload.
96222 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96224         Change copyright notice from LGPL 2 to GPL 2, since that's the
96225         standard form used in the gnulib repository.
96226         * tests/test-lock.c: Likewise.
96227         * tests/test-stdint.c: Likewise.
96228         * tests/test-tls.c: Likewise.
96230         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
96231         prelude-manager.  User shorter URLs for GNU projects, without '?'.
96232         Add copyright notice.
96234         * check-module: Add copyright notice.  Output a copyright
96235         notice if "--version" is specified.
96236         * modules/COPYING: New file.
96237         * tests/test-getaddrinfo.c: Add copyright notice.
96238         * tests/test-verify.c: Likewise.
96240 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96242         Change copyright notice from LGPL 2 to GPL 2, since that's the
96243         standard form used in the gnulib repository.
96244         * lib/lock.c: LGPL -> GPL.
96245         * lib/lock.h: Likewise.
96246         * lib/strnlen1.c: Likewise.
96247         * lib/strnlen1.h: Likewise.
96248         * lib/tls.c: Likewise.
96249         * lib/tls.h: Likewise.
96250         * lib/tmpdir.c: Likewise.
96252         * lib/TODO: Remove; this belongs only in coreutils.
96254 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96256         Add copyright notices to long-enough files that lack them, since
96257         otherwise the files aren't clearly free.  Use the same notice that
96258         getdate.texi already uses.
96259         * doc/alloca-opt.texi: Add copyright notice.
96260         * doc/alloca.texi: Likewise.
96261         * doc/ctime.texi: Likewise.
96262         * doc/functions.texi: Likewise.
96263         * doc/gcd.texi: Likewise.
96264         * doc/gnulib-tool.texi: Likewise.
96265         * doc/inet_ntoa.texi: Likewise.
96266         * doc/visibility.texi: Likewise.
96268         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
96269         * doc/quote.texi: Add copyright notice.
96271         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
96272         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
96273         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
96274         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
96275         is now obsolete, and give a pointer to the Sun list.
96276         Add copyright notice.
96278 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96280         * config/srclistvars.sh: Add copyright notice.
96282 2006-08-14  Eric Blake  <ebb9@byu.net>
96284         Import the following change from libc:
96286         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
96288         Upstream bug 2997.
96289         * lib/misc/error.c: Add space between program name and message if file
96290         name is missing.
96292 2006-08-12  Karl Berry  <karl@gnu.org>
96294         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
96295         remove, these originate in gnulib now.
96297 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96299         * doc/Makefile (standards.info standards.html standards.dvi):
96300         Also depend on make-stds.texi.
96302 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
96304         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
96305         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
96307         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
96308         in wchar_t.  Problem reported by Eric Blake.
96310         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
96311         LEN is smaller than SIZE.  Suggested by Bruno Haible.
96312         Also, help the compiler to keep LEN in a register.
96314 2006-08-11  Eric Blake  <ebb9@byu.net>
96316         * users.txt: Sort.  Add tar.
96318 2006-08-11  Bruno Haible  <bruno@clisp.org>
96320         * users.txt: New file.
96322 2006-08-11  Bruno Haible  <bruno@clisp.org>
96324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
96325         before <wchar.h>. Needed for OSF/1 and BSD/OS.
96327 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96329         * modules/snprintf (Depends-on): Remove minmax.
96330         (Maintainer): Add self and Bruno.
96332 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96334         * lib/.cppi-disable: Add snprintf.h, socket_.h.
96335         * lib/snprintf.c: Include <errno.h> and <limits.h>.
96336         (EOVERFLOW): Define if the system does not.
96337         Do not include "minmax.h"; it wasn't used.
96338         (snprintf): Don't assume size_t promotes to an unsigned type.
96339         Fix bug when generated string was too long for the buffer: the
96340         buffer's contents are supposed to be the initial prefix of the
96341         output.  Don't assume vasnprintf returns EOVERFLOW if the size
96342         exceeds INT_MAX; do the check ourselves.
96344         Import the following changes from libc:
96346         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
96348         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
96349         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
96350         set wc to the byte which couldn't be converted.
96351         (re_string_reconstruct): Don't clear valid_raw_len before calling
96352         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
96353         tip_context using re_string_context_at.
96355         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
96357         * lib/posix/regex.h: g++ still cannot handled [restrict].
96359         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
96361         * lib/posix/regex.h: Remove special handling for VMS.
96363 2006-08-10  Jim Meyering  <jim@meyering.net>
96365         * modules/same-inode: New module.
96366         * modules/dev-ino: New module.
96367         * modules/cycle-check: Depend on these modules, rather than simply
96368         including their .h files.
96369         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
96370         required via m4/cycle-check.m4.
96371         * modules/same: Depend on new same-inode module, rather than
96372         including same-inode.h.
96373         * modules/chdir-safer: New file.
96375         * modules/chown (Depends-on): Add stat-macros.
96377 2006-08-10  Jim Meyering  <jim@meyering.net>
96379         * m4/cycle-check.m4: New file.
96380         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
96381         * m4/dev-ino.m4, m4/same-inode.m4: New files.
96383 2006-08-10  Eric Blake  <ebb9@byu.net>
96385         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
96386         in from original proposal.
96388 2006-08-10  Eric Blake  <ebb9@byu.net>
96389         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
96391         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
96392         namespace.
96394 2006-08-10  Bruno Haible  <bruno@clisp.org>
96396         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
96397         as well.
96399 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96401         Sync from coreutils.
96403         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
96405         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
96406         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
96408 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96410         * modules/restrict: Remove; no longer needed now that we assume
96411         Autoconf 2.59 or later.
96412         * MODULES.html.sh: Remove 'restrict'.
96413         * modules/argp (Depends-on): Remove 'restrict'.
96414         * modules/base64 (Depends-on): Likewise.
96415         * modules/gc (Depends-on): Likewise.
96416         * modules/getaddrinfo (Depends-on): Likewise.
96417         * modules/glob (Depends-on): Likewise.
96418         * modules/inet_ntop (Depends-on): Likewise.
96419         * modules/inet_pton (Depends-on): Likewise.
96420         * modules/memxor (Depends-on): Likewise.
96421         * modules/regex (Depends-on): Likewise.
96422         * modules/strtok_r (Depends-on): Likewise.
96423         * modules/time_r (Depends-on): Likewise.
96425 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96427         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
96428         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
96429         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
96430         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
96431         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
96432         * m4/memxor.m4 (gl_MEMXOR): Likewise.
96433         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
96434         gl_C_RESTRICT replaced by AC_C_RESTRICT.
96436         Merge from coreutils.
96437         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
96438         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
96439         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
96440         * m4/time_r.m4 (gl_TIME_R): Likewise.
96442 2006-08-09  Karl Berry  <karl@gnu.org>
96444         * config/srclist.txt: no more gettext-tools, per Bruno.
96446 2006-08-08  Eric Blake  <ebb9@byu.net>
96448         * modules/verror: New module.
96449         * MODULES.html.sh: Document it.
96451 2006-08-08  Eric Blake  <ebb9@byu.net>
96453         * lib/verror.h, lib/verror.c: New files.
96455 2006-08-08  Eric Blake  <ebb9@byu.net>
96457         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
96458         verror_at_line output complies with GNU Coding Standards even when
96459         file is NULL.
96461 2006-08-07  Bruno Haible  <bruno@clisp.org>
96463         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
96464         versions of AIX.
96465         Reported by Ralf Wildenhues.
96467 2006-08-07  Bruno Haible  <bruno@clisp.org>
96469         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
96470         in an AC_DEFUN. Needed so that the autoconf snippets can use
96471         AC_REQUIRE.
96473 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96475         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96476         Initialize pkgdata_DATA.
96477         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
96478         overriding it.
96480 2006-08-06  Eric Blake  <ebb9@byu.net>
96482         * lib/error.h: Fold in some upstream changes from glibc.
96483         * lib/error.c: Likewise.
96485 2006-08-04  Bruno Haible  <bruno@clisp.org>
96487         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96488         Make the mostlyclean-local rule depend on mostlyclean-generic.
96489         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
96491 2006-07-31  Bruno Haible  <bruno@clisp.org>
96493         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
96494         <stdlib.h>, <string.h>.
96496 2006-07-30  Bruno Haible  <bruno@clisp.org>
96498         * modules/readlink (License): Change to LGPL.
96500 2006-07-30  Bruno Haible  <bruno@clisp.org>
96502         * modules/javaversion (Makefile.am): Distribute javaversion.java and
96503         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
96504         set PKGDATADIR to point to it.
96506 2006-07-30  Bruno Haible  <bruno@clisp.org>
96508         * modules/csharpexec (configure.ac): Comment out macro invocation.
96509         * modules/javaexec (configure.ac): Likewise.
96510         * modules/javacomp-script (configure.ac): Likewise.
96512         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
96514 2006-07-30  Bruno Haible  <bruno@clisp.org>
96516         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
96517         linked-list.
96519 2006-07-30  Bruno Haible  <bruno@clisp.org>
96521         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
96523 2006-07-30  Bruno Haible  <bruno@clisp.org>
96525         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96526         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
96527         get removed.
96529 2006-07-29  Bruno Haible  <bruno@clisp.org>
96531         Make it possible for gnulib-tool to work with locally modified or
96532         augmented gnulib repositories.
96533         * gnulib-tool (func_usage): Document --local-dir option.
96534         (local_gnulib_dir): New variable.
96535         Handle --local-dir option.
96536         (func_lookup_file): New function.
96537         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
96538         (func_get_description, func_get_filelist, func_get_description,
96539         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
96540         func_get_automake_snippet, func_get_include_directive,
96541         func_get_license, func_get_maintainer): Use func_lookup_file.
96542         (func_import, func_create_testdir): Use func_lookup_file.
96544 2006-07-29  Bruno Haible  <bruno@clisp.org>
96546         * modules/setenv (Depends-on): Add unistd.
96548 2006-07-29  Bruno Haible  <bruno@clisp.org>
96550         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
96552 2006-07-29  Bruno Haible  <bruno@clisp.org>
96554         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
96556 2006-07-29  Bruno Haible  <bruno@clisp.org>
96558         * gnulib-tool (import, update): If there is no Makefile.am, look at
96559         aclocal.m4, instead of bailing out.
96561 2006-07-29  Bruno Haible  <bruno@clisp.org>
96563         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
96564         Categorize the options by when they are useful.
96566 2006-07-29  Bruno Haible  <bruno@clisp.org>
96568         * gnulib-tool (func_usage): Document option --no-libtool.
96569         Handle option --no-libtool.
96570         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
96571         for changed semantics of $libtool variable.
96572         (func_import): Likewise. If libtool is not used, show this through
96573         an option --no-libtool.
96574         (func_create_testdir): Update.
96576 2006-07-29  Bruno Haible  <bruno@clisp.org>
96578         * gnulib-tool (func_import): Extend error message about missing
96579         --doc-base.
96581 2006-07-29  Bruno Haible  <bruno@clisp.org>
96583         * gnulib-tool (func_import): Don't create the $docbase directory if
96584         there is no file to store there.
96586 2006-07-29  Bruno Haible  <bruno@clisp.org>
96588         * gnulib-tool (autoconf_minversion): If a --dir option is given and
96589         relevant, look for configure.ac there, not in the current directory.
96590         Also use a simple search for AC_PREREQ, not "autoconf --trace".
96592 2006-07-29  Bruno Haible  <bruno@clisp.org>
96594         * gnulib-tool (SORT): New variable.
96595         (func_usage): Undocument --assume-autoconf option.
96596         Remove --assume-autoconf option handling.
96597         (autoconf_minversion): Determine from the contents of configure.ac.
96598         (func_import): Remove autoconf_minversion handling.
96599         Suggested by Eric Blake.
96601 2006-07-29  Bruno Haible  <bruno@clisp.org>
96603         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
96605 2006-07-29  Bruno Haible  <bruno@clisp.org>
96607         * config/srclist.txt (*setenv.[ch]): Remove rules.
96609 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96611         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
96613 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96615         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
96616         arpa/inet.h.
96618 2006-07-28  Simon Josefsson  <jas@extundo.com>
96620         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
96621         * modules/inet_pton (Depends-on): Likewise.
96623 2006-07-28  Simon Josefsson  <jas@extundo.com>
96625         * m4/netinet_in_h.m4: New file.
96627 2006-07-28  Simon Josefsson  <jas@extundo.com>
96629         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
96630         #include's.
96632 2006-07-28  Simon Josefsson  <jas@extundo.com>
96634         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
96635         #include's.
96637 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
96639         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
96640         setgid on directories only if they set these bits.
96641         * lib/modechange.h: Remove obsolete comment about masks.
96643 2006-07-28  Eric Blake  <ebb9@byu.net>
96645         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
96646         macro expansion.
96648 2006-07-28  Bruno Haible  <bruno@clisp.org>
96650         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
96652 2006-07-28  Bruno Haible  <bruno@clisp.org>
96654         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
96656 2006-07-28  Bruno Haible  <bruno@clisp.org>
96658         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
96659         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
96660         Define fallbacks.
96661         Avoids link error on FreeBSD 4.x.
96662         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
96664         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
96665         encoding.
96666         * lib/mbswidth.c (iswcntrl): Likewise.
96668 2006-07-27  Bruno Haible  <bruno@clisp.org>
96670         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
96671         test.
96673 2006-07-27  Bruno Haible  <bruno@clisp.org>
96675         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
96676         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
96677         defined.
96679 2006-07-26  Eric Blake  <ebb9@byu.net>
96681         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
96683 2006-07-26  Eric Blake  <ebb9@byu.net>
96685         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
96686         like mingw that lack mkstemp.
96687         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
96688         avoid compilation warning on mingw.
96690 2006-07-26  Bruno Haible  <bruno@clisp.org>
96692         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
96693         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
96694         INT_FAST*_MIN, INTPTR_MIN.
96696 2006-07-25  Bruno Haible  <bruno@clisp.org>
96698         * modules/version-etc (Depends-on): Add stdarg.
96700 2006-07-25  Bruno Haible  <bruno@clisp.org>
96702         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
96703         complex commands.
96705 2006-07-25  Bruno Haible  <bruno@clisp.org>
96707         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
96708         defined in <stdarg.h> or config.h.
96710 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
96712         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
96713         (gl_STDIO_SAFER): Remove.
96715 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
96717         * MODULES.html.sh (File stream based Input/Output):
96718         Add fopen-safer, tmpfile-safer; remove stdio-safer.
96719         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
96720         * modules/fopen-safer, modules/tmpfile-safer: New files.
96721         * modules/stdio-safer: Remove.
96723 2006-07-24  Bruno Haible  <bruno@clisp.org>
96725         * modules/tmpdir: New file.
96726         * MODULES.html.sh (File system functions): Add it.
96728 2006-07-24  Bruno Haible  <bruno@clisp.org>
96730         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
96731         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
96733 2006-07-24  Bruno Haible  <bruno@clisp.org>
96735         * modules/clean-temp: New file.
96737 2006-07-24  Bruno Haible  <bruno@clisp.org>
96739         * m4/tmpdir.m4: New file, from GNU gettext.
96741 2006-07-24  Bruno Haible  <bruno@clisp.org>
96743         * lib/tmpdir.h: New file, from GNU gettext.
96744         * lib/tmpdir.c: New file, from GNU gettext.
96746 2006-07-24  Bruno Haible  <bruno@clisp.org>
96748         * lib/clean-temp.h: New file, from GNU gettext.
96749         * lib/clean-temp.c: New file, from GNU gettext.
96751 2006-07-23  Eric Blake  <ebb9@byu.net>
96753         * modules/stdio-safer (Files): Add tmpfile-safer.c.
96754         (Depends-on): Add binary-io.
96756 2006-07-23  Eric Blake  <ebb9@byu.net>
96758         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
96760 2006-07-23  Eric Blake  <ebb9@byu.net>
96762         * lib/tmpfile-safer.c: New file.
96763         * lib/stdio-safer.h (fopen_safer): Add prototype.
96764         * lib/stdio--.h (tmpfile): Make safer.
96766 2006-07-23  Bruno Haible  <bruno@clisp.org>
96768         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
96769         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
96770         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
96771         gl_linked_remove_at): Use it.
96773 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96774         and Simon Josefsson <jas@extundo.com>
96776         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
96778         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
96780 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96782         * modules/close-stream: New file.
96783         * modules/closeout (Description): Make it clear that it exits
96784         with a diagnostic on error.
96785         (Depends-on): Add close-stream.  Remove fpending, stdbool.
96786         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
96788 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96790         * m4/close-stream.m4: New file.
96792 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96794         * lib/close-stream.c, lib/close-stream.h: New files.
96796 2006-07-22  Bruno Haible  <bruno@clisp.org>
96798         Merge from GNU gettext 0.15.
96800         2006-05-01  Bruno Haible  <bruno@clisp.org>
96802                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
96804         2006-07-22  Bruno Haible  <bruno@clisp.org>
96806                 * modules/javaversion: New file.
96807                 * MODULES.html.sh (Java): Add javaversion.
96809         2006-03-12  Bruno Haible  <bruno@clisp.org>
96811                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
96813         2005-12-04  Bruno Haible  <bruno@clisp.org>
96815                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
96816                 (untested).
96818         2006-06-21  Bruno Haible  <bruno@clisp.org>
96820                 Avoid warnings from recent versions of mcs.
96821                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
96822                 -o, -L, -r any more. Use options documented since mcs-1.0
96823                 instead. Similarly for -g.
96825         2005-12-04  Bruno Haible  <bruno@clisp.org>
96827                 * build-aux/csharpcomp.sh.in: Suffix for resources is
96828                 .resources, not .resource.
96830         2005-07-09  Bruno Haible  <bruno@clisp.org>
96832                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
96833                 add a .dll suffix.
96834                 Reported by Mark Junker <mjscod@gmx.de>.
96836         2006-07-22  Bruno Haible  <bruno@clisp.org>
96838                 * modules/gettext: Upgrade to gettext-0.15.
96839                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
96840                 m4/visibility.m4.
96841                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
96843 2006-07-22  Bruno Haible  <bruno@clisp.org>
96845         Merge from GNU gettext 0.15.
96847         2006-03-25  Bruno Haible  <bruno@clisp.org>
96849                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
96851         2006-07-21  Bruno Haible  <bruno@clisp.org>
96853                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
96854                 "1.1".
96856         2006-05-09  Bruno Haible  <bruno@clisp.org>
96858                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
96859                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
96860                 for the conftestver execution.
96862         2006-05-01  Bruno Haible  <bruno@clisp.org>
96864                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
96865                 optional target-version argument. Verify that the compiler
96866                 groks source of the specified source-version, or add -source
96867                 option as necessary. Verify that the compiler produces
96868                 bytecode in the specified target-version, or add -target and
96869                 -source options as necessary. Make the result of the test
96870                 available as variable CONF_JAVAC. Also log error output in
96871                 config.log.
96873         2006-03-11  Bruno Haible  <bruno@clisp.org>
96875                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
96877         2006-05-09  Bruno Haible  <bruno@clisp.org>
96879                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
96880                 CLASSPATH_SEPARATOR to a semicolon.
96882         2006-03-12  Bruno Haible  <bruno@clisp.org>
96884                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
96885                 available as variable CONF_JAVA, for subsequent autoconf
96886                 tests. Also log error output in config.log.
96888         2006-07-19  Bruno Haible  <bruno@clisp.org>
96890                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
96891                 that getline works on glibc2 systems. Needed to avoid trouble
96892                 in relocatable.c.
96893                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
96895         2005-12-04  Bruno Haible  <bruno@clisp.org>
96897                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
96898                 launcher (untested).
96900         2005-12-04  Bruno Haible  <bruno@clisp.org>
96902                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
96904         2006-07-22  Bruno Haible  <bruno@clisp.org>
96906                 * gettext.m4: Update from GNU gettext-0.15.
96907                 * nls.m4: Likewise.
96908                 * po.m4: Likewise.
96909                 * inttypes-pri.m4: Likewise.
96910                 * inttypes-h.m4: Renamed from inttypes.m4.
96911                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
96913 2006-07-22  Bruno Haible  <bruno@clisp.org>
96915         Merge from GNU gettext 0.15.
96917         2005-07-05  Bruno Haible  <bruno@clisp.org>
96919                 * printf-args.c (printf_fetchargs): Work around broken
96920                 definition of wint_t on mingw.
96922         2005-02-12  Bruno Haible  <bruno@clisp.org>
96924                 * xallocsa.h: Add extern "C" for C++.
96926         2006-05-17  Bruno Haible  <bruno@clisp.org>
96928                 Cygwin portability.
96929                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
96931         2006-04-30  Bruno Haible  <bruno@clisp.org>
96933                 * progreloc.c: Include <mach-o/dyld.h> if available.
96934                 (find_executable): Use _NSGetExecutablePath when possible.
96936         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
96938                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
96939                 function.
96941         2005-12-29  Bruno Haible  <bruno@clisp.org>
96943                 * progreloc.c (set_program_name_and_installdir): Fix
96944                 compilation error.
96946         2005-12-04  Bruno Haible  <bruno@clisp.org>
96948                 Cygwin portability.
96949                 * progreloc.c: Include <windows.h> also on Cygwin.
96950                 (find_executable): Add support for Cygwin.
96951                 (set_program_name_and_installdir): Handle also platforms with
96952                 nonempty EXEEXT.
96954         2006-07-11  Bruno Haible  <bruno@clisp.org>
96956                 * javacomp.c: Fix a comment.
96957                 Reported by Jim Meyering.
96959         2006-04-30  Bruno Haible  <bruno@clisp.org>
96961                 * javacomp.h (compile_java_class): Add source_version,
96962                 target_version arguments.
96963                 * javacomp.c: Rewritten to choose only a compiler that
96964                 respects the specified source_version and target_version.
96966         2006-06-27  Bruno Haible  <bruno@clisp.org>
96968                 Assume correct S_ISDIR macro.
96969                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
96971         2006-07-22  Bruno Haible  <bruno@clisp.org>
96973                 * javaversion.h: New file, from GNU gettext.
96974                 * javaversion.c: New file, from GNU gettext.
96975                 * javaversion.java: New file, from GNU gettext.
96976                 * javaversion.class: New file, from GNU gettext.
96978         2006-05-17  Bruno Haible  <bruno@clisp.org>
96980                 Cygwin portability.
96981                 * javaexec.c (execute_java_class): Test for jview program
96982                 also on Cygwin.
96984         2006-04-09  Bruno Haible  <bruno@clisp.org>
96986                 * fatal-signal.c: Don't include string.h.
96987                 (at_fatal_signal): Use a copying loop instead of memcpy.
96989         2005-12-04  Bruno Haible  <bruno@clisp.org>
96991                 * csharpexec.c: Add support for 'clix' launcher (untested).
96992                 (execute_csharp_using_sscli): New function.
96993                 (execute_csharp_program): Call it.
96995         2006-06-21  Bruno Haible  <bruno@clisp.org>
96997                 Avoid warnings from recent versions of mcs.
96998                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
96999                 -o, -L, -r any more. Use options documented since mcs-1.0
97000                 instead. Similarly for -g.
97002         2005-07-09  Bruno Haible  <bruno@clisp.org>
97004                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
97005                 add a .dll suffix.
97006                 Reported by Mark Junker <mjscod@gmx.de>.
97008         2006-06-17  Bruno Haible  <bruno@clisp.org>
97010                 * config.charset: Update for NetBSD 3.0.
97012         2006-05-17  Bruno Haible  <bruno@clisp.org>
97014                 Cygwin portability.
97015                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
97017         2006-05-16  Bruno Haible  <bruno@clisp.org>
97019                 * localcharset.c [CYGWIN]: Include <windows.h>.
97020                 (get_charset_aliases): For Cygwin, return the same CPxxx
97021                 aliases list as under WIN32.
97022                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
97023                 the environment variables. Fall back to GetACP().
97025         2006-04-05  Bruno Haible  <bruno@clisp.org>
97027                 * config.charset: Update Juan Manuel Guerrero's address.
97029         2005-02-12  Bruno Haible  <bruno@clisp.org>
97031                 * allocsa.h: Add extern "C" for C++.
97033         2005-02-10  Bruno Haible  <bruno@clisp.org>
97035                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
97036                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
97038         2006-07-22  Bruno Haible  <bruno@clisp.org>
97040                 * gettext.h: Update to GNU gettext-0.15.
97042 2006-07-22  Bruno Haible  <bruno@clisp.org>
97044         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
97045         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
97046         lib-prefix.m4, longdouble.m4, ssize_t.m4.
97048 2006-07-21  Eric Blake  <ebb9@byu.net>
97050         * modules/stdlib-safer: New file.
97051         * MODULES.html.sh (File stream based Input/Output): Add
97052         stdlib-safer.
97054 2006-07-21  Eric Blake  <ebb9@byu.net>
97056         * lib/stdlib-safer.h: New file from coreutils, required by
97057         stdlib--.h.
97059 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
97061         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
97063 2006-07-20  Bruno Haible  <bruno@clisp.org>
97065         * gnulib-tool: Recognize new option --assume-autoconf.
97066         (autoconf_minversion): New variable.
97067         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
97069 2006-07-20  Bruno Haible  <bruno@clisp.org>
97071         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
97073 2006-07-19  Derek R. Price  <derek@ximbiot.com>
97075         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
97076         Reindent and repaginate.
97078 2006-07-19  Derek Price  <derek@ximbiot.com>
97080         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
97081         Correct grammar.
97083 2006-07-17  Bruno Haible  <bruno@clisp.org>
97085         * modules/list: New file.
97086         * modules/array-list: New file.
97087         * modules/carray-list, modules/carray-list-tests: New files.
97088         * modules/linked-list, modules/linked-list-tests: New files.
97089         * modules/avltree-list, modules/avltree-list-tests: New files.
97090         * modules/rbtree-list, modules/rbtree-list-tests: New files.
97091         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
97092         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
97093         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
97094         * modules/oset: New file.
97095         * modules/array-oset: New file.
97096         * modules/avltree-oset, modules/avltree-oset-tests: New files.
97097         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
97098         * tests/test-carray_list.c: New file.
97099         * tests/test-linked_list.c: New file.
97100         * tests/test-avltree_list.c: New file.
97101         * tests/test-rbtree_list.c: New file.
97102         * tests/test-linkedhash_list.c: New file.
97103         * tests/test-avltreehash_list.c: New file.
97104         * tests/test-rbtreehash_list.c: New file.
97105         * tests/test-avltree_oset.c: New file.
97106         * tests/test-rbtree_oset.c: New file.
97107         * MODULES.html.sh (Container data structures): New section.
97109 2006-07-17  Bruno Haible  <bruno@clisp.org>
97111         * m4/gl_list.m4: New file.
97113 2006-07-17  Bruno Haible  <bruno@clisp.org>
97115         * lib/gl_list.h: New file.
97116         * lib/gl_list.c: New file.
97117         * lib/gl_array_list.h: New file.
97118         * lib/gl_array_list.c: New file.
97119         * lib/gl_carray_list.h: New file.
97120         * lib/gl_carray_list.c: New file.
97121         * lib/gl_linked_list.h: New file.
97122         * lib/gl_linked_list.c: New file.
97123         * lib/gl_anylinked_list1.h: New file.
97124         * lib/gl_anylinked_list2.h: New file.
97125         * lib/gl_avltree_list.h: New file.
97126         * lib/gl_avltree_list.c: New file.
97127         * lib/gl_anyavltree_list1.h: New file.
97128         * lib/gl_anyavltree_list2.h: New file.
97129         * lib/gl_rbtree_list.h: New file.
97130         * lib/gl_rbtree_list.c: New file.
97131         * lib/gl_anyrbtree_list1.h: New file.
97132         * lib/gl_anyrbtree_list2.h: New file.
97133         * lib/gl_anytree_list1.h: New file.
97134         * lib/gl_anytree_list2.h: New file.
97135         * lib/gl_linkedhash_list.h: New file.
97136         * lib/gl_linkedhash_list.c: New file.
97137         * lib/gl_anyhash_list1.h: New file.
97138         * lib/gl_anyhash_list2.h: New file.
97139         * lib/gl_avltreehash_list.h: New file.
97140         * lib/gl_avltreehash_list.c: New file.
97141         * lib/gl_rbtreehash_list.h: New file.
97142         * lib/gl_rbtreehash_list.c: New file.
97143         * lib/gl_anytreehash_list1.h: New file.
97144         * lib/gl_anytreehash_list2.h: New file.
97146         * lib/gl_oset.h: New file.
97147         * lib/gl_oset.c: New file.
97148         * lib/gl_array_oset.h: New file.
97149         * lib/gl_array_oset.c: New file.
97150         * lib/gl_avltree_oset.h: New file.
97151         * lib/gl_avltree_oset.c: New file.
97152         * lib/gl_rbtree_oset.h: New file.
97153         * lib/gl_rbtree_oset.c: New file.
97154         * lib/gl_anytree_oset.h: New file.
97156 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97158         * m4/mkancesdirs.m4: New file.
97159         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
97160         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
97161         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
97162         it.
97164 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97166         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
97167         * lib/mkancesdirs.h: New files.
97168         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
97169         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
97170         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
97171         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
97172         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
97173         callers changed.  Revamp internals significantly, by not
97174         attempting to create directories that are temporarily more
97175         permissive than the final results.  Do not attempt to use
97176         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
97177         This removes some race conditions, fixes some bugs, and simplifies
97178         things.  Use new dirchownmod function to do owner and mode changes.
97179         * lib/mkdir-p.h: Likewise.
97180         * lib/modechange.c (octal_to_mode): New function.
97181         (struct mode_change): New member mentioned.
97182         (make_node_op_equals): New arg mentioned.  All callers changed.
97183         (mode_compile): Keep track of which mode bits the user has explicitly
97184         mentioned.
97185         (mode_adjust): New arg DIR, so that we implement the X op correctly.
97186         New arg PMODE_BITS, to keep track of which mode bits the user
97187         mentioned; it treats S_ISUID and S_ISGID speciall.
97188         All callers changed.
97189         * lib/modechange.h: Likewise.
97191 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97193         * MODULES.html.sh: Add mkancestors.
97194         * modules/mkancesdirs: New module.
97195         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
97196         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
97197         The chdir-safer and afs files are now orphans; I'll remove them
97198         unless someone speaks up.
97199         Add lib/dirchownmod.c, lib/dirchownmod.h.
97200         (Depends-on): Remove alloca, chown, save-cwd, dirname.
97201         Add lchown, mkancesdirs.
97202         (Maintainer): Add self.
97204 2006-07-15  Karl Berry  <karl@gnu.org>
97206         * gnulib-tool: help message wording/arrangement.
97208 2006-07-14  Simon Josefsson  <jas@extundo.com>
97210         * doc/gnulib.texi (Libtool and Windows): New section.
97212 2006-07-12  Simon Josefsson  <jas@extundo.com>
97214         * modules/gendocs (License): Fix license, approved by Karl.
97216 2006-07-12  Eric Blake  <ebb9@byu.net>
97218         * MODULES.html.sh: Add gendocs.
97220 2006-07-11  Eric Blake  <ebb9@byu.net>
97222         * modules/fdl: New module, to install doc/fdl.texi.
97223         * MODULES.html.sh: Add new section for documentation modules.
97224         * gnulib-tool: Avoid space-tab.
97225         (--doc-base): New option, to manage files from doc.
97227 2006-07-11  Eric Blake  <ebb9@byu.net>
97229         * m4/absolute-header.m4: Fix comments to match recent change.
97231 2006-07-11  Eric Blake  <ebb9@byu.net>
97233         * gnulib-tool: List --doc-base before --tests-base.
97235 2006-07-11  Derek R. Price  <derek@ximbiot.com>
97237         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
97239 2006-07-11  Bruno Haible  <bruno@clisp.org>
97241         * README: Mention where to put documentation.
97243 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97245         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
97247 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
97249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
97250         to stdint.m4.
97252 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
97254         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
97255         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
97256         "no/such/file/stdint.h" when there is no such file, so that
97257         the resulting C code can be parsed by dodgy compilers.
97258         Problems reported by Bob Proulx.
97260 2006-07-10  Derek R. Price  <derek@ximbiot.com>
97262         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
97263         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
97264         macros into the GNU _D_EXACT_NAMLEN.
97265         * lib/savedir.c:  Likewise.
97266         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
97268 2006-07-10  Derek R. Price  <derek@ximbiot.com>
97269         and Paul Eggert  <eggert@cs.ucla.edu>
97271         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
97272         * m4/savedir.m4:
97273         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
97274         macros into the GNU _D_EXACT_NAMLEN.
97276 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
97279         around the absolute name, to work around a problem with the HP-UX
97280         11.23 native C compiler, reported by Bob Proulx.
97282 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97284         * doc/maintain.texi, make-stds.texi: Sync from
97285         <http://savannah.gnu.org/projects/gnustandards>.
97287 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97289         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
97291 2006-07-09  Jim Meyering  <jim@meyering.net>
97293         * m4/glob.m4: Remove a doubled word in a comment.
97295 2006-07-09  Jim Meyering  <jim@meyering.net>
97297         * lib/argp-pv.c: Remove a doubled word in a comment.
97298         * lib/check-version.c (check_version): Likewise.
97299         * lib/javacomp.c (compile_java_class): Likewise.
97301 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
97303         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
97304         for the benefit of people using Autoconf 2.60.  If you want to
97305         support older Autoconf versions you can copy m4/onceonly_2_57.m4
97306         (or m4/onceonly.m4, if pre-2.57) manually.
97308 2006-07-08  Jim Meyering  <jim@meyering.net>
97310         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
97311         comment.
97312         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
97313         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
97314         comment.
97316 2006-07-08  Jim Meyering  <jim@meyering.net>
97318         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
97320 2006-07-07  Simon Josefsson  <jas@extundo.com>
97322         * tests/test-crc.c: Change expected crc value, the test vector
97323         were probably computed using the old broken crc.c?
97325 2006-07-06  Simon Josefsson  <jas@extundo.com>
97327         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
97328         now the canonical place for the M4 file).
97330         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
97331         from the sys_socket dependency now.
97333         * modules/inet_pton (Files): Ditto.
97335         * modules/inet_ntop (Files): Ditto.
97337 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97339         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
97340         not gl_PREREQ_GETUSERSHELL.
97342 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97344         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
97345         with only one argument, for Autoconf 2.60.
97346         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
97347         expand to nothing, so add a shell command to avoid syntax error.
97348         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
97350 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97352         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
97354 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97356         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
97357         no longer needed.  Check for isblank decl.
97358         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
97359         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
97360         of existence.
97362 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97364         * lib/getloadavg.c: Use __VMS, not VMS.
97365         * lib/getopt.c: Likewise.
97366         * lib/getpagesize.h: Likewise.
97367         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
97368         and probably does not work.
97370 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97372         * lib/.cppi-disable: Add wcwidth.
97373         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
97374         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
97375         (ISGRAPH): Remove.  All uses changed to isgraph.
97376         (FOLD) [!defined _LIBC]: Remove special case.
97377         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
97378         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
97379         HAVE_ISBLANK.
97380         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
97381         case.
97383 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
97385         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
97386         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
97387         brackets.  Other minor changes to suppress some compiler
97388         warnings.
97390 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97391         and Paul Eggert  <eggert@cs.ucla.edu>
97393         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
97394         of invoking obsolescent AC_HEADER_DIRENT macro.
97395         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
97396         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
97397         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
97398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
97399         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
97400         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97401         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
97402         * m4/readdir.m4: Remove; no longer needed.
97404 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97405         and Paul Eggert  <eggert@cs.ucla.edu>
97407         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
97408         Don't worry about this obsolete case any more.
97409         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
97410         directories.
97411         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
97412         worry about this obsolete case any more.
97413         * lib/fts.c: Likewise.
97414         * lib/getcwd.c: Likewise.
97415         * lib/glob.h: Likewise.
97416         * lib/savedir.c: Likewise.
97418 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97420         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
97421         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
97422         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
97423         needed.
97424         All uses removed.
97425         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97426         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97427         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
97428         needed.
97429         * m4/getdate.m4 (gl_GETDATE): Likewise.
97430         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97431         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97432         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97433         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97434         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97435         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97436         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
97437         needed.
97439 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97441         * lib/memcasecmp.c: Include <limits.h>.
97442         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
97443         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
97444         Don't assume isdigit succeeds only on '0' through '9'.
97446 2006-07-05  Eric Blake  <ebb9@byu.net>
97448         * modules/getaddrinfo (Depends-on): Add snprintf.
97450 2006-07-05  Eric Blake  <ebb9@byu.net>
97452         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
97453         to avoid 'header present but could not be compiled' on cygwin.
97455 2006-07-05  Eric Blake  <ebb9@byu.net>
97457         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
97458         missing from netdb.h.
97459         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
97461 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97463         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
97464         no longer needed.
97465         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
97466         * m4/getdate.m4 (gl_GETDATE): Likewise.
97467         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97468         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97469         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97470         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97471         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97473 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97475         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
97476         All uses of is_space replaced by isspace.
97477         * lib/exit.h: Don't talk about STDC_HEADERS.
97478         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
97479         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
97480         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
97481         replaced by isprint etc.
97482         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
97483         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
97484         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
97485         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
97486         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
97487         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
97489 2006-07-05  Bruno Haible  <bruno@clisp.org>
97491         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
97492         the function exists, before testing against AIX.
97493         Reported by Martin Lambers <marlam@marlam.de>.
97495 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
97497         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
97498         From Mark D. Baushke.
97500 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
97502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
97503         to the absolute name, not just one, to bypass Sun C 5.8's
97504         "warning: #include of /usr/include/... may be non-portable".
97506 2006-07-04  Eric Blake  <ebb9@byu.net>
97508         * modules/dirname-tests: New test module.
97509         * tests/test-dirname.c: New file, replacing dirname.c
97510         TEST_DIRNAME section that was recently deleted.
97512 2006-07-04  Bruno Haible  <bruno@clisp.org>
97514         Assume ANSI C header files and <ctype.h> functions.
97515         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
97516         (mbsnwidth): Use isprint, iscntrl instead.
97518 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97520         Merge from coreutils.
97521         * MODULES.html.sh: Add xstrtold.
97522         * modules/xstrtold: New file.
97523         * modules/cycle-check (Files): Add lib/same-inode.h.
97524         * modules/dirname (Files): Add m4/double-slash-root.m4.
97525         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
97526         * modules/mkdir-p (Files): Add lib/same-inode.h.
97527         * modules/same (Files): Add lib/same-inode.h.
97529 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97531         * m4/absolute-header.m4: Renamed from full-header-path.m4.
97532         This is to keep the terminology clean; POSIX talks about
97533         "absolute pathnames", not "full pathnames", but the GNU
97534         Coding Standards say to use "path" for something else;
97535         so use "absolute" to keep both sides happy.
97536         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
97537         Set gl_absolute_header, not gl_full_header_path.
97538         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
97539         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
97540         All uses changed.
97542         Merge from coreutils.
97544         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
97546         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
97547         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
97548         want to require the building of c-strtod.o.
97549         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
97550         needs -lm directly.
97551         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
97553         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
97555         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
97556         --as-needed option if available.  Problem reported by Albert Chin in
97557         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
97558         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
97559         cc merely issues a bunch of annoying warnings for --as-needed
97560         (this problem was reported by Bob Proulx).  Also, try linking with
97561         -lm to detect a bug in binutils 2.16 (this problem was reported
97562         by Ralf Wildenhues).
97564         2006-06-18  Jim Meyering  <jim@meyering.net>
97566         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
97567         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
97568         macro.
97569         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
97570         also check for glibc-2.4's abort-inducing bug.
97572         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
97573         Low-probability clean-up should be to use rmdir to get rid of
97574         the just-created directory, not unlink.
97576         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
97577         configure fail, and request a bug report to inform us about it.
97578         Add a comment that, barring reports to the contrary, in 2007 we'll
97579         assume ftruncate is universally available.
97581         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
97583         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
97585         2006-03-12  Jim Meyering  <jim@meyering.net>
97587         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
97588         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
97589         * m4/same.m4 (gl_SAME): Likewise.
97590         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
97592         2006-03-11  Eric Blake  <ebb9@byu.net>
97594         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
97595         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
97596         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
97597         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
97599 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97601         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
97602         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
97603         reported by Mark D. Baushke, one in
97604         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
97606         Merge from coreutils.
97608         * lib/.cppi-disable: Add stdint_.h.
97609         * lib/.cvsignore: Add stdint.h.
97611         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
97613         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
97614         both double and long double versions.
97615         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
97616         * lib/xstrtold.c: New file.
97617         * lib/xstrtod.h (xstrtold): New decl.
97619         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
97621         * lib/filemode.c (setst): Remove.
97622         (strmode): Rewrite to avoid setst.  This makes the code shorter,
97623         (arguably) clearer, and the generated code is a bit smaller on my
97624         Debian GNU/Linux stable x86 host.
97626         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
97628         * lib/filemode.c: Include "filemode.h" first, to test the interface.
97629         Assume that filemode.h includes sys/types.h and sys/stat.h.
97630         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
97631         (ftypelet): Reorder to put common cases first, for efficiency.
97632         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
97633         to do 'M'.
97634         (strmode): Renamed from mode_string, and now stores 12 bytes instead
97635         of 10, for compatibility with FreeBSD.  All callers changed.
97636         (filemodestring): Now stores 12 bytes instead of 10, and sets file
97637         types that can't be deduced solely from st_mode.  First arg is now a
97638         const pointer.
97639         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
97640         (strmode): Renamed from mode_string.
97641         (filemodestring): New decl.
97642         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
97643         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
97644         needed.
97645         (S_ISPORT, S_ISWHT): New macros, if not already defined.
97647         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
97649         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
97650         fsusage.h now does that.  Include fsusage.h first, to test interface.
97651         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
97652         at most one method (the old code could have generated decls that
97653         didn't conform to C89, not that this was ever exercised).
97654         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
97656         2006-03-19  Jim Meyering  <jim@meyering.net>
97658         Work even in a chroot where d_ino values for entries in "/"
97659         don't match the stat.st_ino values for the same names.
97660         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
97661         number, iterate through all entries again, using lstat instead.
97662         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
97663         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
97665         * lib/getcwd.c (__getcwd): Clarify a comment.
97666         Use memcpy in place of a call to strcpy.
97668         2006-03-12  Jim Meyering  <jim@meyering.net>
97670         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
97671         matches that of the current directory (which we're about to chdir ".."
97672         out of), then save the dev-ino of the parent, instead.
97674         * lib/same-inode.h (SAME_INODE): New file/macro.
97675         * lib/chdir-safer.c (SAME_INODE): Remove definition.
97676         Include "same-inode.h", instead.
97677         * lib/same.c: Likewise.
97678         * lib/cycle-check.h: Include "same-inode.h".
97679         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
97680         * lib/cycle-check.c (SAME_INODE): Remove definition.
97681         * lib/root-dev-ino.h: Include "same-inode.h".
97683         2006-03-11  Eric Blake  <ebb9@byu.net>
97685         * lib/same.c (same_name): s/base_name/last_component/
97686         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
97687         * lib/filenamecat.c (file_name_concat): Likewise.
97689         2006-03-11  Eric Blake  <ebb9@byu.net>,
97690                     Paul Eggert  <eggert@cs.ucla.edu>
97692         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
97693         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
97694         drive prefix.
97695         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
97696         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
97697         (last_component): New method.
97698         * lib/dirname.c (dir_len): Determine when drive letters need a
97699         subsequent slash.  Preserve // when it is special.
97700         (dir_name): Don't append dot when drive letter is absolute.
97701         [TEST_DIRNAME]: Move into a full-blown gnulib test.
97702         * lib/basename.c (base_name): New semantics - malloc the result.
97703         Preserve // when it is special.  Preserve relative files that look
97704         like drive letters.
97705         (base_len): Preserve // when it is special.
97706         (last_component): New method, similar to old base_name semantics.
97707         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
97708         base_name.  Strip redundant slashes from ///.
97710 2006-07-03  Jim Meyering  <jim@meyering.net>
97712         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
97713         macro is used before the first cycle_check call.
97715 2006-07-03  Eric Blake  <ebb9@byu.net>
97717         * modules/dirname (Depends-on): Add xstrndup.
97719 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97721         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
97722         test cases, so that config.log is a bit easier to follow.
97724 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97726         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
97727         both are 64 bits, since this seems to be the tradition, and this
97728         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
97729         we ever run into a host that prefers long long to long in this
97730         case, we'll need another configure-time test.  Problem reported by
97731         Jim Meyering.
97733 2006-07-02  Eric Blake  <ebb9@byu.net>
97735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
97737 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97739         * modules/inttypes (Depends-on): No longer depends on stdint.
97740         * modules/stdint (Description): Say more about assumptions.
97741         Say that the fast types might differ.  Say macros are used.
97742         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
97743         (Makefile.am): Revise list of substituted symbols to match
97744         new stdint.m4.
97745         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
97746         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
97747         * tests/test-stdint.c (verify_same_types)
97748         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
97749         the code conforms to C99/C89.
97750         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
97751         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
97753 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97755         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
97756         but fix a bug, by requiring at least 64 bits.
97757         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
97758         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
97759         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
97760         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97762         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
97763         changes.  Make 2.59 a prerequisite.  Check and substitute for
97764         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
97765         inttypes.h.  Do not use special include files; just use the
97766         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
97767         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
97768         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
97769         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
97770         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
97771         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
97772         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
97773         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
97774         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
97775         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
97776         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
97777         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
97778         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
97779         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
97780         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
97781         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
97782         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
97783         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
97784         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
97785         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
97786         WINT_MAX.  Check for C99 conformance more strictly, by detecting
97787         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
97788         not check for things that C99 does not require, e.g., int8_t.  If
97789         a test isn't needed unless <stdint.h> isn't working, and is
97790         unlikely to be needed for any other reason, then don't do it
97791         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
97792         size_t, since we assume C89 freestanding at least.  Do not check
97793         for sig_atomic_t, wchar_t, or wint_t, since the code now does
97794         the right thing even if the types are not defined.  Instead use:
97795         (gl_STDINT_TYPE_PROPERTIES): New macro.
97796         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
97797         testing whether <sys/types.h> clashes, as Autoconf does this for
97798         us now.  All uses removed.
97799         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
97800         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
97801         (gl_CHECK_TYPE_SAME):
97802         Remove; no longer needed.
97803         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
97804         exists, since we'll return 0 anyway in that case.
97805         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
97807 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97809         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
97810         possible collision with system files.
97811         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
97812         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
97813         WCHAR_MIN and WCHAR_MAX in this case.
97814         (<stddef.h>): Do not include; no longer needed.
97815         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
97816         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
97817         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
97818         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
97819         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
97820         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
97821         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
97822         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
97823         !defined(__c99))]: Include in this case too, since it's harmless
97824         now.
97825         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
97826         dangerous to do so.
97827         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
97828         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
97829         (_STDINT_MIN, _STDINT_MAX): New macros.
97830         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
97831         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
97832         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
97833         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
97834         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
97835         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
97836         macros, not typedefs; this simplifies things quite a bit.
97837         Use long int for all types narrower than int64_t.
97838         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
97839         Define in terms of long long int or int64_t or long int,
97840         not int64_t or int32_t.  This saves some compile-time testing.
97841         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
97842         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
97843         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
97844         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
97845         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
97846         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
97847         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
97848         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
97849         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
97850         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
97851         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
97852         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
97853         undef any previous version and define our own version, for
97854         simplicity and consistency with the new macros for types.
97855         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
97856         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
97857         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
97858         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
97859         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
97860         @WINT_T_SUFFIX@ to keep things simple here.
97861         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
97862         Simplify by assuming typical 8/16/32/64 host, since we're
97863         already doing that elsewhere anyway.
97864         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
97865         and assume long long int is 64 bits if available.  This
97866         speeds up 'configure'.
97868 2006-07-01  Eric Blake  <ebb9@byu.net>
97870         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
97871         Reported by Andreas Buening.
97873 2006-07-01  Eric Blake  <ebb9@byu.net>
97875         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
97877 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
97879         * lib/getaddrinfo.c: fixed typo
97881 2006-06-29  Jim Meyering  <jim@meyering.net>
97883         * modules/strftime (Maintainer): Add my name, since with the
97884         FPRINTFTIME changes strftime.c has forked from glibc.
97886 2006-06-29  Eric Blake  <ebb9@byu.net>
97888         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
97890 2006-06-29  Eric Blake  <ebb9@byu.net>
97892         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
97894 2006-06-29  Eric Blake  <ebb9@byu.net>
97896         * lib/stat_.h: New file.
97898 2006-06-29  Eric Blake  <ebb9@byu.net>
97900         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
97901         unused static function.
97903 2006-06-29  Eric Blake  <ebb9@byu.net>
97905         * doc/functions.texi (Function Portability): Document missing lstat
97906         on mingw.
97908 2006-06-29  Eric Blake  <ebb9@byu.net>
97910         * MODULES.html.sh: Add sys_stat.
97911         * modules/sys_stat: New module.
97912         * modules/mkstemp (Depends-on): Add sys_stat.
97914 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97916         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
97918 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97920         * m4/c-bs-a.m4: Removed.
97922 2006-06-29  Derek R. Price  <derek@ximbiot.com>
97924         * lib/strftime.c: Assume strftime() exists.
97926 2006-06-29  Derek Price  <derek@ximbiot.com>
97928         * modules/c-bs-a: Removed - \a is C89.
97929         * MODULES.html.sh: Remove c-bs-a.
97931 2006-06-29  Bruno Haible  <bruno@clisp.org>
97933         * modules/wcwidth (License): Change to LGPL.
97935 2006-06-28  Simon Josefsson  <jas@extundo.com>
97937         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
97938         on _WIN32.
97940         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
97941         getnameinfo.
97943 2006-06-28  Simon Josefsson  <jas@extundo.com>
97945         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
97947 2006-06-28  Simon Josefsson  <jas@extundo.com>
97949         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
97950         functions there.  It will succeed on Windows XP, but on Windows
97951         2000 and (presumably) earlier, it will fail, and use the internal
97952         re-implementation.
97953         (use_win32_p): New function.
97954         (getaddrinfo): Use strtoul on servname, to support numeric ports.
97955         Support AI_NUMERICSERV to disable getservbyname.
97956         (getnameinfo): New function, only supports
97957         NI_NUMERICHOST|NI_NUMERICSERV for now.
97959         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
97960         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
97961         getnameinfo.
97963 2006-06-28  Eric Blake  <ebb9@byu.net>
97965         * modules/wcwidth: New file.
97966         * modules/mbchar (Depends-on): Add wcwidth.
97967         * modules/mbswidth (Depends-on): Add wcwidth.
97968         * MODULES.html.sh: Add wcwidth.
97970 2006-06-28  Eric Blake  <ebb9@byu.net>
97972         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
97973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
97975 2006-06-28  Eric Blake  <ebb9@byu.net>
97977         * lib/xvasprintf.h: Fix comments.
97979 2006-06-28  Eric Blake  <ebb9@byu.net>
97981         * lib/mbchar.h (wcwidth): Include wcwidth.h.
97982         * lib/mbswidth.c (wcwidth): Move from here...
97983         * lib/wcwidth.h: ...to this new file.
97985 2006-06-28  Derek R. Price  <derek@ximbiot.com>
97987         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
97989         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
97990         it's obsolete.
97991         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
97993 2006-06-28  Derek R. Price  <derek@ximbiot.com>
97995         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
97996         Autoconf 2.60 says this stuff was obsolete.
97998 2006-06-28  Bruno Haible  <bruno@clisp.org>
98000         * modules/wcwidth (Files): Add m4/wchar_t.m4.
98002 2006-06-28  Bruno Haible  <bruno@clisp.org>
98004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
98005         gt_TYPE_WCHAR_T.
98007 2006-06-28  Bruno Haible  <bruno@clisp.org>
98009         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
98010         declaration for wcwidth.
98011         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
98013 2006-06-28  Bruno Haible  <bruno@clisp.org>
98015         * lib/mkdtemp.c [MINGW]: Include <io.h>.
98016         (mkdir): Define using _mkdir.
98018 2006-06-28  Bruno Haible  <bruno@clisp.org>
98020         * lib/getaddrinfo.h: Fix POSIX URL.
98021         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
98022         _WIN32.
98023         (use_win32_p): Make static.
98024         (getaddrinfo): Reject service name if it is empty or does not consist
98025         solely of decimal digits, or if its value is > 65535.
98026         (getnameinfo): Remove useless casts.
98028 2006-06-27  Simon Josefsson  <jas@extundo.com>
98030         * modules/sys_select: New file, suggested by Bruno Haible, Paul
98031         Eggert and Martin Lambers.
98033 2006-06-27  Simon Josefsson  <jas@extundo.com>
98035         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
98036         Eggert and Martin Lambers.
98038 2006-06-27  Bruno Haible  <bruno@clisp.org>
98040         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
98041         result to 0, not to empty.
98042         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
98044 2006-06-27  Bruno Haible  <bruno@clisp.org>
98046         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
98048 2006-06-26  Simon Josefsson  <jas@extundo.com>
98050         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
98051         present.
98053 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
98055         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
98056         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
98057         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
98059 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
98061         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
98063 2006-06-26  Bruno Haible  <bruno@clisp.org>
98065         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
98067 2006-06-26  Bruno Haible  <bruno@clisp.org>
98069         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
98071 2006-06-26  Bruno Haible  <bruno@clisp.org>
98073         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
98074         SGI C compiler in pre-C99 mode.
98075         Suggested by Mark D. Baushke and Larry Jones.
98077 2006-06-26  Bruno Haible  <bruno@clisp.org>
98079         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
98080         WCHAR_MAX.
98081         Reported by Mark D. Baushke and Larry Jones.
98083 2006-06-26  Bruno Haible  <bruno@clisp.org>
98085         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
98086         in pre-C99 mode.
98087         Suggested by Mark D. Baushke and Larry Jones.
98089 2006-06-23  Simon Josefsson  <jas@extundo.com>
98090             Bruno Haible  <bruno@clisp.org>
98092         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
98093         Emit mostlyclean-local rule.
98094         (func_emit_tests_Makefile_am): Likewise.
98095         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
98097 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
98099         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
98101 2006-06-23  Bruno Haible  <bruno@clisp.org>
98103         * tests/test-stdint.c: Update to match ISO C 99 Technical
98104         Corrigendum 1.
98106 2006-06-23  Bruno Haible  <bruno@clisp.org>
98108         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
98110 2006-06-23  Bruno Haible  <bruno@clisp.org>
98112         * lib/stdint_.h: Treat IRIX like OpenBSD.
98114 2006-06-23  Bruno Haible  <bruno@clisp.org>
98116         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
98117         ISO C 99 Technical Corrigendum 1.
98119 2006-06-22  Simon Josefsson  <jas@extundo.com>
98121         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
98122         MinGW.
98124 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
98126         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
98127         needed.  Some compiler complained about some of them.  Problem reported
98128         by Larry Jones in
98129         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
98131 2006-06-21  Simon Josefsson  <jas@extundo.com>
98133         * tests/test-getaddrinfo.c: New file.
98135         * modules/getaddrinfo-tests: New file.
98137         * MODULES.html.sh: Add inet_pton.
98139         * modules/inet_pton: New file.
98141 2006-06-21  Simon Josefsson  <jas@extundo.com>
98143         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
98144         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
98145         of using the (limited) gnulib implementation on Windows XP.
98147         * m4/inet_pton.m4: New file.
98149 2006-06-21  Simon Josefsson  <jas@extundo.com>
98151         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
98152         variable.
98154         * lib/socket_.h: Don't define WINVER.
98156         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
98157         slightly modified to work in gnulib.
98159 2006-06-21  Simon Josefsson  <jas@extundo.com>
98161         * doc/gnulib.texi (Windows sockets): Add.
98163 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
98165         * lib/read-file.c (fread_file): Start with buffer allocation of
98166         0 bytes rather than 1 byte; this simplifies the code.
98167         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
98168         code to free buffer and save/restore errno.
98169         (internal_read_file): Remove unused local.
98171 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
98173         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
98174         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
98175         Problem reported by Denis Excoffier in
98176         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
98178 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98180         * modules/sys_socket, modules/socklen: Include sys/types since
98181         FreeBSD 4.x's sys/socket.h needs it.
98183 2006-06-19  Simon Josefsson  <jas@extundo.com>
98185         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
98187 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
98189         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
98191 2006-06-19  Bruno Haible  <bruno@clisp.org>
98193         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
98194         and FULL_PATH_INTTYPES_H in angle brackets.
98195         Reported by Mark D. Baushke <mdb@gnu.org>.
98197 2006-06-17  Eric Blake  <ebb9@byu.net>
98199         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
98200         errno.
98202 2006-06-17  Bruno Haible  <bruno@clisp.org>
98204         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
98205         <sys/inttypes.h>.
98207 2006-06-17  Bruno Haible  <bruno@clisp.org>
98209         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
98210         whether errno is declared. Assume <errno.h> declares errno.
98212 2006-06-17  Bruno Haible  <bruno@clisp.org>
98214         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
98216 2006-06-17  Bruno Haible  <bruno@clisp.org>
98218         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
98219         problem on Solaris 2.5.1.
98221 2006-06-16  Eric Blake  <ebb9@byu.net>
98223         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
98224         * lib/unicodeio.c [!defined errno]: Likewise.
98225         * lib/strtol.c [!defined errno]: Likewise.
98226         * lib/strtod.c [!defined errno]: Likewise.
98228 2006-06-15  Eric Blake  <ebb9@byu.net>
98230         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
98232 2006-06-15  Eric Blake  <ebb9@byu.net>
98234         * config/srclist.txt (ssize_t.m4): Lose sync.
98236 2006-06-15  Bruno Haible  <bruno@clisp.org>
98238         * modules/stdint (Files): Include m4/full-header-path.m4,
98239         m4/size_max.m4, m4/wchar_t.m4.
98240         (Makefile.am): Many more substitutions.
98241         * modules/stdint-tests: New file.
98242         * tests/test-stdint.c: New file.
98244 2006-06-15  Bruno Haible  <bruno@clisp.org>
98246         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
98247         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
98248         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
98249         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
98250         gl_CHECK_TYPE_SAME): New macros.
98252 2006-06-15  Bruno Haible  <bruno@clisp.org>
98254         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
98256 2006-06-15  Bruno Haible  <bruno@clisp.org>
98258         * lib/stdint_.h: Rewritten to be fully auto-configured.
98259         Fixes bug on HP-UX/IA64.
98261 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
98263         * lib/getdate.y (__attribute__): Don't define if already defined.
98264         Problem reported by Larry Jones.
98265         * lib/utimens.c (__attribute__): Likewise.
98267 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
98269         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
98270         reported by Andreas Schwab.
98272 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98273             Bruno Haible  <bruno@clisp.org>
98275         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
98276         check for the declaration of strnlen and a run test that exposes the
98277         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
98278         rpl_strndup.
98280 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98281             Bruno Haible  <bruno@clisp.org>
98283         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
98285 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98287         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
98288         compile test, for Tru64 4.0D.
98290 2006-05-28  Karl Berry  <karl@gnu.org>
98292         * config/srclist.txt (printf-args.c): lose sync.
98294 2006-05-26  Martin Lambers  <marlam@marlam.de>
98296         * lib/getpass.c: Updates the test for the native W32 API, and adds
98297         missing includes, thus fixing compilation warnings.
98299 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
98301         * lib/exclude.c (exclude_fnmatch): New function.
98302         (excluded_file_name): Call exclude_fnmatch.
98303         * lib/exclude.h (excluded_file_name): New prototype
98305 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
98307         * lib/tempname.c (small_open, large_open): New macros.
98308         (__open, __open64) [!_LIBC]: Remove.
98309         (__gen_tempname): Use small_open and large_open instead of __open
98310         and __open64.  This fixes a portability bug on HP-UX 11.11i
98311         reported by Simon Wing-Tang in
98312         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
98314 2006-05-24  Bruno Haible  <bruno@clisp.org>
98316         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
98317         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
98318         Reported by Thorsten Maerz <torte@netztorte.de> via
98319         Aaron Stone <aaron@serendipity.cx>.
98321 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
98324         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
98325         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
98326         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
98327         not really conditional on the cache.
98328         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
98330 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98332         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
98333         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
98334         (my_usleep): Don't mishandle maximum value.
98336 2006-05-19  Jim Meyering  <jim@meyering.net>
98338         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
98340 2006-05-17  Bruno Haible  <bruno@clisp.org>
98342         Cygwin portability.
98343         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
98345 2006-05-17  Bruno Haible  <bruno@clisp.org>
98347         * lib/stdint_.h: Fix recognition of Cygwin.
98349 2006-05-15  Bruno Haible  <bruno@clisp.org>
98351         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
98352         on libtool patch by Ralf Wildenhues.
98354 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98356         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
98357         test for C99 conformance; (bool) 0.5 is an integer constant
98358         expression, but (bool) -0.5 is not.  Problem reported by Fedor
98359         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
98361 2006-05-11  Simon Josefsson  <jas@extundo.com>
98363         * m4/xvasprintf.m4: Fix obvious typo.
98365 2006-05-11  Jim Meyering  <jim@meyering.net>
98367         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
98368         James Lemley.
98370 2006-05-10  Simon Josefsson  <jas@extundo.com>
98372         * lib/md4.c: Typo fix, update copyright years.
98373         (K1, K2): Don't use L because it turn computations into 64-bit on
98374         64-bit platforms.
98376 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
98378         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
98379         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
98380         unwanted sign propagation, e.g., on hosts with 64-bit int.
98381         There still are some problems with reeelly weird theoretical hosts
98382         (e.g., 33-bit int) but it's not worth worrying about now.
98383         * lib/sha1.c (rol): Likewise.
98384         (K1, K2, K3, K4): Remove unnecessary L suffix.
98386 2006-05-10  Bruno Haible  <bruno@clisp.org>
98388         * lib/des.c: Cast to avoid warnings.
98390 2006-05-09  Bruno Haible  <bruno@clisp.org>
98392         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
98393         (Depends-on): Depend also on xsize, stdarg.
98394         (configure.ac): Add gl_XVASPRINTF.
98396 2006-05-09  Bruno Haible  <bruno@clisp.org>
98398         * m4/xvasprintf.m4: New file.
98400 2006-05-09  Bruno Haible  <bruno@clisp.org>
98402         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
98403         (EOVERFLOW): Define fallback value.
98404         (xstrcat): New function.
98405         (xvasprintf): Recognize the special case of a string concatenation.
98407 2006-05-08  Eric Blake  <ebb9@byu.net>
98409         * gnulib-tool (func_version): Base copyright year on CVS date.
98410         (func_emit_copyright_notice): New function.
98411         (func_emit_lib_Makefile_am): Use it.
98412         (func_emit_tests_Makefile_am): Likewise.
98413         (func_import): Likewise.
98415 2006-05-08  Bruno Haible  <bruno@clisp.org>
98417         * modules/stdarg: New file.
98418         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
98420 2006-05-08  Bruno Haible  <bruno@clisp.org>
98422         * m4/stdarg.m4: New file, from GNU gettext.
98424 2006-05-08  Bruno Haible  <bruno@clisp.org>
98426         * config/srclist.txt (build-aux/config.rpath): different from latest
98427         release.
98429 2006-05-08  Bruno Haible  <bruno@clisp.org>
98431         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
98433 2006-05-05  Jim Meyering  <jim@meyering.net>
98435         * m4/warning.m4: New file, derived from bison's file by the same name.
98437 2006-05-03  Bruno Haible  <bruno@clisp.org>
98439         * lib/stdint_.h: Shorter URL.
98440         * lib/inttypes.h: Likewise.
98442 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98444         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
98446 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98448         * lib/verify.h: Document the internals better.  Most of this change
98449         was written by Bruno Haible.
98451 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98453         * doc/verify.texi: New file, partly based on a proposal by
98454         Bruno Haible.
98456 2006-05-02  Bruno Haible  <bruno@clisp.org>
98458         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
98459         test from here...
98460         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
98462 2006-04-29  Bruno Haible  <bruno@clisp.org>
98464         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
98465         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
98467 2006-04-29  Bruno Haible  <bruno@clisp.org>
98469         * gnulib-tool: Make --update option actually work.
98471 2006-04-29  Bruno Haible  <bruno@clisp.org>
98473         * doc/gcd.texi: New file.
98474         * doc/gnulib.texi: Include it.
98476 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
98478         * lib/getdate.y (get_date): When adding relative date, start with the
98479         initial time, not with the result of the first mktime call.
98481 2006-04-25  Bruno Haible  <bruno@clisp.org>
98483         * gnulib-tool (func_import): Output the include directives in three
98484         blocks, sorted separately.
98485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98487 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
98489         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
98490         to define main with arguments, for C++.  Reported by Eric Blake.
98491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
98492         Prefer 'int main ()' to 'int main (void)', for C++.
98493         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
98494         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
98495         for 'main', for C99 and C++.
98497 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
98499         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
98500         Don't assume that exit status -1 is valid.
98501         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
98502         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
98503         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
98504         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
98505         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
98506         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
98507         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
98508         functions can be used without declaring them, or that you can
98509         exit with status -1.
98510         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
98512 2006-04-24  Karl Berry  <karl@gnu.org>
98514         * config/srclist.txt (longdouble.m4): sync lost.
98516 2006-04-24  Eric Blake  <ebb9@byu.net>
98518         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
98520 2006-04-24  Bruno Haible  <bruno@clisp.org>
98522         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
98523         poll() implementation in AIX.
98524         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98526 2006-04-24  Bruno Haible  <bruno@clisp.org>
98528         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
98529         assigned exactly once.
98531 2006-04-23  Claudio Fontana  <claudio@gnu.org>
98532             Bruno Haible  <bruno@clisp.org>
98534         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
98535         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
98536         for AM_CPPFLAGS.
98538 2006-04-23  Bruno Haible  <bruno@clisp.org>
98540         * modules/copy-file: Depend on unistd.
98541         * modules/execute: Likewise.
98542         * modules/fatal-signal: Likewise.
98543         * modules/findprog: Likewise.
98544         * modules/mkdtemp : Likewise.
98545         * modules/pipe: Likewise.
98546         * modules/wait-process: Likewise.
98548 2006-04-23  Bruno Haible  <bruno@clisp.org>
98550         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
98551         condition was already detected.
98552         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98554 2006-04-23  Bruno Haible  <bruno@clisp.org>
98556         * lib/copy-file.c: Include <unistd.h> unconditionally.
98557         * lib/execute.c: Likewise.
98558         * lib/fatal-signal.c: Likewise.
98559         * lib/findprog.c: Likewise.
98560         * lib/mkdtemp.c: Likewise.
98561         * lib/pipe.h: Likewise.
98562         * lib/pipe.c: Likewise.
98563         * lib/wait-process.h: Likewise.
98565 2006-04-23  Bruno Haible  <bruno@clisp.org>
98567         * gnulib-tool (func_usage): Fix --import description. Document
98568         --update.
98569         (func_import): Create temporary file in a temporary directory, if
98570         --dry-run is specified. Silence errors from 'grep' when there are no
98571         m4 files in $m4dir.
98572         (func_create_testdir): Silence errors from 'grep' when there are no
98573         m4 files in $m4dir.
98574         Reported by Karl Berry <karl@freefriends.org>.
98576 2006-04-20  Bruno Haible  <bruno@clisp.org>
98578         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
98579         one argument, so that the code will be portable to Autoconf 2.60.
98580         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
98581         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
98582         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
98584 2006-04-19  Derek Price  <derek@ximbiot.com>
98585             Eric Blake  <ebb9@byu.net>
98587         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
98588         rather than "/full/path.h".  Update comment to match.  Shorten &
98589         generalize m4_translit call via AS_TR_CPP.
98591 2006-04-19  Derek Price  <derek@ximbiot.com>
98592             Eric Blake  <ebb9@byu.net>
98594         * lib/inttypes.h: Correct grammar in comment.
98596 2006-04-18  Derek Price  <derek@ximbiot.com>
98597             Paul Eggert  <eggert@cs.ucla.edu>
98599         * modules/inttypes: New file.
98600         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
98602 2006-04-18  Derek Price  <derek@ximbiot.com>
98603             Paul Eggert  <eggert@cs.ucla.edu>
98605         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
98606         New files.
98608 2006-04-18  Derek Price  <derek@ximbiot.com>
98609             Paul Eggert  <eggert@cs.ucla.edu>
98611         * lib/inttypes.h: New file.
98612         * lib/strtoimax.c: Assume <inttypes.h>.
98614 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
98616         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
98617         isn't mounted.  Problem reported by Kir Kolyshkin.
98619 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
98621         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
98622         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
98623         Derek R. Price.
98624         * lib/regex.h (RE_DUP_MAX): Update comment to match current
98625         implementation.
98627 2006-04-12  Eric Blake  <ebb9@byu.net>
98629         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
98630         is now done automatically by the corresponding Autoconf macro.
98632 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
98634         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
98635         time_r.h.
98637 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98639         Merge regex changes from libc, removing some of our
98640         POSIX-conformance changes that were rejected and redoing them in a
98641         less-intrusive way.
98643         * lib/regcomp.c (re_compile_internal, init_dfa):
98644         Length arg is now size_t, not Idx.  All uses changed.
98645         (peek_token): Forward decl now says internal_function.
98646         (__re_error_msgid, __re_error_msgid_idx):
98647         Now static rather than extern with attribute_hidden.
98648         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
98649         For some reason libc prefers K&R style defns for external functions.
98650         (regerror) [!defined _LIBC]: Likewise.
98651         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
98652         (seek_collating_symbol_entry, lookup_collation_sequence_value):
98653         (build_range_exp, build_collating_symbol):
98654         Use K&R-style defn.
98655         (re_compile_fastmap): Use '\0' to memset, not 0.
98656         (utf8_sb_map): Make the calculations more obvious.
98657         (init_dfa, parse_bracket_exp, build_charclass_op):
98658         Call calloc and cast result, as glibc does.
98659         (init_word_char, fetch_token, peek_token, peek_token_bracket):
98660         (build_range_exp, build_collating_symbol):
98661         Now internal functions.
98663         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
98665         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
98666         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
98667         Don't depend on VMS; depend on __VMS instead, for POSIX
98668         namespace cleanness.
98669         (regoff_t): Define to ssize_t, not long int.
98671         Remove the REG_ macros named below.  Instead, make the old names
98672         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
98673         __USE_GNU_REGEX.
98674         (REG_BACKSLASH_ESCAPE_IN_LISTS):
98675         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
98676         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
98677         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
98678         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
98679         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
98680         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
98681         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
98682         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
98683         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
98684         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
98685         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
98686         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
98687         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
98688         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
98689         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
98690         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
98691         (REG_NREGS):
98692         Remove.  All uses replaced by the old RE_* names.
98693         (RE_BACKSLASH_ESCAPE_IN_LISTS):
98694         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
98695         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
98696         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
98697         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
98698         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
98699         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
98700         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
98701         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
98702         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
98703         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
98704         Don't bother having these macros be independent of each others'
98705         values, since they no longer exist in the POSIX name space.
98707         Rename the following member names back to their old names,
98708         unless !__USE_GNU_REGEX.  All uses changed back.
98709         (buffer): Renamed from re_buffer.
98710         (allocated): Renamed from re_allocated.
98711         (used): Renamed from re_used.
98712         (syntax): Renamed from re_syntax.
98713         (fastmap): Renamed from re_fastmap.
98714         (translate): Renamed from re_translate.
98715         (can_be_null): Renamed from re_can_be_null.
98716         (regs_allocated): Renamed from re_regs_allocated.
98717         (fastmap_accurate): Renamed from re_fastmap_accurate.
98718         (no_sub): Renamed from re_no_sub.
98719         (not_bol): Renamed from re_not_bol.
98720         (not_eol): Renamed from re_not_eol.
98721         (newline_anchor): Renamed from re_newline_anchor.
98722         (num_regs): Renamed from rm_num_regs.
98723         (start): Renamed from rm_start.
98724         (end): Renamed from rm_end.
98726         (free_state): Move up a bit.
98728         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
98729         #define to be empty.
98730         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
98731         when that is what is intended.
98732         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
98733         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
98734         (MAX): New macro.
98735         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
98736         All uses changed back to re_malloc, etc.  It's now the caller's
98737         responsibility to check for overflow; all callers changed.
98738         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
98739         (re_x2nrealloc): Remove.
98740         (free_state): Remove decl.
98742         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
98743         (re_set_registers, re_exec):
98744         Use K&R-style defn.
98746         2006-01-31  Roland McGrath  <roland@redhat.com>
98748         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
98749         Reported by Mike Frysinger <vapier@gentoo.org>.
98751         2006-01-15  Andreas Jaeger  <aj@suse.de>
98753         [BZ #1950]
98754         * lib/regex_internal.c (re_string_reconstruct): Adjust for
98755         build_wcs_upper_buffer change.
98756         (build_wcs_upper_buffer): Change return type.
98758         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
98760         * lib/regex_internal.h: Include <stdint.h> if available.
98762         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
98764         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
98766         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
98768         * lib/regcomp.c: Adjust for changed secondary hash function.
98770         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
98772         * lib/regex.h: Pretty printing.
98773         Clean up namespace a bit.
98775         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
98777         * lib/regexec.c (update_cur_sifted_state, check_arrival,
98778         check_arrival_add_next_nodes): Avoid using uninitialized variable.
98780         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98781                     Ulrich Drepper  <drepper@redhat.com>
98783         [BZ #1302]
98784         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
98785         changed.
98786         (bitset_word_t): Renamed from bitset_word.  All uses changed.
98788         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
98790         [BZ #281]
98791         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
98792         * lib/regcomp.c: Remove unnecessary uses of
98793         unsigned RE_TRANSLATE_TYPE.
98794         * lib/regex_internal.h: Likewise.
98795         * lib/regex_internal.c: Likewise.
98796         * lib/regexec.c: Likewise.
98797         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
98799         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
98801         * lib/regexec.c (find_recover_state): Remove unnecessary
98802         initialization.
98803         (transit_state_bkref): Make DFA a const pointer.
98804         (get_subexp): Likewise.
98805         (check_arrival): Likewise.
98806         (update_cur_sifted_state): Likewise.
98807         (re_search_internal): Likewise.
98808         (prune_impossible_nodes): Likewise.
98809         (acquire_init_state_context): Likewise.
98810         (proceed_next_node): Likewise.
98811         (set_regs): Likewise.
98812         (free_fail_stack_return): Likewise.
98813         (check_arrival_expand_ecl): Mark DFA parameter as const.
98814         (check_arrival_expand_ecl_sub): Likewise.
98815         (check_subexp_limits): Likewise.
98816         (sub_epsilon_src_nodes):  Likewise.
98817         (add_epsilon_src_nodes):  Likewise.
98818         (merge_state_array): Likewise.
98819         (update_regs): Likewise.
98820         (build_trtable): Likewise.
98821         (sift_states_backward): Mark MCTX parameter as const.
98822         (build_sifted_states): Likewise.
98823         (update_cur_sifted_state): Likewise.
98824         (sift_states_mkref): Likewise.
98825         (check_arrival_expand_ecl): Mark eclosure as const.
98826         (check_dst_limits_calc_pos_1): Likewise.
98827         * lib/regex_internal.h (re_match_context_t): Make dfa a const
98828         pointer.
98830         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
98832         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
98833         (transit_state_sb): Likewise.
98834         (transit_state_mb): Likewise.
98835         (sift_states_iter_mb): Likewise.
98836         (check_arrival_add_next_nodes): Likewise.
98837         (check_node_accept_bytes): Change first parameter to pointer-to-const.
98838         [_LIBC] (re_search_2_stub): Use mempcpy.
98840         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
98841         mbrtowc for very simple UTF-8 case.
98843         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
98844         a pointer-to-const.
98845         (re_acquire_state_context): Likewise.
98846         * lib/regex_internal.h: Adjust prototypes.
98848         * lib/regex.c: Prevent using C++ compilers.
98850         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
98851         (re_acquire_state_context): Likewise.
98853 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98855         * modules/regex (Depends-on): Add ssize_t.
98857 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98859         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
98860         translation table.
98862 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98864         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
98866 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
98867             Bruno Haible  <bruno@clisp.org>
98869         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
98870         <sys/types.h> and <inttypes.h>.
98872 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98874         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
98875         `__error_t_defined', so argp.h will not typedef the former.
98877 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
98879         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
98880         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
98881         glibc names.  Even if glibc is changed to conform to POSIX, the
98882         traditional names will be available anyway, since regex depends on
98883         the extensions module.  Also, fix a longstanding typo in the
98884         implementation of Spencer ERE test #75 from grep 2.3.  Problems
98885         reported by Emanuele Giaquinta.  Also, change sense of cached
98886         variable, so that the message makes sense.
98888 2006-03-24  Simon Josefsson  <jas@extundo.com>
98890         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
98891         including some doc fixes.
98892         (base64_encode_alloc): Fix +1 bug on allocation failures.
98894 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98896         * lib/base64.c (base64_encode): Do not read past end of array with
98897         unsanitized input on systems with CHAR_BIT > 8.
98899 2006-03-24  Eric Blake  <ebb9@byu.net>
98901         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
98903 2006-03-22  Karl Berry  <karl@gnu.org>
98905         * config/srclist.txt (*setenv.[ch]): get from coreutils.
98906         * config/srclistvars.sh (COREUTILS): new var.
98908 2006-03-17  Jim Meyering  <jim@meyering.net>
98910         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
98911         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
98913 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
98915         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
98916         no longer needs it.  Instead, check that regoff_t is as least
98917         as wide as ptrdiff_t.
98919         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
98920         so that our regex.h stays compatible with the installed regex.
98921         This is helpful for installers who configure --without-included-regex.
98922         Problem reported by Emanuele Giaquinta.
98924 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
98926         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
98927         Typedef to long int, not to off_, as POSIX will likely change
98928         in that direction.
98930 2006-03-15  Eric Blake  <ebb9@byu.net>
98932         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
98934 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
98936         * lib/argp-help.c (validate_uparams): Fix typo
98937         * lib/argp-parse.c (argp_default_options): Consistently begin help
98938         messages with a lowercase letter.
98940 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
98942         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
98943         overrun buffers and shouldn't be used (much as gets shouldn't be
98944         used).
98945         * lib/time_r.c (asctime_r, ctime_r): Likewise.
98947 2006-03-08  Simon Josefsson  <jas@extundo.com>
98949         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
98950         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98952 2006-03-08  Simon Josefsson  <jas@extundo.com>
98954         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
98955         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98957 2006-03-08  Simon Josefsson  <jas@extundo.com>
98959         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
98960         signal that configure disabled the device.
98962 2006-03-08  Simon Josefsson  <jas@extundo.com>
98964         * build-aux/maint.mk: Fix refresh-po, to handle no translated
98965         languages.
98967 2006-03-07  Simon Josefsson  <jas@extundo.com>
98969         * modules/getopt (Depends-on): Add unistd.
98971         * modules/unistd: New file.
98973 2006-03-07  Simon Josefsson  <jas@extundo.com>
98975         * modules/gc-random: New file.
98977 2006-03-07  Simon Josefsson  <jas@extundo.com>
98979         * m4/unistd_h.m4: New file.
98981 2006-03-07  Simon Josefsson  <jas@extundo.com>
98983         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
98984         test to be side-effect free by storing the result in the cache
98985         variable gl_cv_lib_readline, and moving the assignment of
98986         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
98987         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98989 2006-03-07  Simon Josefsson  <jas@extundo.com>
98991         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
98992         error on missing devices (the functions will return an error).
98994         * m4/gc.m4: Move random stuff to gc-random.m4
98996 2006-03-07  Simon Josefsson  <jas@extundo.com>
98998         * lib/unistd_.h: New file.
99000 2006-03-07  Simon Josefsson  <jas@extundo.com>
99002         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
99004 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99006         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
99007         Problem reported by Juan Manuel Guerrero.
99009 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99011         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
99012         the unistd module.
99013         * lib/getlogin_r.c: Likewise.
99014         * lib/getlogin_r.h: Likewise.
99015         * lib/glob.c: Likewise.
99016         * lib/pagealign_alloc.c: Likewise.
99017         * lib/unistd_.h: Remove; no longer needed.
99019 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99021         * MODULES.html.sh (Support for systems lacking POSIX:2001):
99022         Add unistd.
99023         * modules/c-stack (Depends-on): Add unistd.
99024         * modules/getlogin_r: Likewise.
99025         * modules/glob: Likewise.
99026         * modules/pagealign_alloc: Likewise.
99027         * modules/unistd (Files): Remove lib/unistd_.h.
99028         (EXTRA_DIST): Remove.
99029         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
99030         need unistd_.h.
99031         (MOSTLYCLEANFILES): Remove unistd.h-t.
99033 2006-03-03  Simon Josefsson  <jas@extundo.com>
99035         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
99037 2006-03-03  Simon Josefsson  <jas@extundo.com>
99039         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
99040         libidn and bison.
99042 2006-03-03  Simon Josefsson  <jas@extundo.com>
99044         * build-aux/maint.mk: Add indent target.
99046 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
99048         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
99049         our replacement poll.h in any case, to avoid a differing
99050         declaration from a system header.  Seen on AIX.
99052 2006-03-01  Simon Josefsson  <jas@extundo.com>
99054         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
99055         <kasal@ucw.cz>.
99057 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99059         * modules/gettime (Depends-on): Add extensions module.
99060         * modules/nanosleep (Depends-on): Likewise.
99061         * modules/settime (Depends-on): Likewise.
99063 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99065         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
99066         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
99067         pedantically.
99068         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
99069         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
99071         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
99072         not "==".  Reported by Ralf Wildenhues.
99074 2006-03-01  Karl Berry  <karl@gnu.org>
99076         * doc/Copyright/request-*: new files, synced from gnuorg.
99078 2006-03-01  Karl Berry  <karl@gnu.org>
99080         * config/srclist.txt (Copyright/*): new entries.
99082 2006-02-28  Simon Josefsson  <jas@extundo.com>
99084         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
99086 2006-02-27  Simon Josefsson  <jas@extundo.com>
99088         * lib/base64.h: Indent #define's.  From Jim Meyering
99089         <jim@meyering.net>.
99091 2006-02-27  Jim Meyering  <jim@meyering.net>
99093         Revert the change of 2006-02-24, so these files can continue
99094         to be sync'd from gettext.
99095         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
99096         of `config.h'.
99098 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
99100         * modules/intprops: New file.
99101         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
99102         Add intprops.
99103         * modules/getloadavg (Files): Remove lib/intprops.h.
99104         (Depends-on): Add intprops.
99105         * modules/human: Likewise.
99106         * modules/inttostr: Likewise.
99107         * modules/openat: Likewise.
99108         * modules/sig2str: Likewise.
99109         * modules/userspec: Likewise.
99110         * modules/utimecmp: Likewise.
99111         * modules/xnanosleep: Likewise.
99112         * modules/xstrtol: Likewise.
99114 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
99116         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
99117         * modules/lock-tests (TESTS): Use $(EXEEXT).
99118         * modules/tls-tests: Likewise.
99119         * modules/argp-tests: Likewise.
99120         (check_PROGRAMS): New var, replacing...
99121         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
99123 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99125         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
99126         `config.h'.
99128 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
99130         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
99132 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99134         Sync from coreutils.
99135         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
99136         gl_CHDIR_SAFER.
99138 2006-02-22  Jim Meyering  <jim@meyering.net>
99140         Sync from coreutils.
99141         * m4/chdir-safer.m4: New file.
99143 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
99145         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
99146         AT_FDCWD exceeds INT_MAX.
99147         * lib/openat.h (AT_FDCWD): Likewise.
99149 2006-02-17  Eric Blake  <address@hidden>
99151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
99153 2006-02-16  Simon Josefsson  <jas@extundo.com>
99155         * modules/getaddrinfo (Depends-on): Add sys_socket.
99157 2006-02-15  Simon Josefsson  <jas@extundo.com>
99159         * build-aux/maint.mk: Add dsyntax-check rule.
99161 2006-02-15  Eric Blake  <ebb9@byu.net>
99163         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
99164         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
99165         'present but cannot compile' warnings on cygwin.
99166         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
99167         use ws2tcpip.h if sys/socket.h works.
99168         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
99169         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
99171 2006-02-14  Simon Josefsson  <jas@extundo.com>
99173         * modules/maintainer-makefile (Files): Rename.
99175         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
99176         and (the local) Makefile.cfg to maint-cfg.mk.
99178         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
99179         to the latter.
99181         * modules/maintainer-makefile: New module.
99183         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
99184         severaly stripped to make it possible to build it up from scratch
99185         with reliable tests.
99187         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
99188         fixes to permit overriding the default actions when configure and
99189         makefile are not available.
99191 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
99193         Sync from coreutils.
99194         * modules/lstat (Depends-on): Don't depend on xalloc.
99195         (License): Change from GPL to LGPL, since this is now simply a
99196         replacement for a libc function.
99198 2006-02-14  Jim Meyering  <jim@meyering.net>
99200         Sync from coreutils.
99202         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
99203         failure on deficient systems, and simplify gnulib lgpl dependencies.
99204         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
99205         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
99207         * lib/xalloc-die.c: Remove unused definition of N_.
99209 2006-02-14  Jim Meyering  <jim@meyering.net>
99211         Sync from coreutils.
99212         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
99213         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
99214         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
99215         double-quote uses of that variable, to accommodate the rare case in
99216         which getmntent is available in none of the libraries checked.  This
99217         happens at least on FreeBSD 5.0.
99219 2006-02-13  Simon Josefsson  <jas@extundo.com>
99221         * gnulib-tool (Usage): Fix --import, from
99222         karl@freefriends.org (Karl Berry).
99224 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
99226         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
99228 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
99230         * lib/argp-namefrob.h: Restore changes accidentally lost during the
99231         "autoupdate" on 2005-12-12.
99233 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
99235         * modules/closeout (Depends-on): Remove atexit.
99237 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
99239         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
99240         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
99242 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
99244         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
99245         __EXTENSIONS__ if this causes compilation to fail.  Problem
99246         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
99247         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
99249 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
99251         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
99252         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
99253         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
99254         All uses changed.
99256 2006-01-26  Simon Josefsson  <jas@extundo.com>
99258         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
99259         prototype is visible on mingw32.
99261         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
99262         for mingw32.
99264         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
99265         mingw32).
99267 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
99269         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
99270         attempt to open for write; this always fails, at least on POSIX
99271         hosts.  This reinstates the 2006-01-09 change, which was
99272         inadvertently removed.
99274 2006-01-26  Bruno Haible  <bruno@clisp.org>
99276         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
99277         Reported by Paul Eggert.
99279 2006-01-26  Bruno Haible  <bruno@clisp.org>
99280             Paul Eggert  <eggert@cs.ucla.edu>
99282         * lib/stdbool_.h (_Bool)
99283         [(! (defined __cplusplus || defined __BEOS__)
99284           && !defined __GNUC__
99285           && !(defined __HP_cc || defined __xlc__
99286                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
99287                || defined __sgi))]:
99288         #define to signed char in these cases too; this simplifies
99289         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
99290         etc., separately) and makes it more conservative.
99292 2006-01-25  Simon Josefsson  <jas@extundo.com>
99294         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
99295         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
99296         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
99298 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
99300         * lib/argp-namefrob.h: Bugfix. Remove stray #
99302 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
99304         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
99305         so that we test the test.
99306         Check for yet another HP-UX cc bug involving *bool |= bool.
99308 2006-01-25  Karl Berry  <karl@gnu.org>
99310         * config/srclist.txt (vasnprintf.c): sync lost.
99312 2006-01-25  Jim Meyering  <jim@meyering.net>
99314         Sync from the stable (b5) branch of coreutils:
99316         * lib/fts.c (fts_children): Don't let close() clobber errno from
99317         failed fchdir().
99319         * lib/fts.c (fts_stat): When following a symlink-to-directory,
99320         don't necessarily interpret stat-fails+lstat-succeeds as indicating
99321         a dangling symlink.  That can also happen at least for ELOOP.
99322         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
99323         FYI, this bug predates the inclusion of fts.c in coreutils.
99325         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
99326         in their own block, so pre-c99 compilers don't object.
99328         Avoid the double-free (first in fts_read, second in fts_close) that
99329         would occur when an `active' directory is made inaccessible (e.g.,
99330         via chmod a-x) during a traversal.
99331         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
99332         before returning.  Reproduce this failure by
99333         mkdir -p a/b; cd a; chmod a-x . b
99334         Reported by Stavros Passas.
99336 2006-01-25  Jim Meyering  <jim@meyering.net>
99338         * lib/fileblocks.c: Remove more useless parentheses.
99339         * lib/readutmp.h: Likewise.
99341 2006-01-25  Bruno Haible  <bruno@clisp.org>
99343         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
99344         warnings.
99345         Reported by Paul Eggert.
99347 2006-01-25  Bruno Haible  <bruno@clisp.org>
99349         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
99350         rid of a trap command. For Solaris sh.
99351         Reported by Mark D. Baushke <mdb@gnu.org>.
99353 2006-01-24  Simon Josefsson  <jas@extundo.com>
99355         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
99356         Bruno.
99358 2006-01-24  Karl Berry  <karl@gnu.org>
99360         * config/srclist.txt (argp-namefrob.h): sync lost.
99362 2006-01-24  Jim Meyering  <jim@meyering.net>
99364         * modules/openat (Files): Add lib/intprops.h.
99365         From Mark D. Baushke.
99367 2006-01-24  Jim Meyering  <jim@meyering.net>
99369         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
99370         Reported by Mark D. Baushke.
99372 2006-01-24  Jim Meyering  <jim@meyering.net>
99374         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
99376 2006-01-24  Bruno Haible  <bruno@clisp.org>
99378         * modules/strnlen (Maintainer): Change from glibc to all.
99380 2006-01-24  Bruno Haible  <bruno@clisp.org>
99382         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
99383         Patch by Paul Eggert.
99385 2006-01-24  Bruno Haible  <bruno@clisp.org>
99387         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
99388         already has it.
99389         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
99390         2005-11-26.
99392         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
99393         'signed char' to avoid problems with the built-in _Bool type.
99394         Reported by Paul Eggert on 2005-11-26.
99396 2006-01-24  Bruno Haible  <bruno@clisp.org>
99398         * gnulib-tool (func_import): Avoid constructing complicated sed
99399         expressions inside backquote.
99400         Report and solution by Mark D. Baushke <mdb@gnu.org>.
99402 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
99404         These changes imported from libc.
99405         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
99406         test and two separate function calls.
99407         * lib/strndup.c (__strndup): Add libc_hidden_def.
99409 2006-01-23  Simon Josefsson  <jas@extundo.com>
99411         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
99412         Remove the test_*_SOURCES variable: automake infers it by default.
99413         * modules/tls-tests: Likewise.
99415 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99417         Work around porting bugs reported by Dieter in
99418         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
99419         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
99420         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
99421         Include "getopt.h" first, to check interface.
99422         (getenv): Declare only if defined HAVE_DECL_GETENV &&
99423         !HAVE_DECL_GETENV.
99424         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
99425         (__strndup): Revert to K&R-style function dfns, the glibc style.
99426         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
99427         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
99428         Include strnlen.h first, to get prototype properly.
99429         (strnlen): Renamed from __strnlen.
99430         Remove weak alias.
99432 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99434         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
99436 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99438         * config/srclist.txt: Adjust to reflect glibc reorganization.
99439         This affects only comments.
99441 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99443          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
99444          Reported by Bruce Korb <bkorb@gnu.org>.
99446 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
99448         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
99449         to pacify gcc -Wswitch-default.
99451 2006-01-22  Bruno Haible  <bruno@clisp.org>
99453         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
99454         temporary buffer for sprintf, take into account the precision also
99455         for 'd', 'i', 'u', 'o', 'x', 'X'.
99457 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99459         * modules/argp-tests: New module
99460         * tests/test-argp.c: New file
99461         * tests/test-argp-2.sh: New file
99463 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99465         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
99466         (__argp_base_name): Removed
99467         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
99468         typo.
99469         (__argp_base_name): Provide macro definition or extern declaration
99470         depending on the configuration
99472 2006-01-20  Simon Josefsson  <jas@extundo.com>
99474         * modules/inet_ntop (Depends-on): Depend on sys_socket.
99476 2006-01-20  Simon Josefsson  <jas@extundo.com>
99478         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
99480 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
99482         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
99483         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
99484         Suggested by Bruno Haible.
99486 2006-01-20  Karl Berry  <karl@gnu.org>
99488         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
99489         until changes propagate, I guess.
99491 2006-01-19  Simon Josefsson  <jas@extundo.com>
99493         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
99495 2006-01-19  Simon Josefsson  <jas@extundo.com>
99497         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
99499 2006-01-19  Simon Josefsson  <jas@extundo.com>
99501         * gnulib-tool: Set check_PROGRAMS.
99503         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
99504         modules/des-tests, modules/gc-arcfour-tests,
99505         modules/gc-arctwo-tests, modules/gc-des-tests,
99506         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
99507         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
99508         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
99509         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
99510         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
99511         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
99512         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
99513         test_*_SOURCES.
99515 2006-01-18  Simon Josefsson  <jas@extundo.com>
99517         * modules/socklen (Depends-on): Depend on sys_socket.
99519 2006-01-18  Simon Josefsson  <jas@extundo.com>
99521         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
99522         modules/des-tests, modules/gc-arcfour-tests,
99523         modules/gc-arctwo-tests, modules/gc-des-tests,
99524         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
99525         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
99526         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
99527         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
99528         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
99529         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
99530         $(EXEEXT) to automake TESTS variable, for mingw32.
99532 2006-01-17  Simon Josefsson  <jas@extundo.com>
99534         * modules/socklen (Include): Need sys/socket.h.
99536 2006-01-17  Bruno Haible  <bruno@clisp.org>
99538         * modules/ssize_t (Include): Add <sys/types.h>.
99540 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
99542         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
99543         it's not portable and it doesn't work with cross-compiles.
99544         Problem reported by Bruno Haible.  Fix missing-$ typo in
99545         'test "gl_cv_ignore_unused_libraries" ...' that prevented
99546         -zignore from being used with Sun's C compiler.
99548 2006-01-12  Simon Josefsson  <jas@extundo.com>
99550         * lib/base64.c: Fix warning, reported by Bruno Haible
99551         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
99553 2006-01-12  Bruno Haible  <bruno@clisp.org>
99555         * modules/ldd: New file.
99556         * build-aux/ldd.sh.in: New file.
99557         * MODULES.html.sh (Support for building libraries and executables): Add
99558         ldd.
99560 2006-01-12  Bruno Haible  <bruno@clisp.org>
99562         * m4/ldd.m4: New file.
99564 2006-01-12  Bruno Haible  <bruno@clisp.org>
99566         * gnulib-tool (func_import, func_create_testdir): Don't go into an
99567         endless loop while replacing $auxdir with build-aux.
99569 2006-01-11  Simon Josefsson  <jas@extundo.com>
99571         * lib/stdint_.h (SIZE_MAX): Add missing (.
99573 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
99575         Sync from coreutils.
99576         * lib/md5.c: Fix commentary typos.
99577         (alignof, UNALIGNED_P): No need for a GCC-specific version.
99578         * lib/md5.h (__attribute__): Remove; unused.
99579         * lib/sha1.c: Fix commentary to match md5 better.
99580         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
99581         so that we don't need to worry about alignment.  All uses changed.
99582         This merges the 2005-10-28 md5 change into sha1.
99584 2006-01-11  Jim Meyering  <jim@meyering.net>
99586         Sync from coreutils.
99587         * lib/md5.c (OP): Fix spacing.
99589 2006-01-11  Bruno Haible  <bruno@clisp.org>
99591         Ensure automatic ordering between gl_LOCK and gl_ARGP.
99592         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
99593         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
99595 2006-01-11  Bruno Haible  <bruno@clisp.org>
99597         Ensure automatic ordering between gl_LOCK and gl_ARGP.
99598         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
99599         the "early" section as well.
99601 2006-01-11  Bruno Haible  <bruno@clisp.org>
99603         Avoid "ar: no archive members specified" error on MacOS X.
99604         * gnulib-tool (func_modules_add_dummy): New function.
99605         (func_import, func_create_testdir): Invoke it.
99607 2006-01-11  Bruno Haible  <bruno@clisp.org>
99609         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
99610         with $auxdir in AC_CONFIG_FILES statements.
99612 2006-01-11  Bruno Haible  <bruno@clisp.org>
99614         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99615         Initialize also noinst_HEADERS to empty.
99617 2006-01-11  Bruno Haible  <bruno@clisp.org>
99619         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
99620         variables.
99621         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
99622         autoreconf.
99624 2006-01-11  Bruno Haible  <bruno@clisp.org>
99626         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
99627         overridable by the user.
99628         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99630 2006-01-10  Simon Josefsson  <jas@extundo.com>
99632         * modules/sys_socket: New file.
99634 2006-01-10  Simon Josefsson  <jas@extundo.com>
99636         * m4/sys_socket_h.m4: New file.
99638 2006-01-10  Simon Josefsson  <jas@extundo.com>
99640         * lib/socket_.h: New file.
99642 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99644         * modules/readutmp (Maintainer): Add myself.
99646 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99648         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
99649         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
99650         People who are still concerned with buggy memcmp implementations
99651         can invoke gl_FUNC_MEMCMP themselves.
99653 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99655         * lib/regex_internal.h (BITSET_WORD_BITS):
99656         Work around a bug in 64-bit PGC (before version 6.1-2), where the
99657         preprocessor mishandles large unsigned values as if they were signed.
99658         Problem reported by Claudio Fontana in
99659         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
99661 2006-01-10  Jim Meyering  <jim@meyering.net>
99663         Avoid the double-free (first in fts_read, second in fts_close) that
99664         would occur when an `active' directory is made inaccessible (e.g.,
99665         via chmod a-x) during a traversal.
99666         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
99667         before returning.  Reproduce this failure by
99668         mkdir -p a/b; cd a; chmod a-x . b
99669         Reported by Stavros Passas.
99671         Sync from coreutils.
99672         * lib/sha1.c: Tweak grammar in a comment.
99674 2006-01-10  Jim Meyering  <jim@meyering.net>
99676         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
99677         Patch by Joerg Sonnenberger.
99679 2006-01-10  Bruno Haible  <bruno@clisp.org>
99681         * modules/readutmp: Depend on module free.
99682         * modules/strtok_r: Depend on module restrict.
99684 2006-01-10  Bruno Haible  <bruno@clisp.org>
99686         * modules/gettext (configure.ac): Add an invocation of
99687         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
99689 2006-01-10  Bruno Haible  <bruno@clisp.org>
99691         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
99692         Reported by Werner Lemberg <wl@gnu.org>.
99694 2006-01-10  Bruno Haible  <bruno@clisp.org>
99696         * lib/localcharset.c: Update from GNU gettext.
99698 2006-01-10  Bruno Haible  <bruno@clisp.org>
99700         * lib/argp.h (__const): Remove macro. Use const instead.
99701         * lib/argp-fmtstream.h (__const): Likewise.
99702         * lib/glob_.h (__const): Remove macro.
99703         * lib/glob-libc.h: Use const instead of __const.
99705 2006-01-10  Bruno Haible  <bruno@clisp.org>
99707         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
99708         variable.
99709         Needed to avoid an automake error regarding the 'gettext' module.
99711 2006-01-09  Simon Josefsson  <jas@extundo.com>
99713         * modules/inet_ntop (Depends-on): Add restrict.
99715 2006-01-09  Simon Josefsson  <jas@extundo.com>
99717         * modules/gc-rijndael-tests (License): Put under LGPL.
99719         * modules/gc-des-tests (License): Likewise.
99721         * modules/gc-arcfour-tests (License): Likewise.
99723         * modules/gc-arctwo-tests (License): Likewise.
99725         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
99727         * modules/gc-hmac-sha1-tests (Files): Likewise.
99729         * modules/gc-hmac-md5-tests (License): Likewise.
99731         * modules/gc-sha1-tests (License): Likewise.
99733         * modules/gc-md5-tests (License): Likewise.
99735         * modules/gc-md4-tests (License): Likewise.
99737         * modules/gc-md2-tests (License): Likewise.
99739         * modules/gc-tests (License): Likewise.
99741         * modules/des-tests (License): Likewise.
99743         * modules/md4-tests (License): Likewise.
99745         * modules/md2-tests (License): Likewise.
99747 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99749         Sync from coreutils:
99751         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
99752         * modules/lib-ignore: New file.
99753         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
99754         chdir-safer.m4, lchmod.m4.
99755         * modules/openat: Add mkdirat.c, openat-priv.h.
99757 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99759         Sync from coreutils.
99760         * m4/lib-ignore.m4: New file.
99761         * m4/lchmod.m4: New file.
99763 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99765         Sync from coreutils.
99766         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
99767         for write access: POSIX says that must fail.
99768         * lib/fts.c (diropen): Likewise.
99769         * lib/save-cwd.c (save_cwd): Likewise.
99770         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
99771         well, for minor improvements on hosts that lack O_DIRECTORY.
99772         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
99773         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
99774         Fall back on chown if open failed with EACCES.
99776         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
99777         Report an error at compile-time if only a 1-second nominal clock
99778         resolution is found.
99780         * lib/lchmod.h: New file.
99781         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
99782         (make_dir_parents): Use lchown rather than chown, and
99783         lchmod rather than chmod.
99785         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
99786         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
99787         "proc" reported by n0dalus.
99789         * lib/mountlist.c: Include <limits.h>.
99790         (dev_from_mount_options)
99791         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
99792         New function.  It no longer assumes "dev=" has the System V meaning
99793         on Linux (since it doesn't).  It also parses "dev=" more carefully.
99794         (read_file_system_list)
99795         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
99796         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
99797         dev= in that case.
99799         * lib/posixtm.h (PDS_PRE_2000): New macro.
99800         * lib/posixtm.c (year): Arg is now syntax_bits rather than
99801         allow_century.  All usages changed.  Reject dates outside the range
99802         1969-1999 if PDS_PRE_2000 is used.
99804 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
99806         Sync from coreutils.
99807         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
99808         (Time of day items): Mention the possibility of leap seconds.
99809         Problem reported by Dr. David Alan Gilbert.
99811 2006-01-09  Jim Meyering  <jim@meyering.net>
99813         Sync from coreutils.
99815         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
99817         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
99819         * lib/modechange.c (mode_compile): Reject an invalid mode string
99820         that starts with an octal digit.  From Andreas Gruenbacher.
99822         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
99823         and dup to open_safer and dup_safer, respectively.
99824         (openat_permissive): Fix typo in comment.
99826         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
99827         "gettext.h"; either no longer needed or are guaranteed by openat.h.
99828         (_): Remove; no longer needed.
99829         (openat): Renamed from rpl_openat; no need for rpl_openat
99830         since openat.h renames openat for us.
99831         Replace most of the body with a call to openat_permissive,
99832         to avoid duplicate code.
99833         Port to (probably hypothetical) environments were mode_t is
99834         wider than int.
99835         (openat_permissive): Require mode arg, so that we can check
99836         types better.  Put it just after flags.  Change cwd failure
99837         indicator from pointer-to-bool to pointer-to-errno-value.
99838         All callers changed.
99839         Invoke openat_save_fail and/or openat_restore_fail if
99840         cwd_errno is null, so that openat can call us.
99841         (openat_permissive, fdopendir, fstatat, unlinkat):
99842         Simplify errno handling to avoid some duplicate code,
99843         as it's OK to set errno on success.
99844         * lib/openat.h: Revamp code so that function macros depend on
99845         __OPENAT_PREFIX only, not also on AT_FDCWD.
99846         (openat_ro): Remove.  Caller changed to use openat_permissive.
99847         (openat_permissive): Now a macro, if not a function.
99848         (openat_restore_fail, openat_save_fail): Now always functions,
99849         since mkdirat needs them even if __OPENAT_PREFIX is defined.
99851         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
99852         and openat.c.
99853         * lib/mkdirat.c: Include openat-priv.h.
99854         Remove definitions of macros defined therein.
99855         * lib/openat.c: Likewise.
99857         * lib/mkdirat.c (mkdirat): New file and function.
99858         * lib/openat.h (mkdirat): Declare.
99860         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
99862         * lib/openat.h (openat_permissive): Declare.
99863         (openat_ro): Define.
99865         * lib/openat.c (EXPECTED_ERRNO): New macro.
99866         (openat_permissive): New function -- used in remove.c rewrite.
99867         (all functions): Set errno just before returning, only if there
99868         was an actual failure.
99869         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
99871         Emulate openat-family functions using Linux's procfs, if possible.
99872         Idea and some code based on Ulrich Drepper's glibc changes.
99874         * lib/openat.c: (BUILD_PROC_NAME): New macro.
99875         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
99876         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
99877         before falling back on save_cwd and restore_cwd.
99878         (fdopendir, fstatat, unlinkat): Likewise.
99880         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
99881         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
99883         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
99884         as second argument to va_arg.  Otherwise, some versions of gcc
99885         warn that `if this code is reached, the program will abort'.
99887 2006-01-09  Jim Meyering  <jim@meyering.net>
99889         Sync from coreutils.
99890         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
99891         Require openat-priv.h.
99893 2006-01-09  Bruno Haible  <bruno@clisp.org>
99895         * modules/strnlen (Include): Use strnlen.h.
99897 2006-01-09  Bruno Haible  <bruno@clisp.org>
99899         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
99901 2006-01-09  Bruno Haible  <bruno@clisp.org>
99903         * lib/sysexit_.h (EX_OK): New macro.
99904         Suggested by Martin Lambers <marlam@marlam.de>.
99906 2006-01-09  Bruno Haible  <bruno@clisp.org>
99908         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
99909         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
99911 2006-01-09  Bruno Haible  <bruno@clisp.org>
99913         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
99914         numbers.
99916 2006-01-09  Bruno Haible  <bruno@clisp.org>
99918         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
99919         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
99920         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
99921         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
99923 2006-01-09  Bruno Haible  <bruno@clisp.org>
99925         * build-aux/javacomp.sh.in: New file, moved from lib/.
99926         * modules/javacomp-script (Files): Update.
99927         (configure.ac): Add AC_CONFIG_FILES invocation.
99928         (EXTRA_DIST): Remove variable.
99930         * build-aux/javaexec.sh.in: New file, moved from lib/.
99931         * modules/javaexec (Files): Update.
99932         (configure.ac): Add AC_CONFIG_FILES invocation.
99933         (EXTRA_DIST): Remove javaexec.sh.in.
99935         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
99936         * modules/csharpcomp-script (Files): Update.
99937         (configure.ac): Add AC_CONFIG_FILES invocation.
99938         (EXTRA_DIST): Remove variable.
99940         * build-aux/csharpexec.sh.in: New file, moved from lib/.
99941         * modules/csharpexec (Files): Update.
99942         (configure.ac): Add AC_CONFIG_FILES invocation.
99943         (EXTRA_DIST): Remove csharpexec.sh.in.
99945 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
99947         Sync from coreutils.
99949         Add POSIX ACL support
99950         * lib/acl.h (copy_acl, set_acl): Add declarations.
99951         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
99952         systems other than Linux.
99953         (chmod_or_fchmod): New function: use fchmod when possible,
99954         and chmod otherwise.
99955         (file_has_acl): Add a POSIX ACL implementation, with a
99956         Linux-specific subcase.
99957         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
99958         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
99959         acls are unsupported.
99960         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
99961         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
99962         are unsupported.
99964 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
99966         Sync from coreutils.
99967         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
99969 2006-01-07  Bruno Haible  <bruno@clisp.org>
99971         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
99972         gl_EARLY.
99974 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
99976         * lib/strftime.c (tzname): Don't declare if it is already #defined.
99977         Problem reported for Mingw by Mark Junker.
99979 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
99981         * README: Gnulib normally doesn't generate a tarball.
99983 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
99985         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
99986         long int, not int, for nanosecond counts, so that people who are
99987         used to POSIX struct timespec won't be surprised.  Reported by Jim
99988         Meyering.
99990 2005-12-28  Bruno Haible  <bruno@clisp.org>
99992         * build-aux/config.rpath: Update from GNU gettext.
99994 2005-12-16  Jim Meyering  <jim@meyering.net>
99996         * modules/fprintftime: New module.
99997         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
99999 2005-12-16  Jim Meyering  <jim@meyering.net>
100001         * m4/fprintftime.m4: New file.
100003 2005-12-16  Jim Meyering  <jim@meyering.net>
100005         * lib/fprintftime.c, lib/fprintftime.h: New files.
100007 2005-12-15  Simon Josefsson  <jas@extundo.com>
100009         * modules/socklen (configure.ac): Fix M4 macro name, to align with
100010         new m4/socklen.m4.
100012 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
100014         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
100015         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
100017 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
100019         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
100020         * lib/argp-help.c (fill_in_uparams): Check if the constructed
100021         struct uparams is valid. Fall back to the default values if it is
100022         not.
100024 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100026         * modules/argp (Files): Add argp-pin.c
100027         (Depends-on): dirname
100028         (lib_SOURCES): Add argp-pin.c
100030 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100032         * m4/argp.m4:  Check if program_invocation_name and
100033         program_invocation_short_name are declared and define appropriate
100034         macros if they are not.
100036 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100038         * lib/argp-help.c (__argp_base_name): New function
100039         (__argp_short_program_name): Rewrite using __argp_base_name
100040         * lib/argp-namefrob.h: Define program_invocation_name and
100041         program_invocation_short_name if requested
100042         (__argp_base_name): Add prototype
100043         * lib/argp-parse.c (argp_def): Use gettext wrappers
100044         (argp_default_parser): Use __argp_base_name
100045         * lib/argp-pin.c: New file. Defines program_invocation_name and
100046         program_invocation_short_name on systems that lack them.
100048 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
100050         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
100051         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
100052         porting problem reported by Georg Schwarz in
100053         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
100055 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
100057         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
100058         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
100059         porting problem reported by Georg Schwarz in
100060         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
100062 2005-12-05  Bruno Haible  <bruno@clisp.org>
100064         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
100065         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
100066         Reported by Mark Junker <mjscod@gmx.de>.
100068 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
100070         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
100071         Use implementation from Albert Chin, with some
100072         comments/corrections by Stepan Kasal and myself.
100074 2005-12-02  Bruno Haible  <bruno@clisp.org>
100076         * gnulib-tool (func_import): Accept GPLed build tool modules when
100077         --lgpl is given.
100078         * modules/csharpcomp-script: New file.
100079         * modules/csharpcomp: Depend on it.
100080         * modules/javacomp-script: New file.
100081         * modules/javacomp: Depend on it.
100082         Suggested by Simon Josefsson.
100084 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
100086         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
100087         statement, to work around an HP-UX 10.20 compiler bug reported by
100088         Peter O'Gorman.
100090 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
100092         * modules/savedir (Depends-on): Add openat.
100094 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
100096         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
100097         (uintmax_t) [defined uintmax_t]: Do not declare.
100098         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
100099         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
100100         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
100101         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
100102         sake of portability to weird hosts that C allows (though we don't
100103         know of any practical examples).
100105         * lib/savedir.h (fdsavedir): New decl.
100106         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
100107         contains most of the former guts of savedir.
100108         (savedir): Use savedirstream.
100109         Include "openat.h".
100111 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
100113         * modules/obstack (Files): Add m4/ulonglong.m4.
100114         Problem reported by Davide Angelocola.
100116 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
100118         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
100119         coreutils no longer futzes with rounding modes.
100121 2005-11-14  Jim Meyering  <jim@meyering.net>
100123         * lib/mkstemp-safer.c: Include <config.h>, required for possible
100124         replacement of mkstemp.
100126 2005-11-10  Simon Josefsson  <jas@extundo.com>
100128         * lib/readline.c: Remove EOL.
100130 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100132         * modules/gethrxtime (Depends-on): Add gettime.
100134 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100136         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
100137         or gettimeofday; no longer needed.
100139 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100141         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
100142         time business.
100143         (gethrxtime) [! (HAVE_NANOUPTIME
100144         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
100145         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
100146         our own approximation.
100148 2005-11-08  Eric Blake  <ebb9@byu.net>
100150         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
100152 2005-11-08  Eric Blake  <ebb9@byu.net>
100154         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
100156 2005-11-04  Bruno Haible  <bruno@clisp.org>
100158         * gnulib-tool: Implement --update mode.
100160 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
100162         Fix porting problem reported by Theodoros V. Kalamatianos.
100163         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
100164         Don't assume that futimes failing means we must fail.
100166 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
100168         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
100169         variables to suggest the intended function of the PATH_MAX check.
100171 2005-10-30  Kean Johnston  <jkj@sco.com>
100173         Trivial changes to support SCO systems.
100174         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
100175         as PATH_MAX.
100176         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
100177         where __ptr is null when no I/O is pending.
100179 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
100181         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
100182         leave errno alone.  Problem reported by Dmitry V. Levin.
100184 2005-10-28  Simon Josefsson  <jas@extundo.com>
100186         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
100187         Test more.
100189         * tests/test-gc-md2.c, tests/test-md2.c: New files.
100191         * modules/md2, modules/md2-tests: New files.
100193 2005-10-28  Simon Josefsson  <jas@extundo.com>
100195         * m4/inet_ntop.m4: More tests.
100197         * m4/gc-md2.m4, md2.m4: New file.
100199 2005-10-28  Simon Josefsson  <jas@extundo.com>
100201         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
100202         "restrict" keywords, as per POSIX.  Protect the function
100203         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
100204         Don't use K&R prototypes.  Check the sprintf return values.
100205         Re-define EAFNOSUPPORT if not present.  Indent.
100207         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
100208         suggested by Bruno Haible <bruno@clisp.org>.
100210         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
100212         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
100214         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
100215         libgcrypt).
100217         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
100219         * lib/md2.h, lib/md2.c: New files.
100221 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
100223         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
100224         errno alone.  Problem reported by Frederic Jolliton.
100226 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
100228         * modules/verify (License): Change from GPL to LGPL.  This is a
100229         tiny module and there are apparently near-equivalents that are
100230         under the BSD license.
100232 2005-10-24  Simon Josefsson  <jas@extundo.com>
100234         * modules/sha1: Relicense to LGPL.
100236 2005-10-24  Simon Josefsson  <jas@extundo.com>
100238         * lib/md4.h: Shrink buffer size, now that we changed the type.
100240 2005-10-23  Simon Josefsson  <jas@extundo.com>
100242         * gnulib-tool (func_import): Fix --tests-base.
100244 2005-10-22  Simon Josefsson  <jas@extundo.com>
100246         * modules/arcfour (Depends-on): Need stdint.
100248 2005-10-22  Simon Josefsson  <jas@extundo.com>
100250         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
100251         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
100253 2005-10-22  Simon Josefsson  <jas@extundo.com>
100255         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
100256         suggested by Bruno Haible <bruno@clisp.org>.
100258 2005-10-22  Simon Josefsson  <jas@extundo.com>
100260         * lib/crc.h: Include stddef.h, for size_t.
100262 2005-10-22  Simon Josefsson  <jas@extundo.com>
100264         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
100265         arcfour_context struct (simplify test vector testing in GNU
100266         Shishi).
100268 2005-10-21  Simon Josefsson  <jas@extundo.com>
100270         * modules/des, modules/des-tests: New files.
100272         * modules/gc-des, modules/gc-des-tests: New files.
100274         * tests/test-des.c, tests/test-gc-des.c: New file.
100276 2005-10-21  Simon Josefsson  <jas@extundo.com>
100278         * modules/arctwo, modules/arctwo-tests: New files.
100280         * tests/test-arctwo.c: New file.
100282         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
100284         * tests/test-gc-arctwo.c: New file.
100286 2005-10-21  Simon Josefsson  <jas@extundo.com>
100288         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
100289         Bruno Haible <bruno@clisp.org>.
100291         * m4/gc-des.m4: New file.
100293 2005-10-21  Simon Josefsson  <jas@extundo.com>
100295         * m4/arctwo.m4: New file.
100297         * m4/gc-arctwo.m4: New file.
100299 2005-10-21  Simon Josefsson  <jas@extundo.com>
100301         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
100302         block.
100304 2005-10-21  Simon Josefsson  <jas@extundo.com>
100306         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
100307         <bruno@clisp.org>.
100309         * lib/hmac-sha1.c (hmac_sha1): Likewise.
100311         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
100312         Bruno Haible <bruno@clisp.org>.
100314         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
100315         <bruno@clisp.org>.
100317 2005-10-21  Simon Josefsson  <jas@extundo.com>
100319         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
100321 2005-10-21  Simon Josefsson  <jas@extundo.com>
100323         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
100325 2005-10-21  Simon Josefsson  <jas@extundo.com>
100327         * lib/des.h, lib/des.c: New files.
100329         * lib/gc-gnulib.c: Support DES.c
100331 2005-10-21  Simon Josefsson  <jas@extundo.com>
100333         * lib/arctwo.h, lib/arctwo.c: New files.
100335         * lib/gc-gnulib.c: Support ARCTWO.
100337 2005-10-21  Simon Josefsson  <jas@extundo.com>
100339         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
100340         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100342 2005-10-21  Simon Josefsson  <jas@extundo.com>
100344         * gnulib-tool (func_import, func_create_testdir): Define automake
100345         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
100346         Makefile.am snippet),
100347         suggested by Bruno Haible <bruno@clisp.org>.
100349         * modules/gc (Makefile.am): Use it.
100351 2005-10-21  Bruno Haible  <bruno@clisp.org>
100353         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
100354         patch.
100356 2005-10-19  Simon Josefsson  <jas@extundo.com>
100358         * tests/test-gc-rijndael.c: New file.
100360         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
100362 2005-10-19  Simon Josefsson  <jas@extundo.com>
100364         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
100365         interface too.
100367 2005-10-19  Simon Josefsson  <jas@extundo.com>
100369         * tests/test-gc-arcfour.c: New file.
100371         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
100373 2005-10-19  Simon Josefsson  <jas@extundo.com>
100375         * modules/gc-md4, modules/gc-md4-tests: New file.
100377         * tests/test-gc-md4.c: New file.
100379 2005-10-19  Simon Josefsson  <jas@extundo.com>
100381         * m4/gc-md4.m4: New file.
100383 2005-10-19  Simon Josefsson  <jas@extundo.com>
100385         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
100386         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
100387         <kasal@ucw.cz>.
100389 2005-10-19  Simon Josefsson  <jas@extundo.com>
100391         * m4/gc-arcfour.m4: New file.
100393         * m4/gc-rijndael.m4: New file.
100395 2005-10-19  Simon Josefsson  <jas@extundo.com>
100397         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
100399 2005-10-19  Simon Josefsson  <jas@extundo.com>
100401         * lib/gc-gnulib.c: Support ARCFOUR.
100403 2005-10-19  Simon Josefsson  <jas@extundo.com>
100405         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
100406         support.
100408         * lib/gc.h: Add ECB enum type.
100410         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
100412 2005-10-18  Simon Josefsson  <jas@extundo.com>
100414         * tests/test-md5.c: New file.
100416         * modules/md5-tests: New file.
100418 2005-10-18  Simon Josefsson  <jas@extundo.com>
100420         * tests/test-md4.c: New file.
100422         * modules/md4, modules/md4-tests: New files.
100424 2005-10-18  Simon Josefsson  <jas@extundo.com>
100426         * m4/md4.m4: New file.
100428 2005-10-18  Simon Josefsson  <jas@extundo.com>
100430         * lib/md4.h, lib/md4.c: New files, based on md5.?.
100432 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
100434         * gnulib-tool (func_create_testdir): Omit the second check whether
100435         BUILT_SOURCES in nonempty.
100437 2005-10-17  Simon Josefsson  <jas@extundo.com>
100439         * tests/test-rijndael.c: New file.
100441 2005-10-17  Simon Josefsson  <jas@extundo.com>
100443         * modules/sha1: Depend on stdint instead of md5.
100445         * modules/md5: Depend on stdint, remove uint32_t.
100447 2005-10-17  Simon Josefsson  <jas@extundo.com>
100449         * modules/gc-sha1-tests: New file.
100451         * tests/test-gc-sha1.c: New file.
100453 2005-10-17  Simon Josefsson  <jas@extundo.com>
100455         * m4/md5.m4: Remove call to uint32_t.m4.
100457 2005-10-17  Simon Josefsson  <jas@extundo.com>
100459         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
100461         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
100462         md5.h.
100464         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
100466         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
100468 2005-10-17  Simon Josefsson  <jas@extundo.com>
100470         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
100472 2005-10-17  Simon Josefsson  <jas@extundo.com>
100474         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
100476 2005-10-17  Simon Josefsson  <jas@extundo.com>
100478         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
100480         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
100482 2005-10-17  Bruno Haible  <bruno@clisp.org>
100484         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
100485         that it can also be used in a test.
100487 2005-10-16  Bruno Haible  <bruno@clisp.org>
100489         * gnulib-tool (func_emit_tests_Makefile_am): Also define
100490         TESTS_ENVIRONMENT, so that individual tests can augment it.
100492         * gnulib-tool (func_create_testdir): Use an intermediate target for
100493         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
100494         macros, like $(ALLOCA_H), which cannot be passed through the command
100495         line.
100497 2005-10-15  Simon Josefsson  <jas@extundo.com>
100499         * modules/rijndael-tests: New file.
100501         * modules/rijndael: New file.
100503 2005-10-15  Simon Josefsson  <jas@extundo.com>
100505         * m4/rijndael.m4: New file.
100507 2005-10-15  Simon Josefsson  <jas@extundo.com>
100509         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
100511         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
100513 2005-10-14  Simon Josefsson  <jas@extundo.com>
100515         * tests/test-arcfour.c: New file.
100517         * modules/arcfour, modules/arcfour-tests: New files.
100519 2005-10-14  Simon Josefsson  <jas@extundo.com>
100521         * m4/arcfour.m4: New file.
100523 2005-10-14  Simon Josefsson  <jas@extundo.com>
100525         * lib/arcfour.h, lib/arcfour.c: New files.
100527 2005-10-14  Roland McGrath  <roland@redhat.com>
100529         Import from libc.  [BZ #1331]
100530         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
100531         macro argument.
100532         Reported by Matej Vela <vela@debian.org>.
100534 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100536         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
100537         include <wchar.h>; no longer needed.
100539 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100541         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
100543 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
100544         and  Ulrich Drepper  <drepper@redhat.com>
100546         Import from libc.
100547         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
100548         instead of inline stream orientation test and two separate
100549         function calls.  Pay no attention to USE_IN_LIBIO.
100551 2005-10-13  Simon Josefsson  <jas@extundo.com>
100553         * modules/gc-hmac-md5-tests: New file.
100555         * tests/test-gc-hmac-sha1.c: New file.
100557         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
100559         * modules/gc-hmac-md5-tests: New file.
100561         * tests/test-gc-md5.c: New file.
100563         * modules/gc-md5-tests: New file.
100565 2005-10-13  Simon Josefsson  <jas@extundo.com>
100567         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
100568         Move memory allocation outside of loop.
100570 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
100572         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
100573         intermediate directory is in a read-only file system.  Problem
100574         reported by Eric Blake.
100576 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
100578         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
100580 2005-10-12  Simon Josefsson  <jas@extundo.com>
100582         * tests/test-hmac-sha1.c: New file.
100584         * modules/hmac-sha1-tests: New file.
100586         * modules/hmac-sha1: New file.
100588 2005-10-12  Simon Josefsson  <jas@extundo.com>
100590         * modules/gc-sha1: New file.
100592 2005-10-12  Simon Josefsson  <jas@extundo.com>
100594         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
100596         * tests/test-gc-pbkdf2-sha1.c: New file.
100598 2005-10-12  Simon Josefsson  <jas@extundo.com>
100600         * modules/gc-md5, modules/gc-hmac-md5: New files.
100602         * modules/gc (Files): Remove md5, memxor and hmac files.
100604 2005-10-12  Simon Josefsson  <jas@extundo.com>
100606         * m4/gc-pbkdf2-sha1.m4: New file.
100608         * m4/gc-hmac-sha1.m4: New file.
100610         * m4/gc-sha1: New file.
100612         * m4/hmac-sha1.m4: New file.
100614 2005-10-12  Simon Josefsson  <jas@extundo.com>
100616         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
100618         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
100620 2005-10-12  Simon Josefsson  <jas@extundo.com>
100622         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
100623         suggested by Bruno Haible <bruno@clisp.org>.
100625 2005-10-12  Simon Josefsson  <jas@extundo.com>
100627         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
100629 2005-10-12  Simon Josefsson  <jas@extundo.com>
100631         * lib/gc-pbkdf2-sha1.c: New file.
100633         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
100635 2005-10-12  Simon Josefsson  <jas@extundo.com>
100637         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
100639         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
100641 2005-10-12  Simon Josefsson  <jas@extundo.com>
100643         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
100644         GC_USE_HMAC_MD5, respectively.
100646         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
100647         (gc_md5): Fix typo.
100649         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
100651         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
100653         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
100655 2005-10-12  Bruno Haible  <bruno@clisp.org>
100657         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
100658         Reported by Stepan Kasal <kasal@ucw.cz>.
100660 2005-10-11  Simon Josefsson  <jas@extundo.com>
100662         * tests/test-crc.c: New file.
100664         * modules/crc, modules/crc-tests: New files.
100666 2005-10-11  Simon Josefsson  <jas@extundo.com>
100668         * m4/crc.m4: New file.
100670 2005-10-11  Simon Josefsson  <jas@extundo.com>
100672         * lib/gc.h: Add gc_hash and gc_hash_buffer.
100674         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
100676         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
100678 2005-10-11  Simon Josefsson  <jas@extundo.com>
100680         * lib/crc.h, lib/crc.c: New files.
100682         * lib/gc.h (gc_hash_buffer): Add doc.
100684 2005-10-11  Bruno Haible  <bruno@clisp.org>
100686         * modules/c-strcasestr: New file.
100687         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
100689 2005-10-11  Bruno Haible  <bruno@clisp.org>
100691         * modules/c-strcase: New file.
100692         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
100694 2005-10-11  Bruno Haible  <bruno@clisp.org>
100696         * lib/strcasecmp.c: Include limits.h.
100697         (strcasecmp): Avoid integer overflow on exotic platforms.
100698         * lib/strncasecmp.c: Include limits.h.
100699         (strncasecmp): Avoid integer overflow on exotic platforms.
100700         Reported by Paul Eggert.
100702 2005-10-11  Bruno Haible  <bruno@clisp.org>
100704         * lib/c-strcasestr.h: New file, from GNU gettext.
100705         * lib/c-strcasestr.c: New file, from GNU gettext.
100707 2005-10-11  Bruno Haible  <bruno@clisp.org>
100709         * lib/c-strcase.h: New file, from GNU gettext.
100710         * lib/c-strcasecmp.c: New file, from GNU gettext.
100711         * lib/c-strncasecmp.c: New file, from GNU gettext.
100713 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
100715         * modules/mempcpy (License): GPL -> LGPL.
100716         * modules/strchrnul (License): Likewise.
100717         * modules/sysexits (License): Likewise.
100719 2005-10-08  Simon Josefsson  <jas@extundo.com>
100721         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
100723 2005-10-07  Simon Josefsson  <jas@extundo.com>
100725         * m4/memxor.m4: Remove gl_C_RESTRICT call.
100727 2005-10-06  Simon Josefsson  <jas@extundo.com>
100729         * tests/test-hmac-md5.c: New file.
100731         * modules/hmac-md5-tests: New file.
100733         * modules/hmac-md5: New file.
100735 2005-10-06  Simon Josefsson  <jas@extundo.com>
100737         * m4/hmac-md5.m4: New file.
100739         * m4/memxor.m4: Require gl_C_RESTRICT.
100741 2005-10-06  Simon Josefsson  <jas@extundo.com>
100743         * lib/memxor.c (memxor): Avoid casts and warnings.
100745 2005-10-06  Simon Josefsson  <jas@extundo.com>
100747         * lib/hmac-md5.c: New file.
100749         * lib/hmac.h: New file.
100751 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
100753         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
100754         promotes to int, not unsigned int, to catch the AIX 5.3
100755         compiler bug.
100757 2005-10-05  Simon Josefsson  <jas@extundo.com>
100759         * modules/memxor: New file.
100761         * modules/iconv (Files): Move config.rpath to havelib, it is used
100762         there.
100764         * modules/havelib (Files): Add config.rpath.
100766 2005-10-05  Simon Josefsson  <jas@extundo.com>
100768         * m4/memxor.m4: New file.
100770 2005-10-05  Simon Josefsson  <jas@extundo.com>
100772         * lib/memxor.c (memxor): Fix compiler error.
100774         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
100775         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
100777         * lib/memxor.h, lib/memxor.c: New files.
100779         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
100780         we assume all systems have it, suggested by Jim Meyering
100781         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
100782         any systems lack sys/socket.h; mingw32 is known to lack it, but we
100783         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
100784         same reasons.
100786 2005-10-05  Simon Josefsson  <jas@extundo.com>
100788         * config/srclist.txt: Add glibc bug 1423 for md5.h.
100790 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
100792         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
100793         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
100794         needed, since the source code now assumes these .h files.
100796 2005-10-05  Derek Price  <derek@ximbiot.com>
100798         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
100800 2005-10-05  Bruno Haible  <bruno@clisp.org>
100802         * modules/stdint (License): Change to LGPL.
100804 2005-10-04  Simon Josefsson  <jas@extundo.com>
100806         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
100807         D. Baushke" <mdb@gnu.org>.
100809 2005-10-04  Bruno Haible  <bruno@clisp.org>
100811         * lib/verify.h (verify_true): Provide alternative definition for C++.
100813 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
100815         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
100816         (SSIZE_MAX): New macro, if not already defined.
100817         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
100818         than 2 GiB.
100820 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100822         Sync from coreutils.
100823         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
100824         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
100825         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
100826         ULLONG_MAX doesn't work with 2.7.2.1.
100828 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100830         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
100831         From Ben Pfaff.
100833         * modules/exclude (Depends-on): Depend on verify.
100834         * modules/strtoimax (Depends-on): Likewise.
100835         * modules/utimecmp (Depends-on): Likewise.
100837 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
100839         * lib/exclude.c: Include verify.h.
100840         (verify): Remove.  All callers changed to use verify.h's version.
100841         * lib/strtoimax.c: Likewise.
100842         * lib/utimecmp.c: Likewis.e
100844         Sync from coreutils.
100845         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
100846         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
100847         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
100848         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
100849         bother returning ENOSYS if settimeofday or stime fails; just let
100850         them return whatever errno they want to return.
100851         * lib/utimens.c: Include unistd.h, for dup2.
100852         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
100853         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
100855 2005-10-02  Jim Meyering  <jim@meyering.net>
100857         Sync from coreutils.
100858         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
100859         from glibc-2.2.5 that fails for read-only files.
100861 2005-10-02  Jim Meyering  <jim@meyering.net>
100863         Sync from coreutils.
100864         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
100865         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
100866         `#if HAVE_CONFIG_H'.
100867         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
100868         Remove AT_FDCWD test.
100869         Do not consume the fd unless successful.
100870         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
100871         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
100872         block, so that we don't even try to compile it if settimeofday is
100873         available.  This works around a compilation failure on OSF1 V5.1,
100874         due to stime requiring a `long int*' while tv_sec is `int'.
100876 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
100878         Sync from coreutils.
100879         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
100880         against `yes', rather than just testing for nonempty.
100882 2005-10-01  Simon Josefsson  <jas@extundo.com>
100884         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
100885         and Darwin.
100887         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
100888         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
100889         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
100890         freeaddrinfo and gai_strerror are declared by the POSIX headers.
100891         Check if struct addrinfo is declared.
100893 2005-10-01  Simon Josefsson  <jas@extundo.com>
100895         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
100896         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
100897         AI_* and EAI_* definitions.  Protect function declarations.
100899 2005-10-01  Jim Meyering  <jim@meyering.net>
100901         Sync from coreutils.
100903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
100904         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
100905         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
100906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
100907         in the inet and nsl libraries.  Required on Solaris 5.7.
100909 2005-10-01  Jim Meyering  <jim@meyering.net>
100911         Sync from coreutils.
100912         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
100913         in the inet and nsl libraries.  Required on Solaris 5.7.
100915 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
100917         * lib/getdelim.c (getdelim): Remove unused variables.
100919 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
100921         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
100922         so that the code works even with ancient cpp.  Portability problem
100923         with GCC 2.7.2.1 reported by Thomas M.Ott.
100925 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
100927         * modules/regex (Depends-on): Add strcase.
100929         * modules/gethostname (Licence): Change from GPL to LGPL, since
100930         gethostname.c is a trivial implementation of a standard library
100931         function.
100932         * modules/poll (License): Change from GPL to LGPL, since it's
100933         derived from LGPL code.
100935 2005-09-27  Jim Meyering  <jim@meyering.net>
100937         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
100938         HAVE_CONFIG_H.
100940         * lib/intprops.h (signed_type_or_expr__): Define.
100941         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
100942         for unsigned types.
100944 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
100946         * lib/verify.h (verify_expr): Remove, replacing with:
100947         (verify_true): New macro that returns true instead of void.
100948         (verify_type__): Remove.
100949         (verify): Use verify_true rather than verify_type__.
100951 2005-09-26  Bruno Haible  <bruno@clisp.org>
100953         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
100954         is necessary.
100955         (lib_SOURCES): Remove mbchar.c.
100956         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
100957         (Files): Add m4/mbrtowc.m4.
100958         * modules/mbiter: Likewise.
100959         * modules/mbuiter: Likewise.
100961 2005-09-26  Bruno Haible  <bruno@clisp.org>
100963         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
100964         compile mbchar.c if they are not both present.
100965         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
100966         * m4/mbiter.m4 (gl_MBITER): Likewise.
100967         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
100968         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
100969         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
100971 2005-09-25  Jim Meyering  <jim@meyering.net>
100973         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
100974         also uses socklen_t.
100976 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
100978         * lib/utimens.c (ENOSYS): Define if not already defined.
100979         (futimens): Support having a null PATH if the file descriptor
100980         is nonnegative.
100982         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
100983         Remove.
100984         (__attribute): Define to empty unless GCC 3.1 or later.
100985         This works around a core dump on OpenBSD 3.4, which has GCC
100986         2.95.3, which dumps core when given __attribute__(()).  It also
100987         simplifies other tests, since we really don't want to bother with
100988         worrying about which ancient version of GCC supported what.
100989         Original problem reported by Yoann Vandoorselaere, with part of
100990         the fix suggested by Derek Price.
100992 2005-09-24  Jim Meyering  <jim@meyering.net>
100994         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
100995         so we can once again use a positive bitfield width of 1 -- now we
100996         don't have to explain why we were using a bitfield width of 2.
100998 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
101000         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
101001         and similarly for the other external symbols.  Problem reported
101002         by James Gallager.
101004         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
101005         bug reported by Jim Meyering.
101007         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
101008         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
101009         not needed, since socklen is a prerequisite module.
101011 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
101013         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
101014         Problem reported by Eric Blake.
101015         (getaddrinfo): Initialize se so that it's not garbage.
101016         Redo internal storage allocation so that it doesn't make unportable
101017         assumptions about alignment.
101018         Fix a memory leak.
101020         * lib/utimens.c (futimens): Use futimesat if available.
101021         Prefer it to futimes since it doesn't have the futimes bug.
101023         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
101024         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
101025         Instead, declare a function that returns a pointer to an array,
101026         and use verify_type__ to declare the size of the array.
101027         Problem and germ of a solution reported by Bruno Haible.
101028         (verify_type__): Use 2, not 1, for bitfield size, to avoid
101029         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
101031 2005-09-23  Jim Meyering  <jim@meyering.net>
101033         Sync from coreutils.
101034         Correct build failure (socklen_t not defined) on at least
101035         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
101036         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
101038 2005-09-23  Jim Meyering  <jim@meyering.net>
101040         * modules/getaddrinfo (Depends-on): Add socklen.
101042 2005-09-23  Bruno Haible  <bruno@clisp.org>
101044         * tests/test-verify.c: New file.
101046 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101048         Sync from coreutils.
101050         * modules/argmatch (Depends-on): Add verify.
101051         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
101052         unistd-safer.
101053         * modules/save-cwd (Depends-on): Likewise.
101055         * modules/openat (Files): Add lib/openat-die.c.
101056         (Depends-on): Remove error, exitfail.
101057         Add dirname.
101059         * modules/verify: New file.
101060         * MODULES.html.sh (Diagnostics <assert.h>): New section,
101061         with "verify" module.
101063 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101065         Sync from coreutils.
101067         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
101068         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
101069         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
101070         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
101071         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
101072         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
101073         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
101074         Don't bother checking for string.h, stdlib.h, unistd.h.
101075         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
101076         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
101077         module's job.
101078         * m4/jm-macros.m4 (gl_MACROS): Likewise.
101079         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
101081         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
101082         (gl_GETDATE): Use it.
101084         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
101086 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101088         Sync from coreutils.
101090         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
101091         stat-time.h.
101092         * lib/argmatch.h: Include verify.h
101093         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
101094         (ARGMATCH_ASSERT): Remove; unused.
101095         * lib/canonicalize.c: Assume STDC_HEADERS.
101096         * lib/exclude.c: Include "strcase.h".
101097         * lib/regex_internal.h [!defined _LIBC]: Likewise.
101098         * lib/getusershell.c: Include stdio--.h rather than stdio.h
101099         and stdio-safer.h.
101100         (getusershell): Call fopen, not fopen_safer.
101101         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
101102         Do not include unistd-safer.h.
101103         (save_cwd): Don't call fd_safer; no longer needed
101104         now that we include fcntl--.h.
101106         * lib/getdate.y (relative_time): New type.
101107         (RELATIVE_TIME_0): New constant.
101108         (parser_control): Use relative_time instead of doing it ourselves.
101109         (%union): Add new relative_time rel member.
101110         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
101111         Now typeless.
101112         (relunit, relunit_snumber): Now of type rel.
101113         (zone, rel, relunit, get_date): Adjust to above changes.
101115         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
101116         Do not include unistd-safer.h.
101117         (getloadavg): Don't call fd_safer; no longer needed
101118         now that we include fcntl--.h.
101120         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
101121         (make_dir_parents): Treat ENOSYS like EEXIST.
101123         Improve quality of diagnostics on restore_cwd failure.
101124         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
101125         (make_dir_parents): Last arg is now int * (for errno), not bool *.
101126         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
101127         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
101128         each time through the loop.  Do not diagnose restore_cwd failure;
101129         that is the caller's job (and perhaps the caller does not care).
101131         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
101132         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
101133         If the file already exists but is not a directory, don't bother
101134         to try to make its parents.
101135         Close potential file descriptor leak if we can't chdir("/") (!).
101136         Don't always return true if chdir($PWD) fails; return true only
101137         if the requested action was done successfully (except for the
101138         chdir($PWD)).
101139         Don't log final directory unless we actually made it.
101140         Refactor to avoid duplicate code to fix up permissions.
101141         Don't attempt to fix up parent permissions if chdir($PWD) fails.
101143         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
101144         to make it a bit faster and (I hope) clearer.
101145         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
101146         Fix bug in formats like %2N.
101148         * lib/verify.h: New file.
101150 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101152         Sync from coreutils.
101153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
101155 2005-09-22  Jim Meyering  <jim@meyering.net>
101157         Sync from coreutils.
101159         * m4/lstat.m4 (gl_FUNC_LSTAT):
101160         Use AC_LIBSOURCES to require lstat.c and lstat.h.
101161         Remove obsolete comment.
101162         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
101163         * m4/xstrtod.m4: Likewise.
101165         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
101167 2005-09-22  Jim Meyering  <jim@meyering.net>
101169         Sync from coreutils.
101171         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
101173         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
101174         the .tm_year member, since otherwise gcc-4.0 would now warn about
101175         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
101177         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
101178         order to avoid an unsuppressible warning from gcc on 64-bit systems.
101180         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
101181         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
101182         when run in a time zone for which daylight savings time is in effect
101183         for the starting date.
101185         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
101186         stop us from restricting permissions of just-created absolute-named
101187         directories.
101188         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
101189         to restore initial working directory.
101190         * lib/mkdir-p.c (make_dir_parents): New parameter:
101191         different_working_dir, to tell caller if/when we change the working
101192         directory and are unable to return to the initial one.
101193         * lib/mkdir-p.h (make_dir_parents): Update prototype.
101194         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
101195         `return false'.  This fixes a bug introduced on 2004-07-30.
101197         * lib/openat.c (fdopendir): Be sure to close the supplied
101198         file descriptor before returning.  This makes our replacement
101199         implementation a little closer to Solaris's, where fdopendir
101200         ties the file descriptor to the returned DIR* pointer.
101201         * lib/openat.c (unlinkat): New function.
101202         * lib/openat.h (unlinkat): Add prototype.
101203         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
101204         (openat_restore_fail): Rename from openat_restore_die.
101205         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
101207         Provide an alternative to exiting immediately upon save_cwd or
101208         restore_cwd failure.  Now, an application can arrange e.g.,
101209         to perform a longjump in that case.
101210         * lib/openat.c: Include dirname.h.
101211         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
101212         (rpl_openat, fdopendir, fstatat): Call openat_save_die
101213         and openat_restore_die rather than calling error directly.
101214         Don't include "error.h" or "exitfail.h"; they're no longer needed.
101216         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
101217         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
101218         define.
101220         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
101221         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
101222                             int utc, int nanoseconds);
101223         Background:
101224         date should not have to allocate a megabyte of virtual memory to
101225         handle a format argument like +%1048575T.  When implemented with
101226         strftime, it must allocate such a buffer, use strftime to fill it
101227         in, print it, then free it.
101228         With fprintftime, it simply prints everything and exits.
101229         With no need for memory allocation, that's one fewer way to fail.
101230         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
101231         optional field width, not before, so we accept %9:z, not %:9z.
101232         (my_strftime): Be sure to use L_('x') for literals.
101234         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
101235         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
101236         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
101237         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
101238         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
101239         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
101240         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
101241         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
101242         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
101243         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
101244         * lib/xgethostname.c, lib/xreadlink.c:
101245         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
101247         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
101248         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
101249         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
101250         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
101251         and don't include <sys/file.h>).
101253 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
101255         Sync from coreutils.
101257         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
101258         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
101259         [!LDAV_DONE]: Avoid unused variable warning.
101261 2005-09-21  Bruno Haible  <bruno@clisp.org>
101263         * lib/unicodeio.h (unicode_to_mb): New declaration.
101265 2005-09-20  Derek Price  <derek@ximbiot.com>
101267         * lib/getaddrinfo.c: Don't include <netdb.h> included from
101268         getaddrinfo.h.
101270 2005-09-20  Bruno Haible  <bruno@clisp.org>
101272         * gnulib-tool: Remove trailing slashes from the values specified for
101273         --source-base, --m4-base, --tests-base, --aux-dir.
101274         Suggested by Simon Josefsson <jas@extundo.com>.
101276 2005-09-20  Bruno Haible  <bruno@clisp.org>
101278         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
101279         func_modules_to_filelist, func_import, func_create_testdir): Make all
101280         sorting results locale-independent, so that gnulib-cache.m4 doesn't
101281         change when gnulib-tool is invoked in a different locale.
101283 2005-09-19  Simon Josefsson  <jas@extundo.com>
101285         * m4/socklen.m4: Fix typo.
101287 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101289         Use a consistent style for including <config.h>.
101290         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
101291         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
101292         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
101293         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
101294         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
101295         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
101296         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
101297         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
101298         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
101299         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
101300         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
101301         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
101302         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
101303         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
101304         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
101305         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
101306         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
101307         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
101308         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
101309         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
101310         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
101311         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
101312         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
101313         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
101314         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
101315         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
101316         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
101317         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
101318         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
101319         lib/xstrtoumax.c, lib/yesno.c:
101320         Standardize inclusion of config.h.
101321         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
101322         lib/inttostr.h:  Removed inclusion of config.h from header files.
101323         * lib/inttostr.c:  Adjusted in-tree users.
101324         * lib/timespec.h: Remove superfluous warning to include config.h.
101325         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
101326         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
101327         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
101328         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
101329         config.h with HAVE_CONFIG_H.
101331 2005-09-19  Jim Meyering  <jim@meyering.net>
101333         * modules/pathmax (License): Change to LGPL.
101335 2005-09-19  Derek Price  <derek@ximbiot.com>
101337         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
101339 2005-09-19  Bruno Haible  <bruno@clisp.org>
101341         * gnulib-tool (import): Provide default for --tests-base.
101343 2005-09-19  Bruno Haible  <bruno@clisp.org>
101345         * doc/quote.texi: New file, extracted from gnulib.texi.
101346         * doc/ctime.texi: New file, extracted from gnulib.texi.
101347         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
101348         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
101349         * doc/gnulib.texi: Include them.
101351 2005-09-18  Bruno Haible  <bruno@clisp.org>
101353         Portability fix.
101354         * gnulib-tool (func_readlink): New function.
101355         (func_ln_if_changed): Use it.
101357 2005-09-18  Bruno Haible  <bruno@clisp.org>
101359         * gnulib-tool: Support --with-tests also with --import.
101360         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
101361         (func_import): Use variables $testsbase and $inctests. Emit a
101362         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
101363         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
101364         SUBDIRS += $testsdir.
101365         (func_create_testdir): Update.
101367 2005-09-18  Bruno Haible  <bruno@clisp.org>
101369         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
101370         instead of $dry_run.
101371         (func_cp_if_changed, func_mv_if_changed): Remove functions.
101372         (func_ln_if_changed): Don't handle dry-run here.
101373         (func_import): In dry-run mode, detect more precisely which actions
101374         would be performed, and don't use "...ing" verbs.
101376 2005-09-18  Bruno Haible  <bruno@clisp.org>
101378         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
101379         (func_import): Use join on two temporary files instead of three nested
101380         loops, in order to determine which files are new or old.
101382 2005-09-18  Bruno Haible  <bruno@clisp.org>
101384         * gnulib-tool (func_import): Comment out code that spits out the
101385         new files with --dry-run.
101387 2005-09-18  Bruno Haible  <bruno@clisp.org>
101389         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
101391 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101393         * lib/stat-time.h: New file.
101394         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
101395         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
101396         in a different way.
101397         (timespec_cmp): New function.
101398         * lib/utimecmp.c: Include stat-time.h.
101399         (SYSCALL_RESOLUTION): Depend on whether various struct stat
101400         members exist, not on the obsolescent ST_MTIM_NSEC.
101401         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
101403 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101405         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
101407 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101409         * MODULES.html.sh (File system functions): Add stat-time.
101410         * modules/stat-time: New file.
101411         * modules/timespec (Files): Remove m4/st_mtim.m4; this
101412         is now done in a different way, by the stat-time module.
101413         * modules/utimecmp (Depends-on): Add stat-time.
101415 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
101417         * m4/st_mtim.m4: Remove.  Superseded by...
101418         * m4/stat-time.m4: New file.
101419         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
101420         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
101422 2005-09-15  Derek Price  <derek@ximbiot.com>
101424         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
101426 2005-09-15  Derek Price  <derek@ximbiot.com>
101428         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
101429         * lib/regex_internal.c: Ditto, using this...
101430         (__GNUC_PREREQ): ...new macro.
101431         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
101432         using...
101433         (__GNUC_PREREQ): ...this new macro.
101435         * lib/strstr.h: Include string.h. Define strstr as a macro here.
101437 2005-09-15  Derek Price  <derek@ximbiot.com>
101438             Paul Eggert  <eggert@cs.ucla.edu>
101440         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
101441         changes, consolidating in...
101442         * lib/regex_internal.h: ...this file.
101444 2005-09-13  Jim Meyering  <jim@meyering.net>
101446         * lib/canon-host.c: Filter through gnu indent and reword comments
101447         slightly.
101448         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
101450 2005-09-13  Derek Price  <derek@ximbiot.com>
101452         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
101453         failure.
101454         Reported by Jim Meyering  <jim@meyering.net>.
101456 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101458         * lib/base64.c: Typo.
101459         (base64_encode): Put b64str in initialized data section.
101461 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
101463         Merge glibc and coreutils changes into gnulib, plus a few
101464         extra fixes.
101465         * lib/md5.c: Use #error rather than a string.
101466         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
101467         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
101468         (__attribute__): Define to empty for non recent-GCC.
101469         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
101470         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
101471         Renamed from their non-__ counterparts, with new macros replacing
101472         them if not _LIBC.  Add __THROW attribute.
101473         (rol): Remove.
101474         (struct md5_ctx): Align buffer if using GCC.
101475         * lib/sha1.h (struct sha1_ctx): Likewise.
101476         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
101477         The old name was backwards.
101478         (NOTSWAP): Remove; not used.
101479         (rol): New macro, moved here from md5.h.
101480         (sha1_process_block): Remove a FIXME that doesn't make sense.
101482 2005-09-12  Derek Price  <derek@ximbiot.com>
101484         Return usable errors from canon-host.
101485         * lib/canon-host.h: New file.
101486         * lib/canon-host.c (canon_host): Wrap...
101487         (canon_host_r): ...this new function, which now relies exclusively on
101488         getaddrinfo.
101489         (ch_strerror): New function.
101490         (last_cherror): New global.
101491         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
101492         interface.
101493         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
101494         void *.
101495         (freeaddrinfo): Free ai->ai_canonname when set.
101497 2005-09-12  Derek Price  <derek@ximbiot.com>
101499         Make canon-host require getaddrinfo.
101500         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
101501         AC_LIBSOURCE canon-host.h.  Call...
101502         (gl_PREREQ_CANON_HOST): ...this new function, which requires
101503         gl_GETADDRINFO.
101504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
101506 2005-09-12  Derek Price  <derek@ximbiot.com>
101508         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
101509         LGPL.
101510         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
101512 2005-09-12  Derek Price  <derek@ximbiot.com>
101514         * lib/gai_strerror.c: Include config.h when available.  Include
101515         getaddrinfo.h before other headers to test interface.
101516         Reported by Larry Jones <lawrence.jones@ugs.com>.
101518 2005-09-12  Derek Price  <derek@ximbiot.com>
101519             Paul Eggert  <eggert@cs.ucla.edu>
101521         * modules/glob (Files): Add glob-libc.h.
101523 2005-09-12  Derek Price  <derek@ximbiot.com>
101524             Paul Eggert  <eggert@cs.ucla.edu>
101526         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
101527         glob_.h, glob-libc.h.
101528         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
101530 2005-09-12  Derek Price  <derek@ximbiot.com>
101531             Paul Eggert  <eggert@cs.ucla.edu>
101533         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
101534         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
101535         protecting things that should be done only in gnulib contexts.
101536         * lib/glob_.h: New file, containing only the glob things needed for
101537         gnulib.
101538         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
101539         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
101540         (glob, globfree, glob_pattern_p): Now defined simply in terms of
101541         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
101542         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
101543         and to respect the namespace rules better.
101545 2005-09-08  Simon Josefsson  <jas@extundo.com>
101547         * modules/socklen: New file.
101549 2005-09-08  Simon Josefsson  <jas@extundo.com>
101551         * m4/socklen.m4: New file.
101553 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101555         * modules/utimens (Files): Add m4/utimbuf.m4, since
101556         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
101557         Reported by Sergey Poznyakoff.
101559 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101561         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
101562         definitions, since that's the preferred style in glibc.
101563         Fix a minor spacing issue, and update copyright notice to match
101564         glibc's.
101566 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101568         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
101570 2005-09-06  Simon Josefsson  <jas@extundo.com>
101572         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
101573         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
101575 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101577         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
101578         warning.
101580 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101582         * config/srclist.txt: Add glibc bug 1302.
101584 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
101586         Change bitset word type from unsigned int to unsigned long int,
101587         as this has better performance on typical 64-bit hosts.
101588         Port bitset code to hosts with unusual word sizes.
101589         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
101590         (build_collating_symbol):
101591         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
101592         argument is a bitset.  This is merely a style issue, but it makes
101593         it clearer that an entire array is expected.
101594         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
101595         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
101596         Port to the case where bitset_word is not the same as unsigned int.
101597         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
101598         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
101599         Likewise.
101600         * lib/regexec.c (check_dst_limits_calc_pos_1,
101601         check_subexp_matching_top):
101602         (build_trtable, group_nodes_into_DFAstates):
101603         Likewise.
101604         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
101605         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
101606         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
101607         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
101608         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
101609         * lib/regcomp.c (optimize_subexps, lower_subexp):
101610         Work even if bitset_word has holes in its bitwise representation.
101611         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
101612         * lib/regexec.c (check_dst_limits_calc_pos_1,
101613         check_subexp_matching_top):
101614         Likewise.
101615         * lib/regex_internal.c (re_string_reconstruct):
101616         Don't assume UCHAR_MAX == 255.
101617         * lib/regex_internal.h (bitset_set_all): Likewise.
101618         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
101619         All uses changed.
101620         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
101621         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
101622         All uses changed.
101623         (BITSET_WORD_MAX): New macro.
101624         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
101625         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
101626         (bitset_empty, bitset_copy):
101627         Prefer sizeof (bitset) to multiplying it out ourselves.
101628         (bitset_not_merge): Remove; unused.
101629         (bitset_contain): Return bool, not unsigned int with one bit on.
101630         All callers changed.
101631         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
101632         alignment than re_node_set; do this by defining a new internal
101633         type struct dests_alloc and using it to allocate memory.
101635 2005-09-05  Bruno Haible  <bruno@clisp.org>
101637         * gnulib-tool (func_import): Fix comparison in handling of symbolic
101638         links.
101640 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
101642         * modules/size_max (Makefile.am): Add size_max.h
101644 2005-09-04  Derek Price  <derek@ximbiot.com>
101646         * gnulib-tool (func_import): Fix reversed $symbolic logic.
101648 2005-09-03  Simon Josefsson  <jas@extundo.com>
101650         * gnulib-tool: Fix typo.
101652 2005-09-03  Simon Josefsson  <jas@extundo.com>
101654         * config/srclist.txt: Add glibc bug 1293.
101656 2005-09-03  Derek Price  <derek@ximbiot.com>
101658         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
101659         From Larry Jones <lawrence.jones@ugs.com>.
101661 2005-09-02  Simon Josefsson  <jas@extundo.com>
101663         * modules/socklen: New file.
101665 2005-09-02  Simon Josefsson  <jas@extundo.com>
101667         * modules/havelib: New module.
101669         * modules/gettext, modules/iconv, modules/lock, modules/readline:
101670         Use havelib.
101672 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
101674         Check for arithmetic overflow when calculating sizes, to prevent
101675         some buffer-overflow issues.  These patches are conservative, in the
101676         sense that when I couldn't determine whether an overflow was possible,
101677         I inserted a run-time check.
101678         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
101679         macros.
101680         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
101681         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
101682         (re_xnrealloc, re_x2nrealloc): New inline functions.
101683         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
101684         parse_bracket_exp):
101685         (build_equiv_class, build_charclass): Check for arithmetic overflow
101686         in size expression calculations.
101687         * lib/regex_internal.c (re_string_realloc_buffers):
101688         (build_wcs_upper_buffer, re_node_set_add_intersect):
101689         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
101690         (re_dfa_add_node, register_state): Likewise.
101691         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
101692         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
101693         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
101694         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
101696 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
101698         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
101699         m4/ulonglong.m4.  Problem reported by Martin Lambers.
101701 2005-09-02  Bruno Haible  <bruno@clisp.org>
101703         Support for lib vs. lib64 distinction on biarch platforms.
101704         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
101705         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
101706         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
101708 2005-09-02  Bruno Haible  <bruno@clisp.org>
101710         * gnulib-tool (import): In the other first-use case, provide defaults
101711         as well.
101713 2005-09-02  Bruno Haible  <bruno@clisp.org>
101715         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
101716         patches not yet found in the latest gettext release.
101718 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
101720         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
101721         to avoid a collision with bits/local_lim.h in glibc.
101722         All uses changed.  Problem reported by Dmitry V. Levin in
101723         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
101725         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
101726         bugs in int versus size_t comparisons.
101727         (re_string_context_at): Fix bug where the code assumed that
101728         Idx is signed.
101730         Use bool where appropriate.
101731         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
101732         All callers changed.
101733         (calc_eclosure_iter): Likewise, for ROOT arg.
101734         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
101735         (build_charclass_op): Likewise, for NON_MATCH arg.
101736         * lib/regex_internal.c (re_string_allocate, re_string_construct):
101737         (re_string_construct_common): Likewise, for ICASE arg.
101738         * lib/regexec.c (re_search_2_stub, re_search_stub):
101739         Likewise, for RET_LEN arg.
101740         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
101741         (set_regs): Likewise, for FL_BACKTRACK arg.
101742         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
101743         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
101744         (calc_eclosure_iter, parse_bracket_exp):
101745         Use bool for internal variables that are booleans.
101746         * lib/regexec.c (re_search_internal, check_matching,
101747         proceed_next_node):
101748         (set_regs, build_sifted_states, sift_states_bkref):
101749         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
101750         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
101751         (find_collation_sequence_value):
101752         Likewise.
101753         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
101754         (re_node_set_compare):
101755         Return bool, not int. All callers changed.
101756         * lib/regexec.c (check_halt_node_context, check_dst_limits):
101757         (build_trtable, check_node_accept): Likewise.
101758         * lib/regex_internal.h: Include stdbool.h.
101760         Fix bugs uncovered when converting to bool.
101761         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
101762         failure instead of charging ahead blindly.
101763         * lib/regex_internal.c (register_state): Likewise.
101764         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
101765         for freeing internal storage.
101766         (group_nodes_into_DFA_states): Use unsigned int, not int, for
101767         bitset pieces used as boolean, to avoid undefined behavior
101768         on hosts that do int overflow checking.
101770 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
101772         * config/srclist.txt: Add glibc bugs 1285-1287.
101774 2005-09-01  Jim Meyering  <jim@meyering.net>
101776         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
101777         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
101778         Require gl_STAT_MACROS, too.
101780 2005-09-01  Bruno Haible  <bruno@clisp.org>
101782         * gnulib-tool (import): In the first-use case, provide defaults.
101784 2005-09-01  Bruno Haible  <bruno@clisp.org>
101786         * gnulib-tool (func_import): Remove the .tmp files.
101788 2005-09-01  Bruno Haible  <bruno@clisp.org>
101790         * gnulib-tool (func_import): Fix handling of symbolic links.
101792 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101794         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
101795         old glibc regex code mishandles strings longer than 2**31 bytes.
101796         This patch fixes this when the regex code is used in gnulib
101797         (i.e., outside glibc).
101799         This patch should not affect the use of the regex code inside
101800         glibc.  No doubt this problem also needs to be handled for glibc
101801         as well, but the result will be an incompatible change to the
101802         glibc ABI, and the old ABI will have to be supported too.  That
101803         can be the subject for another patch.
101805         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
101806         governing whether the rest of this patch is active.  By default,
101807         the macro is disabled and the patch has no effect.
101808         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
101809         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
101810         (struct re_pattern_buffer, re_search, re_search_2, re_match):
101811         (re_match_2, re_set_registers): Use the new types.
101812         * lib/regex_internal.h (Idx, re_hashval_t): New types.
101813         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
101814         New macros.
101815         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
101816         (re_string_context_at, bin_tree_t, re_dfastate_t):
101817         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
101818         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
101819         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
101820         (re_string_char_size_at, re_string_wchar_at):
101821         (re_string_elem_size_at):
101822         Use the new types and macros to port to 64-bit hosts.
101823         Use unsigned types for internal values, so that the code
101824         mostly works even for arrays larger than SSIZE_MAX.
101825         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
101826         (search_duplicated_node, calc_eclosure_iter, fetch_number):
101827         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
101828         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
101829         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
101830         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
101831         (calc_inveclosure, parse_dup_op, build_range_exp):
101832         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
101833         (fetch_number, create_token_tree, mark_opt_subexp):
101834         Likewise.
101835         * lib/regex_internal.c (re_string_construct_common,
101836         create_ci_newstate):
101837         (create_cd_newstate, re_string_allocate, re_string_construct):
101838         (re_string_realloc_buffers, build_wcs_upper_buffer):
101839         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
101840         (re_string_reconstruct, re_string_peek_byte_case):
101841         (re_string_fetch_byte_case, re_string_context_at):
101842         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
101843         (re_node_set_init_copy, re_node_set_add_intersect):
101844         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101845         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101846         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
101847         (re_acquire_state, re_acquire_state_context, register_state):
101848         Likewise.
101849         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
101850         search_cur_bkref_entry):
101851         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
101852         (re_search_internal, re_search_2_stub, re_search_stub)
101853         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
101854         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
101855         (update_cur_sifted_state, check_dst_limits):
101856         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
101857         (check_subexp_limits, sift_states_bkref, merge_state_array):
101858         (check_subexp_matching_top, get_subexp, get_subexp_sub):
101859         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
101860         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
101861         (expand_bkref_cache, check_node_accept_bytes):
101862         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
101863         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
101864         (acquire_init_state_context, check_halt_node_context):
101865         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
101866         (sift_states_backward, clean_state_log_if_needed):
101867         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
101868         (find_recover_state, transit_state_sb, transit_state_mb):
101869         (transit_state_bkref, build_trtable, match_ctx_clean):
101870         Likewise.
101871         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
101872         to work around an assumption that REG_MISSING is negative.
101874         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
101875         (seek_collating_symbol_entry) [defined _LIBC]:
101876         (lookup_collation_sequence_value) [defined _LIBC]:
101877         (build_range_exp, build_collating_symbol) [defined _LIBC]:
101878         Use prototypes rather than old-style function definitions.
101879         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
101880         (transit_state_sb) [0]:
101881         (find_collation_sequence_value) [defined _LIBC]: Likewise.
101883         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
101884         rm_eo.
101886         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
101887         (optimize_subexps, lower_subexp):
101888         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
101889         since the signed shift might overflow.  Use 1u<<31 instead.
101890         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
101891         Likewise.
101892         * lib/regexec.c (check_dst_limits_calc_pos_1,
101893         check_subexp_matching_top): Likewise.
101895         * lib/regcomp.c (optimize_subexps, lower_subexp):
101896         Use CHAR_BIT rather than 8, for clarity.
101897         * lib/regexec.c (check_dst_limits_calc_pos_1):
101898         (check_subexp_matching_top): Likewise.
101899         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
101900         have to worry about portability issues when shifting it left.
101901         Remove no-longer-needed test for table_size > 0.
101902         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
101903         in a word, as the resulting behavior is undefined.
101904         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
101905         in one case, a <= should have been an <, and in another case the
101906         whole test was missing.
101907         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
101908         the standard name CHAR_BIT.
101909         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
101910         this is not true on one's complement and signed-magnitude hosts.
101912         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
101913         next_last_offset.
101914         (struct re_dfa_t): Remove unused member states_alloc.
101915         * lib/regcomp.c (init_dfa): Don't initialize unused members.
101917 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101919         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
101920         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
101921         and large-file glibc and in 32-bit large-file Solaris.
101923 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101925         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
101926         lengths fit in regoff_t; this isn't true if regoff_t is the same
101927         width as size_t.
101928         * lib/regex.c (re_search_internal): 5th arg is LAST_START
101929         (= START + RANGE) instead of RANGE.  This avoids overflow
101930         problems when regoff_t is the same width as size_t.
101931         All callers changed.
101932         (re_search_2_stub): Check for overflow when adding the
101933         sizes of the two strings.
101934         (re_search_stub): Check for overflow when adding START
101935         to RANGE; if it occurs, substitute the extreme value.
101937 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
101939         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
101941 2005-08-31  Jim Meyering  <jim@meyering.net>
101943         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
101944         a pointer-to-const.
101945         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
101946         (register_state): Likewise.
101947         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
101948         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
101949         (group_nodes_into_DFAstates): Likewise.
101951 2005-08-31  Jim Meyering  <jim@meyering.net>
101953         * check-module: Add a FIXME comment.
101955 2005-08-31  Eric Blake  <ebb9@byu.net>
101957         * modules/unistd-safer (Files): Add unistd--.h.
101958         * modules/stdio-safer (Files): Add stdio--.h.
101960 2005-08-31  Derek Price  <derek@ximbiot.com>
101962         * lib/getdelim.c (getdelim): Return EOF on EOF.
101963         Reported by Larry Jones <lawrence.jones@ugs.com>.
101965 2005-08-31  Bruno Haible  <bruno@clisp.org>
101967         Avoid unnecessary diffs in the generated lib/Makefile.am.
101968         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
101969         the generated files.
101970         (func_import): Don't set cmd.
101972 2005-08-31  Bruno Haible  <bruno@clisp.org>
101974         * lib/strstr.c: Include <stddef.h>, for NULL.
101975         * lib/strcasestr.c: Likewise.
101976         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
101978 2005-08-31  Bruno Haible  <bruno@clisp.org>
101980         * gnulib-tool: New option --macro-prefix.
101981         (func_import): Use macro_prefix.
101982         (import): Handle option --macro-prefix.
101984 2005-08-31  Bruno Haible  <bruno@clisp.org>
101986         * gnulib-tool (import): Rename most ac_* variables to cached_*.
101987         Also use new variables cached_lgpl, cached_libtool.
101989 2005-08-31  Bruno Haible  <bruno@clisp.org>
101991         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
101992         always instantiating them.
101994 2005-08-31  Bruno Haible  <bruno@clisp.org>
101996         * gnulib-tool (func_import): Read the previous cached settings
101997         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
101998         earlier added by gnulib but are now dropped. Warn when a gnulib file
101999         overwrites a non-gnulib file.
102001 2005-08-31  Bruno Haible  <bruno@clisp.org>
102003         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
102004         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
102005         projects that don't keep autogenerated files in CVS. Put into
102006         actioncmd only the specified modules, not the transitive closure.
102008 2005-08-31  Bruno Haible  <bruno@clisp.org>
102010         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
102011         Create directories that shall be filled.
102012         (import): Don't look for gl_* macros in configure.ac. Recurse across
102013         all directories containing a gnulib-cache.m4 files, if meaningful.
102015 2005-08-31  Bruno Haible  <bruno@clisp.org>
102017         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
102018         (import): Set seen_libtool when we see gl_LIBTOOL.
102020 2005-08-31  Bruno Haible  <bruno@clisp.org>
102022         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
102023         declaration macro definitions from generated gnulib.m4.
102025 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
102027         * lib/iconvme.h: Add prototype for iconv_alloc.
102029 2005-08-29  Simon Josefsson  <jas@extundo.com>
102031         * lib/iconvme.c: Fix errno.
102033 2005-08-29  Bruno Haible  <bruno@clisp.org>
102035         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
102036         that it works when the directory contains spaces.
102038 2005-08-29  Bruno Haible  <bruno@clisp.org>
102040         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
102042 2005-08-29  Bruno Haible  <bruno@clisp.org>
102044         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
102045         Emit more advice.
102047 2005-08-29  Bruno Haible  <bruno@clisp.org>
102048         and Stepan Kasal  <kasal@ucw.cz>
102050         * check-module: If more parameters are given, check each of them
102051         separately; add more exceptions, as noted by Jim Meyering.
102052         (check_module): New procedure.
102053         (%exempt_header): Now contains all exceptions.
102055 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
102057         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
102059 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
102061         * lib/iconvme.c: Split iconv_string into iconv_alloc.
102063 2005-08-28  Bruno Haible  <bruno@clisp.org>
102065         * m4/gnulib-tool.m4: New file.
102067 2005-08-27  Jim Meyering  <jim@meyering.net>
102069         * modules/unistd-safer (Files): Add pipe-safer.c.
102070         * modules/fcntl-safer (Files): Add creat-safer.c.
102072 2005-08-27  Jim Meyering  <jim@meyering.net>
102074         * m4/stdlib-safer.m4: New file.  From coreutils.
102075         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
102076         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
102077         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
102078         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
102079         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
102081 2005-08-27  Jim Meyering  <jim@meyering.net>
102083         * lib/fopen-safer.c: Merge minor changes from coreutils.
102084         * lib/dup-safer.c: Likewise.
102085         * lib/fd-safer.c: Likewise.
102087         Merge from coreutils.
102088         * lib/stdio--.h: New file.
102089         * lib/stdlib--.h: New file.
102090         * lib/mkstemp-safer.c: New file.
102092         GNU tar needs these.
102093         * lib/pipe-safer.c: New file.
102094         * lib/creat-safer.c: New file.
102095         * lib/fcntl--.h (creat): Define to creat_safer.
102096         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
102097         * lib/unistd--.h (pipe): Define to pipe_safer.
102098         * lib/unistd-safer.h: Declare pipe_safer.
102100 2005-08-26  Simon Josefsson  <jas@extundo.com>
102102         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
102103         Haible <bruno@clisp.org>.
102105 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
102107         * lib/regex_internal.h: Remove all references to
102108         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
102109         or better.
102110         (bitset_not, bitset_merge, bitset_not_merge):
102111         (bitset_mask, re_string_allocate, re_string_construct):
102112         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
102113         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
102114         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
102115         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
102116         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102117         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102118         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
102119         (re_acquire_state_context):
102120         Remove unnecessary forward decls.
102121         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
102122         Put __attribute at function definition,
102123         now that the function decl has been removed.
102124         * lib/regex_internal.c (re_string_peek_byte_case):
102125         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
102126         Likewise.
102128 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
102130         * m4/regex.m4: Add AC_PREREQ(2.50).
102131         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
102133 2005-08-25  Simon Josefsson  <jas@extundo.com>
102135         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
102136         __fsetlocking.
102138 2005-08-25  Simon Josefsson  <jas@extundo.com>
102140         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
102141         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
102142         GLIBC specific code.
102144 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102146         Make regex safe for g++.  This fixes one real bug (an "err"
102147         that should have been "*err").  g++ problem reported by
102148         Sam Steingold.
102149         * lib/regex_internal.h (re_calloc): New macro, consistent with
102150         re_malloc etc.  All callers of calloc changed to use re_calloc.
102151         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
102152         not int.  All callers changed.
102153         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
102154         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
102155         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
102156         (find_recover_state): Change "err" to "*err"; this fixes what
102157         appears to be a real bug.
102158         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
102159         versus int.
102161 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102163         * modules/regex (Depends-on): Add malloc, since the code
102164         assumes that !malloc(0) means failure.
102166 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102168         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
102170         alloca modernization/simplification for regex.
102171         * lib/regex.c: Remove portability cruft for alloca.  This no longer
102172         needs to be at the start of the file, and can be moved into
102173         regex_internal.h and simplified.
102174         * lib/regex_internal.h: Include <alloca.h>.
102175         (__libc_use_alloca) [!defined _LIBC]: New macro.
102176         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
102177         now works outside glibc.
102179 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102181         * config/srclist.txt: Add glibc bugs 1241, 1245.
102183 2005-08-25  Jim Meyering  <jim@meyering.net>
102185         * lib/open-safer.c: Include <config.h>.
102186         Otherwise, we'd lose LARGEFILE support in any file using
102187         e.g. "fcntl--.h"
102189 2005-08-25  Bruno Haible  <bruno@clisp.org>
102191         * m4/minmax.m4: Require autoconf 2.52.
102192         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
102193         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
102194         alternatives of translit over the alphabet.
102195         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
102197 2005-08-24  Simon Josefsson  <jas@extundo.com>
102199         * tests/test-getpass.c: New file.
102201 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102203         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
102204         for GNU regex features.
102206 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102208         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
102209         * lib/regex.h (regerror): Likewise.
102211         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
102212         requires this.  (The code never needed it.)
102214         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
102215         All uses of recently-renamed identifiers changed to use the new,
102216         POSIX-compliant names.  The code will build and run just fine
102217         without these changes, but it's better to eat our own dog food
102218         and use the standard-conforming names.
102220         * lib/regex.h: Fix a multitude of POSIX name space violations.
102221         These changes have an effect only for programs that define
102222         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
102223         do not change anything for programs compiled in the normal way.
102224         Also, there is no effect on the ABI.
102226         (_REGEX_SOURCE): New macro.
102227         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
102228         defined and _GNU_SOURCE is not; this fixes a name space violation.
102230         Rename the following macros to obey POSIX requirements.
102231         The old names are still visible as macros if _REGEX_SOURCE is defined.
102232         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
102233         RE_BACKSLASH_ESCAPE_IN_LISTS.
102234         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
102235         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
102236         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
102237         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
102238         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
102239         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
102240         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
102241         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
102242         (REG_INTERVALS): renamed from RE_INTERVALS.
102243         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
102244         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
102245         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
102246         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
102247         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
102248         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
102249         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
102250         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
102251         RE_UNMATCHED_RIGHT_PAREN_ORD.
102252         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
102253         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
102254         (REG_DEBUG): renamed from RE_DEBUG.
102255         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
102256         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
102257         unusual, since we can't clash with the POSIX REG_ICASE.
102258         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
102259         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
102260         (REG_NO_SUB): renamed from RE_NO_SUB.
102261         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
102262         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
102263         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
102264         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
102265         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
102266         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
102267         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
102268         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
102269         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
102270         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
102271         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
102272         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
102273         RE_SYNTAX_POSIX_MINIMAL_BASIC.
102274         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
102275         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
102276         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
102277         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
102278         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
102279         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
102280         (REG_FIXED): Renamed from REGS_FIXED.
102281         (REG_NREGS): Renamed from RE_NREGS.
102283         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
102284         of other REG_* macros, since POSIX says the user is allowed to
102285         #undef these macros selectively.
102287         (reg_errcode_t): Update comment stating what other tables need
102288         to be consistent.
102290         Rename the following enum values to obey POSIX requirements.
102291         The old names are still visible as macros.
102292         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
102293         is not defined, since GNU is supposed to be a superset of POSIX as
102294         much as possible, and since we want reg_errcode_t to be a signed
102295         type for implementation consistency.
102296         (_REG_NOERROR): Renamed from REG_NOERROR.
102297         (_REG_NOMATCH): Renamed from REG_NOMATCH.
102298         (_REG_BADPAT): Renamed from REG_BADPAT.
102299         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
102300         (_REG_ECTYPE): Renamed from REG_ECTYPE.
102301         (_REG_EESCAPE): Renamed from REG_EESCAPE.
102302         (_REG_ESUBREG): Renamed from REG_ESUBREG.
102303         (_REG_EBRACK): Renamed from REG_EBRACK.
102304         (_REG_EPAREN): Renamed from REG_EPAREN.
102305         (_REG_EBRACE): Renamed from REG_EBRACE.
102306         (_REG_BADBR): Renamed from REG_BADBR.
102307         (_REG_ERANGE): Renamed from REG_ERANGE.
102308         (_REG_ESPACE): Renamed from REG_ESPACE.
102309         (_REG_BADRPT): Renamed from REG_BADRPT.
102310         (_REG_EEND): Renamed from REG_EEND.
102311         (_REG_ESIZE): Renamed from REG_ESIZE.
102312         (_REG_ERPAREN): Renamed from REG_ERPAREN.
102313         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
102314         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
102315         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
102316         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
102318         (_REG_RE_NAME, _REG_RM_NAME): New macros.
102319         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
102320         changed.  But support the old name if the new one is not defined
102321         and if _REGEX_SOURCE.
102323         Change the following member names in struct re_pattern_buffer.
102324         The old names are still supported if !_REGEX_SOURCE.
102325         The new names are always supported, regardless of _REGEX_SOURCE.
102326         (re_buffer): Renamed from buffer.
102327         (re_allocated): Renamed from allocated.
102328         (re_used): Renamed from used.
102329         (re_syntax): Renamed from syntax.
102330         (re_fastmap): Renamed from fastmap.
102331         (re_translate): Renamed from translate.
102332         (re_can_be_null): Renamed from can_be_null.
102333         (re_regs_allocated): Renamed from regs_allocated.
102334         (re_fastmap_accurate): Renamed from fastmap_accurate.
102335         (re_no_sub): Renamed from no_sub.
102336         (re_not_bol): Renamed from not_bol.
102337         (re_not_eol): Renamed from not_eol.
102338         (re_newline_anchor): Renamed from newline_anchor.
102340         Change the following member names in struct re_registers.
102341         The old names are still supported if !_REGEX_SOURCE.
102342         The new names are always supported, regardless of _REGEX_SOURCE.
102343         (rm_num_regs): Renamed from num_regs.
102344         (rm_start): Renamed from start.
102345         (rm_end): Renamed from end.
102347         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
102348         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
102349         Prepend __ to parameter names.
102351         Undo yesterday's changes.
102353 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102355         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
102356         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
102357         lib/regex.c.
102359 2005-08-24  Jim Meyering  <jim@meyering.net>
102361         Sync from coreutils.
102362         * m4/fcntl-safer.m4: New file.
102364         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
102365         and object files for this module.
102367 2005-08-24  Jim Meyering  <jim@meyering.net>
102369         Sync from coreutils.
102370         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
102372 2005-08-24  Jim Meyering  <jim@meyering.net>
102374         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
102375         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
102377 2005-08-24  Jim Meyering  <jim@meyering.net>
102379         * modules/fcntl-safer: New module.
102380         * modules/fts (Depends-on): Add fcntl-safer.
102381         * MODULES.html.sh (File descriptor based Input/Output):
102382         Add fcntl-safer.
102384 2005-08-24  Bruno Haible  <bruno@clisp.org>
102386         Support for unit test modules.
102387         * modules/README: Mention tests modules.
102388         * modules/TEMPLATE-TESTS: New file.
102389         * gnulib-tool: New options --extract-tests-module, --with-tests and
102390         --tests-base (unused for the moment).
102391         (testsbase, inctests): New variables.
102392         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
102393         (func_verify_module): Exclude TEMPLATE-TESTS.
102394         (func_verify_nontests_module, func_verify_tests_module): New functions.
102395         (func_get_dependencies): Add implicit dependency for tests modules.
102396         (func_get_tests_module): New function.
102397         (func_modules_transitive_closure): When --with-tests was specified,
102398         include the unit tests as well, unless explicitly avoided.
102399         (func_emit_lib_Makefile_am): Ignore the tests modules here.
102400         (func_emit_tests_Makefile_am): New function.
102401         (func_create_testdir): When --with-tests was specified, emit a
102402         tests/ directory.
102403         * MODULES.html.sh (Future developments): Update.
102405 2005-08-24  Bruno Haible  <bruno@clisp.org>
102407         * modules/tls-tests: New file.
102408         * tests/test-tls.c: New file, from GNU gettext.
102410 2005-08-24  Bruno Haible  <bruno@clisp.org>
102412         * modules/lock-tests: New file.
102413         * tests/test-lock.c: New file, from GNU gettext.
102415 2005-08-24  Bruno Haible  <bruno@clisp.org>
102417         * lib/lock.h: Add multiple inclusion guard.
102418         * lib/tls.h: Add multiple inclusion guard.
102420 2005-08-24  Bruno Haible  <bruno@clisp.org>
102422         * gnulib-tool: Add support for the --aux-dir option to
102423         --create-testdir, --create-megatestdir, --test, --megatest.
102424         (func_create_testdir, func_create_megatestdir): Optionally emit a
102425         AC_CONFIG_AUX_DIR directive.
102426         (create-testdir, create-megatestdir, test, megatest): Provide a
102427         default value for $auxdir.
102429 2005-08-24  Bruno Haible  <bruno@clisp.org>
102431         * gnulib-tool (import): Use compound statement instead of subshell
102432         where possible.
102434 2005-08-24  Bruno Haible  <bruno@clisp.org>
102436         * gnulib-tool (import): Change --aux-dir default to "build-aux".
102438 2005-08-24  Bruno Haible  <bruno@clisp.org>
102440         * gnulib-tool (func_version): Update.
102442 2005-08-24  Bruno Haible  <bruno@clisp.org>
102444         * gnulib-tool (func_import, func_create_testdir,
102445         func_create_megatestdir): Quote all autoconf macro arguments.
102447 2005-08-24  Bruno Haible  <bruno@clisp.org>
102449         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
102450         option --force, because --force causes the aclocal.m4 of each
102451         subdirectory to be newer than the corresponding config.h.in.
102453 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102455         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
102456         All contents moved to gl_REGEX.
102457         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
102458         assume that it does.
102460 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102462         * lib/regex.h (REG_NOSYS)
102463         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
102464         Define, since POSIX requires it as of 2001.
102465         (_REG_ENOSYS)
102466         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
102467         New private symbol, used to keep the enum signed in all cases.
102468         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
102469         Youngman in
102470         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
102472         * lib/regex_internal.c (re_string_skip_chars, register_state):
102473         (calc_state_hash):
102474         Remove forward decls; no longer needed now that we use prototypes.
102475         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
102476         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
102477         (clean_state_log_if_needed): Likewise.
102479 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102481         * config/srclist.txt: Add glibc bugs 1231-1233.
102483 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102485         Fix problems reported by Sam Steingold in
102486         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
102487         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
102488         assumed that reg_errcode_t is a signed type, which is not
102489         necessarily true if _XOPEN_SOURCE is not defined.
102490         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
102491         since some compilers warn about it otherwise.
102493 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102495         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
102496         (init_word_char, create_initial_state, duplicate_node_closure):
102497         (fetch_token, peek_token_bracket, build_range_exp):
102498         (build_collating_symbol): Remove forward decls; no longer needed
102499         now that we use prototypes.
102501         * lib/regcomp.c:
102502         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
102503         (re_compile_fastmap_iter, regcomp, regerror, regfree):
102504         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
102505         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
102506         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
102507         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
102508         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
102509         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
102510         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
102511         (build_range_exp, build_collating_symbol, parse_bracket_exp):
102512         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
102513         (build_charclass, build_charclass_op, fetch_number, create_tree):
102514         (create_token_tree, mark_opt_subexp, duplicate_tree):
102515         Use prototypes rather than old-style definitions.
102517         * lib/regex_internal.c:
102518         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
102519         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
102520         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
102521         (re_string_reconstruct, re_string_peek_byte_case):
102522         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
102523         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
102524         (re_node_set_init_copy, re_node_set_add_intersect):
102525         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102526         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102527         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
102528         (re_acquire_state, re_acquire_state_context, register_state):
102529         (create_ci_newstate, create_cd_newstate, free_state):
102530         Likewise.
102531         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
102532         re_search_2):
102533         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
102534         (re_search_internal, prune_impossible_nodes):
102535         (acquire_init_state_context, check_matching, static):
102536         (check_halt_node_context, check_halt_state_context, proceed_next_node):
102537         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
102538         (update_regs, sift_states_backward, build_sifted_states):
102539         (clean_state_log_if_needed, merge_state_array):
102540         (update_cur_sifted_state, add_epsilon_src_nodes):
102541         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
102542         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
102543         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
102544         (find_recover_state, check_subexp_matching_top, transit_state_mb):
102545         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
102546         (check_arrival, check_arrival_add_next_nodes):
102547         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
102548         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
102549         (check_node_accept_bytes, check_node_accept, extend_buffers):
102550         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
102551         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
102552         (sift_ctx_init):
102553         Likewise.
102555         * lib/regex_internal.h:
102556         (re_string_allocate, re_string_construct, re_string_reconstruct):
102557         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
102558         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
102559         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
102560         (re_string_context_at, re_string_peek_byte_case):
102561         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
102562         is defined, since we now use prototypes always.
102564         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
102565         C89 or better.  All uses removed.
102567 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102569         * config/srclist.txt: Add glibc bugs 1220-1227.
102571 2005-08-20  Jim Meyering  <jim@meyering.net>
102573         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
102574         of unused local, dfa.
102576 2005-08-20  Bruno Haible  <bruno@clisp.org>
102578         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
102580 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102582         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
102583         (re_node_set_insert_last, re_dfa_add_node):
102584         Rename local variables to avoid GCC shadowing warnings.
102586 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102588         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
102589         [defined lint]: Suppress bogus uninitialized-variable warnings.
102591         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
102592         and let the caller return REG_ESPACE if out of space.  This
102593         removes an uninitialied-variable warning with GCC 4.0.1, and also
102594         avoids taking the address of a local variable.  All callers
102595         changed.
102597 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102599         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
102600         $LIBCSRC/posix/regexec.c.
102601         Add glibc bug 1217 for regcomp.c.
102603 2005-08-19  Jim Meyering  <jim@meyering.net>
102605         * lib/regexec.c (proceed_next_node): Redo local variables to
102606         avoid GCC shadowing warnings.
102608 2005-08-18  Bruno Haible  <bruno@clisp.org>
102610         * lib/strstr.c (strstr): Fix return value in multibyte case.
102611         * lib/strcasestr.c (strcasestr): Likewise.
102613 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
102615         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
102617 2005-08-17  Jim Meyering  <jim@meyering.net>
102619         Make the %s format (seconds since the epoch) work for a negative
102620         number and when used with a zero-padded field width, e.g. %015s.
102622         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
102623         label so that it precedes the code to set `digits'.  Otherwise,
102624         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
102625         print `00-22'.  Now, it prints `-0022', as it should.
102627 2005-08-17  Bruno Haible  <bruno@clisp.org>
102629         * modules/strstr (Files): Add m4/mbrtowc.m4.
102630         (Depends-on): Add mbuiter.
102632 2005-08-17  Bruno Haible  <bruno@clisp.org>
102634         * modules/strcasestr: New file.
102635         * MODULES.html.sh (String handling, based on ANSI C 89): Add
102636         strcasestr.
102638 2005-08-17  Bruno Haible  <bruno@clisp.org>
102640         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
102642 2005-08-17  Bruno Haible  <bruno@clisp.org>
102644         * modules/mbuiter: New file.
102645         * MODULES.html.sh (Extended multibyte and wide character utilities):
102646         Add mbuiter.
102648 2005-08-17  Bruno Haible  <bruno@clisp.org>
102650         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
102651         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
102653 2005-08-17  Bruno Haible  <bruno@clisp.org>
102655         * m4/strcasestr.m4: New file.
102657 2005-08-17  Bruno Haible  <bruno@clisp.org>
102659         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
102660         * lib/strstr.c: Completely rewritten, with multibyte locale support.
102662 2005-08-17  Bruno Haible  <bruno@clisp.org>
102664         * lib/strcasestr.h: New file.
102665         * lib/strcasestr.c: New file.
102667 2005-08-17  Bruno Haible  <bruno@clisp.org>
102669         * lib/strcasecmp.c: Use mbuiter.h.
102671 2005-08-17  Bruno Haible  <bruno@clisp.org>
102673         * lib/mbuiter.h: New file.
102675 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
102677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
102678         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
102679         and gl_GETOPT are both invoked via different paths (as happens
102680         with GNU tar CVS because it uses both argp and getopt), the former
102681         wins.
102683 2005-08-16  Bruno Haible  <bruno@clisp.org>
102685         * modules/tls: New file.
102686         * MODULES.html.sh (Multithreading): Add tls.
102688 2005-08-16  Bruno Haible  <bruno@clisp.org>
102690         * modules/strnlen1: New file.
102691         * MODULES.html.sh (String handling): Add strnlen1.
102693 2005-08-16  Bruno Haible  <bruno@clisp.org>
102695         * modules/strcase (Files): Add m4/mbrtowc.m4.
102696         (Depends-on): Add strnlen1, mbchar.
102698 2005-08-16  Bruno Haible  <bruno@clisp.org>
102700         * modules/mbiter: New file.
102701         * MODULES.html.sh (Extended multibyte and wide character utilities):
102702         Add mbiter.
102704 2005-08-16  Bruno Haible  <bruno@clisp.org>
102706         * modules/mbfile: New file.
102707         * MODULES.html.sh (Extended multibyte and wide character utilities):
102708         Add mbfile.
102710 2005-08-16  Bruno Haible  <bruno@clisp.org>
102712         * modules/mbchar: New file.
102713         * MODULES.html.sh (Extended multibyte and wide character utilities):
102714         New section.
102716 2005-08-16  Bruno Haible  <bruno@clisp.org>
102718         * m4/tls.m4: New file, from GNU gettext.
102720 2005-08-16  Bruno Haible  <bruno@clisp.org>
102722         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
102723         always.
102724         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
102726 2005-08-16  Bruno Haible  <bruno@clisp.org>
102728         * m4/mbiter.m4: New file.
102730 2005-08-16  Bruno Haible  <bruno@clisp.org>
102732         * m4/mbfile.m4: New file.
102734 2005-08-16  Bruno Haible  <bruno@clisp.org>
102736         * m4/mbchar.m4: New file.
102738 2005-08-16  Bruno Haible  <bruno@clisp.org>
102740         * lib/tls.h: New file, from GNU gettext.
102741         * lib/tls.c: New file, from GNU gettext.
102743 2005-08-16  Bruno Haible  <bruno@clisp.org>
102745         * lib/strnlen1.h: New file.
102746         * lib/strnlen1.c: New file.
102748 2005-08-16  Bruno Haible  <bruno@clisp.org>
102750         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
102751         (mbi_init): Update.
102752         (mbi_avail, mbi_advance): Let the iteration end before the terminating
102753         NUL byte, not after it.
102755 2005-08-16  Bruno Haible  <bruno@clisp.org>
102757         * lib/strcase.h (strcasecmp): Add note in comments.
102758         * lib/strncasecmp.c: Use code from strcasecmp.c.
102759         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
102760         (strcasecmp): Work correctly in multibyte locales.
102762 2005-08-16  Bruno Haible  <bruno@clisp.org>
102764         * lib/mbiter.h: New file.
102766 2005-08-16  Bruno Haible  <bruno@clisp.org>
102768         * lib/mbfile.h: New file.
102770 2005-08-16  Bruno Haible  <bruno@clisp.org>
102772         * lib/mbchar.h: New file.
102773         * lib/mbchar.c: New file.
102775 2005-08-16  Bruno Haible  <bruno@clisp.org>
102777         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
102778         the valid ones. Makes the comparison operations transitive:
102779         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
102780         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
102782 2005-08-15  Simon Josefsson  <jas@extundo.com>
102784         * modules/ssize_t (License): Change to 'unlimited'.
102786         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
102788 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102790         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
102791         Add comments for each pending glibc patch.
102793 2005-08-15  Bruno Haible  <bruno@clisp.org>
102795         * lib/regex.h (__restrict_arr): Don't define to __restrict if
102796         __cplusplus is defined.
102798 2005-08-14  Jim Meyering  <jim@meyering.net>
102800         Sync from coreutils.
102802         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
102803         Use the hash-table-based cycle-detection code not just when
102804         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
102805         Reported by James Youngman in
102806         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
102807         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
102808         FTS_TIGHT_CYCLE_CHECK.
102809         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
102810         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
102811         once again.
102812         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
102813         * lib/fts.c (fd_safer): Remove decl.
102814         Include fcntl--.h rather than unistd-safer.h
102815         (fts_safe_changedir): Don't call fd_safer; no longer needed
102816         now that we include fcntl--.h.
102818 2005-08-12  Simon Josefsson  <jas@extundo.com>
102820         * modules/getndelim2: Use ssize_t module.
102821         * modules/getnline: Likewise.
102822         * modules/safe-read: Likewise.
102823         * modules/xreadlink: Likewise.
102825         * modules/ssize_t: New file.
102827 2005-08-12  Simon Josefsson  <jas@extundo.com>
102829         * m4/readline.m4: Look for termcap, curses or ncurses if required.
102831 2005-08-12  Simon Josefsson  <jas@extundo.com>
102833         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102834         ssize_t.
102836 2005-08-12  Simon Josefsson  <jas@extundo.com>
102838         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
102839         readline, getdelim and check_version.
102840         (Support for systems lacking ISO C 99: Sizes of integer types):
102841         Add size_max.
102843 2005-08-12  Bruno Haible  <bruno@clisp.org>
102845         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
102847 2005-08-11  Simon Josefsson  <jas@extundo.com>
102849         * modules/readline: New file.
102851         * modules/strnlen (Files): Add strnlen.h.
102853 2005-08-11  Simon Josefsson  <jas@extundo.com>
102855         * m4/readline.m4: New file.
102857 2005-08-11  Simon Josefsson  <jas@extundo.com>
102859         * lib/readline.h, readline.c: New file.
102861 2005-08-11  Simon Josefsson  <jas@extundo.com>
102863         * doc/gnulib.texi (Initial import, Finishing touches): Mention
102864         gl_AVOID.
102866 2005-08-11  Bruno Haible  <bruno@clisp.org>
102868         * lib/strnlen.h (strnlen): Change parameter name to match comment.
102870 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
102872         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
102874 2005-08-10  Simon Josefsson  <jas@extundo.com>
102876         * tests/test-iconvme.c: New file.
102878 2005-08-10  Simon Josefsson  <jas@extundo.com>
102880         * m4/strnlen.m4: New file.
102882         * m4/strndup.m4: Don't check for strnlen declaration, done in
102883         strnlen.m4.
102885 2005-08-10  Simon Josefsson  <jas@extundo.com>
102887         * lib/strndup.c: Use strnlen.h.
102889         * lib/strnlen.h: New file.
102891 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
102893         * README: Typos.
102895 2005-08-02  Simon Josefsson  <jas@extundo.com>
102897         * modules/readline: New file.
102899 2005-08-02  Simon Josefsson  <jas@extundo.com>
102901         * modules/getdelim: New file.
102903         * modules/getline: Rewrite, don't use getndelim2.
102905 2005-08-02  Simon Josefsson  <jas@extundo.com>
102907         * m4/getline.m4: Separate out getdelim stuff into separate module.
102909         * m4/getdelim.m4: New file.
102911 2005-08-02  Simon Josefsson  <jas@extundo.com>
102913         * lib/getline.h, getline.c: Rewrite.
102915         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
102917 2005-07-31  Bruno Haible  <bruno@clisp.org>
102919         * lib/lock.h (gl_lock_initializer): New macro.
102920         (gl_lock_define_initialized): Use it.
102921         (gl_rwlock_initializer): New macro.
102922         (gl_rwlock_define_initialized): Use it.
102923         (gl_recursive_lock_initializer): New macro.
102924         (gl_recursive_lock_define_initialized): Use it.
102926 2005-07-30  Karl Berry  <karl@gnu.org>
102928         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
102929         Report from Ben Pfaff, regarding getopt.
102931 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
102933         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
102934         normal way.
102935         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
102936         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
102937         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
102938         (gl_GETOPT): Use the new macros.  Most of the implementation
102939         is moved to the new macros.  This is for programs like Emacs
102940         that don't want all the functionality of gl_GETOPT.
102942 2005-07-26  Bruno Haible  <bruno@clisp.org>
102944         * m4/lock.m4: Update from GNU gettext.
102946 2005-07-26  Bruno Haible  <bruno@clisp.org>
102948         * lib/lock.h: Update from GNU gettext.
102949         * lib/lock.c: Update from GNU gettext.
102951 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
102953         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
102954         obsolescent AC_TRY_RUN.  Include the default includes files, for
102955         'exit'.
102957 2005-07-24  Bruno Haible  <bruno@clisp.org>
102959         * modules/visibility: New file.
102960         * MODULES.html.sh (Misc): Add visibility.
102962 2005-07-24  Bruno Haible  <bruno@clisp.org>
102964         * m4/visibility.m4: New file.
102966 2005-07-24  Bruno Haible  <bruno@clisp.org>
102968         * doc/visibility.texi: New file.
102970 2005-07-22  Bruno Haible  <bruno@clisp.org>
102972         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
102973         $(ALLOCA_H), redundant through BUILT_SOURCES.
102974         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
102975         redundant through BUILT_SOURCES.
102976         * modules/byteswap (Makefile.am): Remove explicit dependency on
102977         $(BYTESWAP_H), redundant through BUILT_SOURCES.
102978         * modules/fnmatch (Makefile.am): Remove explicit dependency on
102979         $(FNMATCH_H), redundant through BUILT_SOURCES.
102980         * modules/getopt (Makefile.am): Remove explicit dependency on
102981         $(GETOPT_H), redundant through BUILT_SOURCES.
102982         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
102983         redundant through BUILT_SOURCES.
102984         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
102985         redundant through BUILT_SOURCES.
102986         * modules/stdbool (Makefile.am): Remove explicit dependency on
102987         $(STDBOOL_H), redundant through BUILT_SOURCES.
102988         * modules/stdint (Makefile.am): Remove explicit dependency on
102989         $(STDINT_H), redundant through BUILT_SOURCES.
102990         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
102991         Remove explicit dependency on $(SYSEXITS_H).
102992         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
102994 2005-07-18  Simon Josefsson  <jas@extundo.com>
102996         * lib/check-version.c (check_version): Accept identical versions too.
102998 2005-07-18  Bruno Haible  <bruno@clisp.org>
103000         * modules/lock: New file.
103001         * MODULES.html.sh (Multithreading): New section.
103003 2005-07-18  Bruno Haible  <bruno@clisp.org>
103005         * m4/lock.m4: New file, from GNU gettext.
103007 2005-07-18  Bruno Haible  <bruno@clisp.org>
103009         * lib/lock.h: New file, from GNU gettext.
103010         * lib/lock.c: New file, from GNU gettext.
103012 2005-07-18  Bruno Haible  <bruno@clisp.org>
103014         * lib/lock.h (gl_once_t): New type.
103015         (gl_once_define, gl_once): New macros.
103016         * lib/lock.c (fresh_once): New variable.
103017         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
103018         functions.
103020 2005-07-16  Simon Josefsson  <jas@extundo.com>
103022         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
103023         workaround, suggested by Bruno.
103025 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
103027         * modules/xalloc (Depends-on): Add xalloc-die.
103028         * modules/xvasprintf (Depends-on): Add xalloc-die.
103030 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
103032         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
103033         with a minor change.
103035 2005-07-15  Bruno Haible  <bruno@clisp.org>
103037         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
103038         When using lib/poll.c, define poll as rpl_poll.
103040 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
103042         * modules/argp (Depends-on): Remove unlocked-io.
103044 2005-07-14  Derek Price  <derek@ximbiot.com>
103046         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
103047         for glob symlink bug.
103049 2005-07-14  Bruno Haible  <bruno@clisp.org>
103051         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
103052         Instead, test for *_unlocked function declarations directly.
103054 2005-07-11  Simon Josefsson  <jas@extundo.com>
103056         * modules/size_max: New file.
103058         * modules/xsize: Depend on size_max module for size_max.m4.
103060 2005-07-11  Simon Josefsson  <jas@extundo.com>
103062         * lib/size_max.h: New file.
103064 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
103066         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
103067         copyright symbol and the year.
103068         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
103069         (version_etc_va): Use parameterized copyright notice.
103070         Reword to conform to the current GNU coding standards.
103072 2005-07-11  Karl Berry  <karl@gnu.org>
103074         * doc/gnulib.texi (Quoting): new node.
103075         (Initial import): more info, from Patrice.
103077 2005-07-11  Bruno Haible  <bruno@clisp.org>
103079         * gnulib-tool (func_usage): Document option --avoid.
103080         (Command line options): Handle --avoid.
103081         (func_acceptable): New function.
103082         (func_modules_transitive_closure): Use it.
103084 2005-07-11  Bruno Haible  <bruno@clisp.org>
103086         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
103087         Reported by Jim Meyering.
103089 2005-07-10  Bruno Haible  <bruno@clisp.org>
103091         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
103092         Needed when size_t is smaller than 'unsigned int'.
103093         Reported by Paul Eggert.
103095 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
103097         * modules/argp (Depends-on): Add unlocked-io
103099 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
103101         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
103102         block of defines.
103104 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
103106         * config/srclist.txt: Comment out regcomp.c, since we have a porting
103107         fix now.
103109 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
103110         and Paul Eggert  <eggert@cs.ucla.edu>
103112         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
103113         in wint_t, not wchar_t.  Remove now-unnecessary cast.
103115 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103117         * modules/regex (Files): Add lib/regex_internal.c,
103118         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
103119         (Depends-on): Add extensions.
103120         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
103122 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103124         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
103125         pathconf.
103126         * m4/same.m4 (gl_SAME): Likewise.
103127         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
103129         * m4/regex.m4: Adjust to new libc regex implementation.
103130         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
103131         all the .c and .h parts of (the new) regex.
103132         Quote the m4 stuff better.
103133         Check for RE_ICASE bug of old gnulib.
103134         Check for REG_STARTEND of recent libc.
103135         Rename local variables from jm_* to gl_*.
103136         Quote operand of "test -f".
103137         Say "recent enough" version of libc, not "version 2".
103138         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
103139         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
103140         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
103141         Remove check for btowc, isascii.
103142         Require AM_LANGINFO_CODESET.
103144 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103146         * lib/regex.c, regex.h: Sync from libc.
103147         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
103148         * lib/regexec.c:
103149         New files, synced from libc, except that regex_internal.h
103150         currently has a small porting fix.
103152 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103154         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
103155         regex_internal.c, regexec.c.
103156         Add regex_internal.h too, but as a comment, since the libc version
103157         is currently broken in gnulib mode.
103159 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
103161         Support programs like Emacs that use gnulib but not gettext.
103162         * MODULES.html.sh (Internationalization functions): Add gettext-h.
103163         * modules/gettext-h: New file.
103164         * modules/gettext (Files): Remove lib/gettext.h.
103165         (Depends-on): Add gettext-h.
103166         (Makefile.am): Remove lib_SOURCES.
103167         * modules/argmatch, modules/c-stack, modules/closeout:
103168         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
103169         * modules/execute, modules/file-type, modules/getaddrinfo:
103170         * modules/getopt, modules/human, modules/javacomp:
103171         * modules/javaexec, modules/mkdir-p, modules/obstack:
103172         * modules/openat, modules/pagealign_alloc, modules/pipe:
103173         * modules/quotearg, modules/regex, modules/rpmatch:
103174         * modules/unicodeio, modules/userspec, modules/version-etc:
103175         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
103176         * modules/xsetenv:
103177         Depend on gettext-h, not gettext.
103179 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
103181         * gnulib-tool (func_import): Add support for 'public domain' license.
103182         * modules/alloca, modules/atexit, modules/memmove:
103183         Now public domain, not GPL.
103184         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
103185         * modules/realloc, modules/strerror, modules/strtod:
103186         Now LGPL, not GPL.
103188 2005-07-05  Bruno Haible  <bruno@clisp.org>
103190         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
103191         autoconf CVS. Needed for mingw.
103193 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103195         Remove the dependency of the strftime module on the tzset module.
103196         * modules/strftime (Depends-on): Remove dependency on tzset.
103198 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103200         Remove the dependency of the strftime module on the tzset module.
103201         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
103202         gl_FUNC_TZSET_CLOBBER.
103204 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103206         Remove the dependency of the strftime module on the tzset module.
103207         * lib/strftime.c (my_strftime)
103208         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
103209         Copy the input structure, to work around some of the bug with
103210         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
103211         Solaris releases, you should also use the tzset module, but we won't
103212         require it as a dependency any more since we don't want LGPLed code
103213         to depend on GPLed code.
103215 2005-07-02  Jim Meyering  <jim@meyering.net>
103217         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
103218         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
103219         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
103220         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
103222 2005-07-02  Jim Meyering  <jim@meyering.net>
103224         * lib/backupfile.c (backup_args): Change a `0' to NULL.
103226 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
103228         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
103229         declares only 'struct timespec;' (!).
103231 2005-07-01  Jim Meyering  <jim@meyering.net>
103233         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
103234         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
103235         * lib/save-cwd.c, tempname.c:
103236         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103237         and don't include <sys/file.h>).
103239 2005-06-29  Jim Meyering  <jim@meyering.net>
103241         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
103242         type name.  Use the variable name instead.
103243         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
103244         Likewise.
103246 2005-06-28  Simon Josefsson  <jas@extundo.com>
103248         * modules/check-version (Files): Add check-version.m4.
103250 2005-06-28  Simon Josefsson  <jas@extundo.com>
103252         * m4/check-version.m4: New file, suggested by Jim Meyering
103253         <jim@meyering.net>.
103255 2005-06-28  Simon Josefsson  <jas@extundo.com>
103257         * lib/check-version.h, lib/check-version.c: New files.
103259 2005-06-28  Simon Josefsson  <jas@extundo.com>
103261         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
103262         collision with global variable.  Better indentation.  Don't
103263         increment buffer pointer beyond buffer end.  Based on comments
103264         from Paul Eggert <eggert@cs.ucla.edu>.
103266         * lib/base64.h: Indent.
103268 2005-06-28  Simon Josefsson  <jas@extundo.com>
103270         * doc/gnulib.texi (Library version handling): New section.
103272 2005-06-28  Jim Meyering  <jim@meyering.net>
103274         * check-module (find_included_lib_files): Hard-code another
103275         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
103276         but modules/fts-lgpl (correctly) does not list those files.
103278         * modules/canonicalize (Files): Add lib/pathmax.h.
103280 2005-06-25  Simon Josefsson  <jas@extundo.com>
103282         * modules/check-version: New file.
103284 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
103286         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
103287         initializer of struct addrinfo, as an indication that we don't
103288         care how many members the structure has.
103290 2005-06-24  Derek Price  <derek@ximbiot.com>
103291         and Bruno Haible  <bruno@clisp.org>
103293         Remove stat module & update lstat.
103294         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
103295         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
103296         * m4/stat.m4: Remove this file.
103298 2005-06-24  Derek Price  <derek@ximbiot.com>
103299         and Bruno Haible  <bruno@clisp.org>
103301         Remove stat module & update lstat.
103302         * lib/stat.c: Remove this file...
103303         (slash_aware_lstat): ...moving this content and its support...
103304         * lib/lstat.c (rpl_lstat): ...into here.
103305         * lib/lstat.h: New file.
103307 2005-06-24  Derek Price  <derek@ximbiot.com>
103308         and Bruno Haible  <bruno@clisp.org>
103310         Remove stat module & update lstat.
103311         * config/srclist.txt (libc sources): Remove stat.
103313 2005-06-24  Derek Price  <derek@ximbiot.com>
103314         and Bruno Haible  <bruno@clisp.org>
103316         Remove stat module & update lstat.
103317         * MODULES.html.sh (stat): Remove.
103318         * MODULES.html: Regenerated.
103319         * modules/lstat (Description): Correct function name.
103320         (Files): Add "lstat.h".
103321         (Depends-on): Remove stat, add xalloc, stat-macros.
103322         * modules/stat: Remove this file.
103323         (Include): Add "lstat.h", remove <sys/stat.h>.
103325 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103327         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
103328         (ranged_convert): Don't save conversion in a temporary struct.
103329         This causes a warning with GCC 4.0.0, and anyway in the typical
103330         case it's not worth the extra 100 bytes or so of code.
103331         (ranged_convert, __mktime_internal): When calling a function via a
103332         pointer P, use P () rather than (*P) (), as we now assume C89 or
103333         better.
103335 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103337         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
103338         "who -r" failed to give output.  Problem reported by Tim Waugh.
103340         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
103341         (xcalloc): Use it to avoid needless tests.
103342         Problem reported by Jim Meyering.
103344 2005-06-20  Derek Price  <derek@ximbiot.com>
103346         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
103347         unnecessary for Autoconfs > 2.59c.
103349 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103351         * lib/argp.h (__option_is_short): Check upper limit of
103352         __key. Isprint() requires its argument to have the value
103353         of an unsigned char or EOF.
103355 2005-06-16  Jim Meyering  <jim@meyering.net>
103357         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
103358         when either N or S is zero.
103360 2005-06-16  Derek Price  <derek@ximbiot.com>
103362         * m4/bison.m4: Declare YACC & YFLAGS precious.
103364 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
103366         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
103367         multibyte string or pattern, fall back on unibyte matching.
103368         Problem reported by James Youngman.
103370 2005-06-08  Bruno Haible  <bruno@clisp.org>
103372         * modules/csharpcomp: New file.
103373         * MODULES.html.sh (C#): Add csharpcomp.
103375 2005-06-08  Bruno Haible  <bruno@clisp.org>
103377         * m4/csharpcomp.m4: New file, from GNU gettext.
103379 2005-06-08  Bruno Haible  <bruno@clisp.org>
103381         * lib/csharpcomp.h: New file, from GNU gettext.
103382         * lib/csharpcomp.c: New file, from GNU gettext.
103383         * lib/csharpcomp.sh.in: New file, from GNU gettext.
103385 2005-06-08  Bruno Haible  <bruno@clisp.org>
103387         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
103388         warning on mingw.
103390 2005-06-07  Derek Price  <derek@ximbiot.com>
103392         Sync from CVS.
103393         * lib/glob_.h: Indent nested #ifdef.
103395 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103397         Sync from coreutils.
103398         Use "file name" when talking about file names, instead of "filename"
103399         or "path", as per the GNU coding standards.
103400         * lib/mkdir-p.c: Renamed from makepath.c.
103401         (make_dir_parents): Renamed from make_path.  All callers changed.
103402         * lib/mkdir-p.h: Likewise.  All includers changed.
103403         * lib/filenamecat.c: Renamed from path-concat.c.
103404         (file_name_concat): Renamed from path_concat.  All callers changed.
103405         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
103406         * lib/filenamecat.h: Likewise.  All includers changed.
103407         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
103408         in comments or local variable names.
103409         * lib/basename.c: Likewise.
103410         * lib/canonicalize.c, canonicalize.h: Likewise.
103411         * lib/dirname.c, dirname.h: Likewise.
103412         * lib/euidaccess.c: Likewise.
103413         * lib/exclude.c: Likewise
103414         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
103415         * lib/fsusage.c, fsuage.h: Likewise.
103416         * lib/fts.c, fts_.h: Likewise.
103417         * lib/getcwd.c: Likewise.
103418         * lib/getloadavg.c: Likewise.
103419         * lib/mkstemp.c: Likewise.
103420         * lib/mountlist.c, mountlist.h: Likewise.
103421         * lib/openat.c, openat.h: Likewise.
103422         * lib/readlink-stub.c: Likewise.
103423         * lib/readutmp.c, readutmp.h: Likewise.
103424         * lib/rename.c: Likewise.
103425         * lib/rmdir.c: Likewise.
103426         * lib/same.c: Likewise.
103427         * lib/savedir.c: Likewise.
103428         * lib/stripslash.c: Likewise.
103429         * lib/tempname.c: Likewise.
103430         * lib/xreadlink.c: Likewise.
103431         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
103432         All uses changed.
103433         * lib/exclude.h: Likewise.
103435         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
103436         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103437         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
103438         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103439         * lib/pathmax.h: Include <limits.h> unconditionally, since other
103440         files have been getting away with it for years (MORE/BSD 4.3
103441         is extinct now).
103442         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
103443         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103445         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
103446         Define to 256, not 255, as per modern POSIX.
103448 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103450         Sync from coreutils.
103451         Use "file name" when talking about file names, instead of "filename"
103452         or "path", as per the GNU coding standards.
103453         * MODULES.html.sh: mkdir-p renamed from makepath.
103454         filenamecat renamed from path-concat.
103455         * modules/filenamecat: Renamed from modules/path-concat.
103456         (Files): filenamecat.h and filenamecat.c renamed from
103457         path-concat.h and path-concat.c.
103458         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
103459         (Include): filenamecat.h, not path-concat.h.
103460         * modules/mkdir-p: Renamed from modules/makepath.
103461         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
103462         makepath.c.
103463         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
103464         (Include): mkdir-p.h, not makepath.h.
103466 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103468         Sync from coreutils.
103469         * m4/mkdir-p.m4: Renamed from makepath.m4.
103470         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
103471         Rename files from makepath.c to mkdir-p.c, and from
103472         makepath.h to mkdir-p.h.
103473         * m4/filenamecat.m4: Renamed from path-concat.m4.
103474         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
103475         Rename files from path-concat.c to filenamecat.c,
103476         and from path-concat.h to filenamecat.h.
103477         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
103478         "file name" in local variables or comments.
103479         * m4/rename.m4: Likewise.
103481 2005-06-01  Bruno Haible  <bruno@clisp.org>
103483         * modules/csharpexec: New file.
103484         * MODULES.html.sh (C#): New section.
103486 2005-06-01  Bruno Haible  <bruno@clisp.org>
103488         * m4/csharp.m4: New file, from GNU gettext.
103489         * m4/csharpexec.m4: New file, from GNU gettext.
103491 2005-06-01  Bruno Haible  <bruno@clisp.org>
103493         * lib/csharpexec.h: New file, from GNU gettext.
103494         * lib/csharpexec.c: New file, from GNU gettext.
103495         * lib/csharpexec.sh.in: New file, from GNU gettext.
103497 2005-05-31  Derek Price  <derek@ximbiot.com>
103498             Paul Eggert  <eggert@cs.ucla.edu>
103500         Sync from cvs.
103501         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
103503 2005-05-31  Derek Price  <derek@ximbiot.com>
103504             Paul Eggert  <eggert@cs.ucla.edu>
103506         Sync from cvs.
103507         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
103509 2005-05-29  Derek Price  <derek@ximbiot.com>
103511         * config/srclist.txt (glob_.h, glob.c): Add these files.
103513 2005-05-29  Derek Price  <derek@ximbiot.com>
103515         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
103516         * modules/glob: New file.
103517         * modules/getlogin_r: Add link to POSIX spec in description.
103519 2005-05-29  Derek Price  <derek@ximbiot.com>
103520             Paul Eggert  <eggert@cs.ucla.edu>
103522         * m4/glob.m4: New file.
103524 2005-05-29  Derek Price  <derek@ximbiot.com>
103525             Paul Eggert  <eggert@cs.ucla.edu>
103527         * lib/glob_.h, lib/glob.c: New files.
103529 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103531         * modules/fts (Files): Remove m4/inttypes-pri.m4.
103532         * modules/fts-lgpl (Depends-on): Remove gettext.
103534 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103536         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
103537         and don't require gt_INTTYPES_PRI.
103539 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103541         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
103543         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
103544         the configuration hassle isn't worth it.
103545         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
103546         (LONGEST_MODIFIER, PRIuMAX): Remove.
103548 2005-05-27  Bruno Haible  <bruno@clisp.org>
103550         * lib/getlogin_r.h: Remove second include of <stddef.h>.
103552 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
103554         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
103555         _POSIX_PTHREAD_SEMANTICS for Solaris.
103557 2005-05-25  Derek Price  <derek@ximbiot.com>
103559         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
103561 2005-05-25  Derek Price  <derek@ximbiot.com>
103562             Paul Eggert  <eggert@cs.ucla.edu>
103564         * modules/getlogin_r, m4/getlogin_r.m4: New files.
103565         * lib/getlogin_r.c, getlogin_r.h: New files.
103567 2005-05-25  Bruno Haible  <bruno@clisp.org>
103568             Derek Price  <derek@ximbiot.com>
103570         * lib/getlogin_r.h: Simplify API documentation.
103572 2005-05-23  Derek Price  <derek@ximbiot.com>
103574         * modules/minmax (Files): Add m4/minmax.m4.
103575         (configure.ac): Add gl_MINMAX.
103577 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
103579         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
103580         so that unistd-safer.h (GPL'ed code) need not be included.
103582 2005-05-22  Bruno Haible  <bruno@clisp.org>
103584         * m4/minmax.m4: New file.
103585         Based on a patch by Derek Price <derek@ximbiot.com>.
103587 2005-05-22  Bruno Haible  <bruno@clisp.org>
103589         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
103590         (INT64_MIN): Fix definition.
103591         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
103593         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
103594         NEED_SIGNED_INT_TYPES.
103596         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
103597         HAVE_SYSTEM_INTTYPES.
103599 2005-05-22  Bruno Haible  <bruno@clisp.org>
103601         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
103602         Also include <sys/param.h> if it defines MIN, MAX.
103603         Based on a patch by Derek Price <derek@ximbiot.com>.
103605 2005-05-21  Jim Meyering  <jim@meyering.net>
103607         * modules/fts (Files): Add m4/inttypes-pri.m4.
103608         (Depends-on): Add lstat and remove gettext.  Alphabetize.
103610 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103612         New fts module.
103613         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
103614         (setup_dir, free_dir): New functions.
103615         (enter_dir, leave_dir): Define trivial
103616         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
103617         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
103618         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
103619         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
103620         Move to fts-cycle.c.
103621         (fts_open): Use setup_dir.
103622         (fts_close): Use free_dir.
103623         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
103624         This adds a label and some gotos, but the alternatives were messier.
103625         Check for memory allocation failure when entering a dir.
103626         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
103627         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
103628         (FTS): New member fts_cycle, that is a union that contains the
103629         old active_dir_ht and cycle_state.  All uses changed to mention
103630         fts_cycle.ht and fts_cycle.state.
103631         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
103632         fts.c, with the following changes:
103633         (setup_dir, free_dir): New functions.
103634         (enter_dir): Now returns bool.  Return true if successful, false
103635         if memory exhausted.  All callers changed.
103636         Do not bother partly cleaning up on
103637         memory allocation failure; that is free_dir's job.
103638         However, free ad if hash_insert fails, to avoid memory leak.
103639         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
103640         fts->fts_options to see which union member to use.
103642 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103644         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
103645         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
103647 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103649         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
103651 2005-05-20  Jim Meyering  <jim@meyering.net>
103653         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
103654         Now a macro, to pacify GCC.
103656 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
103658         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
103659         of -1.
103661 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
103663         * lib/chown.c (rpl_chown): Return -1 on failure.
103665 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
103667         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
103668         Don't check for stddef.h.
103669         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
103670         don't use its results.
103671         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
103672         since we include them unconditionally.  Don't require
103673         AM_STDBOOL_H, since stdbool is a prerequisite.
103674         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
103675         since we assume C89 or better.
103676         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
103677         as we don't use their results.
103678         Don't check for fchdir, memmove, memset, strrchr, as we use
103679         them unconditionally.
103680         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
103681         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
103683 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
103685         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
103686         Include <stddef.h> unconditionally, since we assume C89 now.
103687         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
103688         * lib/fts.c: Include fts_.h first, to check interface.
103689         Do not include intprops.h; no longer needed.
103690         Include cycle-check.h and hash.h, since fts_.h no longer does.
103691         Remove unnecessary casts of closedir to void.
103692         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
103693         decide whether to decrement nlinks.
103694         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
103695         (FTS): Use struct hash_table * instead of Hash_table, so that
103696         we no longer need to include hash.h here.
103698 2005-05-18  Jim Meyering  <jim@meyering.net>
103700         * modules/dirfd (License): Change to LGPL.  Most of the code
103701         is already in the public domain.
103703 2005-05-18  Jim Meyering  <jim@meyering.net>
103705         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
103706         Reported by Yoann Vandoorselaere.
103708 2005-05-17  Jim Meyering  <jim@meyering.net>
103710         * m4/fts.m4: New file, from coreutils.
103712 2005-05-17  Jim Meyering  <jim@meyering.net>
103714         * lib/fts.c, lib/fts_.h: New files, from coreutils.
103716 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103718         Sync from coreutils.
103719         * m4/unlinkdir.m4: New file.
103721 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103723         Sync from coreutils.
103724         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
103725         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
103726         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
103727         White space changes only.
103728         * lib/makepath.c (make_path): Port to hosts where leading "//" is
103729         special.
103730         * lib/yesno.c: Include getline.h, not ctype.h.
103731         (yesno): Don't remove leading white space; POSIX doesn't allow it.
103732         Use getline to remove arbitrary restriction on response length.
103734 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
103736         * config/srclist-update: Spell out "Street" in FSF postal
103737         mail address; this is the style the FSF seems to prefer.
103739         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
103740         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
103741         this updates FSF postal mail address.
103743         Sync from coreutils.
103744         * modules/unlinkdir: New file.
103745         * modules/yesno (Depends-on): Add getline.
103746         * MODULES.html.sh (File system functions): Add unlinkdir.
103748 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103750         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
103751         lib/strsep.h:
103752         Change the initial comment to refer to GPL, not LGPL.
103753         gnulib-tool will change it to LGPL as needed.
103755         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
103756         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
103757         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
103758         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
103759         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
103760         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
103761         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
103762         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
103763         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
103764         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
103765         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
103766         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
103767         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
103768         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
103769         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
103770         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
103771         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
103772         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
103773         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
103774         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
103775         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
103776         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
103777         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
103778         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
103779         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
103780         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
103781         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
103782         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
103783         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
103784         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
103785         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
103786         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
103787         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
103788         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
103789         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
103790         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
103791         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
103792         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
103793         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
103794         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
103795         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
103796         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
103797         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
103798         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
103799         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
103800         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
103801         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
103802         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
103803         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
103804         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
103805         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
103806         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
103807         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
103808         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
103809         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
103810         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
103811         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
103812         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
103813         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
103814         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
103815         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
103816         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
103817         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
103818         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
103819         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
103820         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
103821         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
103822         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
103823         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
103824         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
103825         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
103826         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
103827         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
103828         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
103829         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
103830         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
103831         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
103832         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
103833         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
103834         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
103835         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
103836         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
103837         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
103838         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
103839         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
103840         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
103841         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
103842         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
103843         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
103844         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
103845         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
103846         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
103847         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
103848         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
103849         lib/yesno.c, lib/yesno.h:
103850         Update FSF postal mail address.
103852 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103854         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
103855         tests/test-memmem.c, tests/test-stpncpy.c:
103856         Update FSF postal mail address.
103858 2005-05-13  Bruno Haible  <bruno@clisp.org>
103860         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
103861         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
103862         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
103863         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
103864         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
103865         Add support for 64-bit integers in the MSVC compiler.
103867 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103869         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
103871 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
103873         * gnulib-tool (func_import): Sort and uniquify recommended includes.
103875 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
103877         * doc/getdate.texi (General date syntax): Don't say that date
103878         date --iso-8601=ns generates acceptable dates; it doesn't yet.
103879         Problem reported by Nic Ferrier.
103881 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103883         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
103884         specified in ai_socktype. Fix invalid ai_protocol
103885         check. ai_protocol is usually set to 0 or depending on
103886         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
103887         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
103888         ai_socktype / ai_protocol in the returned addrinfo structure.
103890 2005-05-10  Simon Josefsson  <jas@extundo.com>
103892         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
103893         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
103895 2005-05-10  Karl Berry  <karl@gnu.org>
103897         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
103898         (from http://www.gnu.org/licenses).
103899         * doc/COPYING.LIB: also rename to COPYING.LESSER.
103900         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
103901         fdl.texi suffices.
103903 2005-05-10  Karl Berry  <karl@gnu.org>
103905         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
103906         (COPYING.DOC): remove.
103908         * config/srclist-update: new FSF address.
103910 2005-05-10  Derek Price  <derek@ximbiot.com>
103912         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
103913         possible.
103915 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103916             Bruno Haible  <bruno@clisp.org>
103918         * modules/inet_ntop: New file.
103919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103920         inet_ntop.
103922 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103923             Bruno Haible  <bruno@clisp.org>
103925         * m4/inet_ntop.m4: New file.
103927 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103928             Bruno Haible  <bruno@clisp.org>
103930         * lib/inet_ntop.h: New file.
103931         * lib/inet_ntop.c: New file, from glibc with modifications.
103933 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
103935         * modules/time_r (License): Change to LGPL.
103936         * modules/extensions (License): Change to LGPL.  Actually,
103937         the license is more permissive than that, but currently gnulib-tool
103938         doesn't know how to handle more-permissive licenses.
103940         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
103941         Problem reported by Dave Love.
103943 2005-05-08  Jim Meyering  <jim@meyering.net>
103945         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
103946         blank.
103948 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
103950         * modules/argmatch (Depends-on): Add stdbool.
103951         * modules/backupfile (Depends-on): Likewise.
103952         * modules/chdir-long (Depends-on): Likewise.
103953         * modules/closeout (Depends-on): Likewise.
103954         * modules/cycle-check (Depends-on): Likewise.
103955         * modules/dirname (Depends-on): Likewise.
103956         * modules/fnmatch (Depends-on): Likewise.
103957         * modules/fsusage (Depends-on): Likewise.
103958         * modules/fwriteerror (Depends-on): Likewise.
103959         * modules/getcwd (Depends-on): Likewise.
103960         * modules/getloadavg (Depends-on): Likewise.
103961         * modules/hard-locale (Depends-on): Likewise.
103962         * modules/makepath (Depends-on): Likewise.
103963         * modules/mountlist (Depends-on): Likewise.
103964         * modules/nanosleep (Depends-on): Likewise.
103965         * modules/posixtm (Depends-on): Likewise.
103966         * modules/quotearg (Depends-on): Likewise.
103967         * modules/readtokens (Depends-on): Likewise.
103968         * modules/readtokens0 (Depends-on): Likewise.
103969         * modules/readutmp (Depends-on): Likewise.
103970         * modules/save-cwd (Depends-on): Likewise.
103971         * modules/strftime (Depends-on): Likewise.
103972         * modules/userspec (Depends-on): Likewise.
103973         * modules/utimecmp (Depends-on): Likewise.
103974         * modules/xgetcwd (Depends-on): Likewise.
103975         * modules/xnanosleep (Depends-on): Likewise.
103976         * modules/xstrtod (Depends-on): Likewise.
103977         * modules/yesno (Depends-on): Likewise.
103979 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
103981         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
103982         needless checks.
103984 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103986         Merge from coreutils.  Among other things,
103987         add bulletproofing for cases where stdin, stdout, or stderr are closed.
103988         * lib/fd-safer.c: New file.
103989         * lib/fcntl-safer.h, open-safer.c: Remove.
103990         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
103991         * lib/dup-safer.c: Include unistd-safer.h first.
103992         Don't include errno.h.
103993         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
103994         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
103995         * lib/file-type.c: Rely on file-type.h change.
103996         * lib/getloadavg.c: Include unistd-safer.h.
103997         (getloadavg): Use safer open.
103998         * lib/getusershell.c: Include "stdio-safer.h".
103999         (getusershell): Use safer fopen.
104000         * lib/long-options.c (long_options): Use NULL rather than 0.
104001         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
104002         'free'.
104003         * lib/modechange.c: Likewise.
104004         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
104005         (MODE_DONE): New constant.
104006         (struct mode_change): Remove 'next' member.
104007         (make_node_op_equals): New function; like the old one of the
104008         same name, except it allocates an array.
104009         (mode_compile, mode_create_from_ref): Use it.
104010         (mode_compile): Allocate result as an array, not a linked list.
104011         Parse octal string ourself, so that we catch mistakes like "+0".
104012         (mode_adjust): Arg is an array, not a linked list.
104013         * lib/modechange.c: Include stat-macros.h, xalloc.h.
104014         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
104015         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
104016         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
104017         Remove.  This is now stat-macros.h's job.
104018         (talloc): Remove.  All callers replaced by xalloc, so that
104019         our invokers don't have to worry about reporting memory failures.
104020         (make_node_op_equals): Remove.
104021         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
104022         New constants.
104023         (struct mode_change): Moved here from modechange.h.
104024         (mode_append_entry): Remove.
104025         (mode_compile): Remove MASKED_OPS arg, since it encouraged
104026         apps to have incorrect behavior.  Use simpler algorithm for head
104027         and tail.  Don't futz with umask; that's now the job of mode_adjust.
104028         Detect more invalid usages rather than having somewhat-random behavior.
104029         Don't insert an "a=" action, as that leads to incorrect behavior.
104030         (mode_compile, mode_create_from_ref): Return NULL on error instead
104031         of an enum, since now there's only one way to have an error.  All
104032         callers changed.
104033         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
104034         at the correct time.  Simplify calculation of "+u" and its ilk.
104035         Don't mishandle "+X".
104036         (mode_free): Remove "register" and localize decls.
104037         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
104038         (struct mode_change): Move to modechange.c; callers don't
104039         need to see this stuff.
104040         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
104041         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
104042         (mode_change, mode_adjust): Reflect the new signatures noted above.
104043         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
104044         that might redefine system include files.
104045         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
104046         (my_usleep): Use NULL rather than (void *) 0.
104047         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
104048         Use siginterrupt to specify that system calls should be interrupted.
104049         (rpl_nanosleep): Move initialization of suspended closer to call of
104050         my_usleep.
104051         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
104052         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
104053         (desirable_utmp_entry): New function.
104054         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
104055         using x2nrealloc, to simplify logic.
104056         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
104057         size calculation.  Do not assume utmp file is a regular file.
104058         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
104059         (READ_UTMP_CHECK_PIDS): New constant.
104060         * lib/save-cwd.c: Include unistd-safer.h.
104061         (save_cwd): Use fd_safer.
104062         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
104063         [!_LIBC] Include "stat-macros.h" instead.
104064         * lib/unistd-safer.h (fd_safer): New decl.
104066 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104068         * modules/getloadavg (Depends-on): Add unistd-safer.
104069         * modules/getusershell (Depends-on): Add stdio-safer.
104070         * modules/lstat (Depends-on): Remove xalloc.
104071         * modules/mkstemp (Depends-on): Add stat-macros.
104072         * modules/modechange (Depends-on): Remove xstrtol.
104073         Add stat-macros, xalloc.
104074         * modules/save-cwd (Depends-on): Add unistd-safer.
104075         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
104076         * modules/unistd-safer (Files): Add lib/fd-safer.c
104077         (Makefile.am): Remove lib_SOURCES.
104079         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
104080         Remove fcntl-safer; unistd-safer supersedes it.
104082 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104084         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
104085         AC_HEADER_STAT.
104086         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
104087         (gl_PREREQ_CHOWN): Remove.
104088         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
104089         it.  Don't require AC_HEADER_STAT.
104090         (gl_PREREQ_LSTAT): Remove.
104091         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
104092         Don't require AC_HEADER_STAT.
104093         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
104094         (gl_PREREQ_RMDIR): Remove.
104095         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
104096         mention stat-macros.h or AC_HEADER_STAT, since we'll make
104097         the stat-macros module a prerequisite.
104098         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
104099         * m4/filemode.m4 (gl_FILEMODE): Likewise.
104100         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
104101         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
104102         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
104103         variable names.
104104         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
104105         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
104106         variable prefixes.
104107         * m4/fcntl-safer.m4: Remove.
104108         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
104109         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
104110         Invoke gl_PREREQ_FD_SAFER.
104111         (gl_PREREQ_FD_SAFER): New macro.
104112         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
104113         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
104114         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
104115         Remove duplicate call to AC_LIBOBJ(readutmp).
104116         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
104118         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
104119         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
104121 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104123         * MODULES.html.sh (Misc): Add byteswap.
104125 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104127         * modules/getcwd (Depends-on): Add extensions.
104128         * modules/openat (Depends-on): Likewise.
104130 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104132         * modules/byteswap: New file.
104134 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104136         * m4/byteswap.m4: New file.
104138 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104140         * lib/byteswap_.h: New file.
104142 2005-04-25  Karl Berry  <karl@gnu.org>
104144         * m4/gettext.m4: Update from GNU gettext 0.14.4.
104146 2005-04-25  Albert Chin  <china@thewrittenword.com>
104148         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
104149         Toolkit C bug.
104151 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
104153         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
104154         (func_ln_if_changed): Remove forcibly for no error message
104155         in case file does not exist.
104157 2005-04-19  Simon Josefsson  <jas@extundo.com>
104159         * gnulib-tool (Options): Make --symlink mean --symbolic.
104161 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
104163         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
104165 2005-04-16  Simon Josefsson  <jas@extundo.com>
104167         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
104169 2005-04-15  Simon Josefsson  <jas@extundo.com>
104171         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
104173 2005-04-15  Simon Josefsson  <jas@extundo.com>
104175         * gnulib-tool: Rename --symlink to --symbolic.
104177 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
104179         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
104180         symbolic links to files instead of copying/moving.  Add --aux-dir,
104181         specifying directory relative --dir where auxiliary build tools
104182         are placed.
104184 2005-04-14  Bruno Haible  <bruno@clisp.org>
104186         * modules/allocsa (License): Change to LGPL.
104187         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
104189 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104191         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
104192         that "UTC +1 second" continues to work.  Problem reported
104193         by Dmitry V. Levin.
104194         (relunit_snumber): New rule.
104195         (relunit): Use it.
104197 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
104199         * lib/getdate.y (universal_time_zone_table): New constant.
104200         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
104201         universal_time_zone_table.
104202         (lookup_zone): Prefer universal_time_zone_table to
104203         local_time_zone_table, so that "GMT" time stamps are allowed in
104204         London during the summer.  Problem reported by Ian Abbott.
104206 2005-04-12  Jim Meyering  <jim@meyering.net>
104208         * lib/human.c (humblock): Set *options even when returning due to
104209         xstrtoumax conversion failure.  Thanks to a used-uninitialized
104210         warning from gcc-4.
104212 2005-04-09  Jim Meyering  <jim@meyering.net>
104214         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
104215         -Wuninitialized: initialize tm0.tm_year.
104217 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104219         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
104220         count, since there's no maximum.  All uses changed.
104221         Add member dsts_seen.
104222         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
104223         not being INT_MAX.
104224         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
104225         Use pc_rels_seen to decide whether a date is absolute.
104227         * lib/getdate.y (number): Don't overwrite year.
104228         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
104229         check.
104231 2005-04-02  Simon Josefsson  <jas@extundo.com>
104233         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
104234         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
104236 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
104238         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
104239         where no absolute path name can be longer than PATH_MAX.
104241 2005-03-27  Jim Meyering  <jim@meyering.net>
104243         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
104245 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
104247         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
104248         "one's complement" -> "ones' complement" in comment, as per Knuth.
104249         "value of type" -> "type or expression" in comment.
104250         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
104252 2005-03-26  Jim Meyering  <jim@meyering.net>
104254         Comment nits.
104255         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
104256         Correct typos: s/or/of/.
104258 2005-03-26  Jim Meyering  <jim@meyering.net>
104260         * modules/check-include-files: Move to ../ and rename to...
104261         * check-module: ...this.
104263 2005-03-25  Jim Meyering  <jim@meyering.net>
104265         * modules/xvasprintf (Files): Add xalloc.h.
104267 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
104269         * modules/gettext (Files): config/config.rpath ->
104270         build-aux/config.rpath
104271         * modules/iconv (Files): Likewise.
104272         Problem reported by Oskar Liljeblad.
104274 2005-03-23  Jim Meyering  <jim@meyering.net>
104276         * modules/check-include-files: New script to check for
104277         missing dependencies, multiple includes, etc.
104279         * modules/c-strtold (Depends-on): Add xalloc.
104280         * modules/c-strtod (Depends-on): Add xalloc.
104281         * modules/hash (Depends-on): Add xalloc.
104282         (Files): Remove lib/xalloc.h.
104284         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
104285         * modules/userspec (Files): Add lib/inttostr.h.
104287 2005-03-23  Jim Meyering  <jim@meyering.net>
104289         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
104291 2005-03-22  Jim Meyering  <jim@meyering.net>
104293         * modules/stat-macros: New module.
104294         * modules/canonicalize, modules/euidaccess, modules/file-type,
104295         * modules/filemode, modules/lchown, modules/makepath,
104296         * modules/rmdir, modules/stat: Depend on new stat-macros module
104297         rather than listing lib/stat-macros.h manually.
104298         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
104300 2005-03-22  Jim Meyering  <jim@meyering.net>
104302         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
104304 2005-03-22  Bruno Haible  <bruno@clisp.org>
104306         * config/srclist.txt: Replace target directory 'config' with
104307         'build-aux'.
104308         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
104309         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
104310         ../build-aux/.
104312 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
104314         * modules/chdir-long (Depends-on): Add mempcpy.
104316         * modules/acl, modules/backupfile, modules/c-strtod,
104317         modules/c-strtold, modules/canon-host, modules/canonicalize,
104318         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
104319         modules/exclude, modules/exitfail, modules/file-type,
104320         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
104321         modules/getdate, modules/getline, modules/getpagesize,
104322         modules/getpass, modules/getugroups, modules/group-member,
104323         modules/hard-locale, modules/hash, modules/human, modules/idcache,
104324         modules/inttostr, modules/long-options, modules/makepath,
104325         modules/md5, modules/memcasecmp, modules/memcoll,
104326         modules/modechange, modules/mountlist, modules/path-concat,
104327         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
104328         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
104329         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
104330         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
104331         modules/strftime, modules/strndup, modules/strverscmp,
104332         modules/timespec, modules/unlocked-io, modules/userspec,
104333         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
104334         modules/yesno:
104335         Remove lib_SOURCES line from Makefile.am section, as this is now
104336         done automatically by the corresponding Autoconf macro.
104338 2005-03-21  Jim Meyering  <jim@meyering.net>
104340         Changes imported from coreutils.
104342         * lib/cycle-check.c: Don't include xalloc.h.
104344         * lib/path-concat.c: Don't include assert.h.
104345         (path_concat): Remove assertion that would have triggered
104346         for ABASE starting with more than one slash.
104347         Reported by Andreas Schwab.
104349         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
104350         properly when ABASE is an absolute file name.
104351         Correct the description of this function.
104352         Include <assert.h>.
104353         Add an assertion and a test driver.
104354         This fixes a bug introduced on 2004-07-02.
104355         Andreas Schwab reported the resulting failure of cp --parents:
104356         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
104358 2005-03-21  Jim Meyering  <jim@meyering.net>
104360         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
104361         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
104363 2005-03-21  Jim Meyering  <jim@meyering.net>
104364         and  Paul Eggert  <eggert@cs.ucla.edu>
104366         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
104367         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
104368         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
104369         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
104370         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
104371         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
104372         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
104373         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
104374         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
104375         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
104376         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
104377         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
104378         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
104379         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
104380         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
104381         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
104382         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
104383         for these modules.
104385 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
104387         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
104388         (which shouldn't happen), generate nothing instead of returning 0
104389         immediately, so that nstrftime (NULL, ...) doesn't return 0.
104391 2005-03-16  Bruno Haible  <bruno@clisp.org>
104393         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
104394         HAVE_LONGLONG_64BIT.
104396 2005-03-16  Bruno Haible  <bruno@clisp.org>
104398         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
104399         HAVE_LONGLONG_64BIT.
104401 2005-03-16  Bruno Haible  <bruno@clisp.org>
104403         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
104404         HAVE_LONGLONG_64BIT.
104406 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104408         * lib/strftime.c (my_strftime): Prepend space to format so that we can
104409         reliably distinguish strftime failure from empty output on POSIX
104410         hosts.
104412 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104414         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
104415         (iconv_string): Don't guess a size-zero buffer, as that might cause
104416         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
104417         result would be 'too large', where 'too large' is (heuristically)
104418         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
104419         overflow concerns.  This will prevent some unwanted malloc failures
104420         when the inputs are very large.
104422 2005-03-15  Karl Berry  <karl@gnu.org>
104424         * config/srclist.txt (config.rpath): from gettext.
104425         * config/config.rpath: update.
104427 2005-03-15  Bruno Haible  <bruno@clisp.org>
104429         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
104430         to 'negate'.
104432         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
104433         variable.
104435         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
104436         results.
104438 2005-03-14  Simon Josefsson  <jas@extundo.com>
104440         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
104441         <fx@gnu.org>.
104443 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
104445         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
104446         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
104447         intprops.h.
104448         * lib/strtol.c: Likewise.
104450 2005-03-14  Jim Meyering  <jim@meyering.net>
104452         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
104453         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
104454         to be nonzero so that we (and caller) can detect the difference
104455         between a valid zero-length expansion and an error return, even
104456         when the underlying strftime fails before writing anything into
104457         that location.
104459 2005-03-14  Bruno Haible  <bruno@clisp.org>
104461         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
104462         Update from GNU gettext 0.14.3.
104464 2005-03-10  Jim Meyering  <jim@meyering.net>
104466         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
104468 2005-03-10  Jim Meyering  <jim@meyering.net>
104470         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
104471         so that this module works on systems without fchdir.
104473 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
104475         Factor int-properties macros into a single file, except for
104476         glibc-related files.
104477         * lib/intprops.h: New file.
104478         * lib/getloadavg.c: Include it instead of limits.h.
104479         (INT_STRLEN_BOUND): Remove.
104480         * lib/human.c: Include intprops.h.
104481         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
104482         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
104483         302/1000.
104484         * lib/inttostr.h: Include intprops.h instead of limits.h.
104485         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
104486         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
104487         for consistency with intprops.h.
104488         (time_t_is_integer, twos_complement_arithmetic): Use them.
104489         * lib/sig2str.h: Include <signal.h>, intprops.h.
104490         (INT_STRLEN_BOUND): Remove.
104491         * lib/strftime.c (TYPE_SIGNED): Remove.
104492         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
104493         * lib/strtol.c: Adjust comments to match intprops.h.
104494         * lib/userspec.c: Include intprops.h.
104495         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
104496         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
104497         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
104498         instead of rolling our own expressions.
104499         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
104501         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
104502         instead of int.
104503         (my_strftime): Do not mishandle years close to INT_MAX, by doing
104504         the right thing even if adding 1900 would overflow.  Similarly
104505         for tm_mon + 1 and tm_yday + 1.
104506         Make %Y always equivalent to %C%y, and similarly for %G and %g.
104507         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
104508         (DO_SIGNED_NUMBER): New macro.
104509         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
104511 2005-03-07  Bruno Haible  <bruno@clisp.org>
104513         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
104515 2005-03-07  Bruno Haible  <bruno@clisp.org>
104517         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
104519 2005-03-04  Derek R. Price  <derek@ximbiot.com>
104521         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
104522         (func_import): Only replace files via --import when they have actually
104523         changed.
104525 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104527         * m4/mmap-anon.m4: New file.
104528         * m4/pagealign_alloc.m4: New file.
104530 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104531             Bruno Haible  <bruno@clisp.org>
104533         * modules/pagealign_alloc: New file.
104534         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
104536 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104537             Bruno Haible  <bruno@clisp.org>
104539         * lib/pagealign_alloc.h: New file.
104540         * lib/pagealign_alloc.c: New file.
104542 2005-03-03  Bruno Haible  <bruno@clisp.org>
104544         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
104545         Use an all-permissive copyright notice, recommended by RMS.
104547 2005-03-02  Bruno Haible  <bruno@clisp.org>
104549         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
104550         of AIX, the replacement has to be done only after <string.h> is
104551         included, therefore not in config.h. stpncpy.h does the replacement,
104552         and stpncpy.c uses it.
104554 2005-03-02  Bruno Haible  <bruno@clisp.org>
104556         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
104557         stpncpy.c uses it.
104559 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104561         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
104562         The workaround isn't strictly needed for POSIX conformance, and
104563         it's too much of a pain to configure and maintain.  We'll ask
104564         people to fix their kernels instead.
104565         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
104566         (NANOSLEEP_BUG_WORKAROUND): Remove.
104567         (xnanosleep): Remove the workaround.
104569 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104571         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
104572         Reported by Derek Price.
104573         (Include): Add "timespec.h".
104575         * modules/xnanosleep (Depends-on): Remove gethrxtime.
104577 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104579         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
104580         to detect nanosleep bug.
104582 2005-03-01  Bruno Haible  <bruno@clisp.org>
104584         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
104586 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
104588         * modules/gethrxtime: New file.
104589         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
104590         (Depends-on): Add gethrxtime.
104591         (configure.ac): Add gl_XNANOSLEEP.
104592         (Makefile.am): Remove lib_SOURCES line.
104594 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104596         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
104597         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
104599 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104601         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
104602         * lib/timespec.h (gettime): Return void, since it always
104603         succeeds now.  All uses changed.
104604         * lib/gettime.c (gettime): Likewise.
104605         [HAVE_NANOTIME]: Prefer nanotime.
104606         Assume gettimeofday succeeds, as POSIX requires.
104607         Assime time () succeeds, since other code already does.
104608         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
104609         (timespec_subtract): Remove.
104610         (NANOSLEEP_BUG_WORKAROUND): New constant.
104611         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
104612         things considerably.  Use it only on GNU/Linux hosts, since the
104613         workaround shouldn't be needed elsewhere.
104615 2005-02-24  Bruno Haible  <bruno@clisp.org>
104617         * modules/gettext (Files): Add m4/glibc2.m4.
104619 2005-02-24  Bruno Haible  <bruno@clisp.org>
104621         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
104622         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
104623         * m4/progtest.m4:
104624         Update from GNU gettext 0.14.2.
104625         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
104627 2005-02-24  Bruno Haible  <bruno@clisp.org>
104629         * lib/localcharset.c: Update from GNU gettext 0.14.2.
104630         * lib/config.charset: Update from GNU gettext 0.14.2.
104632 2005-02-24  Bruno Haible  <bruno@clisp.org>
104634         * lib/gettext.h: Update from GNU gettext 0.14.2.
104636 2005-02-23  Simon Josefsson  <jas@extundo.com>
104638         * m4/iconvme.m4: New file.
104640 2005-02-23  Jim Meyering  <jim@meyering.net>
104642         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
104643         change.
104644         Thanks to Bruno Haible for catching it.
104646 2005-02-22  Simon Josefsson  <jas@extundo.com>
104648         * modules/iconvme: New file.
104650         * MODULES.html.sh: Add iconvme.
104652 2005-02-22  Simon Josefsson  <jas@extundo.com>
104654         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
104656 2005-02-22  Simon Josefsson  <jas@extundo.com>
104658         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
104660 2005-02-22  Jim Meyering  <jim@meyering.net>
104662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
104663         s/ifndef/ifdef/.
104665 2005-02-20  Neil Conway  <neilc@samurai.com>
104667         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
104668         returned by OSX/Darwin if the specified buffer is not large
104669         enough for the hostname.
104671 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104673         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
104674         pass it to _help, otherwise the latter coredumps trying to
104675         dereference state.root_argp.
104677 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104679         * modules/chdir-long (Depends-on): Add memrchr.
104680         * modules/memrchr (Files): Add lib/memrchr.h.
104681         (Include): "memrchr.h".
104683 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104685         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
104687 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104689         * lib/memrchr.h: New file.
104690         * lib/chdir-long.c: Include it.
104691         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
104692         Don't bother including stddef.h.
104694 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104696         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
104697         inclusion.
104698         Include <sys/types.h>, for dev_t.
104699         (ME_DUMMY, ME_REMOTE): Move from here....
104700         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
104701         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
104702         Dmitry V. Levin.
104703         Include mountlist.h first, to test the interface.
104705 2005-01-29  Bruno Haible  <bruno@clisp.org>
104707         * lib/progname.c (program_name): Initialize.
104708         Needed when linking statically on MacOS X.
104710 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104712         Sync from coreutils.
104713         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
104714         (Depends-on): Add c-strtod.
104715         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
104717 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104719         Sync from coreutils.
104720         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
104722         Remove files that are specific to coreutils.
104723         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
104725 2005-01-28  Bruno Haible  <bruno@clisp.org>
104727         * modules/javacomp: New file.
104728         * MODULES.html.sh (Java): Add javacomp.
104730 2005-01-28  Bruno Haible  <bruno@clisp.org>
104732         * m4/javacomp.m4: New file, from GNU gettext.
104734 2005-01-28  Bruno Haible  <bruno@clisp.org>
104736         * lib/javacomp.sh.in: New file, from GNU gettext.
104737         * lib/javacomp.h: New file, from GNU gettext.
104738         * lib/javacomp.c: New file, from GNU gettext.
104740 2005-01-26  Simon Josefsson  <jas@extundo.com>
104742         * lib/gai_strerror.c: Use GPL in header.
104744 2005-01-26  Bruno Haible  <bruno@clisp.org>
104746         * modules/javaexec: New file.
104747         * MODULES.html.sh (Java): Add javaexec.
104749 2005-01-26  Bruno Haible  <bruno@clisp.org>
104751         * m4/javaexec.m4: New file, from GNU gettext.
104753 2005-01-26  Bruno Haible  <bruno@clisp.org>
104755         * lib/javaexec.sh.in: New file, from GNU gettext.
104756         * lib/javaexec.h: New file, from GNU gettext.
104757         * lib/javaexec.c: New file, from GNU gettext.
104759 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104761         * modules/lchown (Depends-on): Remove lchown.h
104763 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104765         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
104766         must be defined if the header file was not found, in order
104767         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
104769 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104771         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
104772         initializers for struct pentry_state.
104773         (__argp_error): Check return value of __asprintf
104774         (__argp_failure): Translate error message
104776         * lib/argp-parse.c: Removed braces around the expansion of N_()
104778 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
104780         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
104781         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
104782         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
104783         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
104784         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
104785         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
104786         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
104787         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
104788         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
104789         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
104790         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
104791         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
104792         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
104793         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
104794         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
104795         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
104796         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
104797         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
104798         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
104799         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
104800         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
104801         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
104802         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
104803         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
104804         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
104805         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
104806         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
104807         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
104808         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
104809         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
104810         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
104811         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
104812         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
104813         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
104814         xstrtol.m4, xstrtoumax.m4, yesno.m4:
104815         Use an all-permissive copyright notice, recommended by RMS.
104817 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
104819         * modules/chdir-long (Depends-on): Remove mempcpy.
104821 2005-01-21  Jim Meyering  <jim@meyering.net>
104823         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
104824         same value as for Solaris 9.
104826         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
104827         component length.  This included changing the parameter to be
104828         of type `char *' rather than `char const *'.
104829         * lib/chdir-long.h (chdir_long): Update prototype.
104831         * lib/openat.c (fdopendir, fstatat): New functions.
104832         * lib/openat.h: Include headers required for use of DIR and struct
104833         stat.
104834         [AT_SYMLINK_NOFOLLOW]: Define.
104835         (fdopendir, fstatat): Add prototypes.
104837 2005-01-21  Bruno Haible  <bruno@clisp.org>
104839         * modules/classpath: New file.
104840         * MODULES.html.sh (Java): Add classpath.
104842 2005-01-21  Bruno Haible  <bruno@clisp.org>
104844         * lib/classpath.h: New file, from GNU gettext.
104845         * lib/classpath.c: New file, from GNU gettext.
104847 2005-01-20  Simon Josefsson  <jas@extundo.com>
104849         * modules/version-etc-fsf: New file.
104851 2005-01-20  Simon Josefsson  <jas@extundo.com>
104853         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
104854         * lib/version-etc.c: Remove version_etc_copyright.
104855         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
104856         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
104858 2005-01-20  Simon Josefsson  <jas@extundo.com>
104860         * lib/base64.h (isbase64): Add.
104862         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
104863         using a unsigned prototype, don't inline.
104864         (base64_decode): Use it.
104866 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104868         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
104869         it.
104871 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104873         * lib/save-cwd.c (save_cwd): Remove code to support the case
104874         where fchdir is missing or flaky.
104876 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
104878         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
104880 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
104882         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
104883         AC_LIBSOURCES now does this.
104884         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
104885         with new ullong_max module.
104887 2005-01-19  Bruno Haible  <bruno@clisp.org>
104889         * modules/sh-quote: New file.
104890         * MODULES.html.sh (Executing programs): Add sh-quote.
104892 2005-01-19  Bruno Haible  <bruno@clisp.org>
104894         * lib/sh-quote.h: New file, from GNU gettext.
104895         * lib/sh-quote.c: New file, from GNU gettext.
104897 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104899         Merge from coreutils.
104900         * m4/ullong_max.m4: New file.
104901         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
104902         (gl_MACROS): Assume localeconv exists.
104904 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104906         Merge changes from coreutils, as described below in several
104907         changelogs dated today.
104909         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
104910         (O_DIRECTORY): Remove; not needed here, since "." must be
104911         a directory.  All uses removed.
104912         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
104913         universal on Suns, and we also need to test for IRIX.
104914         Revamp code to use 'if' rather than '#if'.
104915         Avoid unnecessary comparison of cwd->desc to 0.
104917         * lib/utimens.c (futimens): Robustify the previous patch, by checking
104918         for known valid error numbers rather than observed invalid ones.
104920 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
104922         * modules/ullong_max: New file.
104924         * modules/chdir-long, modules/openat: New files.
104925         * modules/save-cwd (Depends-on): Depend on chdir-long.
104926         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
104928 2005-01-18  Jim Meyering  <jim@meyering.net>
104930         Merge from coreutils.
104931         * m4/chdir-long.m4, m4/openat.m4: New files.
104932         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
104933         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
104934         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
104935         is sane and DOES follow symlinks.  Besides, testing 20 different
104936         systems found no broken chown implementations.
104937         Prompted by a change in rsync's copy of this macro.
104938         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
104940         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
104942         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
104943         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
104944         NULL-means-set-to-current-time semantics.
104945         Remove temporary file immediately, rather than waiting
104946         for configure's at-exit trap code to do it.
104948 2005-01-18  Jim Meyering  <jim@meyering.net>
104950         * lib/version-etc.c (version_etc_copyright): Update copyright date.
104952         * lib/utimens.c (futimens): Account for the fact that futimes
104953         can also fail with errno == ENOSYS or errno == ENOENT.
104954         Patch from Dmitry V. Levin.
104956         Change the name of the robust chdir function from chdir to chdir_long.
104957         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
104958         (restore_cwd): Use chdir_long, not chdir.
104959         * lib/chdir-long.c: Renamed from chdir.c.
104960         * lib/chdir-long.h: Renamed from chdir.h.
104961         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
104962         Hurd.
104964 2005-01-18  Bruno Haible  <bruno@clisp.org>
104966         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
104967         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
104968         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
104969         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
104970         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
104971         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
104972         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
104973         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
104974         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
104975         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
104976         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
104977         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
104978         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
104979         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
104980         Use an all-permissive copyright notice, recommended by RMS.
104982 2005-01-18  Bob Proulx  <bob@proulx.com>
104984         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
104985         simplify offsetof() macro construct to avoid compile failure with
104986         native HP-UX 11.0 ANSI C compiler.
104988 2005-01-17  Bruno Haible  <bruno@clisp.org>
104990         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
104991         redundant because stpncpy.m4 takes care of it.
104993 2005-01-17  Bruno Haible  <bruno@clisp.org>
104995         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
104997 2005-01-17  Bruno Haible  <bruno@clisp.org>
104999         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
105000         used.
105002 2005-01-17  Bruno Haible  <bruno@clisp.org>
105004         * lib/fwriteerror.h (fwriteerror): Change specification to include
105005         fclose.
105006         * lib/fwriteerror.c: Include <stdbool.h>.
105007         (fwriteerror): At the end, close the file stream. Record whether
105008         stdout was already closed.
105010 2005-01-17  Bruno Haible  <bruno@clisp.org>
105012         * lib/execute.c (environ): Declare if needed.
105013         * lib/pipe.c (environ): Likewise.
105014         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
105016 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105018         * modules/argp: Depend on vsnprintf
105020 2005-01-10  Jim Meyering  <jim@meyering.net>
105022         * modules/closeout (Depends-on): Add atexit.
105024 2005-01-06  Bruno Haible  <bruno@clisp.org>
105026         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
105028 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
105030         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
105031         definitions to be after all include files, to avoid collisions.
105032         Problem reported by Bob Proulx.
105034 2005-01-04  Jim Meyering  <jim@meyering.net>
105036         Changes imported from coreutils.
105037         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
105038         as the mkstemp template, use a temporary directory and an
105039         8.3-friendly template to avoid trouble on systems like DJGPP.
105040         Reported by Juan M. Guerrero via Stepan Kasal.
105041         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
105042         close. Remove the temporary directory right away, rather than waiting
105043         for configure's at-exit trap code to do it.
105044         Suggestion from Stepan Kasal.
105046 2005-01-01  Simon Josefsson  <jas@extundo.com>
105048         * gnulib-tool: Print #include directives when --import'ing.
105050 2004-12-28  Simon Josefsson  <jas@extundo.com>
105052         * tests/test-base64.c: Include required header files.  Remove
105053         unused variables.
105055 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
105057         * modules/error (Depends-on): Remove gettext.
105059 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
105061         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
105062         not needed.  This removes a dependency on the gettext module.
105063         [defined _LIBC]: Do not include <libintl.h>; not needed.
105065 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
105067         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
105068         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
105070 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
105072         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
105073         HAVE_DECL_STRTOLD.
105075 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105077         * modules/getdate (Depends-on): Remove alloca-opt.
105079 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105081         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
105083 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105085         * lib/argp-parse.c: Include <stddef.h>.
105086         (alignof, alignto): New macros.
105087         (parser_init): Don't assume that void * is aligned sufficiently
105088         for struct option.
105090         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
105091         need to extend the stack.
105092         (YYINITDEPTH): New macro, so that the initial stack isn't overly
105093         large.
105095 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105097         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
105099 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
105101         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
105102         (2004-10-24) change.  Apparently this was a false alarm.
105104         * modules/getdate: Depend on alloca-opt, not alloca.
105106 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
105108         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
105109         Remove now-obsolete comment about AIX.
105110         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
105111         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
105112         (YYMAXDEPTH): New macro.
105114 2004-12-18  Simon Josefsson  <jas@extundo.com>
105116         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
105118 2004-12-18  Bruno Haible  <bruno@clisp.org>
105120         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
105122 2004-12-18  Bruno Haible  <bruno@clisp.org>
105124         * lib/fatal-signal.c (fatal_signals): Make non-const.
105125         (init_fatal_signals): New function.
105126         (uninstall_handlers, install_handlers): Ignore signals that were set to
105127         SIG_IGN.
105128         (at_fatal_signal): Call init_fatal_signals.
105129         (init_fatal_signal_set): Likewise. Ignore signals that were set to
105130         SIG_IGN.
105131         Reported by Paul Eggert.
105133 2004-12-18  Bruno Haible  <bruno@clisp.org>
105135         * doc/alloca.texi: New file.
105136         * doc/alloca-opt.texi: New file.
105138 2004-12-17  Jim Meyering  <jim@meyering.net>
105140         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
105141         Otherwise, install-sh could exit with improper exit status when
105142         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
105144 2004-12-16  Simon Josefsson  <jas@extundo.com>
105146         * tests/test-base64.c: Add license.
105148 2004-12-15  Stepan Kasal  <address@hidden>
105150         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
105152 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
105154         * modules/getcwd (Files): Add m4/d-ino.m4.
105155         Suggested by Mark D. Baushke.
105157 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
105159         * lib/getdate.y (textint): New member "negative".
105160         (time_zone_hhmm): New function.
105161         Expect 14 shift-reduce conflicts, not 13.
105162         (o_colon_minutes): New rule.
105163         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
105164         (yylex): Set the "negative" member of signed numbers.
105166 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
105168         * doc/getdate.texi (Time of day items, Time zone items):
105169         Describe new formats +00:00, UTC+00:00.
105171 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
105173         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
105174         spurious "-l"s.  Problem reported by Stepan Kasal.
105176 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
105178         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
105179         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
105181 2004-12-04  Simon Josefsson  <jas@extundo.com>
105183         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
105184         Vandoorselaere <yoann@prelude-ids.org>.
105186 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105188         Changes imported from coreutils.
105189         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
105190         exist.
105191         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
105193 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105195         Changes imported from coreutils.
105196         * lib/hard-locale.c: Assume <locale.h> exists.
105197         Include "strdup.h".
105198         (GLIBC_VERSION): New macro.
105199         (hard_locale): Assume setlocale exists.
105200         Rewrite to avoid #ifdef.
105201         Use strdup rather than malloc + strcpy.
105202         * lib/human.c: Assume <locale.h> exists.
105203         (human_readable): Assume localeconv exists.
105205 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105207         * modules/hard-locale (Depends-on): Add strdup.
105209 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105211         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
105212         convert T2, not T.  (Imported from libc.)
105214 2004-11-30  Simon Josefsson  <jas@extundo.com>
105216         * modules/restrict (License): Change to LGPL.
105218 2004-11-30  Simon Josefsson  <jas@extundo.com>
105220         * m4/restrict.m4: Add copyright and copying conditions.
105222 2004-11-30  Simon Josefsson  <jas@extundo.com>
105224         * m4/base64.m4: New file.
105226 2004-11-30  Simon Josefsson  <jas@extundo.com>
105228         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
105229         base64.
105231         * tests/test-base64.c: New file.
105233         * modules/base64: New file.
105235 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
105237         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
105238         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
105240         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
105242 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
105244         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
105245         (__getcwd.c): Don't restore errno; glibc doesn't.
105246         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
105247         first, falling back to our code only if its results look suspicious.
105248         Ensure that the resulting buffer is only as large as necessary.
105250         * lib/readutmp.c: Include readutmp.h first.
105251         Include <errno.h>, since readutmp.h no longer does that.
105252         * lib/readutmp.h: Don't include <errno.h>,
105253         <sys/param.h>, <time.h>; not needed to establish interface.
105254         (errno): Remove decl.
105255         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
105256         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
105257         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
105259 2004-11-28  Simon Josefsson  <jas@extundo.com>
105261         * lib/base64.h, base64.c: New file.
105263 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
105265         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
105267 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
105269         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
105270         (Depends-on): Remove pathmax, same.  Add mempcpy.
105271         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
105272         (Makefile.am): Append getcwd.h to lib_SOURCES.
105273         (Include): Add getcwd.h.
105274         (Maintainer): Change from Jim Meyering to "all, glibc",
105275         since getdate now uses intended-for-glibc code.
105276         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
105277         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
105279 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
105281         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
105282         HP's ANSI C compiler.
105283         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
105284         Declaring int functions causes warnings on some modern systems and
105285         shouldn't be needed to compile on ancient ones.
105286         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
105287         defined.
105289         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
105290         with the following changes.
105291         (__set_errno): Parenthesize properly.
105292         Include <stdbool.h>.
105293         (MIN, MAX, MATCHING_INO): New macros.
105294         (__getcwd): Define with prototype, not K&R form.
105295         Use heuristics to allocate default buffer on stack if possible.
105296         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
105297         behavior, and to avoid the PATH_MAX limit when computing
105298         ../../../../...
105299         Use MATCHING_INO to compare inode number to file.
105300         Check for arithmetic overflow in size calculations.
105301         Fix bug in reallocation of dot array that caused getcwd to fail
105302         on directories nested deeper than 75.
105303         Be more careful about saving errno on error.
105304         Do not use realloc; use only free+malloc, as this is a bit
105305         more flexible and avoids a needless copy operation.
105306         Do not inspect st_dev and st_ino for symbolic links; POSIX
105307         doesn't specify the latter.
105308         Check for closedir errors.
105309         Avoid needless casts.
105310         Use "#ifdef weak_alias" around weak_alias, to be like other
105311         glibc code.
105312         The following changes to getcwd.c have effect only when used in
105313         gnulib; they have no effect inside glibc proper.
105314         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
105315         as alloca isn't used.
105316         (alloca, __alloca): Likewise.
105317         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
105318         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
105319         unconditionally, as gnulib assumes C89 or better.
105320         Do not include <sys/param.h>.
105321         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
105322         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
105323         better.
105324         (NULL) [!defined NULL]: Remove; we assume C89 or better.
105325         Include <dirent.h> in a way that is compatible with modern Autoconf.
105326         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
105327         New macros, if not already defined.
105328         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
105329         Use "_LIBC", not "defined _LIBC", for consistency.
105330         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
105331         a mempcpy module.
105332         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
105333         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
105334         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
105335         credit only to Jim Meyering and adjust the copyright dates.
105336         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
105337         <stdlib.h>, <unistd.h>, "pathmax.h".
105338         Instead, include "xgetcwd.h" (first) and "getcwd.h".
105339         (INITIAL_BUFFER_SIZE): Remove.
105340         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
105342 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
105344         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
105345         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
105346         Use the _ONCE methods, for efficiency.
105347         Check for fcntl.h.  In test program, include <errno.h>
105348         and <fcntl.h> if available.  Remove old K&R cruft from
105349         test program.  Check for common errors in GNU/Linux,
105350         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
105351         don't do AC_LIBOBJ, as that's getcwd.m4's job.
105352         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
105353         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
105354         name accordingly.
105355         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
105356         accommodate new getcwd.c.
105357         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
105358         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
105359         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
105360         that's all we need now.
105362 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105364         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
105365         argp-parse.c depends on getopt internals, that means we should
105366         always use our getopt, to be on the safe side.
105367         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
105368         order not to spoil the result of an eventual previous invocation
105369         of gl_GETOPT_SUBSTITUTE.
105371 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105373         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
105374         redefinition warnings. To avoid them, include the defines
105375         in `#if !defined __need_getopt ... #endif'. The only place
105376         where __getopt_argv_const is used is in definitions
105377         of getopt_long and getopt_long_only below, which are as well
105378         protected by `#ifndef __need_getopt'.
105379         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
105380         __need_getopt after including <stdio.h> and <unistd.h> These
105381         headers might have defined it.
105383 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105385         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
105387 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105389         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
105390         (futimens): New function, which uses futimes if available.
105391         (futimens, utimens): Support timespec==NULL, with same semantics
105392         as utime and utimens.
105393         * lib/utimens.h (futimens): New decl.
105395 2004-11-23  Jim Meyering  <jim@meyering.net>
105397         * lib/getopt_.h: Remove trailing blanks.
105399 2004-11-23  Jim Meyering  <jim@meyering.net>
105401         * lib/__fpending.c: Add comment.
105403 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
105405         * modules/canonicalize (Depends-on): Add xreadlink.
105406         Problem reported by James Youngman.
105408 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
105410         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
105411         New macros.
105412         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
105413         optopt): Use them instead of invoking ## directly; otherwise, the
105414         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
105416 2004-11-19  Bruno Haible  <bruno@clisp.org>
105418         * lib/strtok_r.c: Move comments from here...
105419         * lib/strtok_r.h: ... to here.
105421 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105423         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
105424         implementations that mishandle size_t overflow.
105426 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105428         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
105429         might fail.  Problem reported by Yoann Vandoorselaere.
105430         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
105431         implementations that mishandle size_t overflow.
105433 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105435         * modules/canon-host (Depends-on): Add strdup.
105437 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105439         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
105441 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105443         * lib/canon-host.c: Include "strdup.h".
105444         (canon_host): Use getaddrinfo if available, so that IPv6 works.
105445         Use strdup instead of malloc/strcpy to duplicate strings.
105447         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
105448         (human_space_before_unit): New constant.
105449         * lib/human.c (human_readable): Support it.
105451         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
105452         (xgetcwd): Set errno correctly when failing.
105453         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
105454         the failure is actually due to a PATH_MAX problem.
105456         Further getopt changes to make it more likely that glibc will
105457         buy the changes back.
105458         * lib/getopt.c (POSIXLY_CORRECT): New constant.
105459         (getopt): Use it, so to preserve glibc semantic
105460         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
105461         when compiling for libc.
105462         * lib/getopt_.h (__getopt_argv_const): Bring it back.
105463         (getopt_long, getopt_long_only): Use it.
105465         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
105466         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
105467         (getopt): Argv is now char * const *, as per standard.
105468         (_getopt_internal_r, _getopt_internal): Argv is now char **,
105469         not char *__getopt_argv_const *.
105470         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
105471         _getopt_long_only_r): Likewise.
105472         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
105473         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
105474         _getopt_long_r, _getopt_long_only_r): Likewise.
105475         * lib/getopt_.h (__getopt_argv_const): Remove.
105476         (getopt): Argv is now char * const *, as per standard.
105478         * lib/getdate.y (tORDINAL): New token.
105479         (day, relunit): Allow it for relative times.
105480         (relative_time_table): Use tORDINAL for ordinals.
105482 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105484         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
105485         Document that "second" isn't allowed as an ordinal number.
105487 2004-11-16  Jim Meyering  <jim@meyering.net>
105489         * modules/closeout (Depends-on): Add fpending.
105491 2004-11-15  Jim Meyering  <jim@meyering.net>
105493         * lib/closeout.c: Include "__fpending.h" once again.
105494         Include <stdbool.h>.
105495         (close_stdout): Don't fail just because stdout was closed initially,
105496         since some programs don't write to stdout in the normal course of
105497         operation (other than --version and --help), and we don't want this
105498         function to make e.g. `touch file >&-' fail.
105499         But do fail if it was closed and someone has tried to write to it.
105500         E.g., `printf foo >&-' must fail.
105502 2004-11-13  Jim Meyering  <jim@meyering.net>
105504         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
105506 2004-11-12  Simon Josefsson  <jas@extundo.com>
105508         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
105509         small doc fix is still pending.
105511 2004-11-11  Simon Josefsson  <jas@extundo.com>
105513         * modules/strtok_r: New file.
105515         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105516         strtok_r.
105518 2004-11-11  Simon Josefsson  <jas@extundo.com>
105520         * m4/strtok_r.m4: New file.
105522         * m4/getopt.m4: Replace opterr.
105524 2004-11-11  Simon Josefsson  <jas@extundo.com>
105526         * lib/strtok_r.h, strtok_r.c: New file.
105528 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
105530         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
105531         of replacing opterr, getopt, etc.  This should handle the
105532         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
105534 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
105536         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
105537         we can stop lying to compilers about the constness of argv when we
105538         are compiled outside glibc.
105539         (getopt, getopt_long, getopt_long_only): Use it.
105540         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
105541         _getopt_internal, getopt): Likewise.
105542         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
105543         _getopt_long_only_r): Likewise.
105544         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
105545         _getopt_long_r, _getopt_long_only_r): Likewise.
105547         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
105548         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
105549         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
105550         the other external symbols.
105551         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
105552         declaration, since the above renaming now works around collisions.
105554 2004-11-11  Jim Meyering  <jim@meyering.net>
105556         * lib/linebreak.c: Remove trailing blanks.
105557         * lib/alloca_.h: Likewise.
105558         * lib/acosl.c: Likewise.
105559         * lib/euidaccess.c: Likewise.
105560         * lib/allocsa.h: Likewise.
105562 2004-11-10  Simon Josefsson  <jas@extundo.com>
105564         * m4/getaddrinfo.m4: New file.
105566 2004-11-10  Simon Josefsson  <jas@extundo.com>
105568         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
105570 2004-11-10  Simon Josefsson  <jas@extundo.com>
105572         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105573         getaddrinfo.
105575         * modules/getaddrinfo: New file.
105577 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
105579         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
105581 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
105583         * lib/mktime.c (SHR): New macro, which is a portable
105584         substitute for >> that should work even on Crays.
105585         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
105586         Problem reported by Mark D. Baushke in
105587         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
105588         * lib/getdate.y (SHR): Likewise.
105589         (tm_diff): Use it.
105590         * lib/strftime.c (SHR): Likewise.
105591         (tm_diff): Use it.
105592         * lib/quotearg.c (struct quoting_options): Use unsigned int for
105593         quote_these_too, so that right shifts are well defined.  All uses
105594         changed.
105596 2004-11-10  Jim Meyering  <jim@meyering.net>
105598         Ensure that no close failure goes unreported.
105599         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
105600         return early when it seems there's nothing to flush.
105601         Don't include __fpending.h.
105603 2004-11-10  Jim Meyering  <jim@meyering.net>
105605         * modules/closeout (Depends-on): Remove fpending.
105607 2004-11-10  Jim Meyering  <jim@meyering.net>
105609         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
105611 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105613         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
105614         gl_FUNC_STRFTIME.
105615         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
105616         and AC_REQUIRE when possible, to avoid duplicate checks.
105617         Check for <wchar.h>.
105619 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105621         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
105623 2004-11-09  Bruno Haible  <bruno@clisp.org>
105625         * m4/sockpfaf.m4: New file.
105627 2004-11-05  Bruno Haible  <bruno@clisp.org>
105629         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
105630         Reported by Mark D. Baushke <mdb@cvshome.org>.
105632 2004-11-04  Bruno Haible  <bruno@clisp.org>
105634         2004-09-11  Bruno Haible  <bruno@clisp.org>
105635                 * allocsa.valgrind: New file.
105636         2004-02-06  Bruno Haible  <bruno@clisp.org>
105637                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
105638                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
105639                 Reported by Christopher Seip <chris.seip@hp.com>.
105641 2004-11-04  Bruno Haible  <bruno@clisp.org>
105643         * modules/allocsa (Files): Add lib/allocsa.valgrind.
105644         (Makefile.am): Distribute it.
105646 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
105648         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
105649         with errno == ERANGE if the buffer is too small.
105650         Problem reported by Mark D. Baushke.
105652 2004-11-03  Albert Chin  <china@thewrittenword.com>
105653             Paul Eggert  <eggert@cs.ucla.edu>
105655         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
105656         equivalent, substitute $ac_type for equivalent type rather than
105657         blindly using uint32_t *always* which won't work if uint32_t is not
105658         available.  Define _UINT32_T to work around typedef of uint32_t if
105659         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
105660         2.5.1.
105662 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105664         * m4/jm-macros.m4: Sync from coreutils.
105665         (gl_MACROS): Check for mbrlen, for pathchk.
105666         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
105668 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105670         * lib/xreadlink.c (MAXSIZE): New macro.
105671         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
105672         size does not exceed MAXSIZE.  Avoid cast.
105673         As suggested by Mark D. Baushke in
105674         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
105675         if readlink fails with buffer size just under MAXSIZE, try again
105676         with MAXSIZE.
105678 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
105680         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
105682 2004-11-02  Derek R. Price  <derek@ximbiot.com>
105683         and  Paul Eggert  <eggert@cs.ucla.edu>
105685         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
105686         (get_date): Overparenthesize to avoid GCC warning.
105688 2004-11-02  Bruno Haible  <bruno@clisp.org>
105690         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
105691         returns void.
105693 2004-11-02  Bruno Haible  <bruno@clisp.org>
105695         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
105696         function returns void.
105698 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
105700         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
105701         fflush_unlocked, flockfile, funlockfile, funlockfile,
105702         fputs_unlocked, putc_unlocked.
105704 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
105706         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
105707         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
105708         already declared.
105710 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105712         * modules/getdate (Files): Add doc/getdate.texi.
105713         (Depends-on): Add setenv, xalloc.
105715 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105717         * lib/getdate.y: Add support for TZ="foo" within a date string.
105718         Fix some bugs near time_t boundaries.  Reject dates with
105719         out-of-range components, e.g., "Sept 31".
105720         Include <stdlib.h>, "setenv.h", "xalloc.h".
105721         (ISDIGIT_LOCALE): Remove; unused.
105722         Note that the TZ and time functions used here are not reentrant.
105723         (mktime_ok, get_tz): New functions.
105724         (TZBUFSIZE): New constant.
105725         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
105726         This requires that we sometimes generate our own TZ="XXX..." setting.
105728 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
105730         * doc/getdate.texi: New file, from coreutils with modifications for
105731         the new TZ parsing.
105733 2004-10-27  Derek R. Price  <derek@ximbiot.com>
105735         * lib/mktime.c (not_equal_tm): Remove redundant check.
105737 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105739         * modules/regex (lib_SOURCES): Add regex.c.
105740         Reported by James Youngman in
105741         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
105743 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105745         * lib/getdate.y: Use Bison 1.875 features, and some minor
105746         code cleanups.  This change does not affect semantics.
105747         Don't include <stdlib.h>; no longer needed.
105748         Don't include unlocked-io.h; only the "#if TEST" code uses
105749         stdio, and performance isn't crucial there.
105750         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
105751         Bison 1.875 features as described below.
105752         All uses of "PC." replaced by "pc->".
105753         (YYSTYPE): Add a forward declaration.
105754         (yylex, yyerror): Use full prototypes in forward decls.
105755         Use "%pure-parser" rather than obsolescent "%pure_parser".
105756         Use %parse-param and %lex-param instead of obsolescent
105757         YYPARSE_PARAM and YYLEX_PARAM.
105758         (meridian_table, month_and_day_table, time_units_table,
105759         relative_time_table, time_zone_table, military_table,
105760         lookup_zone, lookup_word, get_date):
105761         Use NULL instead of 0 where appropriate.
105762         (to_hour): Avoid abort (), to avoid a dependency on
105763         stdlib.h.
105764         (yyerror, yylex): Now accepts parser_control * arg.
105765         (main) [TEST]: Use '\0' rather than 0 for char.
105767 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
105769         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
105771 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
105773         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
105774         It's now the caller's responsibility to handle the case where
105775         !HAVE_GETPAGESIZE && !defined getpagesize.
105777         * lib/mktime.c (leapyear): Arg is long int, not int.
105779 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
105781         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
105783 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
105785         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
105786         missing.  Problem reported by James Youngman.
105788 2004-10-16  Simon Josefsson  <jas@extundo.com>
105790         * gnulib-tool: Fix comments.  Fix parse problem.
105791         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
105793 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
105795         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
105796         implementation of getopt_long.  Problem reported by Alexander Taler in:
105797         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
105799 2004-10-15  Bruno Haible  <bruno@clisp.org>
105801         * gnulib-tool: Untabify. Initialize supplied_libname.
105802         (func_usage): More homogenous output.
105803         (func_modules_transitive_closure, func_modules_to_filelist,
105804         func_emit_lib_Makefile_am): New functions.
105805         (func_import): New function, extracted from big case statement. Use
105806         func_get_license, func_modules_transitive_closure,
105807         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
105808         opt_lgpl. Don't use test -a, as it's not portable.
105809         (func_create_testdir): Use func_modules_transitive_closure,
105810         func_modules_to_filelist, func_emit_lib_Makefile_am.
105812 2004-10-15  Bruno Haible  <bruno@clisp.org>
105814         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
105816 2004-10-15  Bruno Haible  <bruno@clisp.org>
105818         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
105819         the portions belonging to each module.
105820         Suggested by Derek Robert Price <derek@ximbiot.com>.
105822 2004-10-12  Simon Josefsson  <jas@extundo.com>
105824         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
105825         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
105826         to real functions.
105828 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105830         * modules/vsnprintf: New file.
105832 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105834         * m4/vsnprintf.m4: New file.
105836 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105838         * lib/vsnprintf.h: New file.
105839         * lib/vsnprintf.c: New file.
105841 2004-10-11  Bruno Haible  <bruno@clisp.org>
105843         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
105844         vsnprintf.
105846 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
105848         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
105850 2004-10-07  Bruno Haible  <bruno@clisp.org>
105852         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
105853         fits into the provided buffer.
105855 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
105857         * lib/diacrit.c, diacrit.h: Add GPL notice.
105859         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
105860         notice.
105861         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
105862         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
105863         This avoids a potential constant-folding bug.
105865 2004-10-05  Bruno Haible  <bruno@clisp.org>
105867         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
105868         for the declaration of strsep.
105870 2004-10-05  Bruno Haible  <bruno@clisp.org>
105872         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
105874 2004-10-04  Simon Josefsson  <jas@extundo.com>
105876         * modules/memmem: New file.
105877         * tests/test-memmem.c: New file.
105878         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
105880 2004-10-04  Simon Josefsson  <jas@extundo.com>
105882         * m4/memmem.m4: New file.
105884 2004-10-04  Simon Josefsson  <jas@extundo.com>
105886         * lib/memmem.h: New file.
105887         * lib/memmem.c: New file, taken from glibc.
105889 2004-10-04  Simon Josefsson  <jas@extundo.com>
105891         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
105892         '#ifdef USE_UNLOCKED_IO'.
105894 2004-10-04  Simon Josefsson  <jas@extundo.com>
105896         * config/srclist.txt: Add memmem from glibc.
105898 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105900         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
105902         * modules/argmatch, modules/argp, modules/closeout, modules/error,
105903         modules/exclude, modules/getdate, modules/getline,
105904         modules/getndelim2, modules/getpass, modules/getpass-gnu,
105905         modules/getusershell, modules/linebuffer, modules/md5,
105906         modules/mountlist, modules/posixtm, modules/readtokens,
105907         modules/readutmp, modules/regex, modules/sha1,
105908         modules/version-etc, modules/yesno:
105909         Remove dependency on unlocked-io.
105911 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105913         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
105915         * m4/unlocked-io.m4: Add copyright notice.
105916         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
105918 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105920         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
105921         * lib/xmalloc.c (xmemdup): Likewise.
105922         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
105923         XFREE): Remove these long-obsolescent macros.
105924         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
105925         * lib/xstrdup.c: Remove.
105927         * lib/regex.c (re_comp): Cast gettext return value to char *,
105928         Problem reported by Martin Neitzel via Mark D. Baushke.
105930 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
105932         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
105933         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
105934         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
105935         regex.c, sha1.c, version-etc.c, yesno.c:
105936         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
105937         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
105938         the includer's responsibility.
105940         Sync from coreutils.
105942         * lib/modechange.c (mode_compile): Don't decrement a pointer that
105943         points to the start of a string, as the C Standard says the
105944         resulting behavior is undefined.
105946         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
105947         simple -> simple_backups, numbered_existing ->
105948         numbered_existing_backups, numbered -> numbered_backups
105949         to avoid shadowing problems.  All uses changed.
105950         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
105951         * lib/backupfile.c (check_extension, numbered_backup):
105952         Rename locals to avoid shadowing 'basename'.
105953         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
105954         once.
105956         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
105957         * lib/.cvsignore: Add getopt.h.
105959 2004-10-04  Bruno Haible  <bruno@clisp.org>
105961         * modules/README: New file.
105962         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
105963         not a module.
105965 2004-10-02  Jim Meyering  <jim@meyering.net>
105967         * lib/dirfd.h, getpagesize.h: Add copyright notice.
105969 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105971         * modules/strsep: New file.
105973 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105975         * m4/strsep.m4: New file.
105977 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105979         * lib/strsep.h: New file.
105980         * lib/strsep.c: New file.
105982 2004-10-01  Simon Josefsson  <jas@extundo.com>
105984         * lib/snprintf.c (snprintf): Handle size==0.
105986 2004-10-01  Simon Josefsson  <jas@extundo.com>
105987             Bruno Haible  <bruno@clisp.org>
105989         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
105990         (snprintf): Declare 'args'.
105992 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
105994         * lib/snprintf.c: Remove comments as to why each header is needed.
105996 2004-10-01  Bruno Haible  <bruno@clisp.org>
105998         * MODULES.html.sh: Add strsep.
106000 2004-09-30  Simon Josefsson  <jas@extundo.com>
106002         * modules/snprintf: New file.
106004 2004-09-30  Simon Josefsson  <jas@extundo.com>
106006         * m4/snprintf.m4: New file.
106008 2004-09-30  Simon Josefsson  <jas@extundo.com>
106010         * lib/snprintf.h, lib/snprintf.c: New files.
106012 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106014         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
106015         (hol_entry_help): Never translate an empty string.
106016         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
106017         * lib/argp.h (OPTION_NO_TRANS): New option.
106019 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106021         * modules/argp (Maintainer): Replace Simon Josefsson
106022         by Sergey Poznyakoff.
106024 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106026         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
106027         changes merged back into glibc.
106029 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106031         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
106033 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
106035         * lib/xvasprintf.c: Include xalloc.h.
106036         (xvasprintf): Use xalloc_die, not xmalloc_die.
106038 2004-09-29  Bruno Haible  <bruno@clisp.org>
106040         * modules/alloca-opt: New file, derived from modules/alloca.
106041         * modules/allocsa: Depend on alloca-opt instead of alloca.
106042         * modules/setenv: Likewise.
106043         * modules/vasnprintf: Likewise.
106044         * MODULES.html.sh: Add alloca-opt.
106046 2004-09-28  Simon Josefsson  <jas@extundo.com>
106048         * gnulib-tool: New parameter --lgpl, to asseert that modules are
106049         LGPL, and to replace license template from GPL to LGPL.
106051 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
106053         * modules/dummy: Change license to LGPL.
106055 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
106057         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
106059 2004-09-24  Simon Josefsson  <jas@extundo.com>
106061         * modules/minmax (License): Change from GPL to LGPL.
106063 2004-09-23  Simon Josefsson  <jas@extundo.com>
106065         * gnulib-tool (--import): Typo.
106067 2004-09-23  Simon Josefsson  <jas@extundo.com>
106069         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
106071 2004-09-22  Bruno Haible  <bruno@clisp.org>
106073         * modules/*: Add 'License' field.
106074         * gnulib-tool: Accept --extract-license option.
106075         (func_get_license): New function.
106077 2004-09-21  Bruno Haible  <bruno@clisp.org>
106079         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
106080         Reported by Simon Josefsson.
106082 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
106084         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
106085         gl_AC_TYPE_LONG_LONG.
106087 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
106089         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
106091 2004-09-18  Simon Josefsson  <jas@extundo.com>
106092         and  Paul Eggert  <eggert@cs.ucla.edu>
106094         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
106095         calls with autoreconf.  Define GL_LIB.
106097 2004-09-14  Karl Berry  <karl@gnu.org>
106099         * config/srclist.txt: unsync setenv.c, sigh.
106101 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
106103         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
106104         Problem reported by Bruno Haible in:
106105         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
106107 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
106109         * config/srclist.txt: Comment out argp-pvh.c.
106111 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
106113         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
106114         in case some system header has #define'd it.  Problem reported by
106115         Soeren D. Schulze in
106116         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
106118 2004-09-09  Karl Berry  <karl@gnu.org>
106120         * regex.[ch]: delete from the root.  These were supposed to be
106121                 synced with emacs cvs, but this has not happened for about
106122                 a year, and anyway nothing else uses emacs regex.[ch].
106123                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
106124                 lib/regex[.ch] is untouched.
106126 2004-09-09  Bruno Haible  <bruno@clisp.org>
106128         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
106130 2004-09-09  Bruno Haible  <bruno@clisp.org>
106132         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
106133         modifications.
106134         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
106136 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
106138         * modules/xvasprintf: New file.
106139         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
106141 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
106143         * lib/xvasprintf.h: New file.
106144         * lib/xvasprintf.c: New file.
106145         * lib/xasprintf.c: New file.
106147 2004-09-08  Bruno Haible  <bruno@clisp.org>
106149         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
106151 2004-09-08  Bruno Haible  <bruno@clisp.org>
106153         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
106154         length is > INT_MAX.
106155         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
106156         more.
106158 2004-09-08  Bruno Haible  <bruno@clisp.org>
106160         * lib/stdint_.h: New file, taken from GNU clisp.
106162 2004-09-08  Bruno Haible  <bruno@clisp.org>
106163             Oskar Liljeblad  <oskar@osk.mine.nu>
106165         * modules/stdint: New file.
106166         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
106168 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106170         Import from coreutils.
106171         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
106172         strings on unbounded length.  alloca's performance benefits aren't
106173         that important here.
106174         (V_STRDUP): Remove.
106175         (parse_with_separator): New function, with most of the internals
106176         of the old parse_user_spec.  Allow user to omit both user and group,
106177         for compatibility with FreeBSD.
106178         Clone only the user name, not the entire spec.
106179         Do not set *uid, *gid unless entirely successful.
106180         Avoid memory leak in some failing cases.
106181         Fix regression for USER.GROUP reported by Dmitry V. Levin in
106182         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
106183         (parse_user_spec): Rewrite to use parse_with_separator.
106185 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106187         * modules/userspec: Don't depend on alloca.
106189 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106191         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
106193 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
106195         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
106196         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
106197         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
106199 2004-08-16  Simon Josefsson  <jas@extundo.com>
106201         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
106202         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
106203         Add --dry-run for --import.
106204         Let user provided command line parameters override configure.ac
106205         settings.
106207 2004-08-12  Simon Josefsson  <jas@extundo.com>
106209         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
106210         as discussed with Paul Eggert in threads rooted at
106211         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
106212         and
106213         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
106214         Before, the test was empty, and relied on ELIDE_CODE in source
106215         code.)
106216         (gl_PREREQ_GETOPT): New macro.
106217         (gl_GETOPT): Use them.
106219 2004-08-12  Simon Josefsson  <jas@extundo.com>
106221         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
106222         * lib/getopt_.h: Renamed from getopt.h.
106224 2004-08-12  Simon Josefsson  <jas@extundo.com>
106226         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
106227         Change default library name from libfoo to libgnu.
106228         Now, if you have a configure.ac that says:
106229                 gl_SOURCE_BASE(gl)
106230                 gl_M4_BASE(gl/m4)
106231                 gl_MODULES(error getopt etcetera)
106232                 gl_INIT
106233         you can import all you need by running:
106234                 ../gnulib/gnulib-tool --import
106236         * modules/getopt (Files): Rename getopt.h to getopt_.h.
106237         (Makefile.am): Rewrite, use logic from argz.
106238         (Include): Use <getopt.h> instead of "getopt.h".
106240 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106242         * modules/argp (Files): Add m4/unlocked-io.m4.
106243         (Depends-on): Add extensions.
106245 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106247         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
106248         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
106249         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
106250         Check for program_invocation_name, program_invocation_short_name,
106251         flockfile, funlockfile, features.h, _getopt_long_only_r.
106253 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106255         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
106256         its complicated substitute.
106257         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
106258         and program_invocation_name.
106259         (__argp_basename) [!_LIBC]: Remove; the only use was
106260         replaced by its body.
106261         (__argp_short_program_name): Change condition from
106262         !defined __argp_short_program_name to
106263         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
106264         to match argp-namefrob.h.
106265         (__argp_failure): Don't assume strerror_r returns char *.
106266         * lib/argp-parse.c (N_): Define unconditionally.
106267         (argp_default_options): Fill out initializers with 0 to avoid
106268         gcc warnings.
106270 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106272         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
106273         getopt1.c.
106275 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106277         Merge from coreutils.
106279         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
106281         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
106282         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
106284 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106286         Merge from coreutils.
106288         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
106289         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
106290         for Reliant Unix 5.43.
106292         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
106293         (union fooround): Use uintmax_t, not long int.
106294         The rest is a merge from libc:
106295         [defined _LIBC]: Include <shlib-compat.h>.
106296         (_obstack) [defined _LIBC]: Remove after 2.3.4.
106298         * lib/settime.c (settime): Recode to avoid warning with
106299         Sun Forte C 6U2.
106301         * lib/strverscmp.c: Convert to UTF-8.
106303 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106305         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
106306         m4/uintmax_t.m4.
106308 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106310         * modules/xalloc-die: New file.
106311         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
106313         * modules/md5 (Files): Add m4/uint32_t.m4.
106314         * modules/sha1: Renamed from modules/sha.
106315         (Files):
106316         Rename lib/sha.h to lib/sha1.h.
106317         Rename lib/sha.c to lib/sha1.c.
106318         Rename m4/sha.m4 to m4/sha1.m4.
106319         (lib_SOURCES): Likewise.
106320         (configure.ac): Rename gl_SHA to gl_SHA1.
106321         (Include): sha.h -> sha1.h.
106323 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106325         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
106326         * m4/sha1.m4: Renamed from sha.m4.
106327         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
106329 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106331         * lib/obstack.h (obstack_empty_p):
106332         Don't assume that chunk->contents is suitably aligned.
106333         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
106334         Likewise. Problem reported by Benno in
106335         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
106337         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
106338         readable.  This could be improved further but it'd take some work.
106340 2004-08-08  Simon Josefsson  <jas@extundo.com>
106342         * modules/xgethostname (Depends-on): Remove exit and error (not
106343         used).
106345         * modules/getpass-gnu: Add getpass.h.
106346         (Depends-on): Add stdbool.
106347         * modules/getpass: Add getpass.h.
106349 2004-08-08  Simon Josefsson  <jas@extundo.com>
106351         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
106352         Check getpass declaration.
106354 2004-08-08  Simon Josefsson  <jas@extundo.com>
106356         * lib/xgethostname.c: Don't include error.h (not used).
106358         * lib/getpass.h: Add.
106359         * lib/getpass.c: Include getpass.h first.
106361 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
106363         * lib/xalloc-die.c: New file.
106364         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
106365         All uses removed.
106366         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
106367         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
106368         xalloc-die.c.
106369         (_, N_, xalloc_die): Move to xalloc-die.c.
106370         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
106371         so that we needn't mess with xalloc_msg_memory_exhausted.
106373         * lib/sha1.h: Renamed from sha.h.
106374         (SHA1_H): Renamed from _SHA_H.
106375         (sha1_ctx): Renamed from sha_ctx.
106376         (sha1_init_ctx): Renamed from sha_init_ctx.
106377         (sha1_process_block): Renamed from sha_process_block.
106378         (sha1_process_bytes): Renamed from sha_process_bytes.
106379         (sha1_finish_ctx): Renamed from sha_finish_ctx.
106380         (sha1_read_ctx): Renamed from sha_read_ctx.
106381         (sha1_stream): Renamed from sha_stream.
106382         (sha1_buffer): Renamed from sha_buffer.
106383         * lib/sha1.c: Likewise; renamed from sha.c.
106384         Do not include <sys/types.h>.
106385         Include <stddef.h> rather than <stdlib.h>.
106387 2004-08-08  Bruno Haible  <bruno@clisp.org>
106389         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
106390         FILESYSTEM_PREFIX_LEN.
106391         * lib/progreloc.c: Likewise.
106392         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
106394 2004-08-06  Simon Josefsson  <jas@extundo.com>
106396         * modules/progname (Depends-on): Don't depend on stdbool.
106398 2004-08-06  Simon Josefsson  <jas@extundo.com>
106400         * modules/getsubopt: New file.
106401         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106402         getsubopt.
106404 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106406         More merge from coreutils.
106408         * m4/utimens.m4, m4/utimecmp.m4: New files.
106409         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
106410         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
106411         prereq.m4, sha.m4: Import changes from coreutils.
106413 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106415         More merge from coreutils.
106416         * modules/raise, modules/readtokens0, modules/utimens:
106417         * modules/utimecmp, module/xnanosleep: New files.
106418         * modules/strftime: Add lib/strftime.h.
106419         Change include from <time.h> to "strftime.h".
106420         * modules/yesno: Add lib/yesno.h.
106421         * modules/backupfile: Remove lib/addext.c.
106422         * modules/euidaccess: Add stat-macros.h.
106423         * modules/canonicalize, modules/euidaccess,
106424         modules/filemode, modules/lchown, modules/makepath,
106425         modules/rmdir, modules/stat: Likewise.
106427 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106429         Merge from tar.
106430         * lib/argp-help.c (make_hol, hol_append): Don't assume that
106431         SIZE_MAX is a valid preprocessor constant.
106432         (__argp_basename): Change from "#ifndef _LIBC"
106433         to "#ifndef __argp_short_program_name", so that
106434         we don't compile these functions for tar.
106436         More merges from coreutils.
106437         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
106438         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
106439         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
106440         * lib/addext.c: Remove; no longer needed.
106441         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
106442         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
106443         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
106444         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
106445         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
106446         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
106447         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
106448         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
106449         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
106450         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106451         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
106452         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
106453         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
106454         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
106455         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
106456         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
106457         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
106458         Import changes from coreutils.
106460 2004-08-05  Simon Josefsson  <jas@extundo.com>
106462         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
106464 2004-08-05  Simon Josefsson  <jas@extundo.com>
106466         * m4/getsubopt.m4: New file.
106468 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106470         Merge from coreutils.
106472         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
106473         * m4/getcwd-path-max.m4: New files.
106475         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
106476         FILESYSTEM_PREFIX_LEN ->
106477         FILE_SYSTEM_PREFIX_LEN.
106478         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
106479         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
106480         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
106481         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
106483         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
106484         prerequisite modules now handle the DOS stuff.
106485         Don't check for unistd.h.
106487 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106489         Merge from coreutils.
106491         * lib/.gdb-history: Remove; this doesn't belong here.
106493         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
106494         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
106495         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
106496         * lib/getcwd.c: New files.
106498         * lib/dirname.h: Include <stdbool.h>.
106499         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
106500         for consistency with POSIX terminology.  All uses changed.
106501         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
106502         (strip_trailing_slashes): Use bool for booleans.
106503         * lib/stripslash.c (strip_trailing_slashes): Likewise.
106505         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
106506         sometimes returns a positive errno value even when it succeeds.
106507         (print_errno_message) [!LIBC]: Fall back on strerror if
106508         __strerror_r fails.
106510         * lib/path-concat.c (mempcpy): Don't define if a system header defines
106511         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
106512         (longest_relative_suffix): New function.
106513         (path_concat): Use it.  Assume first argument is not NULL.
106514         Port to DOS.  Omit redundant separators.
106515         Report an error instead of returning NULL.
106516         Use mempcpy instead of memcpy.
106517         (xpath_concat): Remove: not declared or used.
106519         * lib/same.h: Include <stdbool.h>
106520         (same_name): Return bool, not int.
106521         * lib/same.c (same_name): Likewise.
106522         (errno): Don't declare; we assume C89 or better now.
106524         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
106525         if not already defined.
106527         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
106528         * lib/dup-safer.c (errno): Likewise.
106530 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106532         Merge from coreutils.
106533         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
106534         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
106535         * modules/path-concat: Don't depend on strdup.
106537 2004-08-03  Simon Josefsson  <jas@extundo.com>
106539         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
106540         * lib/progname.h: Don't include stdbool.h.
106542 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106544         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
106545         * MODULES.html.sh (func_all_modules): Remove fatal.
106547 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106549         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
106551 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106553         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
106554         working.
106556 2004-08-02  Simon Josefsson  <jas@extundo.com>
106558         * lib/getsubopt.h: New file, with comments from Bruno Haible.
106559         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
106560         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
106562 2004-08-01  Simon Josefsson  <jas@extundo.com>
106564         * lib/xgetdomainname.c: Include stdlib.h, for free().
106566 2004-07-19  Bruno Haible  <bruno@clisp.org>
106568         * MODULES.html.sh (func_all_modules): Add dummy.
106570 2004-07-16  Simon Josefsson  <jas@extundo.com>
106572         * modules/dummy: New file.
106574 2004-07-16  Simon Josefsson  <jas@extundo.com>
106576         * lib/dummy.c: New file.
106578 2004-07-16  Bruno Haible  <bruno@clisp.org>
106580         * lib/backupfile.h: Add extern "C" for C++.
106581         * lib/closeout.h: Likewise.
106582         * lib/copy-file.h: Likewise.
106583         * lib/findprog.h: Likewise.
106584         * lib/full-write.h: Likewise.
106585         * lib/pathname.h: Likewise.
106586         * lib/progname.h: Likewise.
106587         * lib/stpcpy.h: Likewise.
106588         * lib/stpncpy.h: Likewise.
106589         * lib/strcase.h: Likewise.
106590         * lib/strstr.h: Likewise.
106591         * lib/xalloc.h: Likewise.
106593         * lib/mbswidth.h: Add extern "C" for C++.
106594         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
106596 2004-07-13  Robert Millan  <robertmh@gnu.org>
106598         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
106600 2004-07-09  Simon Josefsson  <jas@extundo.com>
106602         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
106603         failed without this.)
106605 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106607         * modules/chown (Files): Add lib/fchown-stub.c, since
106608         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
106610 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106612         * lib/fchown-stub.c: New file.
106614 2004-06-24  Jim Meyering  <jim@meyering.net>
106616         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
106618 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106620         * modules/argz: Omit "#include".
106622         * MODULES.html.sh (func_all_modules): Add calloc, to match
106623         2004-06-01 addition of calloc module.
106625 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106627         * m4/argz.m4: New file, which is autoupdated from libtool.
106629 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106631         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
106632         libtool.
106634 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106636         * config/srclist-update: Don't insist on "USA." before the
106637         close-comment, as libtool omits the period and puts the */ on a
106638         separate line.
106639         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
106640         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
106642 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
106644         * modules/argz: New file.
106645         * MODULES.html.sh (func_all_modules): Add argz.
106647 2004-06-12  Jim Meyering  <jim@meyering.net>
106648         and  Paul Eggert  <eggert@cs.ucla.edu>
106650         * modules/hash (Files): Add lib/xalloc.h.
106651         * modules/pipe (Depends-on): Add wait-process.
106652         * modules/stat (Depends-on): Add xalloc.
106653         * modules/userspec (Files): Add lib/userspec.h.
106654         * modules/xstrto
106656         Upgrade from gettext-0.13.
106657         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
106658         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
106659         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
106661 2004-06-10  Jim Meyering  <jim@meyering.net>
106663         * lib/calloc.c: New file.
106665 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
106667         * lib/getdate.y (yylex): Allow space between sign and number.
106668         Problem reported by Dan Jacobson.
106670 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
106672         Merge from coreutils CVS.
106674         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
106675         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
106676         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
106677         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
106678         xstrtol.m4: Fix copyright date and/or serial number.
106680         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
106681         See if we need an fchown replacement.
106682         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
106683         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
106684         and use the replacement function if we detect either defect.
106686         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
106687         gl_UTIMECMP.
106689 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
106690         and  Jim Meyering  <jim@meyering.net>
106692         Merge from coreutils CVS.
106694         * lib/stat-macros.h: New file, with contents from file-type.h
106695         and coreutils' system.h.
106696         * lib/file-type.c: Include "stat-macros.h".
106697         * lib/file-type.h (file_type): Move all macro definitions to new file,
106698         stat-macros.h.
106700         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
106701         Wrap old code with this conditional.
106702         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
106703         function that does not dereference symlinks.
106704         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
106706         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
106707         dependency problems.
106708         (xreadlink): Accept new arg SIZE, for efficiency.
106709         All decls and uses changed.
106710         * lib/xreadlink.h: Include <stddef.h>, for size_t.
106712         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
106713         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
106715         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
106716         sysexits.h.
106718 2004-06-01  Jim Meyering  <jim@meyering.net>
106720         * m4/calloc.m4: New file.
106722 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
106724         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
106725         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
106726         Also, fix a typo in a diagnostic.
106728 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
106730         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
106731         or AC_FUNC_REALLOC.
106733 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
106735         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
106736         macros to be defined.
106737         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
106738         the allocator returns NULL because the requested size is zero.
106740 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106742         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
106743         var.  Add comment explaining why libc still defines it.  This
106744         merges the following patch from glibc:
106745         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
106747 2004-05-20  Andreas Schwab  <schwab@suse.de>
106749         * m4/free.m4: Replace free if it not known to work, not the other
106750         way round.
106752 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
106754         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
106755         present in glibc since revision 1.1 of this file.
106756         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
106757         obstack_alignment_mask, obstack_alloc, obstack_base,
106758         obstack_blank, obstack_blank_fast, obstack_chunk_size,
106759         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
106760         obstack_grow0, obstack_init, obstack_int_grow,
106761         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
106762         obstack_next_free, obstack_object_size, obstack_ptr_grow,
106763         obstack_ptr_grow_fast, obstack_room): Remove declarations of
106764         nonexistent functions.
106766 2004-05-18  Karl Berry  <karl@gnu.org>
106768         * config/srclist.txt: break link for vasnprintf.c.
106770 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
106772         Port obstack to the AS/400, where pointers are 16 bytes wide and
106773         you cannot cast an integer to a valid pointer.  This patch is
106774         currently waiting to be integrated into glibc; see
106775         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
106777         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
106778         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
106779         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
106780         (struct obstack): temp member is now a union of a pointer and
106781         an integer, instead of an integer.  All integer uses changed.
106782         This does not affect the physical layout of struct obstack,
106783         except on hosts (like the AS/400) where the size or alignment of
106784         void * is greater than that of ptrdiff_t.
106785         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
106786         __STDC__)]: Store temporary in pointer member of union, not
106787         integer member.
106788         * lib/obstack.c: Include <stddef.h>, for offsetof.
106789         (struct fooalign): Remove; it doesn't need a name.
106790         (union fooround): Change double to long double, and add void *.
106791         (DEFAULT_ALIGNMENT): Use offsetof to compute.
106792         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
106793         not a macro.  Hence the values are always int; so remove all
106794         casts-to-int in uses.
106796 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
106798         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
106799         we can get this patch merged into glibc.
106801 2004-05-17  Derek R. Price  <derek@ximbiot.com>
106802             Paul Eggert  <eggert@cs.ucla.edu>
106804         * m4/argp: Depend on alloca.
106806 2004-05-17  Derek R. Price  <derek@ximbiot.com>
106807             Paul Eggert  <eggert@cs.ucla.edu>
106809         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
106810         freecoding.
106812 2004-05-17  Bruno Haible  <bruno@clisp.org>
106814         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
106815         precision that consists of a '.' followed by an empty digit string.
106816         Patch by Tor Lillqvist <tml@iki.fi>.
106818 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
106820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
106821         for backward compatibility with older code.  We need our own
106822         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
106823         it under some other name, and our alloca.h will define it.
106825 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
106826             Derek Price  <derek@ximbiot.com>
106828         * lib/alloca.c: Include <alloca.h>, to get our interface.
106829         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
106830         include <alloca.h> first.  Use C89 prototype for alloca; this
106831         requires including <stddef.h> for size_t.  Use extern "C" if C++.
106832         Use #elif for simplicity, since we can assume C89 now.
106833         Don't try to source the system alloca.h since it will not be found
106834         and to prevent recursively including its replacement.
106835         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
106836         * lib/regex.c: Likewise.
106838 2004-05-16  Derek Price  <derek@ximbiot.com>
106839             Paul Eggert  <eggert@cs.ucla.edu>
106841         getline cleanup.  This changes the getndelim2 API: both order of
106842         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
106843         no delimiter).
106845         * lib/getline.c: Don't include stddef.h or stdio.h, since our
106846         interface does that.
106847         (getline): Always use getdelim, so that we don't have two
106848         copies of this code.
106849         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
106850         if available.
106851         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
106852         (GETNDELIM2_MAXIMUM): New macro.
106853         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
106854         instead of the old practice of delim2==0.  All callers changed.
106855         Return -1 on overflow, instead of returning junk.
106856         Do not set *linesize unless allocation succeeds.
106857         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
106858         that we include sys/types.h.
106859         * lib/getnline.h: Likewise.
106860         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
106861         (getndelim2): Reorder arguments.
106862         * lib/getnline.c (getnline, getndelim):
106863         Don't discard the NMAX argument.
106864         (getnline): Invoke getndelim, to avoid code duplication.
106865         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
106866         of (size_t) -1 by callers of the getnline family.
106868 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106870         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
106871         Check for gettimeofday.
106872         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
106873         Check for settimeofday, stime.
106875 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106877         * lib/nanosleep.c (suspended): Change its type from int to
106878         sig_atomic_t volatile.
106879         (first_call): Make it private to rpl_nanosleep, and have it
106880         be zero initially as that's a bit faster.
106881         (my_usleep): Round up fractional times instead of truncating them,
106882         as this is the usual meaning for 'sleep'.
106884         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
106885         doesn't work.
106886         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
106887         (ENOSYS): Define if not defined.
106888         (settime): Fall back on stime if it exists and settimeofday fails.
106889         But don't bother with fallbacks if a method fails with errno == EPERM.
106891 2004-05-11  Jim Meyering  <jim@meyering.net>
106893         Prior to this change, the save_cwd caller required read access to the
106894         current directory on most systems (ones with the fchdir function).
106896         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
106897         fails, try write-only, and finally, resort to using xgetcwd.
106899 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106901         * lib/obstack.c, obstack.h: Import changes from libc.
106903 2004-04-28  Bruno Haible  <bruno@clisp.org>
106905         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
106906         also implicitly appends .exe to executables.
106907         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
106908         accepts Windows pathnames.
106909         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
106910         Treat Cygwin like Windows, since it now accepts Windows pathnames.
106911         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
106912         Treat Cygwin like Windows, since it now accepts Windows pathnames.
106913         Reported by Derek Robert Price <derek@ximbiot.com>.
106915 2004-04-21  Karl Berry  <karl@gnu.org>
106917         * config/srclist.txt (localcharset.c): break sync.
106919 2004-04-20  Paul Eggert  <eggert@twinsun.com>
106921         * m4/host-os.m4: Add a copyright notice.
106923 2004-04-20  Jim Meyering  <jim@meyering.net>
106925         Change UTILS_ to gl_ in AC_DEFINE'd names.
106926         Change utils_- and jm_-prefixed variables, too.
106927         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
106928         UTILS_FUNC_MKDIR_TRAILING_SLASH.
106929         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
106931         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
106932         Don't emit trailing blanks.
106933         Also rename jm_-prefixed variables to have gl_ prefix.
106935         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
106936         Also rename jm_-prefixed variables to have gl_ prefix.
106938         * m4/jm-macros.m4: Reflect the renamings.
106939         * m4/prereq.m4: Likewise.
106941 2004-04-20  Jim Meyering  <jim@meyering.net>
106943         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
106944         memory.
106946 2004-04-20  Jim Meyering  <jim@meyering.net>
106947             Bruno Haible  <bruno@clisp.org>
106949         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
106950         memory when realloc fails.
106952 2004-04-19  Jim Meyering  <jim@meyering.net>
106954         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
106955         now that readutmp.c may call `free (0)'.
106957 2004-04-19  Bruno Haible  <bruno@clisp.org>
106959         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
106960         * m4/inttypes_h.m4: Likewise.
106961         * m4/stdint_h.m4: Likewise.
106962         * m4/intmax_t.m4: Likewise.
106963         * m4/uintmax_t.m4: Likewise.
106965 2004-04-18  Jim Meyering  <jim@meyering.net>
106967         * m4/prereq.m4: Don't forbid jm_ prefix.
106969         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
106970         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
106971         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
106972         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
106973         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
106974         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
106975         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
106976         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
106977         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
106978         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
106979         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
106980         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
106981         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
106982         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
106983         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
106984         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
106985         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
106986         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
106987         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
106989 2004-04-18  Jim Meyering  <jim@meyering.net>
106991         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
106992         failure, don't leak memory and do call END_UTMP_ENT.
106994 2004-04-16  Jim Meyering  <jim@meyering.net>
106996         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
106997         coreutils' stat program.
106998         (gl_PREREQ): Don't require jm_PREREQ_STAT.
107000 2004-04-11  Paul Eggert  <eggert@twinsun.com>
107002         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
107003         C89.
107004         (CHAR_BIT): Remove, since we assume C89.
107005         Include <stdint.h> if available, as per current Autoconf CVS advice.
107007 2004-03-31  Jim Meyering  <jim@meyering.net>
107009         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
107010         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
107011         * m4/xalloc.m4: Likewise.
107013 2004-03-30  Paul Eggert  <eggert@twinsun.com>
107015         Merge from coreutils.
107017         * m4/inttostr.m4: New file.
107018         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
107019         Require AM_STDBOOL_H and gl_TIMESPEC instead.
107020         Require gl_CLOCK_TIME.
107021         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
107023 2004-03-30  Paul Eggert  <eggert@twinsun.com>
107025         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
107026         not bool, to be more consistent with Unix conventions.
107027         Suggested by Bruno Haible.
107029         Merge from coreutils.
107031         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
107032         * lib/umaxtostr.c: New files.
107034         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
107035         the usual <time.h> dance.
107036         (get_date): Change signature to support fractional time stamps.
107037         All callers changed.
107038         * lib/getdate.y: Include "getdate.h" first, as we can now
107039         assume C89 and don't need to worry about 'const'.
107040         Similarly, include "unlocked-io.h" near start, not in middle.
107041         Include <limits.h>.
107042         (textint.value): Use long int rather than int.
107043         (textint.digits): Use size_t rather than int.
107044         (BILLION, LOG10_BILLION): New constants.
107045         (parser_control): New member rel_ns.  Members day_ordinal,
107046         time_zone, month, day, hour, minutes, rel_year, rel_month,
107047         rel_day, rel_hour, rel_minutes, rel_seconds
107048         are now long int, not int.  Member seconds is now struct timespec,
107049         not int.  New member timespec_seen.  Members dates_seen, days_seen,
107050         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
107051         not int.
107052         (%union.intval): Now long int, not int.
107053         New member timespec.
107054         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
107055         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
107056         (spec): Now is a timespec or an item list.
107057         (timespec, items): New nonterminals.
107058         (time, rel, relunit, number, get_date):
107059         Add support for fractional seconds.
107060         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
107061         (gmtime, localtime, mktime): Remove decls; not needed with C89.
107062         (to_hour): First arg is now long int, not int.
107063         (to_year): Returns long int, not int.
107064         Don't treat year -70 like 70.
107065         (tm_diff): Returns long int, not int.
107066         (lookup_word): Use bool instead of int when appropriate.
107067         (yylex): Use size_t for count, not int.
107068         Detect overflow when parsing large integer constants.
107069         Add support for fractions.
107070         (get_date): Make pointers 'const' if possible.
107071         Use more-portable code to detect integer overflow.
107072         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
107073         Don't use ctime; it's not reliable if the year has >4 digits.
107075         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
107076         This is for compatibility with BSD.
107078         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
107079         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
107080         From coreutils' system.h.
107082         * lib/userspec.c: Don't include "posixver.h".
107083         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
107084         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
107085         compatible extension.  Simplify code by removing a boolean int
107086         that was always nonzero if a string was nonnull.
107088 2004-03-30  Jim Meyering  <jim@meyering.net>
107090         Merge from coreutils.
107092         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
107093         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
107094         on some systems one must include <grp.h> before it.
107095         Reported by Christian Krackowizer.
107097 2004-03-30  Jim Meyering  <jim@meyering.net>
107099         Merge from coreutils.
107101         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
107103         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
107104         an empty input stream.
107106         * lib/readtokens.c: Include <stdbool.h>.
107107         (readtoken): Use `size_t' rather than int/long.
107108         All callers adjusted.
107109         Use `bool' rather than `int' where appropriate.
107110         Use memset rather than an explicit loop.
107111         Use x2nrealloc rather than xrealloc.
107112         Allow the use of `\0' as a delimiter.
107113         (readtokens): Likewise.
107114         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
107116 2004-03-30  Jim Meyering  <jim@meyering.net>
107118         * m4/realloc.m4: Remove file, since now it does no more than
107119         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
107120         the `configure.ac' section of module/realloc.
107121         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
107123 2004-03-30  Bruno Haible  <bruno@clisp.org>
107125         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
107126         nonnull.
107128 2004-03-29  Paul Eggert  <eggert@twinsun.com>
107130         Merge changes to getloadavg.c from coreutils and Emacs.
107132         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
107133         Define to an expression, not to the empty string.
107134         Include cloexec.h and xalloc.h.
107135         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
107136         Use set_cloexec_flag rather than rolling our own.
107137         * lib/cloexec.c, lib/cloexec.h: New files.
107139 2004-03-29  Paul Eggert  <eggert@twinsun.com>
107141         * m4/cloexec.m4: New file.
107143 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107145         * lib/getopt.h: Sync with libc CVS.
107147 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107148             Bruno Haible  <bruno@clisp.org>
107150         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
107151         mbswidth.
107153 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107154             Bruno Haible  <bruno@clisp.org>
107156         * lib/mbswidth.h: Include <wchar.h> only if
107157         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
107158         <wchar.h>.
107159         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
107161 2004-03-09  Paul Eggert  <eggert@twinsun.com>
107163         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
107164         Sync with libc CVS.
107165         * lib/getopt_int.h: New file, also synced from libc.
107167 2004-03-09  Paul Eggert  <eggert@twinsun.com>
107169         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
107170         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
107171         Bring back getopt.c, getopt.h, getopt1.c.
107173 2004-03-07  Paul Eggert  <eggert@twinsun.com>
107175         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
107176         All uses changed.  Check for sa_sigaction member; this fixes
107177         a bug first reported by Jason Andrade in
107178         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
107180 2004-03-07  Paul Eggert  <eggert@twinsun.com>
107182         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
107183         '#if' expressions.  Unlike the code it replaces, it does not
107184         depend on (defined _SC_PAGESIZE).  However, it does depend on
107185         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
107186         first reported by Jason Andrade in
107187         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
107189 2004-02-25  Simon Josefsson  <jas@extundo.com>
107191         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
107193 2004-02-25  Simon Josefsson  <jas@extundo.com>
107195         * lib/strdup.h: New file.
107196         * lib/strdup.c: Include it.
107197         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
107198         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
107200 2004-02-23  Karl Berry  <karl@gnu.org>
107202         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
107203         (from fencepost.gnu.org:/gd/gnuorg).
107205 2004-02-23  Karl Berry  <karl@gnu.org>
107207         * config/srclistvars.sh (GNUORG) [karl]: redefine.
107208         * config/srclist.txt: add maintain/standards documents.
107210 2004-02-18  Bruno Haible  <bruno@clisp.org>
107212         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
107213         Reported by Derek Robert Price <derek@ximbiot.com>.
107215 2004-02-16  Karl Berry  <karl@gnu.org>
107217         * config/mkinstalldirs, install-sh: update from automake.
107219 2004-02-06  Karl Berry  <karl@gnu.org>
107221         * m4/po.m4: update from gettext 0.14.1.
107223 2004-02-06  Karl Berry  <karl@gnu.org>
107225         * lib/config.charset: update from gettext 0.14.1.
107227 2004-02-05  Paul Eggert  <eggert@twinsun.com>
107229         Add comments and code, prompted by suggestions from Bruno Haible
107230         for sh-quote.
107231         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
107232         describing the enum quoting_style values.
107233         * lib/quotearg.c (quotearg_alloc): New function.
107234         (quotearg_buffer_restyled): Treat lone { and } as special.
107235         Treat = as special.  Work around bug with older shells
107236         that "see" a '\' that is really the 2nd byte of a multibyte char.
107237         Quote empty string with shell_quoting_style.
107239 2004-02-03  Bruno Haible  <bruno@clisp.org>
107241         * m4/pipe.m4: New file, from GNU gettext.
107243 2004-02-03  Bruno Haible  <bruno@clisp.org>
107245         * lib/pipe.h: New file, from GNU gettext.
107246         * lib/pipe.c: New file, from GNU gettext.
107248 2004-01-27  Bruno Haible  <bruno@clisp.org>
107250         * m4/execute.m4: New file, from GNU gettext.
107252 2004-01-27  Bruno Haible  <bruno@clisp.org>
107254         * lib/execute.h: New file, from GNU gettext.
107255         * lib/execute.c: New file, from GNU gettext.
107256         * lib/w32spawn.h: New file, from GNU gettext.
107258 2004-01-24  Paul Eggert  <eggert@twinsun.com>
107260         Merge from diffutils.
107262         * lib/file-type.c (file_type): Add typed memory objects.
107263         * lib/file-type.h (S_TYPEISTMO): New macro.
107265         * lib/c-stack.h (c_stack_action): Remove argv argument.
107266         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
107267         (die): Don't calculate message unless segv_action returns.
107268         (get_stack_location, min_address_from_argv, max_address_from_argv,
107269         volatile stack_base, volatile_stack_size): Remove.
107270         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
107271         that every segmentation violation is a stack overflow.  (Ouch!)
107272         See Debian bug 136249 (still outstanding) for more info about why
107273         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
107275 2004-01-24  Paul Eggert  <eggert@twinsun.com>
107277         Exit-status fix from coreutils.
107279         Use exit_failure consistently in place of EXIT_FAILURE,
107280         so that program exit statuses are consistent on failure.
107282         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
107283         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
107284         * lib/argmatch.h: Comment fix to match the above.
107285         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
107286         Now a macro referring to exit_failure, instead of a separate
107287         variable.  Include "exitfail.h" to get it.
107288         * lib/xstrtol.h: Include "exitfail.h".
107289         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
107291         * lib/long-options.c (parse_long_options): Use prototype
107292         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
107293         for clarity.
107295 2004-01-21  Jim Meyering  <jim@meyering.net>
107297         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
107298         so as not to conflict with a different-sized __mktime_internal
107299         function in GNU libc.
107300         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
107301         Problem building statically-linked `ls' reported by Michael Brunnbauer.
107303 2004-01-20  Karl Berry  <karl@gnu.org>
107305         * config/config.guess: update from config.
107307         * config/srclistvars.sh: GNUWWWLICENSES for karl.
107309 2004-01-20  Bruno Haible  <bruno@clisp.org>
107311         Safer stack allocation.
107312         * lib/setenv.c: Include allocsa.h.
107313         (alloca): Remove fallback definition.
107314         (freea): Remove macro.
107315         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
107316         instead of freea.
107318 2004-01-20  Bruno Haible  <bruno@clisp.org>
107320         * m4/eealloc.m4: New file, from GNU gettext.
107322 2004-01-20  Bruno Haible  <bruno@clisp.org>
107324         * m4/allocsa.m4: New file, from GNU gettext.
107326 2004-01-20  Bruno Haible  <bruno@clisp.org>
107328         * lib/xallocsa.h: New file, from GNU gettext.
107329         * lib/xallocsa.c: New file, from GNU gettext.
107331 2004-01-20  Bruno Haible  <bruno@clisp.org>
107333         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
107335 2004-01-20  Bruno Haible  <bruno@clisp.org>
107337         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
107338         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
107339         specially.
107341 2004-01-20  Bruno Haible  <bruno@clisp.org>
107343         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
107344         patch.
107346 2004-01-20  Bruno Haible  <bruno@clisp.org>
107348         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
107350 2004-01-20  Bruno Haible  <bruno@clisp.org>
107352         * lib/eealloc.h: New file.
107354 2004-01-20  Bruno Haible  <bruno@clisp.org>
107356         * lib/binary-io.h: Avoid warnings on Cygwin.
107358 2004-01-20  Bruno Haible  <bruno@clisp.org>
107360         * lib/allocsa.h: New file, from GNU gettext.
107361         * lib/allocsa.c: New file, from GNU gettext.
107363 2004-01-18  Karl Berry  <karl@gnu.org>
107365         * doc/gpl.texi, doc/lgpl.texi: new files.
107367 2004-01-18  Karl Berry  <karl@gnu.org>
107369         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
107370         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
107372 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107374         Merge from coreutils.
107376         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
107377         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
107378         (gl_DEFAULT_POSIX2_VERSION): Move
107379         the documentation from 'configure' into 'config.hin',
107380         so that 'configure --help' isn't burdened by it and
107381         we don't have to worry about its formatting there.
107382         Reword the documentation so that it's more succinct
107383         and can be run together into a single paragraph.
107384         * m4/same.m4 (gl_SAME): Check for pathconf.
107386 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107388         Merge from coreutils.
107390         * lib/posixver.c: Include posixver.h.
107392         * lib/same.c: Include <stdbool.h>, <limits.h>.
107393         (_POSIX_NAME_MAX): Define if not defined.
107394         (MIN): New macro.
107395         (same_name): If file names are silently truncated, report
107396         that the file names are the same if they are the same after
107397         the silent truncation.
107399         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
107400         conversion function.
107401         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
107402         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
107403         longer needed.
107405 2004-01-15  Jim Meyering  <jim@meyering.net>
107407         Merge from coreutils.
107409         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
107410         if no library is required.
107411         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
107412         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
107413         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
107414         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
107415         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
107416         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
107417         value, $ac_cv_search_crypt, if it's "none required".
107418         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
107419         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
107420         not gl_FUNC_GETLOADAVG.
107421         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
107422         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
107424 2004-01-15  Jim Meyering  <jim@meyering.net>
107426         Merge from coreutils.
107428         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
107429         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
107430         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
107432         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
107433         optional configure-time default.
107435         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107437         * lib/xreadlink.c (xreadlink): Correct outdated comment.
107439 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
107441         Merge from coreutils.
107443         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
107444         value, $ac_cv_search_nanosleep, if it's "none required".
107446 2004-01-14  Paul Eggert  <eggert@twinsun.com>
107448         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
107449         with like-named macro in fnmatch.c.
107450         (EXT): Use an internal constant instead.
107452         Merge fnmatch patches from glibc.
107453         * lib/fnmatch.c (mbsinit): Remove define.
107454         Add libc_hidden_ver (__fnmatch, fnmatch).
107455         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
107456         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
107458 2004-01-14  Karl Berry  <karl@gnu.org>
107460         * config/install-sh: update from automake.
107462 2004-01-13  Karl Berry  <karl@gnu.org>
107464         * config/install-sh: update from automake.
107466 2004-01-09  Karl Berry  <karl@gnu.org>
107468         * config/install-sh: update from automake.
107470 2004-01-05  Karl Berry  <karl@gnu.org>
107472         * config/config.{sub,guess}: update from config.
107474 2003-12-31  Karl Berry  <karl@gnu.org>
107476         * config/depcomp: update from automake.
107478 2003-12-14  Karl Berry  <karl@gnu.org>
107480         * lib/config.charset: update from gettext-runtime.
107482 2003-12-03  Paul Eggert  <eggert@twinsun.com>
107484         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
107485         Bug reported by Alfred M. Szmidt.
107487 2003-12-03  Bruno Haible  <bruno@clisp.org>
107489         * m4/gettext.m4: Upgrade from gettext-0.13.
107490         * m4/po.m4: Upgrade from gettext-0.13.
107491         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
107492         * m4/intmax.m4: New file, from gettext-0.13.
107493         * m4/printf-posix.m4: New file, from gettext-0.13.
107495 2003-11-29  Karl Berry  <karl@gnu.org>
107497         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
107499 2003-11-25  Paul Eggert  <eggert@twinsun.com>
107500             Bruno Haible  <bruno@clisp.org>
107502         * lib/printf-parse.h: Don't include sys/types.h.
107503         (ARG_NONE): New macro.
107504         (char_directive): Change type of *arg_index fields to size_t.
107505         * lib/printf-parse.c: Don't include sys/types.h.
107506         (SSIZE_MAX): Remove macro.
107507         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
107508         Remove unnecessary overflow check.
107509         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
107510         fields.
107512 2003-11-25  Bruno Haible  <bruno@clisp.org>
107514         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
107516 2003-11-25  Bruno Haible  <bruno@clisp.org>
107518         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
107519         gt_TYPE_SSIZE_T.
107521 2003-11-24  Paul Eggert  <eggert@twinsun.com>
107523         * modules/alloca: Remove dependency on xalloc.
107525 2003-11-24  Paul Eggert  <eggert@twinsun.com>
107527         * lib/alloca.c: Remove dependency on xalloc module.
107528         (xalloc_die): Remove.
107529         (memory_full) [!defined emacs]: New macro.
107530         [!defined emacs]: Don't include xalloc.h.
107531         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
107532         address arithmetic overflows.  Change datatypes a bit to avoid
107533         unnecessary casts.
107535 2003-11-22  Jim Meyering  <jim@meyering.net>
107537         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
107538         s/size/size_t/.
107540 2003-11-21  Karl Berry  <karl@gnu.org>
107542         * config/config.{sub,guess}: update from config.
107544 2003-11-18  Karl Berry  <karl@gnu.org>
107546         * config/config.{sub,guess}: update from config.
107548         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
107550 2003-11-17  Paul Eggert  <eggert@twinsun.com>
107552         * README: Mention that S+T cannot overflow if S is the size of
107553         an existing object and T is sufficiently small.
107555 2003-11-17  Jim Meyering  <jim@meyering.net>
107557         On systems without utime and without a utimes function capable of
107558         dealing with a NULL struct utimbuf* argument, this utime replacement
107559         could -- in unusual circumstances -- leak a file descriptor.
107560         * lib/utime.c: Include <unistd.h> and <errno.h>.
107561         (utime_null): Be sure to close `fd' and to preserve errno.
107562         Reported by Geoff Collyer via Arnold Robbins.
107564 2003-11-17  Bruno Haible  <bruno@clisp.org>
107566         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
107567         (Depends-on): Add xsize.
107569 2003-11-17  Bruno Haible  <bruno@clisp.org>
107571         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
107573 2003-11-17  Bruno Haible  <bruno@clisp.org>
107575         * lib/vasnprintf.c (alloca): Remove fallback definition.
107576         (freea): Remove definition.
107577         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
107578         Reported by Paul Eggert.
107580 2003-11-16  Paul Eggert  <eggert@twinsun.com>
107581             Bruno Haible  <bruno@clisp.org>
107583         Protect against address arithmetic overflow.
107584         * lib/printf-args.h: Include stddef.h.
107585         (arguments): Change type of field 'count' to size_t.
107586         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
107587         'unsigned int' where appropriate.
107588         * lib/printf-parse.h: Include sys/types.h.
107589         (char_directive): Change type of *arg_index fields to ssize_t.
107590         (char_directives): Change type of fields 'count', max_*_length to
107591         size_t.
107592         * lib/printf-parse.c: Include sys/types.h and xsize.h.
107593         (SSIZE_MAX): Define fallback value.
107594         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
107595         instead of 'int' where appropriate. Check a_allocated, d_allocated
107596         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
107597         * lib/vasnprintf.c: Include xsize.h.
107598         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
107599         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
107600         overflow. Avoid wraparound when converting a width or precision from
107601         decimal to binary.
107603 2003-11-16  Bruno Haible  <bruno@clisp.org>
107605         Update from GNU gettext.
107606         * lib/printf-parse.c: Generalize to it can be compiled for wide
107607         strings.
107608         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
107609         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
107610         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
107611         SNPRINTF): New macros.
107612         Don't include <alloca.h> if the file is used inside libintl.
107613         (local_wcslen): New function, for Solaris 2.5.1.
107614         (VASNPRINTF): Use it instead of wcslen.
107616 2003-11-16  Bruno Haible  <bruno@clisp.org>
107618         * lib/xsize.h (xmax): New function.
107619         (xsum, xsum3, xsum4): Declare as "pure" functions.
107621 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107623         * modules/xalloc (Files): Undo latest change, since xalloc.h
107624         no longer needs SIZE_MAX or PTRDIFF_MAX.
107626 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107628         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
107629         gl_PTRDIFF_MAX.
107631 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107633         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
107634         "return", to pacify some unknown compiler.  Problem reported
107635         by Joerg Schilling.
107637 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107639         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
107640         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
107641         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
107642         heuristic is just as accurate as far as we know, and it removes a
107643         dependency on size_max.m4 and ptrdiff_max.m4.
107645 2003-11-11  Bruno Haible  <bruno@clisp.org>
107647         * modules/xsize (Files): Add m4/size_max.m4.
107648         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
107650 2003-11-11  Bruno Haible  <bruno@clisp.org>
107652         * m4/size_max.m4: New file.
107653         * m4/ptrdiff_max.m4: New file.
107654         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
107655         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
107656         (gl_XALLOC): Invoke it.
107658 2003-11-11  Bruno Haible  <bruno@clisp.org>
107660         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
107661         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
107662         defined.
107664 2003-11-10  Paul Eggert  <eggert@twinsun.com>
107666         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
107667         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
107668         rejected some allocations of exactly SIZE_MAX - 2 bytes.
107669         From Bruno Haible.
107670         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
107671         not (size_t) -1, since it's defined here.
107673 2003-11-09  Karl Berry  <karl@gnu.org>
107675         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
107677 2003-11-06  Paul Eggert  <eggert@twinsun.com>
107679         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
107680         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
107681         Reject sizes of exactly SIZE_MAX bytes.
107682         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
107683         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
107685 2003-11-05  Bruno Haible  <bruno@clisp.org>
107687         * lib/xsize.h: Include limits.h, to avoid a possible collision with
107688         SIZE_MAX defined in <limits.h> on Solaris.
107690 2003-11-04  Jim Meyering  <jim@meyering.net>
107692         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
107693         variable names, rather than @VAR@.
107694         * modules/poll: Likewise.
107696 2003-11-04  Bruno Haible  <bruno@clisp.org>
107698         * modules/xsize: New file.
107699         * modules/linebreak: Depend on xsize.
107700         * MODULES.html.sh (func_all_modules): Add xsize.
107702 2003-11-04  Bruno Haible  <bruno@clisp.org>
107704         * m4/xsize.m4: New file.
107706 2003-11-04  Bruno Haible  <bruno@clisp.org>
107708         * lib/xsize.h: New file.
107709         * lib/linebreak.c: Include xsize.h.
107710         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
107711         argument for overflow.
107712         Suggested by Paul Eggert.
107714 2003-11-03  Karl Berry  <karl@gnu.org>
107716         * config/config.{guess,sub}: update from config.
107718 2003-11-03  Jim Meyering  <jim@meyering.net>
107720         * modules/userspec (lib_SOURCES): Add userspec.h.
107721         (Include): Add "userspec.h".
107722         Improve description.
107724 2003-11-03  Jim Meyering  <jim@meyering.net>
107726         * lib/userspec.c: Include "userspec.h".
107727         * lib/userspec.h: New file.
107729 2003-11-03  Bruno Haible  <bruno@clisp.org>
107731         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
107733 2003-11-03  Bruno Haible  <bruno@clisp.org>
107735         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
107736         available, to avoid (extremely rare) race condition.
107737         Suggested by Paul Eggert.
107739 2003-11-02  Karl Berry  <karl@gnu.org>
107741         * config/srclist.txt (vasprintf.c): sync broken, sigh.
107743 2003-10-31  Paul Eggert  <eggert@twinsun.com>
107745         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
107746         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
107747         (read_filesystem_list): Set and use me_type_malloced.
107748         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
107749         whatever the type happens to be), for brevity and consistency.
107750         Check for size calculation overflow on Alphas running OSF/1.
107752 2003-10-31  Jim Meyering  <jim@meyering.net>
107754         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
107756         * lib/linebuffer.c: Include <string.h> for declaration of memset.
107758 2003-10-30  Paul Eggert  <eggert@twinsun.com>
107759             Bruno Haible  <bruno@clisp.org>
107761         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
107762         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
107764 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
107766         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
107767         netbsd*-gnu*.  Suggested by Robert Millan.
107769 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107771         * modules/group-member: Depend on stdbool.
107773 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107775         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
107777 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107779         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
107780         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
107781         after the 'gnu' in these cases.  This fixes some bugs in the
107782         previous change, and is based on suggestions by Robert Millan.
107784 2003-10-29  Paul Eggert  <eggert@twinsun.com>
107786         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
107787         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
107788         no longer needed.
107789         * lib/quotearg.c (quotearg_n_options): Use it.
107790         * lib/group-member.c: Include <stdbool.h>.
107791         (free_group_info): Arg is now const *; don't free arg.
107792         (get_group_info): Now returns bool and accepts struct group_info *,
107793         rather than returning a malloc'ed struct group_info *.
107794         All uses changed.  Check for overflow in internal size calculation.
107796         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
107797         rather than xmalloc/xrealloc.
107798         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
107799         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
107800         conformance bug: the old code used a pointer after freeing the
107801         storage that it addressed.
107802         * lib/hash.c (hash_initialize): Simplify the code by using
107803         xalloc_oversized rather than doing it by hand.
107804         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
107805         the buffer preserved.  Use free and xmalloc instead.
107806         * lib/quotearg.c (quotearg_n_options): Likewise.
107807         Use a simpler test for size overflow.  Don't use xalloc_oversized
107808         because unsigned int might be wider than size_t (!); this suggests
107809         that we should switch from unsigned int to size_t for slot numbers.
107811 2003-10-28  Paul Eggert  <eggert@twinsun.com>
107813         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
107814         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
107815         NetBSD kernels.  Requested by Richard Stallman.
107817 2003-10-27  Paul Eggert  <eggert@twinsun.com>
107819         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
107820         to allocate the returned structure.  Do not allocate a subarray,
107821         as x2nrealloc will do that.
107822         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
107823         instead of xnrealloc.
107824         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
107826 2003-10-27  Bruno Haible  <bruno@clisp.org>
107828         * lib/stdbool_.h: Better support for BeOS.
107830 2003-10-26  Paul Eggert  <eggert@twinsun.com>
107832         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
107833         now uses inline.
107835 2003-10-26  Paul Eggert  <eggert@twinsun.com>
107837         * lib/xalloc.h (xalloc_oversized): New static inline function, for
107838         callers that want to do their own size-overflow checking.  Include
107839         <stdbool.h>, since xalloc_oversized returns bool.
107840         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
107841         to use xalloc_oversized.
107843         Add two functions x2realloc, x2nrealloc, for programs that grow
107844         arrays dynamically by doubling their sizes.
107845         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
107846         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
107847         New functions.
107849         Port to C99 semantics for 'inline' of external functions.
107850         Bug reported by Bruno Haible.
107851         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
107852         with the old contents of xnmalloc.
107853         (xnmalloc, xmalloc): Use it.
107854         (xnrealloc_inline): New static inline function,
107855         with the old contents of xnrealloc.
107856         (xnrealloc, xrealloc): Use it.
107858         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
107859         that.
107861 2003-10-26  Karl Berry  <karl@gnu.org>
107863         * config/srclist.txt (COPYING.DOC): no longer available from
107864         /gd/gnuorg; don't know where the ultimate source is.
107866 2003-10-25  Paul Eggert  <eggert@twinsun.com>
107868         Fix several address-calculation bugs in the hash modules,
107869         plus some minor code cleanup.
107871         * lib/hash.h: Include <stdbool.h>, for bool.
107872         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
107873         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
107874         hash_get_n_entries, hash_get_max_bucket_length,
107875         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
107876         hash_rehash): Use size_t rather than unsigned.
107877         * lib/hash.c (struct hash_table, hash_get_n_buckets,
107878         hash_get_n_buckets_used, hash_get_n_entries,
107879         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
107880         hash_get_entries, hash_do_for_each, hash_string, is_prime,
107881         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
107882         Likewise.
107883         (SIZE_MAX): Define if not defined.
107884         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
107885         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
107886         hash_print):
107887         Use const * when possible.
107888         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
107889         (check_tuning): Fix bug: if tuning parameters were very close to
107890         0 or 1, rounding errors could have caused subscript violations.
107891         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
107892         (hash_initialize): Add 'fail:' label
107893         to free table and return NULL, and use it to simplify code.
107894         Use calloc rather than clearing the storage ourself.
107895         (hash_initialize, hash_rehash): Check for arithmetic overflow in
107896         buffer size calculations.
107897         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
107898         Include <stddef.h>, for size_t.
107899         * lib/hash-pjw.c (hash_pjw): Likewise.
107900         Switch to method described by Bruno Haible.
107901         Include <limits.h>, for CHAR_BIT.
107902         (SIZE_BITS): New macro.
107904 2003-10-23  Paul Eggert  <eggert@twinsun.com>
107906         * m4/getline.m4 (AM_FUNC_GETLINE):
107907         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
107908         hosts.  Problem reported by Derek Robert Price in
107909         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
107910         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
107911         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
107913 2003-10-21  Paul Eggert  <eggert@twinsun.com>
107915         * lib/getndelim2.c (getndelim2): When size calculation overflows,
107916         ceiling the allocation at NMAX bytes rather than silently
107917         discarding input bytes before NMAX is reached.  This makes
107918         a difference only if NMAX exceeds SIZE_MAX / 2.
107920         * lib/obstack.c: Merge from glibc.
107921         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
107922         Add libc_hidden_def (_obstack_newchunk).
107923         (_obstack_free) [! defined _LIBC]: Remove.
107924         [defined _LIBC]: Make a strong alias from obstack_free, rather than
107925         a clone of the function body.
107926         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
107927         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
107929         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
107930         glibc.
107931         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
107932         arg to memcpy.
107934         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
107935         (obstack_ptr_grow_fast, obstack_int_grow_fast):
107936         Don't use lvalue casts, as GCC plans to remove support for them
107937         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
107938         was also present in the non-GCC version, indicating that this
107939         code had always been buggy and had never been widely used.
107940         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
107941         Use the fast variant of each macro, rather than copying the
107942         definiens of the fast variant; that way, we'll be more likely to
107943         catch future bugs in the fast variants.
107945 2003-10-20  Bruno Haible  <bruno@clisp.org>
107947         * modules/wait-process: New file.
107948         * MODULES.html.sh (func_all_modules): Add wait-process.
107950 2003-10-20  Bruno Haible  <bruno@clisp.org>
107952         * m4/wait-process.m4: New file.
107954 2003-10-20  Bruno Haible  <bruno@clisp.org>
107956         * lib/wait-process.h: New file, from GNU gettext.
107957         * lib/wait-process.c: New file, from GNU gettext.
107959 2003-10-19  Jim Meyering  <jim@meyering.net>
107961         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
107962         HPUX 10.20.
107964 2003-10-18  Karl Berry  <karl@gnu.org>
107966         * config/config.guess: update from config.
107968 2003-10-16  Paul Eggert  <eggert@twinsun.com>
107970         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
107971         (getgroups): First arg is int, not size_t.
107972         Don't let 'free' mangle errno.
107974 2003-10-16  Paul Eggert  <eggert@twinsun.com>
107976         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
107978 2003-10-16  Karl Berry  <karl@gnu.org>
107980         * config/config.{guess,sub}: update from config.
107982 2003-10-16  Jim Meyering  <jim@meyering.net>
107984         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
107985         memcpy.
107987 2003-10-15  Paul Eggert  <eggert@twinsun.com>
107989         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
107990         (SIZE_MAX): Remove.
107991         (new_exclude, add_exclude_file): Initial size no longer needs to
107992         be a power of 2.
107993         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
107994         our own address arithmetic overflow checking.
107996         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
107997         (fnmatch): Do not alloca more than 2000 wide characters;
107998         instead, use malloc for large buffers.
107999         Check for address arithmetic overflow, and return -1
108000         with errno set to ENOMEM in that case.
108001         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
108002         (NEW_PATTERN): Do not alloca more than 8000 bytes;
108003         instead, return -1.  Check for address arithmetic overflow.
108005 2003-10-14  Paul Eggert  <eggert@twinsun.com>
108007         Handle invalid suffixes and overflow independently, so that
108008         callers can treat them independently as needed.  Fix some bugs in
108009         suffix handling, e.g., "100k@" was not diagnosed as an invalid
108010         suffix for a human-readable blocksize.  The major caller-visible
108011         change is the addition of a new
108012         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
108013         that both overflow and suffix chars were found.
108015         * lib/human.c (humblock): Don't check separately for invalid suffix
108016         char; that is xstrtoumax's job (now that its bug is fixed).
108017         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
108018         INTMAX_MAX]: New macros.
108019         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
108020         TYPE_MAXIMUM): New macros.
108021         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
108022         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
108023         if overflow occurs, as it's what __strtol does and it's more useful
108024         in practice.
108025         (__xstrtol): If __strtol reports some error other than ERANGE,
108026         reflect it to the caller as LONGINT_INVALID.  If it reports
108027         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
108028         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
108029         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
108030         value.
108031         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
108032         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
108033         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
108034         [defined UINTMAX_MAX]: New macros.
108036 2003-10-14  Bruno Haible  <bruno@clisp.org>
108038         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
108040 2003-10-14  Bruno Haible  <bruno@clisp.org>
108042         * m4/sig_atomic_t: New file, from GNU gettext.
108043         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
108045 2003-10-14  Bruno Haible  <bruno@clisp.org>
108047         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
108048         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
108049         Also use volatile where needed.
108051 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108053         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
108054         Change maintainer from Bruno Haible to 'all'.
108056 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108058         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
108060 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108062         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
108063         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
108064         and define in terms of the other primitives.
108065         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
108066         (SIZE_MAX): Define if not already defined.
108067         (array_size_overflow): New function.
108068         (xalloc_die): Abort instead of exiting if 'error' returns.
108069         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
108070         (xmalloc, xrealloc): Use them.
108071         (xcalloc): Check for address arithmetic overflow.
108072         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
108073         a bit faster than strcpy.
108075 2003-10-10  Simon Josefsson  <jas@extundo.com>
108077         * modules/argp (Depends-on): Add restrict and strcase.
108079 2003-10-10  Simon Josefsson  <jas@extundo.com>
108081         * m4/argp.m4: Add AC_C_INLINE.
108083 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108085         Merge getpass from libc, plus a few fixes.
108087         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
108088         Include <stdbool.h>.
108089         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
108090         __fsetlocking to empty.
108091         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
108092         do include <bits/libc-lock.h>.
108093         Do not include <fcntl.h>; not needed.
108094         [_LIBC]: Include <wchar.h>.
108095         (NOTCANCEL_MODE): New macro.
108096         (flockfile, funlockfile) [_LIBC]: New macros.
108097         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
108098         [!_LIBC]: New macros.
108099         (call_fclose): New function.
108100         (getpass): Use it.  Save tty stream separately; this simplifies the
108101         code and makes it more reliable if stdin happens to equal stdout.
108102         Invoke __fsetlocking on tty.
108103         Handle thread cancellation if needed.
108104         Namespace cleanup (use __tcgetattr, __getline).
108105         Use bool for Booleans.
108106         [USE_IN_LIBIO]: Handle wide streams.
108107         [!_LIBC]: Unconditionally do the fseek, since we don't know what
108108         stream might go where.
108110         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
108111         doesn't have to include <stdio.h> before us.
108112         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
108113         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
108114         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
108115         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
108116         if not declared, so that we can use getpass.c code from libc without
108117         rewriting it.
108118         (flockfile, ftrylockfile, funlockfile): New macros.
108120 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108122         * modules/getpass: Depend on stdbool.
108124 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108126         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
108128 2003-10-07  Karl Berry  <karl@gnu.org>
108130         * config/config.{guess,sub}: update from config.
108132 2003-10-06  Jim Meyering  <jim@meyering.net>
108133             Bruno Haible  <bruno@clisp.org>
108135         This lets translators provide better translations for the
108136         "Written by ..." part of --version output.
108137         * lib/version-etc.h: Include stdarg.h.
108138         (version_etc_copyright): Declare as readonly.
108139         (version_etc): Make this function variadic with a NULL-terminated list
108140         of author name strings.
108141         (version_etc_va): New declaration.
108142         * lib/version-etc.c: Include stdarg.h, stdlib.h.
108143         (version_etc_copyright): Declare as readonly.
108144         (version_etc_va): New function. Provide a different translatable string
108145         for each possible number of authors < 10. Abbreviate when there are 10
108146         authors or more.
108147         (version_etc): Make this function variadic. Call version_etc_va.
108148         Suggestion from Gary V. Vaughan.
108150         * lib/long-options.h (parse_long_options): Change prototype: the
108151         authors string is moved to the end and becomes variadic.
108152         * lib/long-options.c: Include stdarg.h.
108153         (parse_long_options): Make this function variadic, too.
108154         Call version_etc_va, not version_etc.
108156 2003-10-06  Bruno Haible  <bruno@clisp.org>
108158         * modules/version-etc-2: Remove file.
108159         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
108161 2003-10-06  Bruno Haible  <bruno@clisp.org>
108163         * modules/fatal-signal: New file.
108164         * MODULES.html.sh (func_all_modules): Add fatal-signal.
108166 2003-10-06  Bruno Haible  <bruno@clisp.org>
108168         * m4/fatal-signal.m4: New file.
108169         * m4/signalblocking.m4: New file, from GNU gettext.
108171 2003-10-06  Bruno Haible  <bruno@clisp.org>
108173         * lib/version-etc-2.h: Remove file.
108174         * lib/version-etc-2.c: Remove file.
108176 2003-10-06  Bruno Haible  <bruno@clisp.org>
108178         * lib/fatal-signal.h: New file, from GNU gettext.
108179         * lib/fatal-signal.c: New file, from GNU gettext.
108181 2003-10-05  Paul Eggert  <eggert@twinsun.com>
108183         * README: Rework advice for preventing empty .o files.
108184         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
108185         not <sys/types.h>.
108187 2003-10-04  Karl Berry  <karl@gnu.org>
108189         * lib/argp*: update from libc.
108191 2003-10-04  Karl Berry  <karl@gnu.org>
108193         * config/config.{guess,sub}: update from config.
108195 2003-10-02  Bruno Haible  <bruno@clisp.org>
108197         * modules/lchown (Include): Add lchown.h.
108198         * modules/time_r (Include): Use "..." syntax.
108199         * modules/xgetdomainname (Include): Add xgetdomainname.h.
108201 2003-10-01  Simon Josefsson  <jas@extundo.com>
108203         * MODULES.html.sh (func_all_modules): Move gethostname from section
108204         'based on' to section 'lacking' POSIX:2001.
108206 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
108208         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
108209         to output mode on the same stream.
108211 2003-09-29  Paul Eggert  <eggert@twinsun.com>
108213         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
108214         Fix arg typo in previous patch.
108216 2003-09-28  Jim Meyering  <jim@meyering.net>
108218         * lib/error.c: Correct cpp indentation.
108220 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108222         * modules/free: New file.
108224 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108226         * m4/free.m4: New file.
108228 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108230         * lib/minmax.h (MIN, MAX)
108231         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
108232         Omit the special code that used __typeof__, since we worry that
108233         it could be more trouble than it's worth.  See:
108234         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
108235         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
108237         * lib/free.c: New file.
108239 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
108241         Trivial fixes to Makefile.am parts of module listings.
108242         * modules/strstr: Append strstr.h to lib_SOURCES.
108243         * modules/strcase: Likewise, for strcase.h.
108245 2003-09-27  Karl Berry  <karl@gnu.org>
108247         * config/mkinstalldirs: update from automake.
108249 2003-09-26  Paul Eggert  <eggert@twinsun.com>
108251         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
108252         (error_tail): Do not loop, reallocating temporary buffer, since
108253         the output cannot contain more wide characters than the input
108254         contains bytes, the size must be big enough already.  This avoids
108255         one potential size overflow calculation.  Check for size overflow
108256         when calculating temporary buffer size.  Free temporary buffer
108257         when done, if it was allocated with malloc; this plugs a memory
108258         leak.  Remove casts from void * to pointers, that are no longer
108259         needed now that we're assuming C89 or better.
108261         Merge error changes from glibc.
108263         * lib/error.c, error.h: Update copyright notice header to match glibc.
108264         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
108265         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
108266         Disable cancellation while printing error.
108267         * lib/error.h: Prepend __ to parameter names.
108269 2003-09-26  Jim Meyering  <jim@meyering.net>
108271         * lib/error.c (error_tail): Move some declarations
108272         into inner scope where the local variables are used.
108274 2003-09-26  Bruno Haible  <bruno@clisp.org>
108276         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
108277         stpncpy().
108278         Don't define stpncpy through config.h; it's now done through stpncpy.h.
108280 2003-09-26  Bruno Haible  <bruno@clisp.org>
108282         * lib/stpncpy.h (gnu_stpncpy): New declaration.
108283         (stpncpy): Define as alias for gnu_stpncpy.
108284         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
108286 2003-09-25  Simon Josefsson  <jas@extundo.com>
108288         * lib/xgetdomainname.h: New file.
108289         * lib/xgetdomainname.c: New file.
108291 2003-09-25  Simon Josefsson  <jas@extundo.com>
108292             Bruno Haible  <bruno@clisp.org>
108294         * modules/getdomainname: New file.
108295         * modules/xgetdomainname: New file.
108296         * MODULES.html.sh (func_all_modules): Add getdomainname,
108297         xgetdomainname.
108299 2003-09-25  Simon Josefsson  <jas@extundo.com>
108300             Bruno Haible  <bruno@clisp.org>
108302         * m4/getdomainname.m4: New file.
108304 2003-09-25  Simon Josefsson  <jas@extundo.com>
108305             Bruno Haible  <bruno@clisp.org>
108307         * lib/getdomainname.h: New file.
108308         * lib/getdomainname.c: New file.
108310 2003-09-25  Karl Berry  <karl@gnu.org>
108312         * lib/argp-fmtstream.c, argp-help.c: update from libc.
108314 2003-09-25  Karl Berry  <karl@gnu.org>
108316         * config/install-sh: update from automake.
108318 2003-09-25  Bruno Haible  <bruno@clisp.org>
108320         * modules/version-etc-2: New file, from modules/version-etc with
108321         modifications.
108322         * MODULES.html.sh (func_all_modules): Add version-etc-2.
108324 2003-09-25  Bruno Haible  <bruno@clisp.org>
108326         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
108327         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
108329 2003-09-24  Simon Josefsson  <jas@extundo.com>
108331         * modules/xgethostname: Add xgethostname.h.
108333 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108335         * lib/linebuffer.c (freebuffer): Don't free the argument, just
108336         the buffer associated with the argument.  Bug reported by
108337         Simon Josefsson.
108339 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108341         * README: Document assumptions that 'int' is at least 32 bits
108342         wide, that integer arithmetic is 2's complement without overflow,
108343         that there are no holes in integer values, that adding sizes of
108344         two nonoverlapping objects can't overflow, and that all-bits-zero
108345         yields scalar zero.  Fix spelling and capitalization typos.
108347 2003-09-19  Karl Berry  <karl@gnu.org>
108349         * lib/argp.h: update from libc.
108351 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108353         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
108354         to avoid spurious warnings like "AC_RUN_IFELSE was called before
108355         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
108357 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108359         * gnulib-tool: Use "test -h", not "test -L", for portability
108360         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
108361         (tags_regexp): Remove, since \| doesn't conform to POSIX.
108362         (sed_extract_prog): Issue s commands one-by-one, rather than
108363         using \| in one s command.
108365 2003-09-16  Paul Eggert  <eggert@twinsun.com>
108367         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
108368         input error, instead of returning NULL the next time we are called
108369         (and therefore losing track of errno).
108371 2003-09-16  Bruno Haible  <bruno@clisp.org>
108373         * gnulib-tool (func_create_testdir): Warn about duplicated
108374         dependencies.
108376 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108378         * modules/argmatch, modules/fatal, modules/obstack,
108379         modules/xalloc, modules/xgethostname: Sort dependencies by
108380         importance, not alphabetically.
108382 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108384         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
108385         fails, so that the caller gets the proper errno.
108387         * lib/readutmp.c (read_utmp): Likewise.
108388         Check for fstat error.  Close stream and free storage
108389         when failing.
108391 2003-09-14  Karl Berry  <karl@gnu.org>
108393         * config/srclist.txt (strdup.c): disable for c89 changes.
108395 2003-09-14  Jim Meyering  <jim@meyering.net>
108397         * lib/getloadavg.c: Correct cpp indentation.
108398         * lib/strdup.c: Likewise.
108399         * lib/vasnprintf.c: Likewise.
108401 2003-09-14  Bruno Haible  <bruno@clisp.org>
108403         * modules/fwriteerror: New file.
108404         * MODULES.html.sh (func_all_modules): Add fwriteerror.
108406 2003-09-14  Bruno Haible  <bruno@clisp.org>
108408         * lib/fwriteerror.h: New file.
108409         * lib/fwriteerror.c: New file.
108411 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108413         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
108414         modules/xgethostname, modules/xalloc: Depend on exit.
108416 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108418         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
108420         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
108421         and AC_MINIX, too, so that their extensions are available.
108423         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
108424         This macro has been superseded by gl_BACKUPFILE.
108426         More patches to assume C89 or better.
108428         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
108430         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
108431         unconditionally.
108432         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
108433         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
108434         Include <string.h>, <stdlib.h> unconditionally.
108435         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
108436         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
108437         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
108438         headers or for string.h.
108439         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
108440         or strtoul.
108442         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
108443         headers.
108444         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
108445         * m4/userspec.m4 (gl_USERSPEC): Likewise.
108446         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
108447         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
108448         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
108449         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
108450         memcpy, memset.
108451         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
108452         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
108453         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
108454         strtol.
108455         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
108456         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
108457         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
108458         strtoul.
108460 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108462         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
108463         * lib/obstack.c [!defined _LIBC]: Likewise.
108464         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
108465         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
108466         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
108468         More changes to assume C89 or better.
108470         * lib/error.c (error_tail): Assume vprintf.
108472         * lib/argmatch.c (getenv): Remove decl.
108473         * lib/progreloc.c (get_full_program_name): Define via prototype.
108474         * lib/setenv.c (clearenv): Likewise.
108475         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
108476         needed.
108477         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
108478         (malloc, memcpy): Remove decls.
108479         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
108480         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
108481         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
108482         (memcpy): Remove macro.
108483         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
108484         (__P): Remove.  All uses removed.
108485         (PTR): Remove.  All uses changed to void *.
108486         (CHAR_BIT, NULL): Remove.
108487         (spaces, zeros, memset_space, memset_zero)
108488         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
108489         Remove.
108490         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
108491         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
108492         Define with prototype.
108493         Remove now-unnecessary prototype decl.
108494         (extra_args_spec): Assume ANSI C.  All uses changed.
108495         (extra_args_spec_iso): Remove.
108496         (my_strftime, emacs_strftimeu): Define via prototype.
108497         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
108498         unconditionally.
108499         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
108500         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
108501         (strtoul, strtol): Remove decls.
108502         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
108503         LONG_MAX): Remove.
108504         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
108505         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
108506         (LOCALE_PARAM_PROTO): New macro.
108507         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
108508         (INTERNAL (strtol), strtol): Define with a prototype.
108509         (PARAMS): Remove.  All uses removed.
108510         * lib/tempname.c: Include <string.h> unconditionally.
108511         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
108512         * lib/xgethostname.c (main): Define with a prototype.
108513         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
108514         Include <stdlib.h> unconditionally.
108515         (calloc, malloc, realloc, free): Remove decls.
108516         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
108517         Include <stdlib.h> unconditionally.  Sort include file names.
108518         (strtod): Remove.
108519         (xstrtod): Define with a prototype.
108520         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
108521         (strtol, strtoul): Remove decls.
108523 2003-09-11  Paul Eggert  <eggert@twinsun.com>
108525         More patches to assume C89 or better.
108526         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
108527         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
108528         string.h, memchr, STDC_HEADERS.
108530 2003-09-11  Paul Eggert  <eggert@twinsun.com>
108532         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
108533         Include <stdlib.h>, <string.h> unconditionally.
108534         Remove now-unnecessary cast to char *.
108535         * lib/strnlen.c: Include <string.h> unconditionally.
108536         * lib/yesno.c (yesno): Define with a prototype.
108538 2003-09-11  Bruno Haible  <bruno@clisp.org>
108540         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
108542 2003-09-10  Jim Meyering  <jim@meyering.net>
108544         * lib/error.c: Correct indentation of cpp directives.
108546 2003-09-10  Bruno Haible  <bruno@clisp.org>
108548         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
108549         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
108550         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
108551         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
108552         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
108553         <stdlib.h> and <string.h> checks.
108554         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
108555         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
108557 2003-09-10  Bruno Haible  <bruno@clisp.org>
108559         * lib/strcspn.c: Include <string.h> unconditionally.
108560         * lib/strpbrk.c: Include <string.h> unconditionally.
108561         * lib/strstr.c: Include <string.h> unconditionally.
108562         * lib/unicodeio.c: Include <string.h> unconditionally.
108563         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
108564         * lib/unsetenv.c: Likewise.
108565         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
108566         * lib/yesno.c: Include <stdlib.h> unconditionally.
108567         (rpmatch): Add prototype.
108569 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108571         More patches to assume C89 or better.
108572         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
108573         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
108574         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
108575         or for string.h.
108576         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
108577         stdlib.h.
108578         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
108579         C headers.
108580         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
108581         string.h.
108582         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
108583         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
108584         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
108585         or for string.h.
108586         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
108587         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
108588         C headers.
108589         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
108590         memcpy.
108591         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
108592         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
108593         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
108594         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
108595         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
108596         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
108597         string.h, free.
108598         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
108599         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
108600         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
108601         C headers, or for string.h.
108602         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
108603         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
108604         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
108605         headers, memory.h, stdlib.h, string.h, strings.h.
108606         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
108607         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
108608         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
108609         strchr.
108610         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
108611         headers, memory.h, string.h.
108612         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
108613         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
108614         free.
108615         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
108616         headers.
108617         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
108618         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
108619         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
108620         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
108621         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
108623 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108625         More K&R removal.
108627         * lib/acosl.c (main): Use a prototype.
108628         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
108629         tanl.c: Likewise.
108631         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
108633         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
108634         (getopt, etopt_long, getopt_long_only, _getopt_internal)
108635         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
108636         with a prototype.
108637         * lib/getopt.c (const): Remove macro.
108638         Include <string.h> unconditionally.
108639         (my_index): Remove; all uses changed to strchr.
108640         (strlen): Remove decl.
108641         (exchange): Remove forward decl; no longer needed.
108642         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
108643         Define with prototype.
108644         * lib/getopt1.c (const): Remove macro.
108645         (getopt_long, getopt_long_only, main): Define with prototype.
108647         * lib/getugroups.c: Include <string.h> unconditionally.
108649         * lib/getusershell.c: Include <stdlib.h> unconditionally.
108650         (getusershell, setusershell, endusershell, readname, main):
108651         Define with prototypes.
108653         * lib/group-member.c: Include group-member.h first.
108654         Include <stdlib.h> unconditionally.
108656         * lib/hard-locale.c: Include hard-locale.h first.
108657         Include <stdlib.h>, <string.h> unconditionally.
108659         * lib/hash.c (free, malloc): Remove decls.
108660         Include <stdlib.h> unconditionally.
108662         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
108663         (getenv): Do not declare.
108665         * lib/idcache.c: Include <string.h> unconditionally.
108667         * lib/long-options.c: Include long-options.h first, to test interface.
108668         Include <stdlib.h> unconditionally.
108670         * lib/makepath.c: Include makepath.h first, to test interface.
108671         Include <stdlib.h> and <string.h> unconditionally.
108673         * lib/linebuffer.c: Include <stdlib.h>.
108674         (free): Remove decl.
108676         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
108677         stddef.h. rpl_malloc returns void *, not char *.
108678         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
108679         prototype.
108681         * lib/md5.h: Include <limits.h> unconditionally.
108682         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
108683         (__P): Remove; all uses removed.
108684         * lib/md5.c: Include "md5.h" first.
108685         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
108686         md5_buffer, md5_process_bytes, md5_process_block):
108687         Define with prototypes.
108688         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
108689         * lib/sha.c: Include "sha.h" first.
108690         Include <stdlib.h>, <string.h> unconditionally.
108692         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
108693         * lib/memcmp.c (__ptr_t): Likewise.
108694         * lib/memrchr.c (__ptr_t): Likewise.
108695         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
108696         Include <string.h> unconditionally.
108697         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
108698         * lib/memchr.c: Include <stdlib.h> unconditionally.
108699         * lib/memchr.c (LONG_MAX): Remove.
108700         * lib/memrchr.c (LONG_MAX): Likewise.
108701         * lib/memchr.c (__memchr): Define via a prototype.
108702         * lib/memrchr.c (__memrchr): Likewise.
108703         * lib/memcmp.c (__P): Remove, and remove all uses.
108704         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
108705         Remove forward decls; no longer needed.
108706         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
108707         Use types required by C89 in prototype.
108709         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
108710         * lib/savedir.c: Likewise.
108711         * lib/mkdir.c (free): Remove decl.
108712         * lib/rmdir.c (rmdir): Define with a prototype.
108713         * lib/savedir.c: Include savedir.h first, to test interface.
108715         * lib/mktime.c (STDC_HEADERS): Remove.
108716         Include <stdlib.h>, <string.h> unconditionally.
108718         * lib/modechange.c: Include <stdlib.h> unconditionally.
108719         (malloc): Remove decl.
108721         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
108722         (free): Remove decl.
108724         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
108725         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
108726         (This type really should be intptr_t, but that's a C99ism.)
108727         (_obstack_memcpy): Remove: all uses changed to memcpy.
108728         Include <string.h> unconditionally.
108729         (struct obstack): Assume __STDC__ for types of members
108730         chunkfun, freefun, extra_arg.
108731         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
108732         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
108733         obstack_begin, obstack_specify_allocation,
108734         obstack_specify_allocation_with_arg, obstack_chunkfun,
108735         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
108736         Remove unprototyped decls and the macros that use them.
108737         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
108738         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
108739         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
108740         (defined __STDC__ && __STDC__)]:
108741         Remove nonprototyped code.
108742         Include <stdlib.h> unconditionally.
108743         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
108744         _obstack_allocated_p, _obstack_free, obstack_free,
108745         _obstack_memory_used, print_and_abort):
108746         Define using prototypes.
108747         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
108748         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
108749         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
108750         obstack_next_free, obstack_object_size, obstack_room) [0]:
108751         Remove unused, unprototyped code.
108753         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
108755         * lib/physmem.c (physmem_total, physmem_available, main): Define
108756         with prototypes.
108758         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
108759         (main): Define with a prototype.
108761         * lib/posixver.c (getenv): Remove decl.
108763         * lib/putenv.c (malloc): Returns void *, not char *.
108764         Include <string.h> unconditionally.
108765         (strchr, memcpy, NULL): Do not define.
108767         * lib/readtokens.c: Include readtokens.h first, to test interface.
108768         Include <stdlib.h>, <string.h> unconditionally.
108769         (init_tokenbuffer): Define with a prototype.
108771         * lib/regex.c (PARAMS): Remove.  All uses removed.
108772         All uses of _RE_ARGS removed, too.
108773         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
108774         unconditionally.
108775         (bzero): Assume memset exists.
108776         (memcmp, memcpy, NULL): Remove.
108777         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
108778         char, or assignments to local vars of type signed char.
108779         (init_syntax_once, PREFIX(extract_number_and_incr),
108780         PREFIX(print_partial_compiled_pattern),
108781         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
108782         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
108783         PREFIX(regex_grow_registers), PREFIX(regex_compile),
108784         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
108785         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
108786         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
108787         wcs_compile_range, byte_compile_range, truncate_wchar,
108788         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
108789         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
108790         count_mbs_length, wcs_re_match_2_internal,
108791         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
108792         PREFIX(alt_match_null_string_p),
108793         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
108794         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
108795         regfree, PREFIX(extract_number)): Define with prototype.  Remove
108796         now-unnecessary declaration, if any.
108797         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
108798         regcomp, regexec):
108799         Remove now-unnecessary casts among pointer types.
108800         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
108802         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
108803         (free): Remove decl.
108805         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
108807         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
108808         (free): Remove decl.
108810         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
108811         * lib/xgetcwd.c: Likewise.
108813         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
108814         (free): Remove decl.
108816         * lib/strchrnul.c (strchrnul): Define with a prototype.
108817         Fix bug: c_in was not converted to char before searching.
108819         The following changes are not K&R related:
108821         * lib/group-member.h: Include <sys/types.h>, so that this file is
108822         self-contained.
108823         * lib/makepath.h: Likewise.
108825         * lib/getusershell.c (readname, default_index, line_size, readname):
108826         Use size_t, not int, for sizes.
108827         (readname): If the size overflows, report an error instead of
108828         looping forever.
108830 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108832         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
108833         libc.
108835 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108837         * README: New section: portability guidelines.
108839 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
108841         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
108842         C89 spec.
108844 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
108846         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
108848 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108850         Assume C89 or better; remove K&R cruft.
108851         A few of these changes were first proposed by Derek Robert Price
108852         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
108854         * lib/addext.c: Include <string.h> unconditionally.
108855         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
108856         Don't declare getenv or malloc.
108858         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
108859         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
108860         (NULL): Remove.
108861         (find_stack_direction, alloca): Use prototypes.
108863         * lib/atexit.c (atexit): Define using a prototype.
108865         * lib/basename.c, dirname.c, stripslash.c:
108866         Include <string.h> unconditionally.
108868         * lib/bcopy.c: Include <stddef.h>.
108869         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
108871         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
108873         * lib/error.h (error, error_at_line, error_print_progname)
108874         [! (defined (__STDC__) && __STDC__)]: Remove decls.
108875         * lib/error.c: Include error.h first, to check interface.
108876         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
108877         (VA_START): Remove; all uses changeed to va_start.
108878         (exit, strerror): Remove decls.
108879         (error_print_progname): Prototype uncondionally.
108880         Don't include <errno.h>; no longer needed.
108881         (private_strerror): Remove.
108882         (error_tail): Always define.
108883         (error, error_at_line): Assume C89 or better; always use prototypes.
108884         * lib/fatal.c: Include "fatal.h" first, to test interface.
108885         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
108886         (VA_START): Remove; all uses changed to va_start.
108887         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
108888         this case.
108889         (exit): Remove decl.
108890         (fatal): Prototype unconditionally.  Assume va_start works.
108891         Abort at end, to pacify gcc.
108893         * lib/euidaccess.c (main): Define with a prototype.
108895         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
108897         * lib/exitfail.c: Include <stdlib.h> unconditionally.
108899         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
108900         prototypes.
108901         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
108902         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
108903         (getenv): Remove decl.
108904         (fnmatch): Define using a prototype.
108905         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
108906         (FCT): Define using a prototype.
108908         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
108910         * lib/gethostname.c: Include <stddef.h>.
108911         (gethostname): Define with prototype.  Length is size_t, not int.
108913 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108915         Assume C89 or better; remove K&R cruft.
108916         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
108917         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
108918         string.h, getenv, malloc.
108919         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
108920         headers.
108921         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
108922         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
108923         do not check for strerror.
108924         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
108925         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
108926         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
108927         do not check for doprnt or vprintf.
108928         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
108929         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
108931 2003-09-08  Paul Eggert  <eggert@twinsun.com>
108933         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
108934         getversion.c should have been removed then, but was accidentally
108935         preserved.
108937         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
108938         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
108940 2003-09-08  Karl Berry  <karl@gnu.org>
108942         * config/config.sub, config.guess, srclistvars.sh: update from savannah
108943                 config, forget about prep.
108945         * config/depcomp, missing: update from automake.
108947 2003-09-07  Paul Eggert  <eggert@twinsun.com>
108949         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
108950         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
108952 2003-09-07  Paul Eggert  <eggert@twinsun.com>
108954         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
108955         copy_tm_result.  Bug reported by Simon Josefsson in
108956         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
108958 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108960         * m4/time_r.m4: New file.
108961         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
108962         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
108963         is. Check for timegm declaration.
108964         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
108965         Do not check for gmtime_r.
108966         Replace mktime if __mktime_internal does not exist and if mktime
108967         hasn't been replaced already.
108969 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108971         * lib/time_r.c, lib/time_r.h: New files.
108973         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
108974         __localtime_r.
108975         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
108976         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
108978         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
108979         __gmtime_r.
108980         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
108981         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
108982         Include <time_r.h>.
108984         * lib/timegm.c: Switch to glibc implementation, with the following
108985         changes:
108986         [defined HAVE_CONFIG_H]: Include <config.h>.
108987         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
108988         (__mktime_internal) [!defined _LIBC]: New decl.
108989         (__gmtime_r) [!defined _LIBC]: New macro and function.
108990         (timegm): Use a prototype, since gnulib assumes C89.
108991         Do not bother declaring tmp to be const, as it's not really usefu.
108992         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
108993         (timegm): Declare only if HAVE_DECL_TIMEGM.
108995 2003-09-06  Paul Eggert  <eggert@twinsun.com>
108997         * MODULES.html.sh (func_all_modules): Add time_r.
108998         * modules/time_r: New file.
108999         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
109000         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
109002 2003-09-03  Paul Eggert  <eggert@twinsun.com>
109004         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
109005         Bug reported by Lute Kamstra in
109006         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
109008         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
109009         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
109010         course with correspondingly smaller numbers for tomorrow and
109011         yesterday.  From Tadayoshi Funaba.  Originally installed into
109012         sh-utils on 1999-08-07, but the patch got lost (I guess during the
109013         coreutils merge?).
109015 2003-08-31  Simon Josefsson  <jas@extundo.com>
109017         * modules/timegm: New file.
109018         * MODULES.html.sh (func_all_modules): Add timegm.
109020 2003-08-31  Simon Josefsson  <jas@extundo.com>
109022         * m4/timegm.m4: New file.
109024 2003-08-31  Simon Josefsson  <jas@extundo.com>
109026         * lib/timegm.h: New file.
109027         * lib/timegm.c: New file.  Based on
109028         wget-1.8.2/src/http.c:mktime_from_utc.
109030 2003-08-31  Karl Berry  <karl@gnu.org>
109032         * lib/argp.h: update from libc.
109034 2003-08-28  Bruno Haible  <bruno@clisp.org>
109036         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
109037         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
109038         followed by '#define fnmatch fnmatch_posix' gives an error.
109040 2003-08-28  Bruno Haible  <bruno@clisp.org>
109042         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
109043         warning on QNX, which defines O_BINARY to 000000.
109045 2003-08-27  Jim Meyering  <jim@meyering.net>
109047         * m4/mkstemp.m4: Require that the system mkstemp be able to create
109048         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
109049         would fail after 32.  Reported by Danny Levinson.  Details here:
109050         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
109052 2003-08-24  Bruno Haible  <bruno@clisp.org>
109054         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
109055         MSVC7 <stdio.h> is included later.
109057 2003-08-22  Simon Josefsson  <jas@extundo.com>
109059         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
109061 2003-08-20  Karl Berry  <karl@gnu.org>
109063         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
109065 2003-08-20  Bruno Haible  <bruno@clisp.org>
109067         * modules/progname: New file.
109068         * MODULES.html.sh (func_all_modules): Add progname.
109070 2003-08-20  Bruno Haible  <bruno@clisp.org>
109072         * lib/progname.h: New file, from GNU gettext.
109073         * lib/progname.c: New file, from GNU gettext.
109074         * lib/progreloc.c: New file, from GNU gettext.
109076 2003-08-19  Jim Meyering  <jim@meyering.net>
109078         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
109079         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
109081 2003-08-19  Bruno Haible  <bruno@clisp.org>
109083         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
109084         more.
109086 2003-08-19  Bruno Haible  <bruno@clisp.org>
109088         * lib/xstrdup.c: Assume <string.h> exists.
109090 2003-08-18  Paul Eggert  <eggert@twinsun.com>
109092         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
109093         in makefile rules.
109095 2003-08-18  Jim Meyering  <jim@meyering.net>
109097         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
109098         * m4/lib-ld.m4: Likewise.
109100 2003-08-18  Jim Meyering  <jim@meyering.net>
109102         * lib/setenv.h: Indent nested cpp directive.
109103         * lib/vasnprintf.c: Remove trailing blanks.
109105 2003-08-17  Simon Josefsson  <jas@extundo.com>
109107         * modules/xstrndup: New file.
109108         * MODULES.html.sh (func_all_modules): Add xstrndup.
109110 2003-08-17  Simon Josefsson  <jas@extundo.com>
109112         * modules/argp: Fix autoconf macro name. Add more dependencies.
109114 2003-08-17  Simon Josefsson  <jas@extundo.com>
109116         * m4/xstrndup.m4: New file.
109118 2003-08-17  Simon Josefsson  <jas@extundo.com>
109120         * m4/argp.m4: New file.
109122 2003-08-17  Simon Josefsson  <jas@extundo.com>
109123             Bruno Haible  <bruno@clisp.org>
109125         * lib/xstrndup.h: New file.
109126         * lib/xstrndup.c: New file.
109128 2003-08-17  Bruno Haible  <bruno@clisp.org>
109130         * modules/strndup (Files, Include): Add lib/strndup.h.
109132 2003-08-17  Bruno Haible  <bruno@clisp.org>
109134         * modules/euidaccess (Files): Add lib/euidaccess.h.
109136 2003-08-17  Bruno Haible  <bruno@clisp.org>
109138         * lib/strndup.h: New file.
109140 2003-08-17  Bruno Haible  <bruno@clisp.org>
109142         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
109143         like AC_GNU_SOURCE.
109144         * modules/extensions (configure.ac): Comment out the invocation of
109145         gl_USE_SYSTEM_EXTENSIONS.
109147 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109149         Merges from coreutils, etc.
109150         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
109151         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
109152         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
109153         fixing a typo.
109154         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
109155         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
109157 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109159         Document merge from coreutils.
109160         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
109161         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
109162         * modules/utime: Add m4/utimes-null.m4.
109164 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109166         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
109167         space, undoing this 2003-08-12 change:
109168         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
109170 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109172         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
109173         strtoul.c from libc, undoing this 2003-08-12 change:
109174         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
109176 2003-08-16  Jim Meyering  <jim@meyering.net>
109178         Merges from coreutils.
109179         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
109180         prefix.  Adjust cache variables similarly.  Create 500 rather than
109181         just 300 files, to exercise bug on Darwin6.5, too.
109182         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
109183         $missing_dir.
109184         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
109185         AM_SYS_POSIX_TERMIOS.
109186         Reported by mkc@mathdogs.com.
109187         Also change use of $am_cv_sys_posix_termios
109188         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
109189         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
109190         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
109191         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
109192         in /proc/mounts until it finds one with matching device number.  This
109193         is unnecessary when the FILE argument *is* a mount point.  No stat call
109194         is necessary in that case.  So, disable the statvfs-testing code on
109195         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
109196         as RedHat bug# 84846.
109197         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
109198         to 1MB, so as not to render systems with no stack size limit (e.g.,
109199         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
109200         Include <unistd.h>.  On some systems,
109201         it is required for the definition of _SC_PAGESIZE.
109203 2003-08-16  Jim Meyering  <jim@meyering.net>
109205         Merge from coreutils.
109206         * lib/xstrtoimax.c: #else #if -> #elif.
109207         * lib/xstrtoumax.c: Likewise.
109209 2003-08-16  Jim Meyering  <jim@meyering.net>
109211         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
109212         * m4/utimes.m4: Removed.
109213         * m4/utimes-null.m4: Renamed from utimes.m4.
109215         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
109216         to 1MB, so as not to render systems with no stack size limit (e.g.,
109217         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
109218         Include <unistd.h>.  On some systems,
109219         it is required for the definition of _SC_PAGESIZE.
109221 2003-08-16  Jim Meyering  <jim@meyering.net>
109222         and Paul Eggert  <eggert@cs.ucla.edu>
109224         Merges from coreutils, etc.
109226         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
109227         using the latest version from cvs.  This avoids problems with #line
109228         directives using a vendor (Sun) compiler.
109229         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
109230         Don't set GETGROUPS_LIB here; now it's
109231         done via getgroups.m4's wrapper function.
109232         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
109233         rather than just in sh-util/configure.in, so that the
109234         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
109235         same.
109236         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
109237         AC_FUNC_GETLOADAVG where to find getloadavg.c.
109238         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
109239         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
109240         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
109241         Remove code that is now done by the newly-required macros.
109242         Append $(EXEEXT) to DF_PROG.
109243         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
109244         Do not invoke or require the following here,
109245         since prereq.m4 or some gnulib .m4 now does this for us:
109246         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
109247         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
109248         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
109249         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
109250         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
109251         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
109252         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
109253         AC_FUNC_OBSTACK.
109254         Do not replace the following functions, as this is now the job
109255         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
109256         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
109257         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
109258         atexit getpass, strdup, getpagesize.
109259         Replace 'raise'.
109260         Do not check for the following functions, as this is now the job
109261         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
109262         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
109263         setregid.
109264         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
109265         Check for sys/sysctl.h.
109266         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
109267         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
109268         of checking for ssize_t ourselves.
109270         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
109271         Require every macro that gnulib/modules/* suggests for us.
109272         (jm_PREREQ_ADDEXT): New macro.
109273         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
109274         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
109276         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
109277         (gl_PHYSMEM): Use it.
109278         Also check for `table' function.
109279         Check for new headers and functions.
109280         Add check for sys/sysmp.h.
109281         With suggestions from Kaveh Ghazi.
109282         Ignore headers that are present but cannot be compiled.  This
109283         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
109284         C 5.4.
109286 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109288         Document merge from coreutils.
109289         * modules/userspec: Depend on posixver.
109290         * modules/strftime: Depend on tzset.
109292 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109294         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
109295         rather than tab, after '#' in shell-script copyright notices.
109296         Suggested by Bruno Haible.
109298 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109300         * config/srclist-update: Use three spaces, rather than tab, after '#'
109301         in shell-script copyright notices.  Suggested by Bruno Haible.
109302         Remove unnecessary parenthesization in regular expression.
109304 2003-08-15  Jim Meyering  <jim@meyering.net>
109306         Merge from coreutils.
109307         * lib/xgethostname.c: Include <stdlib.h>.
109308         (xghostname): Don't exit for anything other than memory-related
109309         failure; just return NULL.
109310         * lib/userspec.c: Include "posixver.h".
109311         (parse_user_spec): Accept `.' as a separator only
109312         in pre-POSIX-200112 mode.
109313         * lib/strtoimax.c: Use #elif rather than #else #if.
109314         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
109315         Remove function, now that we can rely on a working tzset function.
109316         [!_LIBC]: Ensure that the required autoconf test has been run.
109317         [!defined _NL_CURRENT && HAVE_STRFTIME]:
109318         Use underlying_strftime for %r.
109319         * lib/sha.c: Merge in some clean-up and optimization changes from
109320         glibc.
109321         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
109322         Ensure that it is a multiple of 64.
109323         Rearrange loop exit tests so as to avoid performing an
109324         additional fread after encountering an error or EOF.
109325         * lib/realloc.c: Update copyright date.
109327 2003-08-15  Jim Meyering  <jim@meyering.net>
109328         and Paul Eggert  <eggert@twinsun.com>
109330         Merge from coreutils.
109331         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
109332         member but strut utmpx does not.  Needed for AIX 4.3.3.
109333         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
109335 2003-08-15  Jim Meyering  <jim@meyering.net>
109336         and Paul Eggert  <eggert@cs.ucla.edu>
109338         Merges from coreutils, etc.
109339         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
109340         Require gl_FUNC_TZSET_CLOBBER.
109341         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
109342         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
109343         members.
109345 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109347         Help the merge from coreutils.
109348         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
109349         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
109350         * m4/tzset.m4: Use it too.
109352 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109354         * modules/tzset: New file.
109356 2003-08-14  Jim Meyering  <jim@meyering.net>
109358         Merges from coreutils.
109359         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
109360         variable names, rather than @FNMATCH_H@.
109361         * modules/alloca: Likewise for $(ALLOCA_H).
109363         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
109364         the three copies of the literal target, `fnmatch.h'.
109365         * modules/alloca (alloca.h): Likewise.
109367 2003-08-14  Jim Meyering  <jim@meyering.net>
109369         Merge from coreutils.
109370         * m4/tzset.m4: New file.
109371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
109372         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
109373         otherwise, AIX 5.1 systems would end up using the latter.
109374         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
109375         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
109376         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
109377         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
109379 2003-08-14  Jim Meyering  <jim@meyering.net>
109381         Merge from coreutils.
109382         * lib/obstack.h: Whitespace changes.
109383         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
109384         and xcalloc return values.
109385         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
109386         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
109387         hang on OSF/1 5.1 for DIR on both local and remote file systems.
109388         Reported by (and fix confirmed by) Nelson H. F. Beebe.
109389         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
109390         error from mntctl.
109391         Use mntctl's return value to drive the entry-processing loop, since
109392         we can't rely on the value of the vmt_length member in the last
109393         entry.  On some systems doing so could result in exhausting
109394         virtual memory.  Based in part on a patch from Mike Jetzer.
109396 2003-08-14  Jim Meyering  <jim@meyering.net>
109397         and Paul Eggert  <eggert@twinsun.com>
109399         Merges from coreutils, plus other fixes.
109400         * lib/physmem.c: Merge in portability changes from gcc/libiberty
109401         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
109402         for credits and details.  Thanks to Kaveh Ghazi for helping
109403         to keep these files in sync.
109404         (ARRAY_SIZE): Define it.
109405         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
109406         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
109407         (memcasecmp): Don't assume size_t fits in unsigned int.
109408         Remove casts and duplicate code.
109409         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
109410         (memcpy): Remove definition.
109411         Merge in some clean-up and optimization changes from glibc.
109412         [BLOCKSIZE]: Move definition to top of file.
109413         Ensure that it is a multiple of 64.
109414         Rearrange loop exit tests so as to avoid performing an
109415         additional fread after encountering an error or EOF.
109416         * lib/md5.h (md5_uintptr): Define.
109417         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
109418         return to the initial working directory.  Preserve errno
109419         for caller.
109420         * lib/idcache.c: Include "xalloc.h".
109421         (xmalloc, xrealloc): Remove decls.
109422         (getuser): Remove casts no longer required in C89.
109423         * lib/human.c: Include stdio.h, for sprintf.
109424         * lib/group-member.c: Include "xalloc.h".
109425         (xmalloc, xrealloc): Remove decls.
109426         (get_group_info): Remove casts no longer required in C89.
109427         * lib/getusershell.c (readname): Remove casts no longer required in
109428         C89.
109429         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
109430         * lib/getline.c: Whitespace fix, from coreutils.
109432 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109434         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
109435         Check for isascii.
109437         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109438         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109439         Undo previous (whitespace-only) change.
109441 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109443         * lib/exclude.c: Include <ctype.h>
109444         (IN_CTYPE_DOMAIN): New macro.
109445         (is_space): New fn.
109446         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
109447         and empty lines.
109449         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
109450         Undo previous (whitespace-only) change.
109452 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109454         * config/srclist-update: Change update back to the old behavior,
109455         leaving whitespace alone.  Use one 'sed' command rather than a
109456         pipeline.
109457         (fixlicense): Now a variable, not a function.
109458         (remove_trailing_blanks): Remove.
109459         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
109460         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
109461         Undo previous (whitespace-only) change.
109463 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109465         Merge from coreutils.
109466         * modules/euidaccess: Add lib_SOURCES, include for new
109467         file euidaccess.h
109469 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109471         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109472         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109473         Normalize leading white space and remove trailing white space.
109475         Merge from coreutils
109476         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
109478         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
109479         0.12.1.  These files are now being upgraded automatically by
109480         ../config/srclist-update.
109482 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109484         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
109485         Normalize leading white space and remove trailing white space.
109486         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
109487         notice, as per ../config/srclist-update.
109489         Merge from coreutils.
109490         * lib/euidaccess.h: New file.
109491         * lib/euidaccess.c: Include it.
109492         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
109493         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
109494         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
109496 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109498         * config/srclist-update: Add copyright notice.
109499         (remove_id_lines, remove_trailing_blanks): New constants.
109500         (fixfile): Use them to normalize spacing a bit in copied files.
109501         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
109502         Normalize leading white space and remove trailing white space.
109504         * config/texinfo.tex: Sync with texinfo.
109506         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
109507         strtoul.c from libc, to merge coreutils whitespace changes.
109509         * config/srclist.txt: Get the following m4 files from gettext:
109510         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
109511         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
109512         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
109513         wint_t.m4.
109515 2003-08-12  Karl Berry  <karl@gnu.org>
109517         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
109518         been made.
109520 2003-08-11  Paul Eggert  <eggert@twinsun.com>
109522         * modules/gnu-source, m4/gnu-source.m4:
109523         Remove; we're assuming Autoconf 2.54 or later now.
109524         Suggested by Bruno Haible.
109525         * MODULES.html.sh (func_all_modules): Remove gnu-source.
109527 2003-08-11  Bruno Haible  <bruno@clisp.org>
109529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
109531 2003-08-11  Bruno Haible  <bruno@clisp.org>
109533         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
109534         (vasnprintf): Use it instead of wcslen.
109536 2003-08-11  Bruno Haible  <bruno@clisp.org>
109538         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
109539         value to ensure that _Bool promotes to int. Use #define for _Bool when
109540         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
109542 2003-08-10  Karl Berry  <karl@gnu.org>
109544         * lib/regex.h: update from libc (whitespace fix).
109546 2003-08-09  Paul Eggert  <eggert@twinsun.com>
109548         Merge some files from coreutils.  These changes were
109549         originally made by Jim Meyering.
109550         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
109551         many older Unixes require this.
109552         * lib/alloca.c (alloca): Remove cast to argument of free;
109553         no longer needed in C89.
109554         * lib/alloca_.h, regex.h: Fix white space to match
109555         what GNU indent does.
109557 2003-08-09  Paul Eggert  <eggert@twinsun.com>
109559         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
109560         apparently Emacs's Unicode mode got confused before my 2003-08-05
109561         checkin.
109563 2003-08-08  Paul Eggert  <eggert@twinsun.com>
109565         * m4/extensions.m4: New file.
109566         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
109567         Require gl_USE_SYSTEM_EXTENSIONS.
109568         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
109569         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
109571 2003-08-08  Paul Eggert  <eggert@twinsun.com>
109573         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
109574         * modules/extensions, modules/gnu-source: New files.
109575         * modules/timespec, modules/unlocked-io: Depend on extensions.
109577 2003-08-07  Paul Eggert  <eggert@twinsun.com>
109579         * modules/restrict: New file.
109580         * MODULES.html.sh (func_all_modules): Add restrict.
109581         * modules/regex: Depend on restrict.
109583 2003-08-07  Paul Eggert  <eggert@twinsun.com>
109585         * m4/restrict.m4: New file.
109586         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
109588 2003-08-07  Bruno Haible  <bruno@clisp.org>
109590         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
109591         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
109593 2003-08-07  Bruno Haible  <bruno@clisp.org>
109595         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
109596         makes the module 'getndelim2' compatible with the module 'getline'.
109598 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109600         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
109601         byte with "\201" to avoid glitches when editing that source file
109602         with multi-gnome-terminal.
109604 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109606         * lib/bumpalloc.h: Remove.
109608 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109610         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
109611         * modules/bumpalloc: Remove.
109613 2003-08-04  Paul Eggert  <eggert@twinsun.com>
109615         * lib/getloadavg.c: Change copyright notice and spacing to conform to
109616         GNU coding style.
109618         Merge from coreutils.
109619         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
109620         1. From glibc.
109621         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
109622         from Karl Berry, implemented by Jim Meyering.
109623         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
109624         from Dmitry V. Levin.
109625         Remove anachronistic cast of xrealloc.
109626         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
109627         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
109628         type. Otherwise, it wouldn't compile with at least /bin/cc on
109629         ymp-cray-unicos9.0.2.X.
109630         Combine two mostly-identical uses of alloca into one.
109631         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
109633 2003-08-04  Dave Love  <d.love@dl.ac.uk>
109635         [From Emacs.]
109637         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
109638         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
109639         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
109640         obsolete NLIST_NAME_UNION.
109641         [__GNU__]: Undef BSD and FSCALE.
109642         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
109644 2003-08-03  Paul Eggert  <eggert@twinsun.com>
109646         * lib/stdbool_.h (_Bool): Make it signed char, instead of
109647         an enum type, so that it's guaranteed to promote to int.  See:
109648         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
109650 2003-08-03  Karl Berry  <karl@gnu.org>
109652         * config/depcomp: update from automake.
109654 2003-07-31  Paul Eggert  <eggert@twinsun.com>
109656         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
109657         (strerror): Don't assume that a printable int fits in 14 bytes.
109659 2003-07-31  Bruno Haible  <bruno@clisp.org>
109661         * modules/getpass-gnu: New file.
109662         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
109664 2003-07-31  Bruno Haible  <bruno@clisp.org>
109666         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
109668 2003-07-24  Karl Berry  <karl@gnu.org>
109670         * config/missing: update from automake.
109672 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
109673             Bruno Haible  <bruno@clisp.org>
109675         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
109676         * lib/getline.c (getline, getdelim): Likewise.
109677         Remove _GNU_SOURCE define; now it's defined in config.h through
109678         m4/getline.m4.
109680 2003-07-23  Karl Berry  <karl@gnu.org>
109682         * config/config.sub: update from prep.
109684 2003-07-22  Paul Eggert  <eggert@twinsun.com>
109686         * modules/xalloc (Depends-on): Add exitfail.
109687         * modules/xmemcoll: Likewise.
109689 2003-07-22  Paul Eggert  <eggert@twinsun.com>
109691         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
109692         over-parenthesization in macros.
109694         Sync with coreutils.
109696         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
109697         required by C99.
109699         Use `exit_failure' for xalloc and xmemcoll instead of their own
109700         private exit-failure variables.
109701         * lib/xalloc.h (xalloc_exit_failure): Remove.
109702         * lib/xmalloc.c: Likewise.  Include exitfail.h.
109703         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
109704         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
109705         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
109706         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
109708 2003-07-20  Jim Meyering  <jim@meyering.net>
109710         * modules/closeout (Depends-on): Add exitfail.
109711         Suggestion from Bruno Haible.
109713 2003-07-19  Karl Berry  <karl@gnu.org>
109715         * config/config.sub: update from prep.
109717 2003-07-18  Paul Eggert  <eggert@twinsun.com>
109719         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
109720         Remove.
109721         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
109722         to test that it can stand by itself.  Include "exitfail.h".
109723         Clients should set exit_failure instead.
109724         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
109726 2003-07-18  Bruno Haible  <bruno@clisp.org>
109728         * modules/getndelim2: New file.
109729         * modules/getline: Share files with module getndelim2.
109730         * modules/getnline: Depend on getndelim2 instead of sharing files with
109731         it. Add getnline.c to lib_SOURCES.
109732         * MODULES.html.sh (func_all_modules): Add getndelim2.
109734 2003-07-18  Bruno Haible  <bruno@clisp.org>
109736         * m4/getndelim2.m4: New file.
109737         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
109738         invoke gl_PREREQ_GETNDELIM2.
109739         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
109740         gl_PREREQ_GETNDELIM2.
109741         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
109742         gl_GETNDELIM2.
109744 2003-07-18  Bruno Haible  <bruno@clisp.org>
109746         * lib/getndelim2.h: New file.
109747         * lib/getndelim2.c: Make into a module of its own. Include config.h,
109748         getndelim2.h.
109749         (getndelim2): Make non-static. Change return type to ssize_t.
109750         * lib/getline.h: Change argument names.
109751         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
109752         * lib/getnline.c: Include getndelim2.h.
109754 2003-07-18  Andreas Schwab  <schwab@suse.de>
109756         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
109758 2003-07-17  Karl Berry  <karl@gnu.org>
109760         * config/config.sub: update from prep.
109762 2003-07-17  Bruno Haible  <bruno@clisp.org>
109764         * modules/getnline: New file.
109765         * modules/getline: Add lib/getndelim2.c to source file list.
109766         * MODULES.html.sh (func_all_modules): Add getnline.
109768 2003-07-17  Bruno Haible  <bruno@clisp.org>
109770         * m4/getnline.m4: New file.
109772 2003-07-17  Bruno Haible  <bruno@clisp.org>
109774         * m4/Makefile.am.in: Remove file.
109775         * m4/Makefile.am: Remove file.
109776         * m4/Makefile.in: Remove file.
109778 2003-07-17  Bruno Haible  <bruno@clisp.org>
109780         * lib/getnline.h: New file.
109781         * lib/getnline.c: New file.
109782         * lib/getndelim2.c: New file, extracted from getline.c.
109783         (getndelim2): Renamed from getdelim2, with added nmax argument.
109784         * lib/getline.c: Include getndelim2.c.
109785         (getdelim2): Moved out to getndelim2.c.
109786         (getline, getdelim): Update.
109788 2003-07-17  Bruno Haible  <bruno@clisp.org>
109790         * lib/Makefile.am: Remove file.
109791         * lib/Makefile.in: Remove file.
109793 2003-07-17  Bruno Haible  <bruno@clisp.org>
109795         * configure.in: Remove file.
109796         * Makefile.in: Remove file.
109798 2003-07-17  Bruno Haible  <bruno@clisp.org>
109800         * MODULES.html.sh: Put the </BODY> right before </HTML>.
109802 2003-07-16  Karl Berry  <karl@gnu.org>
109804         * config/srclist-update: was running fixlicense twice, which caused
109805                 texinfo.tex to be nullified for some reason.  Simplify,
109806                 $gplsrc is no longer needed as far as I can see?
109808 2003-07-16  Jim Meyering  <jim@meyering.net>
109810         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
109812 2003-07-15  Paul Eggert  <eggert@twinsun.com>
109814         * config/srclist.txt: Get the following files from gettext-runtime/intl
109815         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
109816         ref-del.sin.  From Bruno Haible.
109817         * config/srclist-update (fixfile): Change grep pattern again, since the
109818         previous fix didn't work (there was another trailing $).  Use
109819         '[$]' to escape the $s.
109821 2003-07-15  Karl Berry  <karl@gnu.org>
109823         * lib/vasnprintf.c: update from gettext.
109825 2003-07-15  Karl Berry  <karl@gnu.org>
109827         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
109828         gets expanded when surrounded by '$'.
109830 2003-07-15  Jim Meyering  <jim@meyering.net>
109832         * modules/save-cwd: Don't depend on error.  From Derek Price.
109834 2003-07-15  Jim Meyering  <jim@meyering.net>
109836         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
109838 2003-07-14  Simon Josefsson  <jas@extundo.com>
109840         * modules/mempcpy: New file.
109841         * MODULES.html.sh (func_all_modules): Add mempcpy.
109843 2003-07-14  Simon Josefsson  <jas@extundo.com>
109845         * m4/mempcpy.m4: New file.
109847 2003-07-14  Simon Josefsson  <jas@extundo.com>
109849         * lib/mempcpy.h: New file.
109850         * lib/mempcpy.c: New file.
109852 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109854         * modules/getdate, modules/posixtm: Depend on mktime.
109856 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109858         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
109859         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
109860         unicodeio.c, unicodeio.h, unlocked-io.h:
109861         Switch from LGPL to GPL.
109863 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109865         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
109866         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
109867         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
109868         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
109869         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
109870         updated automatically by ../config/srclist-update.  This changes
109871         their license from LPGL to GPL.
109873 2003-07-14  Paul Eggert  <eggert@twinsun.com>
109875         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
109876         assumed to refer to the root of the most recent stable gettext version.
109877         * config/srclistvars.sh: Add defaults for eggert.
109878         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
109879         Match "This program" as well as "The program".  This is needed
109880         for gettext.
109882 2003-07-14  Jim Meyering  <jim@meyering.net>
109884         Don't emit diagnostics.  Let callers do that.
109885         * lib/save-cwd.c: Don't include "error.h".
109886         (save_cwd): Don't call error.  Ensure that errno is valid
109887         when returning nonzero.
109889         * lib/save-cwd.h (restore_cwd): Update prototype.
109890         * lib/save-cwd.c (restore_cwd): Remove two parameters.
109891         Simplify.  Don't call error upon failure.  Let callers do that.
109892         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
109893         when auditing is enabled.  But don't bother updating the #if.
109895 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
109897         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
109898         it breaks C++ compilation.
109899         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
109901 2003-07-10  Simon Josefsson  <jas@extundo.com>
109903         * modules/strchrnul (Makefile.am): Add strchrnul.h.
109905 2003-07-10  Jim Meyering  <jim@meyering.net>
109907         * m4/clock_time.m4: Remove trailing blank.
109908         * m4/intmax_t.m4: Likewise.
109910 2003-07-10  Jim Meyering  <jim@meyering.net>
109912         * lib/vasnprintf.c: Remove trailing blanks.
109913         Make cpp indentation consistent.
109915 2003-07-09  Paul Eggert  <eggert@twinsun.com>
109917         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
109918         posixver.c, strftime.c, strnlen.c, strverscmp.c:
109919         Switch from LGPL to GPL.
109921 2003-07-09  Paul Eggert  <eggert@twinsun.com>
109923         * config/srclist.txt: Sort sublists.  Add
109924         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
109925         that differ from gnulib for one reason or another; we'd like this list
109926         to be smaller but for now let's document what we have.
109928 2003-07-08  Paul Eggert  <eggert@twinsun.com>
109930         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
109931         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
109932         and sweeter "eval x=$x".
109933         * config/srclist.txt: Get lib/argp* from glibc.
109935 2003-07-07  Paul Eggert  <eggert@twinsun.com>
109937         * lib/mktime.c: Fix some boundary cases and remove need for floating
109938         point.
109940         Issue a compile-time diagnostic if time_t is floating point, or if
109941         two's complement arithmetic is not in effect, or if arithmetic
109942         right shift does not propagate the sign.  These assumptions were
109943         all in the original code but they weren't checked.
109945         (TIME_T_MIDPOINT, verify): New macros.
109946         (__isleap): Remove; it has integer overflow problems.
109947         (leapyear): New function, without those problems.
109948         (ydhms_tm_diff): Remove; splitting into two parts.
109949         (ydhms_diff): New function, containing the arithmetic part of
109950         the old ydhms_tm_diff function.  Issue a compile-time
109951         diagnostic if we are not using C99 integer division.
109952         Avoid casts when possible.
109953         (guess_time_tm): New function, containing the checking part of
109954         the old ydhms_tm_diff function.  Return the new value, rather than
109955         the difference between it and the old.  Accept a new argument T
109956         so that *T specifies the old value.  Check for overflow in the result.
109958         (__mktime_internal): Use a time_t offset, not a long int offset.
109959         This undoes the 2003-06-04 change, which is no longer needed now
109960         that we have better overflow checking.
109961         (localtime_offset): Likewise.
109963         (__mktime_internal): Avoid harmful overflow on hosts where time_t
109964         and long are 64-bit but int is only 32-bit.
109965         (ydhms_diff): Use long int to store year1 and yday1.
109966         Issue a compile-time diagnostic if long int is not wide enough.
109968         (__mktime_internal): Use long int to store adjusted year and yday.
109969         Use plain C rather than preprocessor commands, if that doesn't
109970         affect efficiency.
109971         Check for overflow (and try to repair) after each probe
109972         rather than checking only at the very end.  This avoids some bugs
109973         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
109974         does not equal GMT offset at maximum time).
109975         Use integer to check for overflow rather than floating point; this
109976         is more portable to non-IEEE hosts, and is a tad faster.
109977         When we detect that we are oscillating between two values,
109978         don't check whether tm_isdst has the requested value, since
109979         we already know the answer.  When tm_isdst has the wrong value,
109980         use a different heuristic to find the right one, based on the
109981         extreme values actually observed in practice in tz2003a,
109982         rather than the (overly optimistic) "previous 3 calendar quarters".
109984         (not_equal_tm, print_tm, check_result): Use "const T" rather than
109985         "T const" to accommodate glibc style.
109986         (check_result): Use less-confusing report format.  "long" -> "long int.
109987         (main): Likewise.
109988         Don't loop if the iteration overflows time_t.
109989         Allow a negative step in the iteration.
109991 2003-07-06  Karl Berry  <karl@gnu.org>
109993         * config/depcomp: update from automake.
109994         * config/config.sub: update from prep.
109996 2003-07-03  Karl Berry  <karl@gnu.org>
109998         * config/config.guess: update from prep.
110000 2003-07-01  Paul Eggert  <eggert@twinsun.com>
110002         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
110003         xreadlink.c now includes it unconditionally.
110005 2003-07-01  Paul Eggert  <eggert@twinsun.com>
110007         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
110008         having it depend on HAVE_SYS_TYPES_H.
110010 2003-07-01  Bruno Haible  <bruno@clisp.org>
110012         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
110013         <sys/types.h> should be sufficient.
110014         Reported by Paul Eggert.
110016 2003-06-26  Karl Berry  <karl@gnu.org>
110018         * config/depcomp: update from automake.
110020 2003-06-26  Bruno Haible  <bruno@clisp.org>
110022         * modules/human: Depend on module stdbool.
110024 2003-06-25  Bruno Haible  <bruno@clisp.org>
110026         * modules/readlink: New file.
110027         * modules/xreadlink: Depend on it.
110028         * MODULES.html.sh (func_all_modules): Add readlink.
110030 2003-06-25  Bruno Haible  <bruno@clisp.org>
110032         * m4/readlink.m4: New file.
110034 2003-06-25  Bruno Haible  <bruno@clisp.org>
110036         * lib/readlink.c: New file.
110038 2003-06-22  Karl Berry  <karl@gnu.org>
110040         * config/srclist.txt: update mkinstalldirs from automake.
110041         * config/mkinstalldirs: update.
110043 2003-06-22  Bruno Haible  <bruno@clisp.org>
110045         Portability to mingw32.
110046         * m4/ssize_t.m4: New file, from GNU gettext.
110047         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
110048         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
110050 2003-06-22  Bruno Haible  <bruno@clisp.org>
110052         * modules/safe-read: Add m4/ssize_t.m4.
110053         * modules/xreadlink: Add m4/ssize_t.m4.
110055 2003-06-20  Bruno Haible  <bruno@clisp.org>
110057         Assume C89, so PARAMS isn't needed.
110058         * lib/unicodeio.h (PARAMS): Remove.
110059         * lib/unicodeio.c: Don't use PARAMS.
110061 2003-06-18  Karl Berry  <karl@gnu.org>
110063         * config/config.{guess,sub}: update from prep.
110065 2003-06-18  Jim Meyering  <jim@meyering.net>
110067         Merge changes from coreutils.
110068         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
110069         Remove explicit declarations of xmalloc and realloc.
110070         Include xalloc.h.
110071         (read_utmp): Remove anachronistic cast of xmalloc.
110073 2003-06-17  Paul Eggert  <eggert@twinsun.com>
110075         Assume C89, so PARAMS isn't needed.
110076         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
110077         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
110078         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
110079         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
110080         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
110081         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
110082         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
110083         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
110084         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
110085         lib/xstrtod.h, lib/xstrtol.h: Likewise.
110086         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
110087         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
110088         no longer needed. Anyway, config.h should always be included before any
110089         other file.
110091 2003-06-11  Simon Josefsson  <jas@extundo.com>
110093         * modules/sysexits: New file.
110094         * MODULES.html.sh (func_all_modules): Add sysexits.
110096 2003-06-11  Simon Josefsson  <jas@extundo.com>
110098         * lib/sysexit_.h: New file.
110100 2003-06-11  Derek Price  <derek@ximbiot.com>
110102         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
110103         necessary.
110105 2003-06-11  Bruno Haible  <bruno@clisp.org>
110107         * m4/sysexits.m4: New file.
110109 2003-06-10  Simon Josefsson  <jas@extundo.com>
110111         * lib/argp.h: New file, from glibc.
110112         * lib/argp-ba.c: New file, from glibc.
110113         * lib/argp-eexst.c: New file, from glibc.
110114         * lib/argp-fmtstream.c: New file, from glibc.
110115         * lib/argp-fmtstream.h: New file, from glibc.
110116         * lib/argp-fs-xinl.c: New file, from glibc.
110117         * lib/argp-help.c: New file, from glibc.
110118         * lib/argp-namefrob.h: New file, from glibc.
110119         * lib/argp-parse.c: New file, from glibc.
110120         * lib/argp-pv.c: New file, from glibc.
110121         * lib/argp-pvh.c: New file, from glibc.
110122         * lib/argp-xinl.c: New file, from glibc.
110124 2003-06-10  Simon Josefsson  <jas@extundo.com>
110126         * modules/strchrnul: New file.
110128 2003-06-10  Simon Josefsson  <jas@extundo.com>
110130         * modules/argp: New file.
110132 2003-06-10  Simon Josefsson  <jas@extundo.com>
110134         * m4/strchrnul.m4: New file.
110136 2003-06-10  Simon Josefsson  <jas@extundo.com>
110138         * lib/strchrnul.h: New file.
110139         * lib/strchrnul.c: New file.
110141 2003-06-10  Bruno Haible  <bruno@clisp.org>
110143         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
110145 2003-06-07  Karl Berry  <karl@gnu.org>
110147         * config/config.{guess,sub}: update from prep.
110149 2003-06-07  Jim Meyering  <jim@meyering.net>
110151         * modules/strtod: Use $(...) notation, not @...@ for
110152         AC_REPLACE'd variables.
110153         * modules/localcharset: Likewise.
110155 2003-06-07  Jim Meyering  <jim@meyering.net>
110157         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
110158         in place of my name in the copyright comment.
110159         Remove definition and uses of __P.
110161         From coreutils.
110162         * lib/stat.c: Don't declare xmalloc explicitly.
110163         Instead, include "xalloc.h".
110164         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
110165         xrealloc, and xcalloc return values.
110166         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
110167         Improve comment.
110168         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
110170 2003-06-07  Bruno Haible  <bruno@clisp.org>
110172         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
110173         avoid AC_CONFIG_LINKS.
110174         * modules/fnmatch (Makefile.am): Use explicit creation rule for
110175         fnmatch.h, to avoid AC_CONFIG_LINKS.
110176         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
110178 2003-06-07  Bruno Haible  <bruno@clisp.org>
110180         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
110181         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
110182         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
110183         directory.
110184         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
110185         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
110186         directory.
110188 2003-06-06  Jim Meyering  <jim@meyering.net>
110190         Merge from coreutils.
110191         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
110192         Consolidate declarations and initializations of *_base* locals.
110194         Merge from coreutils.
110195         This avoids a core dump on systems without GNU putenv,
110196         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
110197         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
110198         (unsetenv): New static function, from GNU libc.
110199         (rpl_putenv): Use it.
110201         * lib/modechange.c: Remove trailing blanks.
110203         Merge from coreutils.
110204         * lib/fsusage.c: Remove declaration of statfs.
110205         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
110207         * lib/posixtm.c: Include <stdbool.h> unconditionally.
110209 2003-06-06  Jim Meyering  <jim@meyering.net>
110211         * lib/stdbool_.h: Renamed from stdbool.h.in.
110213 2003-06-06  Jim Meyering  <jim@meyering.net>
110214             Bruno Haible  <bruno@clisp.org>
110216         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
110217         Adjust Makefile.am snippet not to redirect directly to target.
110218         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
110220 2003-06-05  Paul Eggert  <eggert@twinsun.com>
110222         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
110223         mismatch, look in future quarters as well as past.  This fixes a
110224         bug when processing fall-backwards gaps immediately after a long
110225         period of daylight-saving time.
110227         * lib/mktime.c: Assume freestanding C89 or better.
110228         (HAVE_LIMITS_H): Remove.  Assume it's 1.
110229         (__P): Remove; not used.
110230         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
110231         (mktime, not_equal_tm, print_tm, check_result,
110232         main): Use prototypes.  Use const * where appropriate.
110233         (main): Fix typo in testing code that uncovered by above changes.
110234         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
110236 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110238         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
110239         locale.h, localeconv.  This merges changes from coreutils.
110241         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
110242         It can be removed after the next Autoconf is released.
110243         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
110244         needed.
110246 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110248         * lib/mktime.c: Fix Debian bug 177940
110249         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
110250         (localtime_offset): Now long int, not time_t, because we want it
110251         to be guaranteed to be signed.  All uses changed.
110252         (__mktime_internal): If overflow would occur when adding offset,
110253         don't add it.
110255         Merge 'human' changes from coreutils.  Rewrite to support
110256         locale-specific notations like thousands separators.
110257         * lib/human.c: Simplify authorship notice.
110258         Include human.h immediately after config.h.
110259         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
110260         <limits.h>: Do not include, since human.h does.
110261         (SIZE_MAX, UINTMAX_MAX): New macros.
110262         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
110263         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
110264         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
110265         (power_letter): Renamed from suffixes.
110266         (generate_suffix_backwards): Remove.
110267         (adjust_value): Now takes int style (because of human.h changes)
110268         and long double value (for greater precision on some platforms).
110269         (group_number): New function.
110270         (human_readable): Use it.  Use integer options, not enum.
110271         Put the options before the sizes in the arg list.
110272         Support all the new options.
110273         The old human_readable function has been removed;
110274         use inttostr.h instead.
110275         (human_readable, default_block_size, humblock):
110276         Use uintmax_t, not int, for block sizes.
110277         (human_readable_inexact, block_size_types): Remove.
110278         (block_size_opts): New constant.
110279         (human_options): Renamed from human_block_size, with new signature
110280         that allows block sizes up to UINTMAX_MAX.  All callers changed.
110281         * lib/human.h: Add copyright and authorship notice.
110282         Include <limits.h> and <stdbool.h> unconditionally.
110283         (PARAMS): Remove.  All uses removed.
110284         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
110285         (enum human_inexact_style): Remove tag; now a nameless enum.
110286         (human_floor, human_ceiling, human_round_to_even): Now have
110287         values 2, 0, 1 rather than -1, 1, 0.
110288         (human_group_digits, human_suppress_point_zero, human_autoscale,
110289         human_base_1024, human_SI, human_B): New constants.
110290         (human_readable_inexact, human_block_size): Remove.
110291         (human_readable): Size args are now uintmax_t, not int.
110292         (human_options): New decl.
110294         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
110295         unnecessary now that we assume C89 or better.  This change
110296         imported from coreutils.
110298         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
110299         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
110300         in the 2003-05-30 sync from glibc.
110302         .h files should stand alone, but we shouldn't include <sys/types.h>
110303         if we can get away with just <stddef.h>.
110305         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
110306         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
110307         rather than <sys/types.h>, as we merely need size_t.
110308         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
110309         to get size_t.
110310         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
110311         Include <stdio.h>, to get FILE.
110312         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
110313         memcasecmp.h has included <stddef.h> and all we need is size_t.
110314         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
110315         our interface, instead of including <sys/types.h>
110317 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110319         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
110320         now, as glibc mktime is buggy on non-glibc systems.
110322 2003-06-03  Karl Berry  <karl@gnu.org>
110324         * config/config.sub: update from prep.
110326 2003-06-02  Paul Eggert  <eggert@twinsun.com>
110328         [from coreutils]
110329         Fix some minor time-related bugs with POSIX time arguments.
110330         Some valid time stamps were being rejected (notably -1, and
110331         time stamps before 1900 on 64-bit hosts).  And some invalid
110332         time stamps were being accepted, e.g. September 31.
110334         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
110335         that we can return (time_t) -1 successfully.
110336         * lib/posixtm.c: Likewise.
110337         [HAVE_STDBOOL_H]: Include <stdbool.h>.
110338         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
110339         (t): Remove static var.
110340         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
110341         of static var.  All uses changed.
110342         (year): Do not reject years before 1900; they can occur with
110343         64-bit time_t.
110344         (posix_time_parse): Do not check for out-of-range components;
110345         that is now the caller's responsibility, since our checks were
110346         only approximations.
110347         (posixtime): Use mktime to check for out-of-range components,
110348         since it knows them exactly.
110349         If mktime returns (time_t) -1, check whether an error actually occurred
110350         by invoking localtime on -1.
110351         (main) [TEST_POSIXTIME]: Check for input data errors, and report
110352         posixtime failures better.
110353         Improve the test data (in comments only).
110355 2003-06-02  Karl Berry  <karl@gnu.org>
110357         * config/mkinstalldirs (version): new variable.
110358         (--version): new option.
110359         (usage): improve message.
110361 2003-05-30  Karl Berry  <karl@gnu.org>
110363         * lib/mktime.c: update from libc.
110365 2003-05-30  Bruno Haible  <bruno@clisp.org>
110367         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
110368         * config/config.rpath: Upgrade to gettext-0.12.1.
110370 2003-05-30  Bruno Haible  <bruno@clisp.org>
110372         * m4/gettext.m4: Upgrade to gettext-0.12.1.
110373         * m4/nls.m4: New file, from gettext-0.12.1.
110374         * m4/po.m4: New file, from gettext-0.12.1.
110375         * m4/progtest.m4: Upgrade to gettext-0.12.1.
110377 2003-05-30  Bruno Haible  <bruno@clisp.org>
110379         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
110380         * lib/localcharset.h: Likewise.
110381         * lib/localcharset.c: Likewise.
110383 2003-05-29  Karl Berry  <karl@gnu.org>
110385         * config/config.rpath: update from gettext.
110387 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110389         Assume the headers required for C89 freestanding compilers.
110390         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
110391         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
110392         * m4/human.m4 (gl_HUMAN): Likewise.
110393         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
110394         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
110395         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110396         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
110397         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110398         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
110400 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110402         Assume the headers required for C89 freestanding compilers.
110403         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
110404         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
110405         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
110406         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
110407         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
110408         define, since <limits.h> is guaranteed to do that.
110409         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
110410         * lib/exclude.c: Include <stdbool.h> unconditionally.
110411         * lib/tempname.c: Include <stddef.h> unconditionally.
110412         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
110413         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
110414         <stddef.h> does that.
110415         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
110416         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
110417         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
110418         needed.
110419         * lib/xstrtol.c: Likewise.
110420         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
110421         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
110423         * lib/addext.c (addext): Use assignment rather than cast, to avoid
110424         warnings on some platforms.
110426         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
110427         arbitrarily.
110429 2003-05-26  Jim Meyering  <jim@meyering.net>
110431         Merge in a change from coreutils:
110432         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
110433         that is guaranteed to be `no'.  Use `no_such_member' to indicate
110434         that condition, rather than `-1' which is slightly misleading.
110435         Change the name of the cache variable to have the gl_ prefix.
110436         Prompted by a patch from Richard Dawe for DJGPP.
110438 2003-05-24  Karl Berry  <karl@gnu.org>
110440         * config/config.guess: update from prep.
110442 2003-05-22  Karl Berry  <karl@gnu.org>
110444         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
110446 2003-05-20  Karl Berry  <karl@gnu.org>
110448         * config/config.guess: update from prep.
110450 2003-05-18  Karl Berry  <karl@gnu.org>
110452         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
110453         might actually be set by the user.
110455         * config/depcomp, install-sh, mdate-sh: update from automake.
110457 2003-05-17  Bruno Haible  <bruno@clisp.org>
110459         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
110460         invalid expansion for AC_EGREP_CPP.
110461         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
110462         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
110463         Suggested by Akim Demaille <akim@epita.fr> in
110464         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
110466 2003-05-12  Jim Meyering  <jim@meyering.net>
110468         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
110469         the space-padded-by-default conversion specifiers, %e, %k, %l.
110471 2003-05-12  Bruno Haible  <bruno@clisp.org>
110473         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
110474         the string is longer than 4 KB.
110476 2003-05-11  Karl Berry  <karl@gnu.org>
110478         * config/config.{guess,sub}: update from prep.
110480 2003-05-09  Bruno Haible  <bruno@clisp.org>
110482         * modules/error: Add m4/strerror_r.m4 to file list.
110484 2003-05-03  Bruno Haible  <bruno@clisp.org>
110486         Upgrade to Unicode-4.0.
110487         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
110488         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
110489         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
110490         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
110491         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
110492         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
110493         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
110494         Change width of U+E0100..U+E01EF from 1 to 0.
110496 2003-04-25  Jim Meyering  <jim@meyering.net>
110498         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
110499         of type size_t, not int.
110501 2003-04-25  Bruno Haible  <bruno@clisp.org>
110503         * lib/copy-file.c: Include <stddef.h>, for size_t.
110505 2003-04-21  Paul Eggert  <eggert@twinsun.com>
110507         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
110508         code which expansion is under static control.  Patch imported from
110509         Akim Demaille's patch to Bison; see
110510         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
110512 2003-04-14  Bruno Haible  <bruno@clisp.org>
110514         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
110516 2003-04-11  Jim Meyering  <jim@meyering.net>
110518         Merge changes from Coreutils.
110520         2003-03-22  Jim Meyering  <jim@meyering.net>
110522         * lib/strftime.c (widen): Cast alloca return value to proper type.
110524         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
110526         From GNU libc.
110527         * lib/strftime.c (my_strftime): Handle very large width
110528         specifications for numeric values correctly.  Improve checks for
110529         overflow.
110531         2003-01-19  Jim Meyering  <jim@meyering.net>
110533         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
110534         definitions.
110535         (nl_get_alt_digit) [! defined my_strftime]: Define.
110536         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
110537         _nl_get_alt_digit and _nl_get_walt_digit.
110539         * lib/strftime.c (my_strftime): Merge in locale-related changes from
110540         libc. These changes have no effect outside of _LIBC.
110542 2003-04-10  Bruno Haible  <bruno@clisp.org>
110544         * modules/findprog: New file.
110545         * MODULES.html.sh (func_all_modules): Add it.
110547 2003-04-10  Bruno Haible  <bruno@clisp.org>
110549         * m4/findprog.m4: New file.
110550         * m4/eaccess.m4: New file.
110552 2003-04-10  Bruno Haible  <bruno@clisp.org>
110554         * lib/findprog.h: New file, from GNU gettext.
110555         * lib/findprog.c: New file, from GNU gettext.
110557 2003-04-05  Jim Meyering  <jim@meyering.net>
110559         Merge changes from Coreutils.
110561         * lib/exclude.h (PARAMS): Remove definition and uses.
110562         * lib/exclude.c: Remove uses of `PARAMS'.
110564         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
110565         Add test-cases for DOS filenames. Declare program_name.
110566         (main): Set up program_name.  Patch by Rich Dawe.
110568         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
110569         error from mntctl.
110570         Use mntctl's return value to drive the entry-processing loop, since
110571         we can't rely on the value of the vmt_length member in the last
110572         entry.  On some systems doing so could result in exhausting
110573         virtual memory.  Based in part on a patch from Mike Jetzer.
110575 2003-04-04  Bruno Haible  <bruno@clisp.org>
110577         * modules/linebreak: New file.
110578         * MODULES.html.sh (func_all_modules): Add it.
110580 2003-04-04  Bruno Haible  <bruno@clisp.org>
110582         * m4/linebreak.m4: New file.
110584 2003-04-04  Bruno Haible  <bruno@clisp.org>
110586         * lib/linebreak.h: New file, from GNU gettext.
110587         * lib/linebreak.c: New file, from GNU gettext with slight
110588         modifications.
110589         * lib/lbrkprop.h: New file, from GNU gettext.
110591 2003-04-03  Bruno Haible  <bruno@clisp.org>
110593         * modules/utf8-ucs4: New file.
110594         * modules/utf16-ucs4: New file.
110595         * modules/ucs4-utf8: New file.
110596         * modules/ucs4-utf16: New file.
110597         * MODULES.html.sh (func_all_modules): Add them.
110599 2003-04-03  Bruno Haible  <bruno@clisp.org>
110601         * m4/utf-ucs4.m4: New file.
110602         * m4/ucs4-utf.m4: New file.
110604 2003-04-03  Bruno Haible  <bruno@clisp.org>
110606         * lib/utf8-ucs4.h: New file, from GNU gettext.
110607         * lib/utf16-ucs4.h: New file, from GNU gettext.
110608         * lib/ucs4-utf8.h: New file, from GNU gettext.
110609         * lib/ucs4-utf16.h: New file, from GNU gettext.
110611 2003-04-02  Bruno Haible  <bruno@clisp.org>
110613         * modules/binary-io: New file.
110614         * MODULES.html.sh (func_all_modules): Add it.
110616 2003-04-02  Bruno Haible  <bruno@clisp.org>
110618         * lib/binary-io.h: New file, from GNU gettext.
110620 2003-04-01  Bruno Haible  <bruno@clisp.org>
110622         * modules/pathname: New file.
110623         * MODULES.html.sh (func_all_modules): Add it.
110625 2003-04-01  Bruno Haible  <bruno@clisp.org>
110627         * lib/pathname.h: New file, from GNU gettext.
110628         * lib/concatpath.c: New file, from GNU gettext.
110630 2003-03-30  Bruno Haible  <bruno@clisp.org>
110632         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
110634 2003-03-30  Bruno Haible  <bruno@clisp.org>
110636         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
110637         function chown() doesn't exist.
110639 2003-03-28  Bruno Haible  <bruno@clisp.org>
110641         * modules/copy-file: New file.
110642         * MODULES.html.sh (func_all_modules): Add it.
110644 2003-03-28  Bruno Haible  <bruno@clisp.org>
110646         * m4/copy-file.m4: New file.
110648 2003-03-28  Bruno Haible  <bruno@clisp.org>
110650         * lib/copy-file.h: New file, from GNU gettext.
110651         * lib/copy-file.c: New file, from GNU gettext.
110653 2003-03-18  Jim Meyering  <jim@meyering.net>
110655         * lib/quote.c (quote_n): Fix typo in comment.
110657 2003-03-18  Bruno Haible  <bruno@clisp.org>
110659         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
110660         checking.
110661         * m4/onceonly_2_57.m4: Likewise.
110663 2003-03-17  Bruno Haible  <bruno@clisp.org>
110665         * m4/onceonly.m4: Require autoconf 2.54 or newer.
110666         (m4_quote): Remove macro.
110667         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
110669 2003-03-14  Jim Meyering  <jim@meyering.net>
110671         Merge changes from Coreutils.
110672         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
110673         to be const, in order to avoid warnings.
110674         (obstack_room): Likewise.
110675         (obstack_empty_p): Likewise.
110677 2003-03-14  Bruno Haible  <bruno@clisp.org>
110679         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
110680         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
110682 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110684         Merge changes from Bison.
110685         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
110686         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
110687         when compiling Bison 1.875's `bitset bset = obstack_alloc
110688         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
110689         * lib/hash.c: Include <stdbool.h> unconditionally.
110691 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110693         * m4/onceonly.m4 (m4_quote): New macro.
110694         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
110695         Quote AC_FOREACH variable-expansions properly.
110697 2003-03-13  Paul Eggert  <eggert@twinsun.com>
110699         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
110701 2003-03-09  Paul Eggert  <eggert@twinsun.com>
110703         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
110704         Reported by Bruce Becker; see:
110705         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
110707 2003-03-03  Paul Eggert  <eggert@twinsun.com>
110708             Bruno Haible  <bruno@clisp.org>
110710         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
110711         Reported by John Hughes, see
110712         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
110714 2003-02-20  Bruno Haible  <bruno@clisp.org>
110716         * MODULES.html.sh (func_all_modules): Add poll.
110718 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110720         * modules/poll: New file.
110722 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110724         * lib/poll_.h: New file.
110725         * lib/poll.c: New file.
110727 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
110729         * m4/poll.m4: New file.
110731 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110733         * modules/mathl: New file.
110735 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110737         * lib/mathl.h: New file.
110738         * lib/acosl.c: New file.
110739         * lib/asinl.c: New file.
110740         * lib/atanl.c: New file.
110741         * lib/ceill.c: New file.
110742         * lib/cosl.c: New file.
110743         * lib/expl.c: New file.
110744         * lib/floorl.c: New file.
110745         * lib/frexpl.c: New file.
110746         * lib/ldexpl.c: New file.
110747         * lib/logl.c: New file.
110748         * lib/sincosl.c: New file.
110749         * lib/sinl.c: New file.
110750         * lib/sqrtl.c: New file.
110751         * lib/tanl.c: New file.
110752         * lib/trigl.c: New file.
110753         * lib/trigl.h: New file.
110755 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
110757         * m4/mathl.m4: New file.
110759 2003-02-18  Bruno Haible  <bruno@clisp.org>
110761         * MODULES.html.sh (func_all_modules): Add mathl.
110763 2003-02-17  Bruno Haible  <bruno@clisp.org>
110765         * modules/mkdtemp: New module.
110766         * MODULES.html.sh (func_all_modules): Add it.
110768 2003-02-17  Bruno Haible  <bruno@clisp.org>
110770         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
110772 2003-02-17  Bruno Haible  <bruno@clisp.org>
110774         * lib/mkdtemp.h: New file, from GNU gettext.
110775         * lib/mkdtemp.c: New file, from GNU gettext.
110777 2003-02-02  Jim Meyering  <jim@meyering.net>
110779         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
110780         e.g. glibc-2.2.93.
110782 2003-01-31  Bruno Haible  <bruno@clisp.org>
110784         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
110785         'rpl_rename'.
110786         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
110787         'rpl_strnlen'.
110788         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
110789         'rpl_strtod'.
110790         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
110791         'rpl_utime'.
110793 2003-01-31  Bruno Haible  <bruno@clisp.org>
110795         * lib/rename.c: #undef rename before defining rpl_rename.
110796         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
110798 2003-01-30  Bruno Haible  <bruno@clisp.org>
110800         * modules/vasnprintf, modules/vasprintf: New modules.
110801         * MODULES.html.sh (func_all_modules): Add them.
110803 2003-01-30  Bruno Haible  <bruno@clisp.org>
110805         * m4/signed.m4: New file, from GNU gettext.
110806         * m4/longdouble.m4: New file, from GNU gettext.
110807         * m4/wchar_t.m4: New file, from GNU gettext.
110808         * m4/wint_t.m4: New file, from GNU gettext.
110809         * m4/vasnprintf.m4: New file.
110810         * m4/vasprintf.m4: New file.
110812 2003-01-30  Bruno Haible  <bruno@clisp.org>
110814         * lib/printf-args.h: New file, from GNU gettext.
110815         * lib/printf-args.c: New file, from GNU gettext.
110816         * lib/printf-parse.h: New file, from GNU gettext.
110817         * lib/printf-parse.c: New file, from GNU gettext.
110818         * lib/vasnprintf.h: New file, from GNU gettext.
110819         * lib/vasnprintf.c: New file, from GNU gettext.
110820         * lib/asnprintf.c: New file, from GNU gettext.
110821         * lib/vasprintf.h: New file, from GNU gettext with modifications.
110822         * lib/vasprintf.c: New file, from GNU gettext.
110823         * lib/asprintf.c: New file, from GNU gettext.
110825 2003-01-29  Bruno Haible  <bruno@clisp.org>
110827         * modules/stpncpy: New module.
110828         * MODULES.html.sh (func_all_modules): Add it.
110830 2003-01-29  Bruno Haible  <bruno@clisp.org>
110832         * m4/stpncpy.m4: New file.
110834 2003-01-29  Bruno Haible  <bruno@clisp.org>
110836         * lib/stpncpy.h: New file, from GNU gettext with modifications.
110837         * lib/stpncpy.c: New file, from GNU gettext with modifications.
110839 2003-01-28  Bruno Haible  <bruno@clisp.org>
110841         * modules/c-ctype: New module.
110842         * MODULES.html.sh (func_all_modules): Add it.
110844 2003-01-28  Bruno Haible  <bruno@clisp.org>
110846         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
110847         Paul Eggert.
110848         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
110849         Paul Eggert.
110851 2003-01-27  Bruno Haible  <bruno@clisp.org>
110853         * modules/xsetenv: New module.
110854         * MODULES.html.sh (func_all_modules): Add it.
110856 2003-01-27  Bruno Haible  <bruno@clisp.org>
110858         * lib/xsetenv.h: New file, from GNU gettext.
110859         * lib/xsetenv.c: New file, from GNU gettext.
110861 2003-01-23  Jim Meyering  <jim@meyering.net>
110863         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
110864         from working on systems without dirfd (at least Irix and OSF1/Tru64).
110866 2003-01-23  Bruno Haible  <bruno@clisp.org>
110868         * modules/minmax: New module.
110869         * MODULES.html.sh (func_all_modules): Add it.
110871 2003-01-23  Bruno Haible  <bruno@clisp.org>
110873         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
110874         Eggert.
110876 2003-01-22  Bruno Haible  <bruno@clisp.org>
110878         * modules/exit: New module.
110879         * MODULES.html.sh (func_all_modules): Add it.
110881 2003-01-22  Bruno Haible  <bruno@clisp.org>
110883         * lib/exit.h: New file, from GNU gettext.
110885 2003-01-19  Bruno Haible  <bruno@clisp.org>
110887         * gnulib-tool: Recognize option --extract-maintainer.
110888         (func_get_maintainer): New function.
110889         * modules/*: Add Maintainer entry.
110891 2003-01-16  Jim Meyering  <jim@meyering.net>
110893         * m4/regex.m4: The `regex' struct is both input and output.
110894         Initialize it before each use.  Patch by Tim Waugh.
110896 2003-01-16  Bruno Haible  <bruno@clisp.org>
110898         * MODULES.html.sh: Add a table of contents. Add the module name as
110899         leftmost column. Add hyperlinks.
110901 2003-01-15  Bruno Haible  <bruno@clisp.org>
110903         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
110905 2003-01-15  Bruno Haible  <bruno@clisp.org>
110907         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
110908         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
110909         suffix.
110911 2003-01-15  Bruno Haible  <bruno@clisp.org>
110913         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
110915 2003-01-15  Bruno Haible  <bruno@clisp.org>
110917         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
110918         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
110920 2003-01-14  Jim Meyering  <jim@meyering.net>
110922         * lib/same.c (same_name): Tweak a comment.
110924 2003-01-14  Bruno Haible  <bruno@clisp.org>
110926         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
110927         when a string comparison is sufficient.
110929 2003-01-14  Bruno Haible  <bruno@clisp.org>
110931         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
110932         'unsigned int'.
110934 2003-01-14  Bruno Haible  <bruno@clisp.org>
110936         * lib/hash-pjw.c: Add comment about low quality of this function.
110938 2003-01-13  Bruno Haible  <bruno@clisp.org>
110940         * modules/stpcpy: Distribute lib/stpcpy.h.
110941         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
110943 2003-01-13  Bruno Haible  <bruno@clisp.org>
110945         * modules/*: Add a description.
110946         * modules/strpbrk: Fix Makefile.am snippet.
110947         * modules/strtoimax: Fix dependencies.
110948         * modules/strtoumax: Likewise.
110950 2003-01-13  Bruno Haible  <bruno@clisp.org>
110952         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
110953         * modules/alloca (Makefile.am): All object files depend on alloca.h.
110954         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
110956 2003-01-13  Bruno Haible  <bruno@clisp.org>
110958         * gnulib-tool (func_create_testdir): Store config/* files in the main
110959         directory.
110960         * config.rpath: Move to ...
110961         * config/config.rpath: ... here.
110962         * modules/gettext: Contains config/config.rpath, not config.rpath.
110963         * modules/iconv: Likewise.
110965 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110967         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110968         to avoid collisions with libcurses and libreadline.
110970         * m4/getstr.m4: Remove.
110971         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
110973 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110975         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110976         to avoid collisions with libcurses and libreadline.
110978         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
110979         * lib/getstr.h, getstr.c: Remove.
110980         * lib/getline.c: Include "getline.h", to check interface.
110981         Move body of old getstr.c here: this defines MIN_CHUNK and
110982         declares getdelim2, which is renamed from getstr.
110983         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
110985         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
110986         All uses changed.
110987         * lib/linebuffer.h: Likewise.
110988         (readline): Remove backward-compatibility macro.
110990 2003-01-12  Paul Eggert  <eggert@twinsun.com>
110992         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
110993         to avoid collisions with libcurses and libreadline.
110994         * getstr: Remove.
110995         * MODULES.html.sh: Remove getstr.
110996         * modules/getline: Depend on unlocked-io, not getstr.
110998 2003-01-12  Jim Meyering  <jim@meyering.net>
111000         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
111002 2003-01-10  Bruno Haible  <bruno@clisp.org>
111004         * modules/alloca: Change Makefile.am requirements. Simplify Include
111005         requirements. Add lib/alloca_.h to file list.
111007 2003-01-10  Bruno Haible  <bruno@clisp.org>
111009         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
111011 2003-01-10  Bruno Haible  <bruno@clisp.org>
111013         * lib/alloca_.h: New file.
111014         * lib/getdate.y: Unconditionally include alloca.h.
111015         * lib/makepath.c: Likewise.
111016         * lib/setenv.c: Likewise.
111017         * lib/userspec.c: Likewise.
111019 2003-01-09  Karl Berry  <karl@gnu.org>
111021         * MODULES.html.sh: include `dirname $0` in PATH, to find
111022         gnulib-tool.
111024 2003-01-09  Bruno Haible  <bruno@clisp.org>
111026         * modules/stdbool: Change configure.ac, Makefile.am requirements.
111027         Simplify Include requirements. Add lib/stdbool.h.in to file list.
111029 2003-01-09  Bruno Haible  <bruno@clisp.org>
111031         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
111033 2003-01-09  Bruno Haible  <bruno@clisp.org>
111035         * lib/stdbool.h.in: New file.
111037 2003-01-09  Bruno Haible  <bruno@clisp.org>
111039         * gnulib-tool (func_all_modules): Ignore files ending in ~.
111040         * MODULES.html.sh: Likewise.
111042 2003-01-08  Jim Meyering  <jim@meyering.net>
111044         * lib/full-write.c: Undefine and define-away `const' after inclusion
111045         of errno.h, not before.  Suggestion from Bruno Haible.
111047 2003-01-08  Bruno Haible  <bruno@clisp.org>
111049         * modules/full-read: Depend on full-write.
111051 2003-01-08  Bruno Haible  <bruno@clisp.org>
111053         * lib/safe-read.c: Include specification header first, to ensure its
111054         selfcontainedness.
111055         * lib/full-write.c: Likewise.
111057 2003-01-07  Jim Meyering  <jim@meyering.net>
111059         * lib/full-write.c: Rework so that it may serve to define full_read,
111060         too.
111061         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
111063 2003-01-07  Bruno Haible  <bruno@clisp.org>
111065         * lib/strtoimax.c: Include <stdint.h> as an alternative to
111066         <inttypes.h>.
111067         * lib/xstrtol.h: Likewise.
111068         * lib/xstrtoimax.c: Likewise.
111069         * lib/xstrtoumax.c: Likewise.
111070         * lib/human.h: Likewise.
111072         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
111073         on systems that have <inttypes.h> but not <stdint.h>.
111075 2003-01-07  Bruno Haible  <bruno@clisp.org>
111077         * MODULES.html.sh: Add copyright notice.
111078         (missed_files): Omit CVS directory entries.
111079         (func_module): Make it work with sed-3.02.
111080         * MODULES.txt: Remove file.
111082 2003-01-06  Jim Meyering  <jim@meyering.net>
111084         * lib/version-etc.c: Update year in translatable copyright string.
111086 2003-01-03  Karl Berry  <karl@gnu.org>
111088         * config/config.{guess,sub}: update from prep.
111090 2003-01-02  Karl Berry  <karl@gnu.org>
111092         * doc/COPYING.DOC: belatedly updated to 1.2.
111094 2003-01-01  Karl Berry  <karl@gnu.org>
111096         * gnulib-tool (func_verify_module): report module name $module in
111097         error message, not $1.
111098         * gnulib-tool (create-testdir): don't complain if destdir couldn't
111099         be created, only if it doesn't exist.
111100         * gnulib-tool (last_checkin_date): don't expand the $Date here.
111102 2002-12-31  Paul Eggert  <eggert@twinsun.com>
111104         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
111106 2002-12-31  Paul Eggert  <eggert@twinsun.com>
111108         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
111109         memcmp if strcoll doesn't work.
111111 2002-12-31  Bruno Haible  <bruno@clisp.org>
111113         * lib/utime.c (utime_null): No need to call ftruncate if the file was
111114         nonempty.
111116 2002-12-31  Bruno Haible  <bruno@clisp.org>
111118         * lib/memcoll.c (STRCOLL): New macro.
111119         (memcoll): Use it.
111121 2002-12-31  Bruno Haible  <bruno@clisp.org>
111123         * lib/localcharset.h: New file.
111124         * lib/localcharset.c: Include it.
111125         * lib/unicodeio.c: Likewise.
111127 2002-12-31  Bruno Haible  <bruno@clisp.org>
111129         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
111130         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
111132 2002-12-31  Bruno Haible  <bruno@clisp.org>
111134         * lib/getline.h: Include <stddef.h>, for size_t.
111136         * lib/unicodeio.h: Include <stddef.h>, for size_t.
111137         * lib/unicodeio.c: Don't include <stddef.h>.
111139 2002-12-31  Bruno Haible  <bruno@clisp.org>
111141         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
111142         HAVE_TM_ZONE.
111144 2002-12-24  Karl Berry  <karl@gnu.org>
111146         * config/config.guess: update from prep.
111148 2002-12-24  Bruno Haible  <bruno@clisp.org>
111150         General infrasructure.
111151         * m4/README: Rewritten.
111152         * m4/onceonly.m4: New file.
111153         * m4/onceonly_2_57.m4: New file.
111155         Module atexit.
111156         * m4/atexit.m4: New file.
111158         Module strtod.
111159         * m4/strtod.m4: New file.
111161         Module strtol.
111162         * m4/strtol.m4: New file.
111164         Module strtoul.
111165         * m4/strtoul.m4: New file.
111167         Module memchr.
111168         * m4/memchr.m4: New file.
111170         Module memcmp.
111171         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
111172         (jm_FUNC_MEMCMP): Invoke it.
111174         Module memcpy.
111175         * m4/memcpy.m4: New file.
111177         Module memmove.
111178         * m4/memmove.m4: New file.
111180         Module memset.
111181         * m4/memset.m4: New file.
111183         Module strcspn.
111184         * m4/strcspn.m4: New file.
111186         Module strpbrk.
111187         * m4/strpbrk.m4: New file.
111189         Module strstr.
111190         * m4/strstr.m4: New file.
111192         Module strerror.
111193         * m4/strerror.m4: New file.
111195         Module mktime.
111196         * m4/mktime.m4: Renamed from jm-mktime.m4.
111197         (gl_PREREQ_MKTIME): New macro.
111198         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
111200         Module malloc.
111201         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
111202         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
111203         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
111205         Module realloc.
111206         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
111207         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
111208         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
111210         Module strftime.
111211         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
111212         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
111213         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
111214         gl_TM_GMTOFF.
111215         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
111217         Module xalloc.
111218         * m4/xalloc.m4: New file.
111220         Module alloca.
111221         * m4/alloca.m4: New file.
111223         Module putenv.
111224         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
111225         (jm_FUNC_PUTENV): Invoke it.
111227         Module setenv.
111228         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
111229         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
111230         when invoked twice.
111231         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
111232         gt_FUNC_SETENV.
111234         Module memrchr.
111235         * m4/memrchr.m4: New file.
111237         Module stpcpy.
111238         * m4/stpcpy.m4: New file.
111240         Module strcase.
111241         * m4/strcase.m4: New file.
111243         Module strdup.
111244         * m4/strdup.m4: New file.
111246         Module strnlen.
111247         * m4/strnlen.m4: New file.
111249         Module strndup.
111250         * m4/strndup.m4: New file.
111252         Module xstrtod.
111253         * m4/xstrtod.m4: New file.
111255         Module xstrtol.
111256         * m4/xstrtol.m4: New file.
111258         Module getdate.
111259         * m4/getdate.m4: New file.
111261         Module unlocked-io.
111262         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
111263         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
111264         * m4/jm-glibc-io.m4n: Remove file.
111266         Module long-options.
111267         * m4/long-options.m4: New file.
111269         Module md5.
111270         * m4/md5.m4: New file.
111272         Module sha.
111273         * m4/sha.m4: New file.
111275         Module getstr.
111276         * m4/getstr.m4: New file.
111278         Module getline.
111279         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
111280         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
111281         <sys/types.h>, for size_t. Use the function name gnu_getline, not
111282         simply getline. Infoke gl_PREREQ_GETLINE.
111284         Module obstack.
111285         * m4/obstack.m4: New file.
111287         Module hash.
111288         * m4/hash.m4: New file.
111290         Module readtokens.
111291         * m4/readtokens.m4: New file.
111293         Module strverscmp.
111294         * m4/strverscmp.m4: New file.
111296         Module stdbool.
111297         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
111298         OSF/1.
111300         Module strtoll.
111301         * m4/strtoll.m4: New file.
111303         Module strtoull.
111304         * m4/strtoull.m4: New file.
111306         Module strtoimax.
111307         * m4/strtoimax.m4: New file.
111309         Module strtoumax.
111310         * m4/strtoumax.m4: New file.
111312         Module xstrtoimax.
111313         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
111314         jm_AC_PREREQ_XSTRTOIMAX.
111315         Moved the strtol prerequisites to strtol.m4.
111316         Moved the strtoll prerequisites to strtoll.m4.
111317         Moved the strtoimax prerequisites to strtoimax.m4.
111319         Module xstrtoumax.
111320         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
111321         jm_AC_PREREQ_XSTRTOUMAX.
111322         Moved the strtoul prerequisites to strtoul.m4.
111323         Moved the strtoull prerequisites to strtoull.m4.
111324         Moved the strtoumax prerequisites to strtoumax.m4.
111326         Module chown.
111327         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
111328         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
111330         Module dup2.
111331         * m4/dup2.m4: New file.
111333         Module ftruncate.
111334         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
111335         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
111337         Module getgroups.
111338         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
111339         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
111341         Module gettimeofday.
111342         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
111343         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
111344         gl_PREREQ_GETTIMEOFDAY.
111346         Module mkdir.
111347         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
111348         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
111350         Module mkstemp.
111351         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
111352         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
111353         jm_AC_TYPE_UINTMAX_T.
111354         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
111356         Module stat.
111357         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
111358         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
111360         Module lstat.
111361         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
111362         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
111364         Module timespec.
111365         * m4/timespec.m4 (gl_TIMESPEC): New macro.
111366         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
111367         * m4/st_mtim.m4: Indentation.
111369         Module nanosleep.
111370         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
111371         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
111372         gl_PREREQ_NANOSLEEP.
111374         Module regex.
111375         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
111376         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
111377         (gl_REGEX): New macro.
111379         Module rename.
111380         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
111381         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
111383         Module rmdir.
111384         * m4/rmdir.m4: New file.
111386         Module utime.
111387         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
111388         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
111389         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
111391         Module dirname.
111392         * m4/dirname.m4: New file.
111394         Module getopt.
111395         * m4/getopt.m4: New file.
111397         Module unistd-safer.
111398         * m4/unistd-safer.m4: New file.
111400         Module fnmatch.
111401         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
111402         declaration.
111403         (gl_PREREQ_FNMATCH_EXTRA): New macro.
111404         (gl_FUNC_FNMATCH_POSIX): New macro.
111405         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
111406         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
111407         simply fnmatch.
111409         Module exclude.
111410         * m4/exclude.m4: New file.
111412         Module human.
111413         * m4/human.m4: New file.
111415         Module acl.
111416         * m4/acl.m4: Nop.
111418         Module backupfile.
111419         * m4/backupfile.m4: New file.
111420         * m4/d-ino.m4: Indentation.
111422         Module fsusage.
111423         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
111424         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
111425         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
111427         Module dirfd.
111428         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
111429         requirements.
111431         Module euidaccess.
111432         * m4/euidaccess.m4: New file.
111434         Module file-type.
111435         * m4/file-type.m4: New file.
111437         Module fileblocks.
111438         * m4/fileblocks.m4: New file.
111440         Module filemode.
111441         * m4/filemode.m4: New file.
111443         Module isdir.
111444         * m4/isdir.m4: New file.
111446         Module lchown.
111447         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
111448         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
111450         Module makepath.
111451         * m4/makepath.m4: New file.
111453         Module modechange.
111454         * m4/modechange.m4: New file.
111456         Module mountlist.
111457         * m4/mountlist.m4: New file.
111458         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
111459         Indentation.
111461         Module path-concat.
111462         * m4/path-concat.m4: New file.
111464         Module pathmax.
111465         * m4/pathmax.m4: New file.
111467         Module same.
111468         * m4/same.m4: New file.
111470         Module save-cwd.
111471         * m4/save-cwd.m4: New file.
111473         Module savedir.
111474         * m4/savedir.m4: New file.
111476         Module xgetcwd.
111477         * m4/xgetcwd.m4: New file.
111478         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
111480         Module xreadlink.
111481         * m4/xreadlink.m4: New file.
111483         Module safe-read.
111484         * m4/safe-read.m4: New file.
111486         Module safe-write.
111487         * m4/safe-write.m4: New file.
111489         Module closeout.
111490         * m4/closeout.m4: New file.
111492         Module stdio-safer.
111493         * m4/stdio-safer.m4: New file.
111495         Module getpass.
111496         * m4/getpass.m4: New file.
111498         Module getugroups.
111499         * m4/getugroups.m4: New file.
111501         Module group-member.
111502         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
111503         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
111505         Module idcache.
111506         * m4/idcache.m4: New file.
111508         Module userspec.
111509         * m4/userspec.m4: New file.
111511         Module gettime.
111512         * m4/clock_time.m4: New file.
111513         * m4/gettime.m4: New file.
111515         Module settime.
111516         * m4/settime.m4: New file.
111518         Module posixtm.
111519         * m4/posixtm.m4: New file.
111521         Module gethostname.
111522         * m4/gethostname.m4: New file.
111524         Module canon-host.
111525         * m4/canon-host.m4: New file.
111527         Module gettext.
111528         * m4/codeset.m4: New file, from gettext-0.11.5.
111529         * m4/gettext.m4: New file, from gettext-0.11.5.
111530         * m4/glibc21.m4: New file, from gettext-0.11.5.
111531         * m4/iconv.m4: New file, from gettext-0.11.5.
111532         * m4/intdiv0.m4: New file, from gettext-0.11.5.
111533         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
111534         * m4/inttypes.m4: New file, from gettext-0.11.5.
111535         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
111536         * m4/isc-posix.m4: New file, from gettext-0.11.5.
111537         * m4/lcmessage.m4: New file, from gettext-0.11.5.
111538         * m4/lib-ld.m4: New file, from gettext-0.11.5.
111539         * m4/lib-link.m4: New file, from gettext-0.11.5.
111540         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
111541         * m4/progtest.m4: New file, from gettext-0.11.5.
111542         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
111543         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
111544         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
111546         Module localcharset.
111547         * m4/localcharset.m4: New file.
111549         Module hard-locale.
111550         * m4/hard-locale.m4: New file.
111552         Module mbswidth.
111553         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
111554         onceonly macros.
111555         * m4/mbrtowc.m4: Add comment.
111557         Module memcasecmp.
111558         * m4/memcasecmp.m4: New file.
111560         Module memcoll.
111561         * m4/memcoll.m4: New file.
111563         Module unicodeio.
111564         * m4/unicodeio.m4: New file.
111566         Module rpmatch.
111567         * m4/rpmatch.m4: New file.
111569         Module yesno.
111570         * m4/yesno.m4: New file.
111572         Module exitfail.
111573         * m4/exitfail.m4: New file.
111575         Module c-stack.
111576         * m4/c-stack.m4 (gl_C_STACK): New macro.
111577         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
111579         Module error.
111580         * m4/error.m4 (gl_ERROR): New macro.
111581         (jm_PREREQ_ERROR): Use onceonly macros.
111583         Module fatal.
111584         * m4/fatal.m4: New file.
111586         Module getloadavg.
111587         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
111588         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
111590         Module getpagesize.
111591         * m4/getpagesize.m4: New file.
111593         Module getusershell.
111594         * m4/getusershell.m4: New file.
111596         Module physmem.
111597         * m4/physmem.m4: New file.
111599         Module posixver.
111600         * m4/posixver.m4: New file.
111602         Module quotearg.
111603         * m4/quotearg.m4: New file.
111605         Module quote.
111606         * m4/quote.m4: New file.
111608         Module readutmp.
111609         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
111611         Module sig2str.
111612         * m4/sig2str.m4: New file.
111614         Other.
111615         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
111616         ulonglong.m4.
111617         * m4/intmax_t.m4: New file.
111618         * m4/d-type.m4: Indentation.
111619         * m4/jm-macros.m4: Update.
111620         * m4/prereq.m4 (jm_PREREQ): Update.
111621         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
111622         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
111623         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
111624         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
111625         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
111626         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
111627         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
111628         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
111629         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
111630         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
111631         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
111632         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
111633         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
111634         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
111635         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
111636         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
111637         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
111638         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
111639         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
111641 2002-12-24  Bruno Haible  <bruno@clisp.org>
111643         * MODULES.txt: Update according to m4/ changes.
111645         Module gettext.
111646         * config.rpath: New file, from gettext-0.11.5.
111648         * modules/*: New module descriptions.
111649         * gnulib-tool: New file.
111650         * MODULES.html.sh: New file.
111652 2002-12-21  Karl Berry  <karl@gnu.org>
111654         * doc/fdl.texi: update to version 1.2.
111656 2002-12-19  Karl Berry  <karl@gnu.org>
111658         * config/config.guess: update from prep.
111660 2002-12-18  Bruno Haible  <bruno@clisp.org>
111662         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
111663         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
111665 2002-12-17  Bruno Haible  <bruno@clisp.org>
111667         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
111668         stdlib.h, string.h.
111670 2002-12-17  Bruno Haible  <bruno@clisp.org>
111672         * lib/canon-host.c (strdup): Remove unused declaration.
111674         * lib/fsusage.c: Include full_read.h.
111675         (get_fs_usage): Use full_read instead of safe_read.
111677         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
111679 2002-12-12  Karl Berry  <karl@gnu.org>
111681         * config/config.guess: update from prep.
111683 2002-12-11  Bruno Haible  <bruno@clisp.org>
111685         * m4/setenv.m4: New file, from gettext-0.11.5.
111687 2002-12-11  Bruno Haible  <bruno@clisp.org>
111689         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
111690         not unsetenv().
111691         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
111692         modifications:
111694         2002-12-11  Bruno Haible  <bruno@clisp.org>
111696                 * setenv.c (alloca): Fall back to malloc.
111697                 (freea): New macro.
111698                 (setenv): Use freea() to free memory allocated with alloca().
111700         2002-11-13  Bruno Haible  <bruno@clisp.org>
111702                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
111703                 function declarations.
111704                 * unsetenv.c (unsetenv): Likewise.
111706         2002-03-04  Bruno Haible  <bruno@clisp.org>
111708                 Portability to AIX 4.3.3.
111709                 * unsetenv.c: New file, extracted from setenv.c.
111710                 * setenv.c: Move the unsetenv() function to unsetenv.c.
111712         2001-12-20  Bruno Haible  <bruno@clisp.org>
111714                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
111715                 use malloc instead. For SunOS 4.
111717         2001-12-11  Bruno Haible  <bruno@clisp.org>
111719                 * setenv.c: Declare alloca.
111720                 (compar_fn_t): New typedef.
111721                 (KNOWN_VALUE, STORE_VALUE): Use it.
111723         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
111724         setenv.h.
111726 2002-12-10  Paul Eggert  <eggert@twinsun.com>
111728         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
111729         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
111730         Choose values that are less likely to collide with system fnmatch
111731         options.
111732         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
111733         defined (e.g., a pure POSIX system).
111734         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
111735         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
111737 2002-12-06  Paul Eggert  <eggert@twinsun.com>
111739         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
111740         a pain in practice to deal with generated m4 files.  This change
111741         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
111743         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
111744         and jm-glibc-io.m4, as they are no longer a special case.
111745         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
111746         kludge and the auto-generation stuff.  Check only whether the
111747         functions are declared, not whether they exist, since older hosts
111748         that don't declare the functions can't use the optimization anyway.
111750 2002-12-06  Jim Meyering  <jim@meyering.net>
111752         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
111754         Merge in changes from libc's misc/error.c, in preparation
111755         for the merge of gnulib's changes back into libc.
111757         * lib/error.c (_): Define only if not already defined.
111758         Move definition to follow all #include directives.
111759         Include unlocked-io.h only if !_LIBC.
111760         [_LIBC]: Include <libio/libioP.h>.
111761         [USE_IN_LIBIO]: Include <libio/iolibio.h>
111762         (fflush): Tweak definition to use INTUSE.
111763         (putc): Define.
111765 2002-12-05  Paul Eggert  <eggert@twinsun.com>
111767         * lib/alloca.c [defined emacs]: Include "lisp.h".
111768         (xalloc_die) [defined emacs]: New macro.
111769         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
111770         [! defined emacs]: Include <xalloc.h>.
111771         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
111772         (pointer): Typedef to POINTER_TYPE *.
111773         (malloc): Remove decl; we now always use xmalloc.
111774         (alloca): Use old-style definition, since Emacs needs this.
111775         Check for arithmetic overflow when computing combined size.
111777 2002-12-04  Paul Eggert  <eggert@twinsun.com>
111779         Do not generate unlocked-io.h automatically, since it's easier to
111780         maintain it by hand.
111782         * lib/unlocked-io.h: New file, from GNU diffutils,
111783         but with proper copyright notice and attribution.
111784         * lib/gen-uio: Remove.
111785         * lib/Makefile.am: Add copyright notice.
111786         (libfetish_a_SOURCES): Add unlocked-io.h.
111787         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
111788         (DISTCLEANFILES, io_functions): Remove macros.
111789         (EXTRA_DIST): Remove gen_uio.
111790         (unlocked-io.h): Remove rule.
111792 2002-12-04  Jim Meyering  <jim@meyering.net>
111794         Reflect the fact that stat.c and lstat.c are no longer generated.
111795         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
111796         (DISTCLEANFILES): Likewise.
111797         (EXTRA_DIST): Likewise.
111798         (all_local): Don't depend on stat.c or lstat.c.
111799         (stat.c, lstat.c): Remove rules.
111800         (EXTRA_DIST): Remove xstat.in.
111802         * lib/xstat.in: Remove file.  Contents moved into stat.c.
111803         * lib/stat.c: New file.  Contents mostly from xstat.in.
111804         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
111805         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
111807         * lib/safe-read.c: Rework so that it may serve to define safe_write,
111808         too.
111809         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
111811 2002-12-03  Jim Meyering  <jim@meyering.net>
111813         * lib/safe-read.c, safe-write.c: Change variable names and comments,
111814         but not semantics, to minimize the differences between these two files.
111815         (safe_read): Change comment to mention SAFE_READ_ERROR.
111817         * lib/safe-read.c (IS_EINTR): Define.
111818         (safe_read): Use IS_EINTR in place of in-function cpp directives.
111820 2002-12-02  Jim Meyering  <jim@meyering.net>
111822         * lib/safe-read.c (EINTR): Define.
111823         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
111824         (INT_MAX): Provide fallback.
111825         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
111827         * lib/safe-read.h (SAFE_READ_ERROR): Define.
111829 2002-12-02  Bruno Haible  <bruno@clisp.org>
111831         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
111832         Define, taken from safe-read.c.
111833         (INT_MAX): Provide fallback.
111834         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
111835         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
111837         * lib/safe-read.c (EINTR): Remove definition.
111838         (safe_read): Don't use EINTR if it is absent.
111840 2002-12-01  Jim Meyering  <jim@meyering.net>
111842         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
111843         zero.
111844         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
111846 2002-11-27  Paul Eggert  <eggert@twinsun.com>
111848         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
111849         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
111850         with `if (! (value < limit)) abort ();', for readability.
111852 2002-11-26  Karl Berry  <karl@gnu.org>
111854         * lib/strdup.c: copy from libc again, with jim's ok.
111855         * lib/.cppi-disable: re-add strdup.c
111857 2002-11-25  Karl Berry  <karl@gnu.org>
111859         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
111860         instead of "strtol.c".
111862 2002-11-25  Karl Berry  <karl@gnu.org>
111864         * config/install-sh: update from automake for variable quoting, $0 in
111865         error msgs, etc.
111867         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
111868         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
111869         entry.
111871 2002-11-25  Jim Meyering  <jim@meyering.net>
111873         * lib/mktime.c: Sync from libc, now that it has the latest fix.
111875 2002-11-24  Karl Berry  <karl@gnu.org>
111877         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
111878         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
111880 2002-11-24  Jim Meyering  <jim@meyering.net>
111882         Update from coreutils:
111884         * lib/mktime.c: Merge in changes from libc.
111886         Avoid a link-time failure on some Linux systems.
111887         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
111888         (otherwise).
111889         (__mon_yday): Declare with the STATIC attribute.
111890         (__mktime_internal): Likewise.
111891         Based on a report from Greg Schafer.
111893 2002-11-23  Jim Meyering  <jim@meyering.net>
111895         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
111896         Use `unsigned', not `int', as type of index.
111898         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
111900         * lib/fsusage.c: Remove unneeded parentheses around operands of
111901         `defined'.
111903 2002-11-22  Paul Eggert  <eggert@twinsun.com>
111905         * lib/quotearg.h: Allow multiple inclusion by surrounding with
111906         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
111907         so that we can be included first.
111908         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
111909         * lib/quotearg.c: Include quotearg.h immediately after config.h.
111910         No need to include stddef.h or sys/types.h any more.
111911         Surround local include files with "", not "<>".
111912         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
111913         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
111914         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
111915         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
111916         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
111917         (ISPRINT): Remove; no longer needed now that we assume C89.
111919         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
111920         Preserve errno.
111922         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
111923         quotearg_char): Use SIZE_MAX rather than
111924         (size_t) -1 when we are talking about "infinity".
111926         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
111928 2002-11-22  Paul Eggert  <eggert@twinsun.com>
111930         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
111931         hint that one should use `if (! x) abort ();' rather than `assert
111932         (x);', and anyway it's one less thing to worry about configuring.
111933         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
111934         hash_rehash, hash_insert): Use abort rather than assert.
111936 2002-11-22  Bruno Haible  <bruno@clisp.org>
111938         * lib/safe-read.h: Assume C89. Add comments.
111939         (safe_read): Change return type to size_t.
111940         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
111941         byte counts > SSIZE_MAX correctly.
111942         * lib/safe-write.h: New file.
111943         * lib/safe-write.c: New file.
111944         * lib/full-read.h: New file.
111945         * lib/full-read.c: New file.
111946         * lib/full-write.h: Assume C89. Add comments.
111947         * lib/full-write.c: Include safe-write.h.
111948         (full_write): Rewritten to use safe_write.
111949         Suggested by Jim Meyering and Paul Eggert.
111951 2002-11-21  Jim Meyering  <jim@meyering.net>
111953         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
111955         Merge in changes from the coreutils.
111957         2002-09-25  Paul Eggert  <eggert@twinsun.com>
111958         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
111959         <stdint.h>.
111960         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
111961         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
111962         int.  Work more efficiently if X is the same width as uintmax_t.
111963         Do not compare X to -1, to avoid bogus compiler warning.
111964         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
111965         Don't assume that f_frsize and f_bsize are the same type.
111967         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
111968         warning on FreeBSD.
111970         * lib/makepath.c (make_path): Restore umask *before* creating the final
111971         component.
111972         (make_path): Minor reformatting.
111974         * lib/xmalloc.c: Adjust to work with new autoconf macros,
111975         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
111976         HAVE_MALLOC/HAVE_REALLOC.
111978         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
111979         dummy ones.  At least on GNU/Linux systems, `auto' means something
111980         else.
111981         From Michael Stone.
111983 2002-11-21  Bruno Haible  <bruno@clisp.org>
111985         Remove case insensitive option matching.
111986         * lib/argmatch.h (argcasematch): Remove declaration.
111987         (ARGCASEMATCH): Remove macro.
111988         (__xargmatch_internal): Remove case_sensitive argument.
111989         (XARGMATCH): Update.
111990         (XARGCASEMATCH): Remove macro.
111991         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
111992         case_sensitive argument.
111993         (argcasematch): Remove function.
111994         (__xargmatch_internal): Remove case_sensitive argument.
111995         (main): Use XARGMATCH instead of XARGCASEMATCH.
111997         * lib/xmalloc.c: Change compile-time error message. Add comment about
111998         required autoconf version.
112000 2002-11-20  Paul Eggert  <eggert@twinsun.com>
112002         Merge argmatch cleanups from Bison.  Assume C89.
112004         * lib/argmatch.c: Include config.h here, not in argmatch.h.
112005         Include stdlib.h, for EXIT_FAILURE.
112006         Always include <string.h>, since we assume C89.
112007         (EXIT_FAILURE): Remove pre-C89 bug workaround.
112008         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
112009         Include <stddef.h> instead, since it's all we need for size_t.
112010         (PARAMS): Remove.  All uses removed.
112011         (ARRAY_CARDINALITY): Do not bother to #undef.
112012         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
112013         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
112014         Remove unnecessary parentheses.
112015         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
112016         Insert necessary parentheses.
112017         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
112018         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
112020 2002-11-19  Bruno Haible  <bruno@clisp.org>
112022         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
112023         * lib/mbswidth.h: Include <stddef.h>, for size_t.
112025         * lib/mbswidth.h (PARAMS): Remove macro.
112026         (mbswidth, mbsnwidth): Use ANSI C function declarations.
112027         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
112029         * lib/gcd.h (PARAMS): Remove macro.
112030         (gcd): Use ANSI C function declarations.
112031         * lib/gcd.c (gcd): Likewise.
112033 2002-11-15  Bruno Haible  <bruno@clisp.org>
112035         * lib/strcspn.c: Include <stddef.h>.
112036         (strcspn): Use ANSI C function declaration. Change return type to
112037         size_t. Use NULL.
112038         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
112039         (strpbrk): Use NULL.
112040         * lib/strpbrk.h (PARAMS): Remove macro.
112041         (strpbrk): Use ANSI C function declaration.
112042         * lib/strstr.c: Don't include <sys/types.h>.
112043         * lib/strstr.h (PARAMS): Remove macro.
112044         (strstr): Use ANSI C function declarations.
112046 2002-11-14  Karl Berry  <karl@gnu.org>
112048         * config/mkinstalldirs: `do' on separate line, instead of
112049         `for var; do'.
112051 2002-11-06  Bruno Haible  <bruno@clisp.org>
112053         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
112054         * lib/gcd.c (gcd): Likewise.
112056 2002-11-05  Bruno Haible  <bruno@clisp.org>
112058         * lib/gcd.h: New file, from gettext-0.11.5.
112059         * lib/gcd.c: New file, from gettext-0.11.5.
112061 2002-11-05  Bruno Haible  <bruno@clisp.org>
112063         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112064         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112065         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112066         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112068         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
112069         <libintl.h>.
112070         * lib/makepath.c: Include gettext.h instead of <locale.h> and
112071         <libintl.h>.
112073         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
112074         * lib/human.c: Include gettext.h instead of <libintl.h>.
112075         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
112076         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
112077         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
112078         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
112079         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
112080         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
112081         (textdomain): Remove definition.
112082         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
112084         * lib/long-options.c: Remove include of <libintl.h> and definition of
112085         _.
112086         * lib/same.c: Remove include of <libintl.h> and definition of _.
112088 2002-11-04  Owen Taylor  <otaylor@redhat.com>
112090         * lib/config.charset: A few additions for Solaris.
112092 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
112094         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
112095         * lib/localcharset.c (locale_charset): Declare as extern "C".
112097 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
112099         * lib/config.charset: msdos in uk_UA uses CP1125.
112101 2002-11-04  Bruno Haible  <bruno@clisp.org>
112103         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
112104         * lib/strcase.h: New file, from GNU gettext-0.11.5.
112105         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
112106         * lib/strstr.h: New file, from GNU gettext-0.11.5.
112107         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
112109 2002-11-04  Bruno Haible  <bruno@clisp.org>
112111         * lib/localcharset.c (locale_charset): Don't return an empty string.
112113 2002-11-04  Bruno Haible  <bruno@clisp.org>
112115         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
112116         aliases.
112118 2002-11-04  Bruno Haible  <bruno@clisp.org>
112120         * lib/config.charset: Update for newest glibc. Add canonical names
112121         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
112123 2002-11-04  Bruno Haible  <bruno@clisp.org>
112125         * lib/config.charset: Add support for NetBSD.
112127 2002-11-04  Bruno Haible  <bruno@clisp.org>
112129         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
112131 2002-11-01  Bruno Haible  <bruno@clisp.org>
112133         * configure.in: Add AC_CONFIG_AUX_DIR call.
112134         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
112135         test/Makefile.
112136         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
112138 2002-09-28  Karl Berry  <karl@gnu.org>
112140         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
112141         installed automake until the next release, since changes have been
112142         made.
112144 2002-09-25  Karl Berry  <karl@gnu.org>
112146         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
112147         * lib/getopt*: copy from libc/posix.
112148         * lib/gettext.h: copy from gettext.
112149         * lib/.cppi-disable: add strdup.c, gettext.h.
112151 2002-09-25  Karl Berry  <karl@gnu.org>
112153         * config/srclist.txt: enable gettext.h check.
112154         * config/config.{guess,sub}: update from prep.
112155         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
112156                 from automake 1.6.3.
112157         See srclist*.
112159 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
112161         * regex.c (PATFETCH): Remove the translating fetch.
112162         (PATFETCH_RAW): Rename to PATFETCH.
112163         (set_image_of_range): New fun.
112164         (SET_RANGE_TABLE_WORK_AREA): Use it.
112165         (regex_compile): Don't translate the pattern chars so eagerly.
112166         Only do it when inserting an `exactn' bytecode or when handling
112167         a char-range.
112168         (mutually_exclusive_p): Avoid empty statement.
112170 2002-07-06  Jim Meyering  <meyering@lucent.com>
112172         * m4/README: Don't mention Makefile.am.in.
112173         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
112175 2002-07-01  Jim Meyering  <meyering@lucent.com>
112177         * lib/c-stack.c: Include sys/time.h.
112178         From Volker Borchert.
112180 2002-06-26  Paul Eggert  <eggert@twinsun.com>
112182         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
112184 2002-06-26  Paul Eggert  <eggert@twinsun.com>
112186         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
112187         New macro.  Use it uniformly instead of
112188         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
112189         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
112190         reported by Vin Shelton.
112192 2002-06-22  Paul Eggert  <eggert@twinsun.com>
112194         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
112195         Do not assume SA_SIGINFO behavior.
112196         Bug reported by Jim Meyering on NetBSD 1.5.2.
112198 2002-06-22  Jim Meyering  <meyering@lucent.com>
112200         * m4/c-stack.m4: New file, from diffutils-2.8.2.
112201         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
112203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
112204         now that configure.ac uses AC_GNU_SOURCE.
112205         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
112206         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
112208         Update to latest tools.  Suggestions from Paul Eggert.
112209         * m4/stdbool.m4: New file, from diffutils-2.8.2.
112210         * m4/gnu-source.m4: Update from diffutils-2.8.2.
112211         * m4/fnmatch.m4: Likewise.
112212         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
112213         to AC_HEADER_STDBOOL
112215 2002-06-22  Jim Meyering  <meyering@lucent.com>
112217         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
112218         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
112220 2002-06-22  Jim Meyering  <meyering@lucent.com>
112222         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
112224         * lib/exitfail.c, exitfail.h: Likewise.
112225         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
112227         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
112228         of fnmatch.h.
112229         (EXTRA_DIST): Add fnmatch_loop.c.
112230         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
112232         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
112233         * lib/fnmatch.c: Update from diffutils-2.8.2.
112234         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
112235         * lib/fnmatch.h: Remove file.
112237 2002-06-21  Jim Meyering  <meyering@lucent.com>
112239         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
112240         * m4/mbrtowc.m4: Likewise.
112242         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
112243         * m4/mbswidth.m4: Reflect name change:
112244         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
112245         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
112247         * m4/lib-link.m4: Update from gettext-0.11.2.
112248         * m4/gettext.m4: Likewise.
112250         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
112251         From Alfred M. Szmidt.
112253 2002-06-18  Paul Eggert  <eggert@twinsun.com>
112255         * lib/file-type.h: Report an error if neither S_ISREG nor
112256         S_IFREG is defined, instead of using a test specific to glibc
112257         2.2.  This should be safe, since POSIX requires S_ISREG and
112258         Unix Version 7 had S_IFREG.  We don't need to check for
112259         <sys/types.h> since we don't use any symbols that it defines.
112261 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
112263         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
112264         $@-t, so that each temporary file name is unique and valid in the first
112265         8 characters, for operation under DOS.
112267 2002-06-15  Paul Eggert  <eggert@twinsun.com>
112269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
112271 2002-06-15  Jim Meyering  <meyering@lucent.com>
112273         Work even with DJGPP 2.03, which lacks support for symlinks.
112274         From Richard Dawe.
112275         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
112276         is defined.
112277         * lib/lchown.c (S_ISLNK): Likewise.
112279 2002-06-15  Jim Meyering  <meyering@lucent.com>
112281         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
112282         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
112283         have been included before this file.
112285 2002-06-14  Jim Meyering  <meyering@lucent.com>
112287         * lib/file-type.h: Use the version from diffutils-2.8.2.
112288         * lib/file-type.c: Likewise.
112290 2002-06-07  Jim Meyering  <meyering@lucent.com>
112292         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
112293         They're needed at least for NetBSD 1.5.2.
112294         ($statxfs_includes): Include those same headers.
112295         ($statxfs_includes): Include sys/vfs.h if available.
112296         ($statxfs_includes): Likewise for sys/statvfs.h.
112297         Check for the following members in both structs statfs and statvfs:
112298         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
112300 2002-06-01  Jim Meyering  <meyering@lucent.com>
112302         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
112303         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
112305 2002-05-28  Jim Meyering  <meyering@lucent.com>
112307         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
112308         Reported by Volker Borchert.
112310 2002-05-27  Jim Meyering  <meyering@lucent.com>
112312         Fix a problem seen only on nonconforming systems whereby ls.c's
112313         use of localtime, and then of gettimeofday would cause trouble:
112314         the localtime call used to initialize rpl_gettimeofday's save
112315         mechanism would clobber ls's current local time information so
112316         that in any long listing the first file would always be listed
112317         with date 1970-01-01.  Analysis by Volker Borchert.
112319         * lib/gettimeofday.c (localtime): Undefine.
112320         (rpl_localtime): New function.
112322 2002-05-27  Jim Meyering  <meyering@lucent.com>
112324         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
112325         localtime.
112327         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
112328         use the replacement function; it wouldn't resolve at link time.
112329         Reported by Volker Borchert.
112331 2002-05-22  Jim Meyering  <meyering@lucent.com>
112333         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
112334         file-type.h.
112335         * lib/file-type.h: New file.
112336         * lib/file-type.c (file_type): New file/function.  Extracted from
112337         diffutils.
112339 2002-04-30  Jim Meyering  <meyering@lucent.com>
112341         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
112343 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112345         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
112347 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112349         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
112350         Do not check for alloca.h (no longer used) or stdbool.h (was never
112351         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
112353 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112355         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
112357 2002-04-29  Jim Meyering  <meyering@lucent.com>
112359         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
112360         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
112361         Use AC_FUNC_STRNLEN here instead.
112363         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
112364         With autoconf-2.53a, it's part of AC_PROG_CC.
112366 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112368         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
112369         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
112371 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112373         * lib/sig2str.h, lib/sig2str.c: New files.
112374         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
112376 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112378         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
112379         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
112380         of 127, since 64 is the largest conceivable number for ancient
112381         nonstandard hosts.
112382         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
112384 2002-04-28  Jim Meyering  <meyering@lucent.com>
112386         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
112388 2002-04-24  Jim Meyering  <meyering@lucent.com>
112390         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
112391         (jm_PREREQ): Use it.
112393         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
112394         mach/mach.h fcntl.h.
112395         Check for this function: setlocale.
112397 2002-04-24  Jim Meyering  <meyering@lucent.com>
112399         * lib/gettext.h: New file, from Gettext.
112400         * lib/Makefile.am (INCLUDES): Remove -I../intl.
112401         (libfetish_a_SOURCES): Add gettext.h.
112403 2002-04-16  Jim Meyering  <meyering@lucent.com>
112405         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
112406         ut_pid, ut_id, ut_exit.
112408 2002-04-16  Jim Meyering  <meyering@lucent.com>
112410         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
112411         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
112412         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
112414 2002-04-12  Jim Meyering  <meyering@lucent.com>
112416         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
112417         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
112418         existence of the getmntinfo function.  Needed for Darwin 5.3.
112420         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
112421         This is necessary at least on Darwin 5.3.
112423         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
112424         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
112425         strnlen.o in the library, and that makes some versions of ranlib
112426         object.
112428 2002-04-12  Jim Meyering  <meyering@lucent.com>
112430         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
112432 2002-04-09  Jim Meyering  <meyering@lucent.com>
112434         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
112435         to be more precise.  Rather than saying we're checking whether the
112436         function `works', say what we're testing.
112437         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
112438         Reported by Bruno Haible.
112440 2002-03-10  Jim Meyering  <meyering@lucent.com>
112442         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
112443         Suggestion from Santiago Vila.
112445 2002-03-08  Jim Meyering  <meyering@lucent.com>
112447         * lib/rename.c: Mention that this wrapper is needed also on
112448         mips-dec-ultrix4.4 systems.
112450 2002-03-02  Jim Meyering  <meyering@lucent.com>
112452         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
112453         not HAVE_CLOCK_SETTIME.
112455 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112457         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
112458         Check for clock_settime.
112460 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112462         * lib/nanosleep.h: Rename to....
112463         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
112465         * lib/gettime.c: New file.
112466         * lib/settime.c: New file.
112467         * lib/stime.c: Remove.
112469         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
112470         timespec.h.  Remove nanosleep.h.
112472 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112474         * m4/acl.m4: New file.
112475         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
112476         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
112478 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112480         * lib/acl.c, lib/acl.h: New files.
112481         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
112483 2002-02-24  Jim Meyering  <meyering@lucent.com>
112485         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
112486         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
112487         cause trouble.  Reported by Nelson Beebe.
112489 2002-02-23  Paul Eggert  <eggert@twinsun.com>
112491         * lib/path-concat.c (xpath_concat): Reorder code to pacify
112492         compilers that don't know that xalloc_die never returns.
112494 2002-02-20  Jim Meyering  <meyering@lucent.com>
112496         * lib/getdate.c: Regenerate using bison-1.33.
112498 2002-02-17  Jim Meyering  <meyering@lucent.com>
112500         * config/config.guess (main): Don't use `head -1'; it's no longer
112501         portable. Use `sed 1q' instead.
112503 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
112505         * m4/codeset.m4: Upgrade to gettext-0.11.
112506         * m4/gettext.m4: Upgrade to gettext-0.11.
112507         * m4/glibc21.m4: Upgrade to gettext-0.11.
112508         * m4/iconv.m4: Upgrade to gettext-0.11.
112509         * m4/isc-posix.m4: Upgrade to gettext-0.11.
112510         * m4/lcmessage.m4: Upgrade to gettext-0.11.
112511         * m4/lib-ld.m4: New file, from gettext-0.11.
112512         * m4/lib-link.m4: New file, from gettext-0.11.
112513         * m4/lib-prefix.m4: New file, from gettext-0.11.
112514         * m4/progtest.m4: Upgrade to gettext-0.11.
112516 2002-02-15  Paul Eggert  <eggert@twinsun.com>
112518         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
112519         (jm_PREREQ): Use it.
112521 2002-02-15  Paul Eggert  <eggert@twinsun.com>
112523         * lib/posixver.c, lib/posixver.h: New files.
112524         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
112526 2002-02-02  Paul Eggert  <eggert@twinsun.com>
112527             Bruno Haible  <bruno@clisp.org>
112529         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
112530         (fwrite_success_callback): New declaration.
112531         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
112532         print_unicode_char. Call failure callback instead of error.
112533         (fwrite_success_callback): New function.
112534         (exit_failure_callback): New function.
112535         (fallback_failure_callback): New function.
112536         (print_unicode_char): Call unicode_to_mb.
112538 2002-01-26  Jim Meyering  <meyering@lucent.com>
112540         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
112541         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
112543 2002-01-26  Jim Meyering  <meyering@lucent.com>
112545         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
112547 2002-01-22  Paul Eggert  <eggert@twinsun.com>
112549         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
112551 2002-01-22  Jim Meyering  <meyering@lucent.com>
112553         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
112554         Otherwise, some versions of automake would omit the rule that makes
112555         Makefile from Makefile.in.
112557 2002-01-21  Paul Eggert  <eggert@twinsun.com>
112559         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
112560         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
112561         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
112562         (memcoll): Set errno to zero if there is no error.
112564         * lib/quotearg.c (quotearg_buffer_restyled):
112565         Fix bug with quoting buffers containing NUL when backslashing escapes.
112566         This bug was exposed by the other changes in this patch.
112567         (quotearg_n_options): New arg ARGSIZE.
112568         All callers changed.
112569         (quoting_options_from_style): New function.
112570         (quotearg_n_style): Use it.
112571         (quotearg_n_style_mem): New function.
112573         * lib/quotearg.h (quotearg_n_style_mem): New function.
112575 2002-01-19  Jim Meyering  <meyering@lucent.com>
112577         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
112578         Remove useless quotes: DF_PROG="df".
112579         * m4/strnlen.m4: New file.
112581 2002-01-16  Paul Eggert  <eggert@twinsun.com>
112583         * lib/backupfile.c (ISDIGIT): Comment fix.
112584         * lib/getdate.y (ISDIGIT): Likewise.
112585         * lib/posixtm.c (ISDIGIT, year): Likewise.
112586         * lib/strverscmp.c (ISDIGIT): Likewise.
112587         * lib/userspec.c (ISDIGIT): Likewise.
112589 2002-01-16  Jim Meyering  <meyering@lucent.com>
112591         * lib/getdate.y: Add three semicolons, each just before a closing
112592         brace. Bison (as of version 1.31) no longer papers over that mistake.
112594 2002-01-05  Jim Meyering  <meyering@lucent.com>
112596         * lib/version-etc.c (version_etc_copyright): Update copyright year.
112598 2001-12-19  Paul Eggert  <eggert@twinsun.com>
112600         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
112601         not silently exit merely because the output buffer happens to
112602         have nothing pending.
112604 2001-12-18  Paul Eggert  <eggert@twinsun.com>
112606         See the big note in ../ChangeLog.
112607         * lib/human.c (suffixes): Prefer K to k for 1024.
112608         (generate_suffix_backwards): New function.
112609         (human_readable_inexact): Use it.
112610         * lib/xstrtol.c (__xstrtol): If there is no number but there
112611         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
112612         Accept 'K' as well as 'k'.
112614 2001-12-15  Jim Meyering  <meyering@lucent.com>
112616         * lib/regex.h (__restrict_arr): Update from libc.
112618         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
112619         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
112620         (STREQ): Define.
112622 2001-12-14  Jim Meyering  <meyering@lucent.com>
112624         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
112625         Suggestion from Bruno Haible.
112627 2001-12-10  Jim Meyering  <meyering@lucent.com>
112629         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
112630         xrealloc, Instead, include "xalloc.h".
112631         (initbuffer): Don't cast xmalloc return value to char*.
112632         (readline): Reword comment.
112633         Don't cast xrealloc return value to char*
112634         Return NULL, not 0.
112636 2001-12-09  Jim Meyering  <meyering@lucent.com>
112638         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
112639         about `signed and unsigned type in conditional expression'.
112640         * lib/posixtm.c (posix_time_parse): Likewise.
112642         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
112644         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
112645         to avoid a pedantic warning.
112647         * lib/getstr.c: Don't include assert.h.
112648         (getstr): Remove warning-evoking assertions.
112649         Return -1 if offset parameter is out of bounds.
112650         Change the type of a local from int to size_t.
112652         * lib/strftime.c (my_strftime_localtime_r): Include this function
112653         definition in the `#if ! HAVE_TM_GMTOFF' block.
112655         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
112656         Include xalloc.h instead.
112658 2001-12-02  Jim Meyering  <meyering@lucent.com>
112660         * lib/tempname.c: Don't declare getenv, thus reverting the change of
112661         2001-11-18.  It's no longer necessary, now that stdlib.h is always
112662         included.
112664         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
112665         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
112667 2001-11-30  Akim Demaille  <akim@epita.fr>
112669         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
112670         before being defined.
112672 2001-11-27  Paul Eggert  <eggert@twinsun.com>
112674         * lib/quotearg.h (quotearg_n, quotearg_n_style):
112675         First arg is int, not unsigned.
112676         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
112677         (SIZE_MAX, UINT_MAX): New macros.
112678         (quotearg_n_options): Abort if N is negative.
112679         Avoid overflow check on hosts where size_t is 64 bits and int
112680         is 32 bits, as overflow is impossible there.
112681         Fix off-by-one typo that caused unnecessary reallocation.
112683 2001-11-27  Jim Meyering  <meyering@lucent.com>
112685         * lib/tempname.c: Merge with version from libc.
112686         * lib/regex.c: Likewise.
112688         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
112689         systems for which STDC_HEADERS is 0, it was not included, resulting in
112690         a warning about an integer-to-pointer conversion problem with getenv.
112691         Reported by Volker Borchert.
112693 2001-11-26  Jim Meyering  <meyering@lucent.com>
112695         * lib/gtod.h: Remove file.
112696         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
112697         * lib/gettimeofday.c: Don't include gtod.h.
112698         (GTOD_init): Remove function.
112699         (rpl_gettimeofday): Do its job here instead, rather than aborting.
112700         Suggestion from Volker Borchert.
112702 2001-11-23  Jim Meyering  <meyering@lucent.com>
112704         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
112705         it.
112706         * lib/hash.c (struct hash_table): Define it here instead.
112708 2001-11-22  Jim Meyering  <meyering@lucent.com>
112710         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
112712 2001-11-20  Jim Meyering  <meyering@lucent.com>
112714         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
112715         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
112717 2001-11-19  Jim Meyering  <meyering@lucent.com>
112719         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
112720         directory.  Use "conftestXXXXXX" as the template.
112721         Suggestion from Paul Eggert.
112723         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
112724         immediately, so the test doesn't mistakenly hit the max-open-files
112725         limit.
112727 2001-11-18  Paul Eggert  <eggert@twinsun.com>
112729         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
112730         (TEMPORARIES): New macro.
112731         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
112732         removes an artificial limitation (e.g. HP-UX 10.20, where
112733         TMP_MAX is 17576).
112735 2001-11-18  Jim Meyering  <meyering@lucent.com>
112737         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
112739 2001-11-18  Jim Meyering  <meyering@lucent.com>
112741         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
112742         on SunOS 4.
112744         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
112745         files will be created before anything else.
112747 2001-11-17  Paul Eggert  <eggert@twinsun.com>
112749         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
112750         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
112752 2001-11-17  Jim Meyering  <meyering@lucent.com>
112754         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
112755         Prompted by a report from Bob Proulx.
112757         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
112758         Instead, require UTILS_FUNC_MKSTEMP.
112760 2001-11-17  Jim Meyering  <meyering@lucent.com>
112762         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
112763         Now, that's done as part of AC_FUNC_STRTOD.
112765 2001-11-17  Jim Meyering  <meyering@lucent.com>
112767         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
112768         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
112769         rather than group writable.  Patch by Juan F. Codagnone.
112771         * lib/readtokens.c: Remove explicit declarations of xmalloc and
112772         xrealloc, Instead, include "xalloc.h".
112774         * lib/mountlist.c: Include unlocked-io.h after all system headers.
112775         Remove explicit declarations of xmalloc, xrealloc,
112776         and xstrdup.  Instead, include "xalloc.h".
112778         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
112779         unlocked-io.h.
112780         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
112781         Likewise.
112782         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
112784         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
112785         Reported by Padraig Brady.
112787         * lib/mkstemp.c: #undef mkstemp.
112788         Include config.h.
112789         (rpl_mkstemp): Rename from mkstemp.
112790         Protoize.
112792 2001-11-16  Jim Meyering  <meyering@lucent.com>
112794         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
112795         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
112796         determine the amount of total physical memory, use pstat_getstatic.
112797         HPUX-11 doesn't define _SC_PHYS_PAGES.
112798         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
112799         If sysconf couldn't be used to determine the amount of available
112800         physical memory, use both pstat_getstatic and pstat_getdynamic.
112801         Based on a patch from Bob Proulx.
112803 2001-11-10  Jim Meyering  <meyering@lucent.com>
112805         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
112806         (jm_PREREQ): Use it.
112808 2001-11-09  Jim Meyering  <meyering@lucent.com>
112810         * m4/jm-macros.m4: Require autoconf-2.52f.
112811         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
112812         Use these AC_-prefixed names, not the AM_-prefixed ones.
112814         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
112816 2001-11-05  Jim Meyering  <meyering@lucent.com>
112818         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
112820 2001-11-04  Jim Meyering  <meyering@lucent.com>
112822         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
112823         $DEFS.
112825 2001-11-03  Jim Meyering  <meyering@lucent.com>
112827         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
112828         of AC_DEFUN.
112830         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
112831         know the name of the variable in the macro definition.
112833 2001-11-03  Jim Meyering  <meyering@lucent.com>
112835         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
112836         in argmatch_to_argument call.
112838         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
112839         argument.
112841         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
112842         e.g., a fault due to an attempt to free a NULL pointer.
112844 2001-11-01  Jim Meyering  <meyering@lucent.com>
112846         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
112847         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
112849 2001-11-01  Jim Meyering  <meyering@lucent.com>
112851         * lib/dirfd.c, lib/dirfd.h: New files.
112852         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
112854         * lib/hash.c (hash_print) [TESTING]: Clean up.
112856 2001-10-22  Paul Eggert  <eggert@twinsun.com>
112858         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
112859         to avoid a warning if -Wall.
112861 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
112863         * README: New file
112864         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
112865         (per RMS's instructions, this is now the canonical source)
112866         * lgpl/, gpl/: New directories.
112868 2001-10-21  Paul Eggert  <eggert@twinsun.com>
112870         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
112872 2001-10-21  Jim Meyering  <meyering@lucent.com>
112874         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
112875         this code would end up calling gettext even in packages built
112876         with --disable-nls.
112877         * lib/getopt.c (_): Likewise.
112878         * lib/regex.c (_): Likewise.
112880 2001-10-20  Paul Eggert  <eggert@twinsun.com>
112882         * m4/error.m4 (jm_PREREQ_ERROR):
112883         Do not invoke AC_CHECK_FUNCS with strerror_r, as
112884         AC_FUNC_STRERROR_R does that.
112885         Check for strerror declaration.
112887         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
112888         are supposed to have them these days.
112889         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
112890         Merge changes from latest Autoconf CVS.
112891         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
112892         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
112893         POSIX decided to standardize on the int flavor of strerror_r.
112895 2001-10-20  Paul Eggert  <eggert@twinsun.com>
112897         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
112898         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
112899         Use strerror_r that is only a macro, even if it is not a function.
112900         (strerror): Check for HAVE_DECL_STRERROR before declaring.
112901         (private_strerror): Use prototypes, not old-style function definition.
112902         (print_errno_message): New function.
112903         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
112904         char*-flavored one.
112905         (error_tail, error, error_at_line): Use it.
112907 2001-10-11  Jim Meyering  <meyering@lucent.com>
112909         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
112910         and quote_n (1, ... to avoid clobbering a buffer.
112912 2001-10-05  Jim Meyering  <meyering@lucent.com>
112914         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
112915         hash-pjw.h.
112916         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
112917         * lib/hash-pjw.h: New file.
112919 2001-09-30  Jim Meyering  <meyering@lucent.com>
112921         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
112922         `struct fsstat' has the `f_fstypename' member.
112923         Use that to define FS_TYPE, which is now used to make
112924         the getfsstat link test tighter.
112926 2001-09-30  Jim Meyering  <meyering@lucent.com>
112928         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
112929         Include <sys/ucred.h>, for Apple Darwin.
112930         Include sys/mount.h and sys/fs_types.h only if available.
112931         (FS_TYPE): Define.
112932         (read_filesystem_list): Use FS_TYPE.
112934 2001-09-29  Paul Eggert  <eggert@twinsun.com>
112936         * lib/exclude.c (excluded_filename): 0 -> false, since it's
112937         a boolean context.
112939 2001-09-29  Jim Meyering  <meyering@lucent.com>
112941         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
112942         [one-argument getmntent function]): Include stdio.h before mntent.h.
112943         SunOS 4.1.x needs it for the declaration of `FILE'.
112944         Patch by Volker Borchert.
112946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
112947         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
112948         sys/fs_types.h, and make the link-test for getfsstat guard #include
112949         directives with appropriate #if HAVE_*_H tests so that we can
112950         detect getfsstat on Apple Darwin1.3.7 systems.
112951         Reported by Nelson Beebe.
112952         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
112954 2001-09-28  Paul Eggert  <eggert@twinsun.com>
112956         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
112957         #defines strtoimax.  Also treat the other strto* functions
112958         like strtoimax.
112960         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
112961         Check for strtoul and strtoumax,
112962         as those declarations are made even in the signed case.
112963         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
112964         Likewise, for strtol and strtoimax.
112966 2001-09-28  Paul Eggert  <eggert@twinsun.com>
112968         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
112969         #defines strtoimax.  Also treat the other strto* functions
112970         like strtoimax.
112972         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
112973         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
112974         (strtoimax, strtoumax): Do not declare if already defined as a macro.
112976 2001-09-26  Jim Meyering  <meyering@lucent.com>
112978         Most macros in unlocked-io.h had the wrong number of arguments.
112979         * lib/gen-uio: New script.
112980         (USE_UNLOCKED_IO): Define to 1 if not already defined.
112981         * lib/unlocked-io.hin: Remove file.
112982         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
112983         rather than trying to embed it here.
112984         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
112985         Reported by Padraig Brady.
112987 2001-09-25  Volker Borchert  <bt@teknon.de>
112989         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
112990         `result'.
112992 2001-09-24  Jim Meyering  <meyering@lucent.com>
112994         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
112996 2001-09-23  Jim Meyering  <meyering@lucent.com>
112998         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
112999         instead of the mere test for existence of mntent.h.  The latter
113000         would get a false-positive on AIX 3.4 systems.
113001         In the outer getmntent if-block, don't die if neither of the getmntent
113002         tests succeeds.  Instead, just fall through and continue with the
113003         remaining tests.
113005 2001-09-23  Jim Meyering  <meyering@lucent.com>
113007         * lib/mountlist.c: Remove useless parentheses in #if directives.
113008         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
113009         the deprecated MOUNTED symbol is no longer defined in mntent.h.
113011 2001-09-22  Jim Meyering  <meyering@lucent.com>
113013         * m4/gettext.m4: New file.  From gettext.
113014         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
113015         * m4/progtest.m4: Likewise
113016         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
113017         * m4/glibc21.m4: Likewise.
113019         * m4/libintl.m4: Remove.  No longer used.
113021 2001-09-22  Jim Meyering  <meyering@lucent.com>
113023         * lib/localcharset.c: Update from latest gettext.
113024         * lib/config.charset: Likewise.
113026 2001-09-20  Jim Meyering  <meyering@lucent.com>
113028         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
113029         strtoimax.
113030         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
113031         strtoumax.
113033 2001-09-20  Jim Meyering  <meyering@lucent.com>
113035         * lib/xstrtol.c (strtoimax): Guard declaration with
113036         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
113037         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
113038         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
113039         (strtoumax): Likewise, for completeness (it wasn't necessary).
113041 2001-09-17  Paul Eggert  <eggert@twinsun.com>
113043         * lib/strtoimax.c (HAVE_LONG_LONG):
113044         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
113045         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
113046         to work around bug in IBM C compiler.
113048 2001-09-17  Jim Meyering  <meyering@lucent.com>
113050         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
113051         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
113052         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
113053         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
113054         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
113055         whenever the right hand side need not be expanded by the shell.
113057 2001-09-16  Paul Eggert  <eggert@twinsun.com>
113059         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
113060         library.  It's not correct, as some older glibcs are buggy.
113061         fnmatch wasn't fixed until glibc 2.2.
113063         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
113064         special shell magic here.
113066 2001-09-16  Jim Meyering  <meyering@lucent.com>
113068         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
113069         * m4/jm-macros.m4: Require it.
113071 2001-09-16  Jim Meyering  <meyering@lucent.com>
113073         * lib/mkdir.c: New file.
113075 2001-09-15  Jim Meyering  <meyering@lucent.com>
113077         * m4/jm-macros.m4: Check for help2man.
113079 2001-09-11  Jim Meyering  <meyering@lucent.com>
113081         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
113082         The body, by Paul Eggert, was moved here from configure.in.
113083         * m4/jm-macros.m4: Require UTILS_HOST_OS.
113085 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113087         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
113088         (jm_PREREQ): Use it.
113090 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113092         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
113093         Use ssize_t, not int, to store result of readlink.
113094         Check for ssize_t overflow as well as size_t overflow,
113095         as POSIX says the result of readlink is implementation-defined
113096         when ssize_t overflows.
113097         Remove unnecessary cast to char*.
113098         Use free+malloc instead of realloc, as the storage doesn't need
113099         to be preserved and it's clearer and can be more efficient that way.
113100         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
113101         * lib/xreadlink.h (xreadlink): Update prototype.
113103 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113105         * lib/xgetcwd.c: Revert some of the previous change; intead,
113106         fix the HAVE_GETCWD_NULL code to behave more like the
113107         !HAVE_GETCWD_NULL code used to.
113109         Include "xalloc.h".
113110         (xgetcwd): Do not return NULL when memory is exhausted; instead,
113111         invoke xalloc_die.
113113 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113115         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
113116         sys/param.h, as pathmax.h includes them.
113118 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113120         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
113121         (jm_PREREQ_XGETCWD): New macro.
113123         * m4/getcwd.m4: New file.
113125 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113127         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
113128         like the HAVE_GETCWD_NULL code.
113129         Include pathmax.h if not HAVE_GETCWD.
113130         Do not include xalloc.h.
113131         (INITIAL_BUFFER_SIZE): New symbol.
113132         Do not use xmalloc / xrealloc, since the caller is responsible for
113133         handling errors.  Preserve errno around `free' during failure.
113134         Do not overrun buffer when using getwd.
113136 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113138         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
113139         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
113140         getcwd (NULL, 0).
113142 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113144         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
113145         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
113146         spotted by Jim Meyering.
113148 2001-09-03  Jim Meyering  <meyering@lucent.com>
113150         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
113151         failure.
113153 2001-09-02  Jim Meyering  <meyering@lucent.com>
113155         * lib/error.c: Update from GNU libc.
113157 2001-09-01  Jim Meyering  <meyering@lucent.com>
113159         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
113160         Used by df.
113162 2001-09-01  Jim Meyering  <meyering@lucent.com>
113164         * lib/xreadlink.c: New file.
113165         * lib/xreadlink.h: New file.
113166         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
113167         xreadlink.h.
113169         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
113170         doesn't conflict with sparc Solaris 7's definition in
113171         /usr/include/sys/int_types.h.
113173         * lib/exclude.c: Use `""', not `<>' to #include non-system header
113174         files.
113175         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
113176         and strncasecmp as r-values.  Unixware didn't have declarations.
113178 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113180         * lib/xstrtol.h: Add copyright notice.
113181         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
113182         LONGINT_INVALID_SUFFIX_CHAR.
113184 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113186         * lib/xstrtol.c (strtoimax): New decl.
113188 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113190         * lib/xgetcwd.c: Don't include pathmax.h.
113191         Include stdlib.h and unistd.h if available.
113192         Include xalloc.h.
113193         (xmalloc, xstrdup, free): Remove decls.
113194         (xgetcwd): Don't assume sizes fit in unsigned.
113195         Check for overflow when computing sizes.
113196         Simplify reallocation code.
113198 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113200         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
113201         a directory's st_size can have an arbitrary value, so the old
113202         usage could waste an arbitrary amount of memory.  All uses
113203         changed.
113204         * lib/savedir.h: Update prototype.
113206 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113208         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
113210         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
113211         old strtoimax.c.
113213         Also, make the following further changes to make this file's
113214         configuration more similar to that of strtol.c:
113215         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
113216         (strtoumax, uintmax_t, strtoull, strtol): Remove.
113217         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
113218         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
113219         changed to signed values.
113221         And make the following changes as well:
113222         Fix copyright notice, as 1999 was missing.
113223         (verify): New macro.
113224         (strtoimax): Check sizes at compile-time, not run-time.
113225         Prefer strtol to strtoll if both work.
113226         (main): Remove; it was not that useful and was a pain to maintain.
113228         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
113230 2001-08-31  Jim Meyering  <meyering@lucent.com>
113232         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
113233         Use an initial, malloc'd, buffer of length 128 rather than
113234         a statically allocated one of length 1024.
113236 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113238         Simplify code, partly by assuming autoconf 2.52 semantics.
113240         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
113242         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
113243         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
113244         All uses removed.
113245         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
113246         Move AC_REQUIRE to next-to-top level, to avoid confusion.
113247         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
113248         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
113249         jm_AC_HEADER_INTTYPES_H.
113250         * m4/jm-macros.m4 (jm_MACROS): Likewise.
113252         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
113254         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
113255         Quote first arg of AC_DEFUN.
113256         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
113257         since they are needed to parse the include file even if we need
113258         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
113259         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
113260         but with opposite signedness.
113262 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113264         Merge 'exclude' changes from tar 1.13.22.
113265         This fixes one or two unlikely storage allocation overflow bugs,
113266         but doesn't change user-visible behavior otherwise.
113268 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113270         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
113271         (jm_PREREQ_EXCLUDE): New macro.
113273 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113275         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
113276         tm to be declared.
113278 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113280         * lib/hash.c: Remove '2001' from copyright notice.
113282 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113284         * lib/full-write.h: New file.
113285         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
113286         * lib/full-write.c: Correct credits, as cccp.c no longer
113287         exists and anyway it was so heavily changed from the old cccp
113288         code as to be unrecognizable.  Include full-write.h.
113289         (full_write): Return size_t, with short writes meaning failure.
113290         All callers changed.  This fixes a bug with large buffers
113291         on 64-bit hosts.
113292         * lib/utime.c: Include full-write.h.
113294 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113296         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
113297         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
113298         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
113299         Include if available.
113300         (<xalloc.h>): Include
113301         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
113302         (verify): New macro.  Use it to verify that EXCLUDE macros do not
113303         collide with FNM macros.
113304         (struct patopts): New struct.
113305         (struct exclude): Use it, as exclude patterns now come with options.
113306         (new_exclude): Support above changes.
113307         (new_exclude, add_exclude_file):
113308         Initial size must now be a power of two to simplify overflow checking.
113309         (free_exclude, fnmatch_no_wildcards): New function.
113310         (excluded_filename): No longer requires options arg, as the options
113311         are determined by add_exclude.  Now returns bool, not int.
113312         (excluded_filename, add_exclude):
113313         Add support for the fancy new exclusion options.
113314         (add_exclude, add_exclude_file): Now takes int options arg.
113315         Check for arithmetic overflow when computing sizes.
113316         (add_exclude_file): xrealloc might modify errno, so don't
113317         realloc until after errno might be used.
113319         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
113320         New macros.
113321         (free_exclude): New decl.
113322         (add_exclude, add_exclude_file): Now takes int options arg.
113323         (excluded_filename): No longer requires options arg, as the options
113324         are determined by add_exclude.  Now returns bool, not int.
113326 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113328         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
113330 2001-08-27  Jim Meyering  <meyering@lucent.com>
113332         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
113334         * lib/version-etc.c (N_): Remove definition.
113335         Revert most of last change.
113336         Instead, simply don't mark the `Copyright...' string for translation.
113337         Based on advice from Paul Eggert.
113339         * lib/strtoxmax.c: Tweak comment.
113341 2001-08-26  Jim Meyering  <meyering@lucent.com>
113343         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
113345         * m4/xstrtoimax.m4: New file.
113346         * m4/xstrtoumax.m4: Add comments explaining why we
113347         AC_REPLACE_FUNCS(strtol).
113349 2001-08-26  Jim Meyering  <meyering@lucent.com>
113351         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
113352         of copyright with `%s' so translators don't get an untranslated
113353         message in 2002.
113354         (COPYRIGHT_YEAR): Define.
113355         (version_etc): Use fprintf rather than fputs.
113356         Suggestion from Ulrich Drepper.
113358         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
113360         * lib/strtoll.c: New file, from GNU libc.
113361         * lib/xstrtoimax.c: New file.
113363         * lib/xstrtol.h: Add xstrtoimax.
113364         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
113365         * lib/strtoimax.c: New file.  Likewise, but first define
113366         STRTOUXMAX_SIGNED.
113368         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
113369         ...
113370         * lib/strtoxmax.c: ... then renamed to this.
113372 2001-08-18  Paul Eggert  <eggert@twinsun.com>
113374         * m4/inttypes.m4: Add AC_PREREQ(2.13).
113375         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
113376         (jm_AC_TYPE_INTMAX_T): New macro.
113377         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
113379         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
113381         * m4/longlong.m4: Renamed from ulonglong.m4.
113382         * m4/inttypes.m4: Renamed from inttypes_h.m4.
113383         * m4/uintmax_t.m4: Removed.
113385 2001-08-13  Paul Eggert  <eggert@twinsun.com>
113387         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
113388         Port to Solaris 8, where 'sed' requires a space after the 'r'
113389         command, and where sh dislikes "$/".  Clean up the spacing a bit.
113390         Redirect output to $tmp just once.
113392 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
113394         * lib/addext.c (<errno.h>): Include.
113395         (errno): Declare if not defined.
113396         (addext): Work correctly when pathconf returns -1 and leaves
113397         errno alone because there is no limit.  Also, work even if
113398         pathconf returns a value greater than SIZE_MAX.
113400 2001-08-12  Jim Meyering  <meyering@lucent.com>
113402         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
113403         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
113404         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
113405         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
113406         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
113407         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
113408         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
113409         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
113410         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
113411         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
113412         utime.m4, utimes.m4, xstrtoumax.m4:
113413         Quote the first argument in each use of AC_DEFUN.
113415 2001-08-12  Jim Meyering  <meyering@lucent.com>
113417         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
113418         Simply `return getcwd (NULL, 0);'.
113419         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
113420         Use 1300 as initial value for length, not PATH_MAX.
113422         * lib/pathmax.h: Clean up cpp syntax.
113424 2001-08-12  Jim Meyering  <meyering@lucent.com>
113426         * lib/gettimeofday.c: New file.
113427         * lib/gtod.h: New file.
113428         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
113430 2001-08-05  Jim Meyering  <meyering@lucent.com>
113432         * m4/jm-macros.m4: Require autoconf-2.52.
113434 2001-08-04  Jim Meyering  <meyering@lucent.com>
113436         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
113437         stmt, to get in sync with glibc.
113439 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113441         The following changes are from gettext 0.10.39 as maintained by
113442         Bruno Haible.
113444         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
113445         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
113446         with inverted sense.  All uses changed.
113448         * lib/mbswidth.c: Don't include <limits.h>.
113449         Include <stdlib.h> and <string.h> unconditionally.
113450         (iswcntrl, mbsinit, ISCNTRL): New macros.
113451         (mbsnwidth): Use K&R style function declarations.
113452         Don't bother checking for MB_LEN_MAX == 1, since the compiler
113453         can optimize it when MB_CUR_MAX == 1.
113454         The width of control characters is zero, not 1.
113456 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113458         The following changes are from gettext 0.10.39 as maintained by
113459         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
113461         * m4/codeset.m4: Upgrade to serial AM1.
113462         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
113463         all uses changed.  Quote first arg of AC_DEFUN.
113464         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
113466         * m4/iconv.m4: Upgrade to serial AM2.
113467         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
113468         Add --with-libconv-prefix.
113469         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
113470         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
113471         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
113472         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
113473         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
113475         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
113476         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
113477         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
113478         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
113479         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
113480         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
113481         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
113482         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
113483         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
113485         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
113486         string.h any more.
113488         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
113489         not the default value.
113491         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
113492         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
113493         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
113494         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
113495         Also check for iswcntrl, used for wcwidth fallback.
113496         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
113497         to Autoconf 2.13.
113499 2001-08-03  Jim Meyering  <meyering@lucent.com>
113501         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
113502         as it was in the original.  Reported by Paul Eggert.
113504 2001-07-16  Jim Meyering  <meyering@lucent.com>
113506         * m4/gettimeofday.m4: New file.
113507         Prompted by a report from Bernhard Baehr.
113509 2001-07-15  Jim Meyering  <meyering@lucent.com>
113511         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
113512         stuff. Now it's in ../Makefile.cfg.
113514 2001-07-15  Jim Meyering  <meyering@lucent.com>
113516         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
113517         (BUILT_SOURCES): Add unlocked-io.h.
113518         (io_functions): Define.
113519         (unlocked-io.h): New rule.
113520         (DISTCLEANFILES): Add unlocked-io.h.
113521         (all-local): Depend on unlocked-io.h, to ensure it is created.
113523         * lib/unlocked-io.hin: New file
113525         * lib/regex.c: Update from glibc.
113527 2001-07-05  Jim Meyering  <meyering@lucent.com>
113529         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
113530         recommendation.
113531         (libfetish_a_SOURCES): Put all .h files here instead.
113532         Remove a thus-exposed (better checks in automake) duplicate and
113533         two unnecessary .h files.
113535 2001-07-04  Jim Meyering  <meyering@lucent.com>
113537         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
113538         that generates jm-glibc-io.m4 so that it doesn't trigger any make
113539         distcheck failure.
113541 2001-07-02  Jim Meyering  <meyering@lucent.com>
113543         The following changes were prompted by suggestions from Bruno Haible.
113545         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
113546         is now generated.
113547         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
113548         definition of EXTRA_DIST.
113549         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
113550         ensure that the generated file is created/updated whenever the list
113551         of $(unlocked_functions) is changed.
113552         (jm-glibc-io.m4): New rule.
113553         (unlocked-io.h): New rule -- currently unused.
113555 2001-06-24  Jim Meyering  <meyering@lucent.com>
113557         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
113558         unmatched right bracket, rather than kludging it with an extra,
113559         falsely-matching quote in a comment.  Patch by Akim Demaille.
113561 2001-06-11  Jim Meyering  <meyering@lucent.com>
113563         * lib/regex.c: Update from GNU libc.
113565 2001-05-27  Jim Meyering  <meyering@lucent.com>
113567         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
113568         Check for ut_type in struct utmp.
113570 2001-05-27  Jim Meyering  <meyering@lucent.com>
113572         * lib/readutmp.h (UT_TYPE): Define.
113574 2001-05-24  Jim Meyering  <meyering@lucent.com>
113576         * lib/argmatch.c: Include "quote.h".
113577         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
113578         quote function.  Reported by Göran Uddeborg.
113580 2001-05-22  Jim Meyering  <meyering@lucent.com>
113582         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
113583         now that we use the package-supplied version unconditionally.
113584         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
113586 2001-05-21  Jim Meyering  <meyering@lucent.com>
113588         * m4/regex.m4: Change a couple backticks to single quotes to avoid
113589         shell syntax errors.
113591 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
113593         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
113595 2001-05-20  Paul Eggert  <eggert@twinsun.com>
113597         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
113598         Don't bother to check library strftime, since
113599         we'll be using our own my_strftime function anyway.
113600         Define my_strftime instead of strftime.
113602 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
113604         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
113605         which is not yet declared.
113607 2001-05-15  Jim Meyering  <meyering@lucent.com>
113609         * m4/regex.m4: Use proper quoting so brackets appear in the test
113610         program.
113611         Reported by, and with help from, Bruno Haible.
113613 2001-05-13  Jim Meyering  <meyering@lucent.com>
113615         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
113616         undefined.
113618 2001-05-11  Paul Eggert  <eggert@twinsun.com>
113620         dirname code cleanup.  base_name now behaves more compatibly
113621         with POSIX basename when given file names that have trailing
113622         slashes, and similarly for dir_name.  Add new primitives
113623         base_len and dir_len.  Put the directory-name-related decls
113624         into dirname.h.
113626         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
113627         * lib/backupfile.c (base_name): Likewise.
113628         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
113629         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
113630         * lib/makepath.c (strip_trailing_slashes): Likewise.
113631         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
113632         ISSLASH): Likewise.
113633         * lib/rename.c (strip_trailing_slashes): Likewise.
113634         * lib/same.c (base_name): Likewise.
113635         * lib/stripslash.c (ISSLASH): Likewise.
113637         * lib/addext.c: Include <dirname.h> after size_t is defined.
113638         * lib/backupfile.c: Likewise.
113640         * lib/addext.c (addext): Use base_len to trim redundant
113641         trailing slashes instead of doing it ourselves.
113642         But do not trim the last slash if it is not redundant.
113644         * lib/backupfile.c (find_backup_file_name,
113645         max_backup_version): Use base_len instead of rolling it ourselves.
113646         Handle the case of "" and (on DOS) "C:" correctly.
113648         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
113649         needed. Include <string.h>, <dirname.h>.
113650         (base_name): Allow file names ending in slashes, other than names
113651         that are all slashes.  In this case, return the basename followed
113652         by the slashes.  This is more general, and can be used in places
113653         where the original base_name purposely had an assertion failure.
113654         (base_len): New function.
113656         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
113657         Do not include <assert.h>; no longer needed.
113658         Include xalloc.h.
113659         (memrchr): Remove decl.
113660         (dir_name_r): Remove.
113661         (dir_len): Renamed from dirlen.  All callers changed.
113662         Rewrite in terms of base_name, for simplicity and consistency.
113663         (dir_name): Never return NULL.  All callers changed.
113664         Do not include <stdlib.h> in test program; no longer needed.
113665         return 0; is fine for test program.
113667         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
113668         New macros.
113669         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
113671         * lib/path-concat.c (path_concat): Use base_len to compute
113672         base length, not strlen; this means we cannot rely on memcpy
113673         to null-terminate.
113675         * lib/same.c (STREQ): Remove.
113676         (same_name): Handle the case where the basename ends in trailing '/'.
113678         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
113679         a slash was stripped.  Do not strip the last slash after a
113680         file system prefix.
113682 2001-05-11  Paul Eggert  <eggert@twinsun.com>
113684         * lib/Makefile.am (libfetish_a_SOURCES):
113685         Add strftime.c, since we now compile it on all hosts.
113687         * lib/strftime.c (my_strftime):
113688         Define to nstrftime if emacs, but only if my_strftime is not defined.
113689         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
113690         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
113691         Add one more extra argument: a nanoseconds value.
113692         All uses changed.
113693         (ns): New macro.
113694         (my_strftime function): Add %N format.
113695         (emacs_strftimeu): Renamed from emacs_strftime,
113696         with extra ut argument.
113698 2001-05-09  Paul Eggert  <eggert@twinsun.com>
113700         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
113702 2001-04-21  Jim Meyering  <meyering@lucent.com>
113704         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
113705         doesn't interfere.
113707 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
113709         * m4/ftruncate.m4: Check for chsize.
113710         Link with ftruncate.o unconditionally if ftruncate is missing.
113711         This was required when cross-compiling to i586-mingw32msvc.
113713 2001-04-08  Jim Meyering  <meyering@lucent.com>
113715         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
113716         recomputed; that's necessary when the offset spans a DST transition.
113717         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
113719 2001-04-02  Jim Meyering  <meyering@lucent.com>
113721         * lib/regex.h, regex.c: Update from GNU libc.
113723 2001-03-24  Jim Meyering  <meyering@lucent.com>
113725         * m4/jm-macros.m4: Require autoconf-2.49d.
113727 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
113729         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
113731 2001-03-19  Paul Eggert  <eggert@twinsun.com>
113733         * lib/version-etc.c (version_etc_copyright): Update to 2001.
113735 2001-03-17  Jim Meyering  <meyering@lucent.com>
113737         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
113738         now that the version in autoconf is equivalent.
113739         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
113741         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
113742         Suggestion from Akim Demaille.
113744         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
113745         (jm_PREREQ_TEMPNAME): New function.
113747 2001-03-16  Paul Eggert  <eggert@twinsun.com>
113749         * lib/tempname.c (uint64_t): Define to uintmax_t if
113750         not defined, and if UINT64_MAX is not defined.
113751         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
113752         Reported by John David Anglin.
113754 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
113756         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
113757         resolve alias if codeset is empty.
113758         * lib/config.charset (BeOS): Use wildcard syntax.
113760 2001-03-13  Jim Meyering  <meyering@lucent.com>
113762         * lib/path-concat.c (path_concat)
113763         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
113764         concatenating e.g., `C:' and `foo'.
113765         From Bruno Haible.
113767 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
113769         * lib/localcharset.c (locale_charset): Don't use
113770         setlocale(LC_CTYPE,NULL). Don't return NULL.
113771         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
113773 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
113775         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
113776         support for DOS/DJGPP.
113778 2001-03-01  Paul Eggert  <eggert@twinsun.com>
113780         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
113781         lacks mkstemp.  Compile our own tempname.c if we compile our own
113782         mkstemp.c, as mkstemp relies on tempname.
113784 2001-03-01  Jim Meyering  <meyering@lucent.com>
113786         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
113787         AH_VERBATIM really does output its argument verbatim.
113789 2001-02-28  Paul Eggert  <eggert@twinsun.com>
113791         * lib/Makefile.am (libfetish_a_SOURCES):
113792         Add dup-safer.c, fopen-safer.c.
113793         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
113795         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
113796         * lib/unistd-safer.h: New files.
113798 2001-02-25  Paul Eggert  <eggert@twinsun.com>
113800         The mkstemp replacement is taken from glibc 2.2.2, with some
113801         portability fixes for use outside glibc, as follows:
113803         * lib/tempname.c (struct_stat64): New macro.
113804         (direxists, __gen_tempname): Use it.
113805         This avoids a portability problem with Solaris 8.
113807         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
113808         (<stddef.h>, <stdint.h>, <string.h>):
113809         Include only if STDC_HEADERS || _LIBC.
113810         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
113811         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
113812         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
113813         (__set_errno): Define this macro if <errno.h> doesn't.
113814         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
113815         Define these macros if <stdio.h> doesn't.
113816         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
113817         Define these macros if <sys/stat.h>
113818         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
113819         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
113820         __xstat64): Define if not _LIBC.
113821         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
113822         (__gen_tempname): Invoke gettimeofday only if
113823         HAVE_GETTIMEOFDAY || _LIBC;
113824         otherwise, fall back on plain "time".
113825         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
113827         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
113829         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
113831 2001-02-18  Paul Eggert  <eggert@twinsun.com>
113833         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
113835 2001-02-17  Paul Eggert  <eggert@twinsun.com>
113837         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
113838         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
113839         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
113840         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
113842 2001-02-17  Paul Eggert  <eggert@twinsun.com>
113844         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
113845         Remove workaround macros for hosts that have mbrtowc but not
113846         mbstate_t, as we now insist on proper declarations for both
113847         before using mbrtowc.
113849 2001-02-17  Jim Meyering  <meyering@lucent.com>
113851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
113852         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
113853         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
113854         UnixWare 7.1.1.
113856         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
113857         rather than AC_CACHE_VAL.
113859 2001-02-17  Jim Meyering  <meyering@lucent.com>
113861         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
113862         around included file name.
113864         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
113866         * lib/strftime.c: Update from GNU libc (the only changes were to
113867         comments).
113869 2001-02-17  Jim Meyering  <meyering@lucent.com>
113871         * lib/regex.c: Update from libc.
113873 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
113875         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
113876         clash.
113878 2001-02-16  Paul Eggert  <eggert@twinsun.com>
113880         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
113881         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
113882         Reported by Mark Hounschell via Paul Eggert.
113884 2001-02-07  Jim Meyering  <meyering@lucent.com>
113886         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
113888 2001-02-05  Jim Meyering  <meyering@lucent.com>
113890         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
113891         it includes the patch required for `large file' support with at least
113892         HP-UX's 10.20 /bin/cc.
113894 2001-02-03  Jim Meyering  <meyering@lucent.com>
113896         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
113897         AS_IF, now that it works once again (mysteriously).
113898         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
113900 2001-01-30  Jim Meyering  <meyering@lucent.com>
113902         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
113903         * m4/chown.m4: Rename conftestchown to conftest.chown.
113904         * m4/rename.m4: s/conftestdir/conftest.d1/ and
113905         s/conftestdir2/conftest.d2/.
113906         * m4/utimes.m4: s/conftestdata/conftest.data/
113907         Inspired by Pavel Roskin's change in autoconf.
113909 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
113911         * lib/config.charset: Update for FreeBSD 4.2.
113913 2001-01-27  Jim Meyering  <meyering@lucent.com>
113915         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
113916         a use of AS_IF.
113917         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
113919 2001-01-26  Jim Meyering  <meyering@lucent.com>
113921         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
113922         quotearg.c includes it.
113924 2001-01-26  Jim Meyering  <meyering@lucent.com>
113926         * lib/quotearg.c: Include stddef.h.
113927         * lib/quote.c: Include stddef.h.
113928         Reported by Axel Kittenberger.
113930         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
113931         line in double quotes so that it evokes a better diagnostic.
113932         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
113933         Reported by Axel Kittenberger.
113935 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
113937         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
113938         as if it was a `charset'.
113940 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
113942         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
113943         has const.
113945 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
113947         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
113948         to avoid a warning.  Add back 'const' to inptr.
113950 2001-01-20  Jim Meyering  <meyering@lucent.com>
113952         Be sure that headers are checked before used in code compiled
113953         for the type checks.
113954         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
113955         In place of that, invoke jm_CHECK_ALL_TYPES.
113956         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
113957         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
113958         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
113959         The check for ssize_t was mistakenly run before the test for unistd.h.
113961         The configure-time check for stdbool.h was missing.
113962         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
113963         (jm_PREREQ_HASH): New function.
113965 2001-01-17  Jim Meyering  <meyering@lucent.com>
113967         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
113968         for autoconf-2.49c.
113969         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
113971 2001-01-16  Jim Meyering  <meyering@lucent.com>
113973         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
113974         From Bruno Haible.
113976 2001-01-14  Jim Meyering  <meyering@lucent.com>
113978         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
113979         foo and bar.  Create conftestdir/ in the script, not in the C code.
113980         Remove directories in the script, not in the C code.
113981         Remove conftestdir{,2} before trying to create the directory.
113982         Make the entire configure script fail if the mkdir fails.
113984 2001-01-14  Jim Meyering  <meyering@lucent.com>
113986         * lib/rename.c: New file.  From Volker Borchert.
113987         Include stdlib.h, string.h or strings.h, and xalloc.h.
113988         Use strip_trailing_slashes rather than open-coding it.
113990 2001-01-03  Paul Eggert  <eggert@twinsun.com>
113992         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
113994 2001-01-03  Jim Meyering  <meyering@lucent.com>
113996         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
113997         of local `inptr' to avoid warning with some system declarations of
113998         iconv.
114000 2001-01-02  Volker Borchert  <bt@teknon.de>
114002         * m4/rename.m4: New file.
114003         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
114005 2001-01-01  Jim Meyering  <meyering@lucent.com>
114007         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
114008         even on systems with utmpx.h.  It's necessary for the declaration of
114009         utmp's ut_user member.  Reported by Andreas Jaeger.
114011         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
114012         available. They are required for the declarations of getgrgid and
114013         getpwuid resp.
114014         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
114015         Reported by Andreas Jaeger.
114017 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
114019         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
114020         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
114021         so `make install' also works in VPATH builds.
114023 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
114025         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
114026         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
114027         can be used in subdirectories.
114029 2000-12-29  Paul Eggert  <eggert@twinsun.com>
114031         * lib/modechange.c: Do not assume that mode_t uses the
114032         traditional octal encoding.  E.g. "chmod 1 FOO" should set
114033         the other-execute bit of FOO even if S_IXOTH != 1.
114035         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
114036         WOTH, XOTH, ALLM): New macros.
114037         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
114038          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
114039         Use them.
114040         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
114041         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
114042         (mode_compile):
114043         No need to use uintmax_t; unsigned long is long enough.
114044         Don't bother to get suffix since we don't use it.
114046 2000-12-26  Jim Meyering  <meyering@lucent.com>
114048         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
114049         better with autoheader.
114051 2000-12-24  Jim Meyering  <meyering@lucent.com>
114053         * lib/hash.c (is_prime): Return explicit boolean values.
114054         (hash_get_first): Return NULL to appease Irix5.6's 89.
114055         Reported by Nelson Beebe.
114057 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
114059         * lib/localcharset.c (locale_charset): Add support for Win32.
114061 2000-12-18  Paul Eggert  <eggert@twinsun.com>
114063         * lib/physmem.h, lib/physmem.c: New files.
114065         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
114066         (noinst_HEADERS): Add physmem.h.
114068         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
114069         't' for compatibility with Solaris 8 sort.
114071 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
114073         * lib/config.charset: Add support for BeOS.
114075 2000-12-17  Jim Meyering  <meyering@lucent.com>
114077         * m4/dos.m4 (jm_AC_DOS): New file and macro.
114078         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
114080 2000-12-16  Jim Meyering  <meyering@lucent.com>
114082         This bug had a serious impact on chown: `chown N:M FILE' (for integer
114083         N and M) would have treated it like `chown N:N FILE'.
114085         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
114087 2000-12-16  Jim Meyering  <meyering@lucent.com>
114089         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
114090         SHELLS_FILE to a file name that's useful on djgpp systems.
114091         Include stdlib.h.
114092         (ADDITIONAL_DEFAULT_SHELLS): Define.
114093         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
114094         Based mostly on a patch from Prashant TR.
114096 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
114098         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
114099         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
114100         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
114102 2000-12-08  Andreas Schwab  <schwab@suse.de>
114104         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
114105         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
114107 2000-12-07  Jim Meyering  <meyering@lucent.com>
114109         * lib/stripslash.c (ISSLASH): Define.
114110         (strip_trailing_slashes): Use ISSLASH rather than comparing against
114111         `/'.
114112         From Prashant TR.
114114         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
114115         (dir_name_r): Declare this function as static.
114116         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
114117         manifest itself on a name containing a mix of slashes and
114118         backslashes.
114119         Make this function work with names starting with a DOS-style
114120         drive letter and colon prefix.
114121         (dir_name): Append `.' if necessary.
114122         Based mostly on patches from Prashant TR and Eli Zaretskii.
114124         * lib/dirname.h (dir_name_r): Remove prototype.
114126 2000-12-06  Paul Eggert  <eggert@twinsun.com>
114128         * m4/off_t-format.m4: Remove this file.
114129         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
114131 2000-12-06  Jim Meyering  <meyering@lucent.com>
114133         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
114134         replacement strtoull, we may well need the replacement strtoul, too.
114135         Check for declarations of strtoul and strtoull.
114136         Check for strtol.  Mainly as a cue to cause automake to include
114137         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
114138         Check for limits.h -- strtol.c needs it.
114140 2000-12-05  Jim Meyering  <meyering@lucent.com>
114142         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
114144 2000-12-04  Jim Meyering  <meyering@lucent.com>
114146         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
114147         Also include memory.h, stdlib.h, unistd.h if appropriate.
114148         Reported by Andreas Jaeger (conflicting declaration of malloc).
114150 2000-12-02  Jim Meyering  <meyering@lucent.com>
114152         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
114153         * m4/jm-macros.m4 (jm_MACROS): require it.
114155 2000-12-02  Jim Meyering  <meyering@lucent.com>
114157         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
114159 2000-12-01  Paul Eggert  <eggert@twinsun.com>
114161         * lib/memrchr.c: Include <config.h> before any system include file.
114163 2000-11-30  Jim Meyering  <meyering@lucent.com>
114165         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
114167 2000-11-30  Jim Meyering  <meyering@lucent.com>
114169         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
114171 2000-11-29  Paul Eggert  <eggert@twinsun.com>
114173         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
114175 2000-11-26  Jim Meyering  <meyering@lucent.com>
114177         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
114179 2000-11-22  Paul Eggert  <eggert@twinsun.com>
114181         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
114182         size of (size_t) -1; it's not portable.
114184 2000-11-17  Jim Meyering  <meyering@lucent.com>
114186         * lib/strstr.c: Update from GNU libc.
114188 2000-11-17  Akim Demaille  <akim@epita.fr>
114190         * lib/obstack.h: Formatting changes.
114191         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
114192         prevent type checking.
114193         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
114194         cast the value to (void *): assigning a `foo *' to a `void *'
114195         variable is valid.
114196         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
114198 2000-11-16  Jim Meyering  <meyering@lucent.com>
114200         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
114202 2000-11-11  Jim Meyering  <meyering@lucent.com>
114204         * lib/error.c: Add a couple #includes, merging from GNU libc version.
114206 2000-11-10  Jim Meyering  <meyering@lucent.com>
114208         * lib/obstack.h: Update from GNU libc.
114209         * lib/obstack.c: Likewise.
114211 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
114213         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
114215 2000-11-06  Paul Eggert  <eggert@twinsun.com>
114217         * lib/getusershell.c (setusershell): Use rewind rather than
114218         fseek/fseeko, to avoid configuration hassles with fseeko.
114219         Don't bother opening SHELLS_FILE if shellstream is NULL;
114220         it's not necessary.
114222 2000-11-05  Jim Meyering  <meyering@lucent.com>
114224         * lib/makepath.h (make_dir): Declare.
114225         * lib/makepath.c (make_dir): Remove `static' attribute.
114226         Tweak a comment.
114228 2000-11-04  Jim Meyering  <meyering@lucent.com>
114230         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
114232 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
114234         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
114235         last one in a bucket, advance to the next bucket.
114237 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
114239         * lib/fnmatch.c: Do not comment out all the code if we are using
114240         the GNU C library, because in some cases we are replacing buggy
114241         code in the GNU C library itself.
114243 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
114245         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
114246         (regex_compile): Catch bogus \(\1\).
114248 2000-10-30  Paul Eggert  <eggert@twinsun.com>
114250         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
114251         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
114252         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
114254 2000-10-30  Paul Eggert  <eggert@twinsun.com>
114256         * lib/error.h, getline.h, modechange.h:
114257         Remove "2000" from Copyright line, as the file hasn't been
114258         changed this year other than in the copyright notice.
114260         * lib/xalloc.h: Add "2000" to Copyright line, as this file
114261         was changed this year.
114263 2000-10-29  Jim Meyering  <meyering@lucent.com>
114265         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
114266         renaming.
114267         * m4/ls-mntd-fs.m4: Likewise
114269 2000-10-29  Jim Meyering  <meyering@lucent.com>
114271         * lib/xstat.in: Fix grammar in comment.
114273 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
114275         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
114276         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
114277         doesn't define __restrict_arr.
114279 2000-10-28  Jim Meyering  <meyering@lucent.com>
114281         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
114282         (jm_PREREQ_MEMCHR): New function.
114284 2000-10-28  Jim Meyering  <meyering@lucent.com>
114286         * lib/memchr.c: Update from libc.
114287         Adjust for portability:
114288         [HAVE_STDLIB_H]: Include stdlib.h.
114289         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
114290         Undef __memchr, too.
114291         [!weak_alias]: Define __memchr to memchr.
114293         * lib/regex.c: Update from libc.
114294         * lib/regex.h: Likewise.
114295         * lib/getopt1.c: Likewise.
114296         * lib/memcmp.c: Likewise.
114298         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
114299         Avoid using fseek, when possible -- it's broken by design.
114300         Patch by Ulrich Drepper.
114302 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
114304         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
114305         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
114306         Giving in to popular pressure to shut up the compiler with casts.
114308 2000-10-26  Jim Meyering  <meyering@lucent.com>
114310         * lib/strftime.c: Update from libc.
114312 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
114314         * regex.c: More `unsigned char' -> `re_char' changes.
114315         Also change several `int' into `re_wchar_t'.
114316         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
114317         (PUSH_FAILURE_POINTER): Don't cast any more.
114318         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
114319         We want GCC to complain, since this piece of code makes
114320         re_match non-reentrant, which *should* be fixed.
114321         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
114322         (EXTEND_BUFFER): Use RETALLOC.
114323         (SET_LIST_BIT): Don't cast.
114324         (re_wchar_t): New type.
114325         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
114326         that those two functions will always properly return.
114327         (IMMEDIATE_QUIT_CHECK): Cast to void.
114328         (analyse_first): Use recursion rather than an explicit stack.
114329         (re_compile_fastmap): Can't fail anymore.
114330         (re_search_2): Don't check re_compile_fastmap for failure.
114331         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
114332         Now also sets the new value (passed in a new argument).
114333         (re_match_2_internal): Use it.
114334         Also, use a new var `reg' of type size_t when looping through regs
114335         rather than reuse the inappropriate `mcnt'.
114337 2000-10-25  Jim Meyering  <meyering@lucent.com>
114339         * lib/obstack.c: Update from libc.
114341 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
114343         * regex.c (regex_compile): Change the way of handling a range from
114344         a char less than 256 to a char not less than 256.
114346 2000-10-24  Andrew Innes  <andrewi@gnu.org>
114348         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
114349         NT-Emacs only.
114350         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
114351         so that re_search functions only quit when callers expect them to.
114353 2000-10-23  Jim Meyering  <meyering@lucent.com>
114355         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
114356         wrong.  That set_locale call must not have any side effects.
114357         From Paul Eggert.
114359 2000-10-22  Jim Meyering  <meyering@lucent.com>
114361         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
114362         [CYCLIC]: Remove now-unused definition.
114364         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
114365         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
114366         Suggestion from Ulrich Drepper.
114368 2000-10-21  Jim Meyering  <meyering@lucent.com>
114370         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
114371         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
114372         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
114374 2000-10-21  Jim Meyering  <meyering@lucent.com>
114376         * lib/dirname.c (memrchr): Declare if necessary.
114377         (dir_name): Remove the restriction that there be no
114378         trailing slashes.  Now, this code skips past them, effectively
114379         ignoring them.
114380         [TEST_DIRNAME] (main): New unit tests.
114382         * lib/memrchr.c: New file from GNU libc.
114383         Undef __memrchr, too.
114384         [!weak_alias]: Define __memrchr to memrchr.
114385         Guard weak_alias use with `#ifdef weak_alias'.
114387 2000-10-21  Jim Meyering  <meyering@lucent.com>
114389         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
114390         (dir_name): Use dir_name_r.
114391         * lib/dirname.h (dir_name_r): Declare it.
114393 2000-10-17  Jim Meyering  <meyering@lucent.com>
114395         * lib/quote.h (PARAMS): Define and use.
114396         Reported by Akim Demaille.
114398         * lib/getopt.c: Update from libc.
114400 2000-10-16  Jim Meyering  <meyering@lucent.com>
114402         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
114403         setlocale.
114404         From Jan Fedak.
114406 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
114408         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
114410 2000-09-25  Jim Meyering  <meyering@lucent.com>
114412         * lib/md5.h (rol): Define (from GnuPG).
114414         * lib/sha.c: Give credit (GnuPG) where due.
114415         (M): Use rol rather than open-coding it.
114416         Add a FIXME comment.
114418 2000-09-21  Jim Meyering  <meyering@lucent.com>
114420         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
114421         Reported by Michael Stone.
114423 2000-09-20  Jim Meyering  <meyering@lucent.com>
114425         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
114426         (noinst_HEADERS): Add sha.h.
114427         Based on code from Scott G. Miller and from GnuPG.
114429 2000-09-18  Jim Meyering  <meyering@lucent.com>
114431         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
114432         LIBS. Otherwise, everyone ends up linking with -lelf for some
114433         configurations.
114434         Reported by Mike Stone.
114436 2000-09-15  Jim Meyering  <meyering@lucent.com>
114438         * lib/regex.c: Update from libc.
114440 2000-09-10  Jim Meyering  <meyering@lucent.com>
114442         * lib/getopt.c (_getopt_internal): Update from glibc.
114444 2000-09-09  Jim Meyering  <meyering@lucent.com>
114446         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
114447         think it should be used as a general replacement for isascii.
114448         * lib/fnmatch.c: Likewise.
114449         * lib/mbswidth.c: Likewise
114450         * lib/regex.c: Likewise.
114452         Don't use atoi.
114453         * lib/userspec.c: Include sys/param.h and limits.h.
114454         Include xstrtol.h.
114455         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114456         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
114457         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
114458         UID, GID.  Check range.
114460 2000-09-06  Jim Meyering  <meyering@lucent.com>
114462         * lib/getopt.c (_getopt_internal): Update from glibc.
114464 2000-08-30  Jim Meyering  <meyering@lucent.com>
114466         * lib/strftime.c: Merge in changes from GNU libc.
114468 2000-08-26  Jim Meyering  <meyering@lucent.com>
114470         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
114471         * m4/fpending.m4: New file.
114473 2000-08-26  Jim Meyering  <meyering@lucent.com>
114475         * lib/closeout.c: Include "__fpending.h".
114476         (close_stdout_status): Return right away if there's nothing to flush.
114478         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
114479         * lib/__fpending.c: New file.
114480         * lib/__fpending.h: New file.
114482 2000-08-20  Jim Meyering  <meyering@lucent.com>
114484         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
114485         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
114486         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
114488 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
114490         Improve fileutils installation on systems where running
114491         programs (like install) can't be unlinked.
114492         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
114493         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
114495 2000-08-07  Paul Eggert  <eggert@twinsun.com>
114497         Standardize on "memory exhausted" instead of "Memory exhausted"
114498         or "virtual memory exhausted".
114499         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
114500         "virtual memory exhausted".
114501         * lib/same.c (same_name): Invoke xalloc_die instead of printing
114502         our own message.
114503         * lib/userspec.c (parse_user_spec): Likewise.
114504         * lib/bumpalloc.h: comment fix
114505         * lib/same.c, userspec.c: Include xalloc.h.
114507         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
114508         not char *const and pointing to a constant array.
114509         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
114510         (xrealloc): Comment fix.
114512         * lib/userspec.c (parse_user_spec):
114513         Don't translate a message until just before returning,
114514         to avoid unnecessary translation.
114516 2000-08-07  Jim Meyering  <meyering@lucent.com>
114518         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
114519         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
114520         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
114521         getgroups.c, gethostname.c, getopt.h, group-member.c,
114522         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
114523         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
114524         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
114525         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
114526         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
114527         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
114528         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
114529         yesno.c: Back out Copyright date changes for each file with no change
114530         this year.  This eases coordination with other programs using the same
114531         source code modules.  From Paul Eggert.
114533 2000-08-06  Paul Eggert  <eggert@twinsun.com>
114535         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
114536         not char, for compatibility with glibc 2.1.3 strftime.c.
114538 2000-08-03  Greg McGary  <greg@mcgary.org>
114540         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
114541         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
114542         (EXTEND_BUFFER): Use them.
114544 2000-08-01  Jim Meyering  <meyering@lucent.com>
114546         * lib/dirname.c (ISSLASH): Define.
114547         (BACKSLASH_IS_PATH_SEPARATOR): Define.
114548         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
114549         both `\' and `/' may be use as path separators.
114550         Based on a patch from Prashant TR.
114552 2000-07-31  Paul Eggert  <eggert@twinsun.com>
114554         * lib/quotearg.c (quotearg_n_options): Don't make the initial
114555         slot vector a constant, since it might get modified.
114557 2000-07-31  Jim Meyering  <meyering@lucent.com>
114559         * lib/xmalloc.c: Use `virtual memory exhausted', not
114560         `Memory exhausted'.
114561         * lib/obstack.c (print_and_abort): Likewise.
114563 2000-07-30  Paul Eggert  <eggert@twinsun.com>
114565         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
114566         buffer, so that the caller can always quote one small
114567         component of a "memory exhausted" message in slot 0.
114568         From a suggestion by Jim Meyering.
114570 2000-07-30  Jim Meyering  <meyering@lucent.com>
114572         * lib/makepath.c (make_path): Quote the other instance, too.
114574         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
114575         (STATIC_BUF_SIZE): Define.
114576         (quotearg_n_options): Use only statically allocated storage when
114577         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
114578         than STATIC_BUF_SIZE.
114580 2000-07-29  Jim Meyering  <meyering@lucent.com>
114582         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
114583         * lib/dirname.c (dir_name): Likewise.
114585         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
114586         `/'.
114588         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
114589         (dir_name): Assert that there are no trailing slashes.
114591 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
114593         * lib/mbswidth.h (mbswidth): Add a flags argument.
114594         (mbswidth): New declaration.
114595         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
114596         * lib/mbswidth.c (mbswidth): Add a flags argument.
114597         (mbsnwidth): New function.
114599 2000-07-24  Jim Meyering  <meyering@lucent.com>
114601         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
114603 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114605         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
114607 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114609         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
114610         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
114611         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
114612         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
114613         invoke multibyte primitives.
114615 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114617         * lib/quotearg.c:
114618         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
114619         so that mbstate_t is always defined.
114621         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
114622         be 1 in at least one GCC installation, and this configuration
114623         error is likely to be common.  Ignoring MB_LEN_MAX hurts
114624         performance on hosts that have mbrtowc but have only unibyte
114625         locales, but I assume these hosts are rare.
114627 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114629         * lib/mbswidth.c (_XOPEN_SOURCE):
114630         Don't define; this causes problems on Solaris 7.
114631         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
114633 2000-07-23  Jim Meyering  <meyering@lucent.com>
114635         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
114636         too: getgrgid, getpwuid, getuid.
114638 2000-07-23  Jim Meyering  <meyering@lucent.com>
114640         * lib/basename.c (base_name): Add an assertion.
114642 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
114644         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
114645         shadow its mbsinit function.
114647 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
114649         * lib/mbswidth.h: New file.
114650         * lib/mbswidth.c: New file.
114651         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
114652         (noinst_HEADERS): Add mbswidth.h.
114654 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
114656         * lib/config.charset: Add support for FreeBSD. Improve support for
114657         HP-UX and IRIX 6.
114659 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
114661         * m4/mbswidth.m4: New file.
114662         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
114664 2000-07-15  Jim Meyering  <meyering@lucent.com>
114666         * lib/makepath.c: Include quote.h.
114667         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
114668         corresponding argument in a `quote (...)' call.
114669         Give better diagnostics.
114671         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
114672         (noinst_HEADERS): Add quote.h.
114674         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
114675         from tar's src/misc.c.
114676         * lib/quote.h: New file.  Prototypes for same.
114678 2000-07-14  Paul Eggert  <eggert@twinsun.com>
114680         From a suggestion by Bruno Haible.
114681         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
114682         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
114683         to decide whether to define the BeOS workaround macro;
114684         this adjusts to the change to AC_MBSTATE_T.
114686 2000-07-14  Jim Meyering  <meyering@lucent.com>
114688         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
114689         jm_AC_TYPE_UINTMAX_T.
114691 2000-07-13  Paul Eggert  <eggert@twinsun.com>
114693         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
114695         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
114696         quotearg_buffer_restyled): Add support for
114697         clocale_quoting_style.  Undo previous change to
114698         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
114699         and "{RIGHT QUOTATION MARK}" msgids.
114701 2000-07-10  Paul Eggert  <eggert@twinsun.com>
114703         From a suggestion by Bruno Haible.
114704         * m4/mbstate_t.m4 (AC_MBSTATE_T):
114705         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
114706         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
114707         and mbstate_t, to a single-part test that simply defines mbstate_t.
114708         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
114709         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
114711 2000-07-10  Jim Meyering  <meyering@lucent.com>
114713         * m4/strerror_r.m4: Mirror the correction made in autoconf.
114715         * m4/gnu-source.m4: Output to confdefs.h directly.
114716         Suggestion from Akim Demaille.
114718 2000-07-09  Paul Eggert  <eggert@twinsun.com>
114720         The old behavior of quoting `like this' doesn't look good with
114721         newer, ISO-style fonts.  See:
114722         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
114724         Instead, quote "like this" by default.  Let the translator
114725         tailor the locale-specific quoting behavior by providing
114726         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
114728         * lib/quotearg.c (N_): New macro.
114729         (gettext_default): New function.
114730         (quotearg_buffer_restyled): Use
114731         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
114732         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
114734 2000-07-09  Jim Meyering  <meyering@lucent.com>
114736         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
114737         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
114739         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
114740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
114742 2000-07-09  Jim Meyering  <meyering@lucent.com>
114744         * lib/Most files: Update copyright dates to include 2000.
114746 2000-07-08  Jim Meyering  <meyering@lucent.com>
114748         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
114749         if not defined.
114750         (xgethostname): Remove now-unnecessary #ifdef.
114751         Move declaration of `err' into loop where it's used.
114753 2000-07-05  Paul Eggert  <eggert@twinsun.com>
114754         and Bruno Haible  <haible@clisp.cons.org>
114756         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
114757         only if the test for an object-type mbstate_t fails.  This
114758         prevents us from mistakenly reporting that mbstate_t is a
114759         system object type after we "#define mbstate_t int" to work
114760         around its lack.
114762 2000-07-05  Paul Eggert  <eggert@twinsun.com>
114763         and Bruno Haible  <haible@clisp.cons.org>
114765         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
114767 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114769         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
114770         to strerror_r.
114771         Include <ctype.h> for use of isalpha.
114773 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114775         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
114776         by allocating a larger buffer. Test the gethostname return value for
114777         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
114778         returns an error and ENAMETOOLONG isn't defined.
114780 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
114782         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
114783         dimension.
114785 2000-07-04  Jim Meyering  <meyering@lucent.com>
114787         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
114788         of the deprecated AC_CHECKING.
114790 2000-07-04  Jim Meyering  <meyering@lucent.com>
114792         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
114793         Reported by Bruno Haible.
114795 2000-07-04  Jim Meyering  <meyering@lucent.com>
114797         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
114798         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
114799         lacks mbrtowc.
114801 2000-07-03  Paul Eggert  <eggert@twinsun.com>
114803         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
114804         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
114806 2000-07-03  Paul Eggert  <eggert@twinsun.com>
114807         and Bruno Haible  <haible@clisp.cons.org>
114809         * lib/quotearg.c (mbrtowc):
114810         Assign to *pwc, and return 1 only if result is nonzero.
114811         (iswprint): Use ISPRINT when substituting our own mbrtowc.
114813 2000-07-03  Jim Meyering  <meyering@lucent.com>
114815         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
114817 2000-07-03  Jim Meyering  <meyering@lucent.com>
114819         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
114820         This is necessary to get a definition of e.g., UTMP_FILE on
114821         HP-UX 10.20.
114822         From Bob Proulx.
114824 2000-07-02  Jim Meyering  <meyering@lucent.com>
114826         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
114828         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
114829         AC_LIBOBJ(function_name).
114830         * m4/chown.m4: Likewise.
114831         * m4/fnmatch.m4: Likewise.
114832         * m4/ftruncate.m4: Likewise.
114833         * m4/getgroups.m4: Likewise.
114834         * m4/getline.m4: Likewise.
114835         * m4/group-member.m4: Likewise.
114836         * m4/jm-macros.m4: Likewise.
114837         * m4/lstat.m4: Likewise.
114838         * m4/malloc.m4: Likewise.
114839         * m4/memcmp.m4: Likewise.
114840         * m4/nanosleep.m4: Likewise.
114841         * m4/putenv.m4: Likewise.
114842         * m4/realloc.m4: Likewise.
114843         * m4/regex.m4: Likewise.
114844         * m4/stat.m4: Likewise.
114845         * m4/strftime.m4: Likewise.
114847 2000-07-02  Jim Meyering  <meyering@lucent.com>
114849         * lib/quotearg.c (mbstate_t): Don't define here.
114851 2000-07-02  Jim Meyering  <meyering@lucent.com>
114853         * lib/nanosleep.c (SIGCONT): Define if not already defined.
114855 2000-07-01  Jim Meyering  <meyering@lucent.com>
114857         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
114859 2000-07-01  Jim Meyering  <meyering@lucent.com>
114861         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
114862         problem.
114864 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
114866         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
114867         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
114869 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
114871         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
114872         per change in ../m4/ls-mntd-fs.m4.
114873         (read_filesystem_list): Ignore symbolic links.
114875 2000-06-29  Jim Meyering  <meyering@lucent.com>
114877         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
114878         for declaration of strcmp.
114880         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
114882         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
114883         Avoid warning by casting result to `char *' to remove `const'.
114885 2000-06-28  Jim Meyering  <meyering@lucent.com>
114887         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
114888         included by quotearg.c, for which we perform this test.  From
114889         Bruno Haible.
114891 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
114893         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
114894         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
114895         <utmpx.h> exists, put readutmp.o into LIBOBJS.
114897 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
114899         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
114901 2000-06-26  Paul Eggert  <eggert@twinsun.com>
114903         savedir now sets errno on failure and invokes xmalloc to get memory.
114904         Fix a couple of other minor bugs while we're at it.
114906         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
114907         (NAMLEN): Remove macro.
114908         (malloc, realloc): Remove decls.
114909         (stpcpy): Likewise.
114910         ("xalloc.h"): Include.
114911         (NAME_SIZE_DEFAULT): New macro.
114912         (savedir): Use xmalloc / xrealloc to allocate memory.
114913         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
114914         Skip "" directory entries.
114915         Use strlen to calculate directory entry length, since the old method
114916         is rarely used these days and isn't worth supporting.
114917         Don't use a pointer after freeing it.
114918         Check for integer overflow when calculating allocation size.
114919         Use memcpy to copy entries, instead of stpcpy.
114920         Set errno properly when returning NULL.
114921         Check for readdir error.
114923 2000-06-26  Jim Meyering  <meyering@lucent.com>
114925         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
114927 2000-06-25  Jim Meyering  <meyering@lucent.com>
114929         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
114930         Linux header bug when _XOPEN_SOURCE is defined to 500.
114932 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
114934         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
114935         deficiency.
114937 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
114939         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
114940         Include xalloc.h.
114941         Don't include <stdlib.h>.  Don't declare malloc, realloc.
114943 2000-06-24  Jim Meyering  <meyering@lucent.com>
114945         * m4/strerror_r.m4: Revive this file -- to try out an experimental
114946         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
114947         for which strerror does return char*, but which lacks a conveniently
114948         accessible declaration of the function.  If the compile-test says
114949         strerror_r doesn't work, then resort to a `run'-test that works on
114950         BeOS and segfaults on DEC Unix.
114952 2000-06-24  Jim Meyering  <meyering@lucent.com>
114954         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
114956 2000-06-23  Paul Eggert  <eggert@twinsun.com>
114958         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
114959         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
114961 2000-06-23  Paul Eggert  <eggert@twinsun.com>
114963         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
114964         (mbrtowc, mbstate_t): Define substitutes if
114965         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
114966         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
114967         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
114969 2000-06-23  Jim Meyering  <meyering@lucent.com>
114971         * m4/afs.m4: Add missing AC_MSG_RESULT.
114972         Reported by Bruno Haible.
114974         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
114975         Suggestion from Bruno Haible.
114977 2000-06-23  Jim Meyering  <meyering@lucent.com>
114979         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
114981 2000-06-21  Jim Meyering  <meyering@lucent.com>
114983         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
114985 2000-06-21  Jim Meyering  <meyering@lucent.com>
114987         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
114988         (noinst_HEADERS): Add getstr.h.
114990         * lib/getline.c (getstr): Move into a separate file.
114991         * lib/getstr.c (getstr): New file, extracted from getline.c, with
114992         the following changes: new parameter, delim2; both delim[12]
114993         parameters have type `int', not `char'.  The latter would lose
114994         with 8-bit delimiters.
114995         * lib/getstr.h: New file.
114997 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114999         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
115000         than 1024, return a memory chunk of least possible size, instead
115001         of size PATH_MAX + 2. In the loop, increment the size proportionally.
115002         Use free/xmalloc instead of xrealloc to avoid copying for very long
115003         paths.
115005 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
115007         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
115008         the empty string.
115010 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
115012         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
115013         address, not strdup.  Include <stdlib.h> and don't declare free().
115015 2000-06-19  Jim Meyering  <meyering@lucent.com>
115017         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
115019 2000-06-18  Jim Meyering  <meyering@lucent.com>
115021         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
115023         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
115024         `checking whether...' message to be consistent with that of the
115025         lstat test.
115027 2000-06-18  Jim Meyering  <meyering@lucent.com>
115029         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
115030         Besides, these days every porting target provides a mkdir function.
115032         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
115033         needed. (this snippet comes from src/system.h).
115035 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
115037         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
115039 2000-06-15  Paul Eggert  <eggert@twinsun.com>
115041         * lib/human.c (adjust_value): New function.
115042         (human_readable_inexact): Apply rounding style even when
115043         printing approximate values.
115045 2000-06-14  Paul Eggert  <eggert@twinsun.com>
115047         * lib/human.c (human_readable_inexact): Allow an input block
115048         size that is not a multiple of the output block size, and vice versa.
115049         Reported by Piergiorgio Sartor.
115051 2000-06-14  Paul Eggert  <eggert@twinsun.com>
115053         * lib/getdate.y (get_date): Apply relative times after time
115054         zone indicator, not before.  Reported by Todd A. Jacobs.
115056 2000-06-13  Jim Meyering  <meyering@lucent.com>
115058         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
115060         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
115062 2000-06-12  Paul Eggert  <eggert@twinsun.com>
115064         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
115066 2000-06-12  Jim Meyering  <meyering@lucent.com>
115068         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
115069         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
115070         optional argument.
115071         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
115072         the optional argument, `lib'.
115074 2000-06-08  Jim Meyering  <meyering@lucent.com>
115076         * m4/largefile.m4: Remove file (now that it's part of autoconf).
115078 2000-06-04  Paul Eggert  <eggert@twinsun.com>
115080         Rewrite largefile configuration so that we don't need to run
115081         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
115082         AC_CANONICAL_HOST in configure.in -- jmm]
115084         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
115085         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
115086         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
115087         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
115088         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
115089         All uses changed.
115090         Instead of inspecting the output of getconf, try to compile the
115091         test program without and with the macro definition.
115092         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
115093         for getconf.  Instead, check for the needed flags by compiling
115094         test programs.
115096 2000-06-04  Paul Eggert  <eggert@twinsun.com>
115098         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
115100 2000-06-04  Jim Meyering  <meyering@lucent.com>
115102         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
115103         SunOS 4.1.4 for which gid_t is an unsigned type.
115105 2000-06-03  Jim Meyering  <meyering@lucent.com>
115107         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
115108         now that autoconf requires that.
115110         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
115111         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
115112         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
115114 2000-06-03  Jim Meyering  <meyering@lucent.com>
115116         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
115118 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
115120         * m4/glibc21.m4: New file.
115121         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
115123 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
115125         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
115126         newer, don't install charset.alias.
115127         * lib/config.charset: Change the Linux/glibc rules so they become empty
115128         on glibc-2.1 or newer.
115130 2000-06-02  Jim Meyering  <meyering@lucent.com>
115132         * lib/mountlist.c: Back out last change.  Instead, do this...
115133         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
115134         me_dummy member using the same `ignore'-testing code.
115135         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
115136         fs_type strings.
115137         From Mark D. Roth.
115139 2000-05-29  Jim Meyering  <meyering@lucent.com>
115141         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
115142         mounts with the `ignore' attribute.  Based on a patch from
115143         Mark D. Roth.
115145 2000-05-28  Jim Meyering  <meyering@lucent.com>
115147         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
115148         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115149         * m4/stat.m4: Likewise.
115150         * m4/lstat.m4: Likewise.
115151         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
115153         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
115154         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
115156 2000-05-26  Jim Meyering  <meyering@lucent.com>
115158         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
115160 2000-05-24  Jim Meyering  <meyering@lucent.com>
115162         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
115163         autoconf requires that.
115164         * m4/lib-check.m4: Likewise.
115165         * m4/jm-macros.m4: Likewise.
115166         * m4/strftime.m4: Likewise.
115168         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
115169         AC_CHECK_DECLS, now that autoconf requires that.
115171 2000-05-22  Jim Meyering  <meyering@lucent.com>
115173         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115174         * m4/lstat.m4: Likewise.
115176 2000-05-22  Jim Meyering  <meyering@lucent.com>
115178         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
115180 2000-05-20  Jim Meyering  <meyering@lucent.com>
115182         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
115183         (jm_PREREQ): Use it.
115185 2000-05-18  Jim Meyering  <meyering@lucent.com>
115187         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
115188         back, too, since it may have been modified by allocate_entry.
115189         (hash_delete): Rewrite to use neither the assignment operator
115190         nor the comma operator in an if-expression.
115192 2000-05-15  Paul Eggert  <eggert@twinsun.com>
115194         * lib/closeout.c:
115195         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
115196         Remove; no longer needed.
115197         "quotearg.h": Add include.
115198         (file_name): Do not bother to explicitly initialize to NULL; it's less
115199         efficient on some hosts.
115200         (close_stdout_status): Remove test as to whether stdout was already
115201         closed; it breaks for the case "echo x | sort >&-".
115202         Quote file name colons.
115203         Do not assume that _("write error") lacks format strings.
115205 2000-05-15  Jim Meyering  <meyering@lucent.com>
115207         * lib/version-etc.c (version_etc_copyright): Update the copyright
115208         string used in all --version output.
115210 2000-05-14  Jim Meyering  <meyering@lucent.com>
115212         * lib/closeout.c (close_stdout_set_file_name): New function.
115213         (close_stdout_status): Use new file-scoped global.
115214         Return right away if fstat says the stdout file descriptor is invalid.
115215         * lib/closeout.h (close_stdout_set_file_name): Declare.
115217 2000-05-10  Jim Meyering  <meyering@lucent.com>
115219         * lib/closeout.c [default_exit_status]: New file-scoped variable.
115220         (close_stdout_set_status): New function.
115221         * lib/closeout.h (close_stdout_set_status): Declare.
115223 2000-05-09  Jim Meyering  <meyering@lucent.com>
115225         * m4/gettext.m4: Rename this...
115226         * m4/libintl.m4: ...to this.
115228 2000-05-08  Jim Meyering  <meyering@lucent.com>
115230         * lib/long-options.c: Don't include closeout.h.
115231         (parse_long_options): Don't call close_stdout for --version.
115233 2000-05-06  Paul Eggert  <eggert@twinsun.com>
115235         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
115236         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
115237         2.1.3 bug.  This avoids a clash when files like regex.c define
115238         _GNU_SOURCE.
115240 2000-05-06  Jim Meyering  <meyering@lucent.com>
115242         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
115243         (AC_REPLACE_FUNCS): Add strnlen.
115245         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
115246         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
115248         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
115249         AC_SEARCH_LIBS call for nanosleep.
115250         (LIB_NANOSLEEP): Set and AC_SUBST.
115252 2000-05-06  Jim Meyering  <meyering@lucent.com>
115254         * lib/strnlen.c: Undefine __strnlen and strnlen.
115255         [!weak_alias]: Define __strnlen to strnlen.
115257         * lib/atexit.c: New file, from libiberty.
115259 2000-05-06  Jim Meyering  <meyering@lucent.com>
115261         * lib/closeout.c (close_stdout_status): Also check for errors on the
115262         stderr stream.
115264 2000-05-05  Jim Meyering  <meyering@lucent.com>
115266         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
115267         AC_SEARCH_LIBS call for clock_gettime.
115268         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
115270         * m4/search-libs.m4: Update from autoconf.
115272         su doesn't work on Solaris 2.6.
115273         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
115274         <shadow.h>.  Reported by Dragos Harabor.
115276 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
115278         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
115279         memcpy instead of xmalloc, xrealloc, path_concat.
115280         (locale_charset): Treat empty environment variables as absent.
115281         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
115283 2000-05-04  Jim Meyering  <meyering@lucent.com>
115285         * lib/getopt.c: Update from glibc.
115286         * lib/obstack.c: Likewise.
115287         * lib/obstack.h: Likewise.
115288         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
115289         file
115291         * lib/regex.h: Likewise.
115292         * lib/strndup.c: Likewise.
115293         * lib/strnlen.c: New file, from glibc.
115295 2000-05-03  Jim Meyering  <meyering@lucent.com>
115297         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
115299 2000-05-02  Paul Eggert  <eggert@twinsun.com>
115301         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
115302         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
115303         compile-time test, rather than inspecting host and OS, to
115304         decide whether to define _LARGEFILE_SOURCE.
115306 2000-05-01  Jim Meyering  <meyering@lucent.com>
115308         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
115310         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
115311         Based on a patch from Bruno Haible.
115313 2000-05-01  Jim Meyering  <meyering@lucent.com>
115315         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
115317 2000-04-29  Jim Meyering  <meyering@lucent.com>
115319         * lib/path-concat.c: Declare strdup only if it's not defined.
115320         * lib/canon-host.c: Likewise.
115322 2000-04-28  Jim Meyering  <meyering@lucent.com>
115324         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
115325         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
115326         is included first, then limits.h is included by locale.h by libintl.h.
115327         From John David Anglin.
115329 2000-04-25  Jim Meyering  <meyering@lucent.com>
115331         * lib/makepath.c (S_IRWXUGO): Define.
115332         (make_path): Always perform explicit chmod if MODE specifies any
115333         of the `special' permission bits.  Prompted by a bug report against
115334         install from Mate Wierdl and Joost van Baal.
115336 2000-04-18  Jim Meyering  <meyering@lucent.com>
115338         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
115339         (jm_PREREQ): Use it.
115341 2000-04-18  Jim Meyering  <meyering@lucent.com>
115343         * lib/README: New file.
115345         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
115346         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
115348 2000-04-17  Jim Meyering  <meyering@lucent.com>
115350         Get it right :-)
115351         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
115352         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
115353         Suggestion from Akim Demaille.
115355 2000-04-17  Jim Meyering  <meyering@lucent.com>
115357         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
115358         the definition of it to rpl_strftime also defined-away the system's
115359         declaration.
115361 2000-04-15  Jim Meyering  <meyering@lucent.com>
115363         Use `C' to denote so-called `contiguous' files, the same way
115364         that tar does.
115365         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
115366         (ftypelet): Use S_ISCTG.
115367         From Michael Deutschmann.
115369 2000-04-14  Jim Meyering  <meyering@lucent.com>
115371         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
115372         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
115373         clobbered.
115375 2000-04-14  Jim Meyering  <meyering@lucent.com>
115377         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
115379 2000-04-13  Jim Meyering  <meyering@lucent.com>
115381         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
115382         AH_VERBATIM to insert required #ifndef into config.h.in.
115383         Suggestion from Akim Demaille.
115385 2000-04-12  Jim Meyering  <meyering@lucent.com>
115387         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
115388         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
115389         Christian Krackowizer.
115391         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
115392         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
115393         (AC_SYS_LARGEFILE): Require.
115394         (AM_C_PROTOTYPES): Require.
115396 2000-04-08  Jim Meyering  <meyering@lucent.com>
115398         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
115399         names don't conflict.  Reported by Eli Zaretskii.
115401 2000-04-07  Jim Meyering  <meyering@lucent.com>
115403         * lib/putenv.c: Move inclusion of errno.h so it follows that of
115404         sys/types.h, to work around system header problems on AIX 3.2.5.
115405         From Bruno Haible.
115407 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
115409         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
115410         bug.  Deal with the different error behavior of Irix iconv.
115412 2000-04-05  Paul Eggert  <eggert@twinsun.com>
115414         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
115415         IRIX if the installer said otherwise.
115417 2000-04-05  Jim Meyering  <meyering@lucent.com>
115419         Portability tweaks required for ultrix4.3.
115420         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
115421         (jm_CHECK_DECLS): Add getutent to the list of functions.
115422         (_jm_DECL_HEADERS): Add utmpx.h.
115423         From John David Anglin.
115425         * m4/strftime.m4: Back out the 2000-04-02 change.
115426         Instead of that change, simply undefine putenv in the test program.
115428 2000-04-05  Jim Meyering  <meyering@lucent.com>
115430         Portability tweaks required for ultrix4.3.
115431         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
115432         getutent.
115433         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
115434         * lib/canon-host.c: Declare strdup.
115435         * lib/path-concat.c: Likewise.
115436         From John David Anglin.
115438 2000-04-04  Jim Meyering  <meyering@lucent.com>
115440         Be more DOS 8.3-friendly.
115441         * lib/ref-add.sin: Renamed from ref-add.sed.in.
115442         * lib/ref-del.sin: Renamed from ref-del.sed.in.
115443         * lib/Makefile.am: Reflect renaming.
115444         Reported by Eli Zaretskii.
115446         Use a temporary file name that won't clash with `charset.alias'
115447         in the DOS 8.3 name space.
115448         * lib/Makefile.am (charset_tmp): Define.
115449         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
115450         (uninstall-local): Likewise.
115451         Reported by Eli Zaretskii.
115453 2000-04-03  Jim Meyering  <meyering@lucent.com>
115455         * m4/gettext.m4: Fix typo in comment.
115457         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
115458         textutils/configure.in).  Suggestion from Paul Eggert.
115459         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
115461 2000-04-02  Paul Eggert  <eggert@twinsun.com>
115463         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
115464         variable in the shell rather than using putenv, which isn't
115465         portable.  This avoids the configure-time inter-test dependency
115466         on the potentially-renamed putenv function.
115468 2000-03-30  Paul Eggert  <eggert@twinsun.com>
115470         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
115471         before checking struct stat.st_blksize, so that
115472         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
115474 2000-03-29  Paul Eggert  <eggert@twinsun.com>
115476         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
115477         since strftime.c uses HAVE_STRFTIME to decide whether to use
115478         the underlying strftime.
115480 2000-03-29  Paul Eggert  <eggert@twinsun.com>
115482         * lib/time/strftime.c (my_strftime): Make sure we call the system
115483         strftime, not ourselves, when invoking the underlying strftime.
115485 2000-03-24  Jim Meyering  <meyering@lucent.com>
115487         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
115488         (charset_alias): Define.
115489         (install-exec-local): Factor out common code.
115490         (uninstall-local): Split lines longer than 80.
115491         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
115492         (SUFFIXES): Define.
115493         (.sed.in.sed): New rule.  Don't redirect directly to $@.
115494         (CLEANFILES): Add ref-add.sed and ref-del.sed.
115496 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
115498         * lib/config.charset: Output a line containing "Packages using this
115499         file".
115500         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
115501         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
115502         ref-del.sed): New rules.
115504 2000-03-17  Jim Meyering  <meyering@lucent.com>
115506         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
115507         Otherwise, include <strings.h>
115509 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
115511         * lib/unicodeio.c (utf8_wctomb): New function.
115512         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
115513         format instead of in UCS-4 with platform dependent endianness.
115515 2000-03-10  Jim Meyering  <meyering@lucent.com>
115517         * m4/lib-check.m4: Look for getspnam in -lgen, too.
115518         From Marco Franzen.
115520 2000-03-07  Paul Eggert  <eggert@twinsun.com>
115522         * lib/savedir.c (savedir): Work even if directory size is
115523         negative; this can happen with some screwy NFS configurations.
115525 2000-03-06  Jim Meyering  <meyering@lucent.com>
115527         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
115528         if it's NULL (because we ran out of memory).  From Bruno Haible.
115530 2000-03-05  Jim Meyering  <meyering@lucent.com>
115532         * lib/localcharset.c ("path-concat.h"): Include.
115533         (get_charset_aliases): Use path_concat instead of ANSI string
115534         concatenation.
115536         * lib/unicodeio.h (PARAMS): Define.
115537         Use it to guard prototype.
115539 2000-03-04  Jim Meyering  <meyering@lucent.com>
115541         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
115542         for lib/localcharset.c.
115544 2000-03-04  Jim Meyering  <meyering@lucent.com>
115546         * lib/Makefile.am (install-exec-local): Create $(libdir) before
115547         installing into it.
115548         (uninstall-local): Uncomment this rule so `make distcheck' works
115549         once again.
115551         * lib/unicodeio.c (<errno.h>): Include it.
115552         (errno): Declare if not defined.
115554         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
115556         * lib/config.charset: New version, incorporating remarks from a linux
115557         i18n mailing list.  From Bruno Haible.
115559 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
115561         * m4/codeset.m4: New file.
115562         * m4/iconv.m4: New file.
115563         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
115565 2000-03-03  Jim Meyering  <meyering@lucent.com>
115567         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
115569 2000-03-02  Jim Meyering  <meyering@lucent.com>
115571         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
115572         the messages come out on separate lines.
115574         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
115575         rather than jm_CHECK_DECLARATIONS.
115576         * m4/decl.m4: Remove now-unused file.
115578         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
115579         geteuid.
115581 2000-03-02  Jim Meyering  <meyering@lucent.com>
115583         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
115585 2000-03-01  Jim Meyering  <meyering@lucent.com>
115587         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
115588         * lib/unicodeio.c: Likewise.
115590 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
115592         * lib/config.charset: New file.
115593         * lib/localcharset.c: New file.
115594         * lib/unicodeio.h, lib/unicodeio.c: New files.
115595         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
115596         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
115597         (noinst_HEADERS): Add unicodeio.h.
115598         (all-local, install-exec-local, charset.alias): New targets.
115600 2000-02-28  Paul Eggert  <eggert@twinsun.com>
115602         * lib/quotearg.c (ALERT_CHAR): New macro.
115603         (quotearg_buffer_restyled): Use it.
115605 2000-02-27  Jim Meyering  <meyering@lucent.com>
115607         * m4/check-decl.m4: Add getenv to the list.
115609 2000-02-27  Jim Meyering  <meyering@lucent.com>
115611         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
115612         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
115614         * lib/backupfile.c: Guard inclusion of stdlib.h with
115615         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
115616         Declare malloc if needed.
115618         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
115619         `#ifndef HAVE_DECL..'
115620         now that autoconf always defines the HAVE_DECL_ symbols.
115621         * lib/human.c: Likewise.
115622         * lib/same.c: Likewise.
115623         * lib/strtoumax.c: Likewise.
115625         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
115626         declaration check was not run.
115627         * lib/hash.c: Likewise.
115628         * lib/human.c: Likewise.
115629         * lib/same.c: Likewise.
115630         * lib/strtoumax.c: Likewise.
115632         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
115633         `.', then first look up the entire `.'-containing string as a login
115634         name.
115636 2000-02-23  Jim Meyering  <meyering@lucent.com>
115638         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
115639         in place of my hack.
115641 2000-02-18  Paul Eggert  <eggert@twinsun.com>
115643         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
115644         (textint): New typedef.
115645         (parser_control): Member year changed from int to textint.
115646         All uses changed.
115647         (YYSTYPE): Removed; replaced by %union with int and textint members.
115648         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
115649         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
115650         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
115651         (tSNUMBER, tUNUMBER): Now of type <textintval>.
115652         (date, number, to_year): Use width of number in digits, not its value,
115653         to determine whether it's a 2-digit year, or a 2-digit time.
115654         (yylex): Store number of digits of numeric tokens.
115655         Reported by John Kendall.
115657         (parser_control): Changed from struct parser_control to typedef (for
115658         consistency).  All uses changed.
115660         (tID): Removed; not used.
115661         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
115663 2000-02-14  Paul Eggert  <eggert@twinsun.com>
115665         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
115666         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
115668 2000-02-12  Jim Meyering  <meyering@lucent.com>
115670         * lib/userspec.c (ISDIGIT): Define it.
115671         (isdigit): Remove definition.
115672         (is_number): Use ISDIGIT, not isdigit.
115673         <libintl.h>: Include.
115674         (_ and N_): Define.
115675         (parse_user_spec): Mark translatable strings.
115677 2000-02-10  Jim Meyering  <meyering@lucent.com>
115679         With these changes, nanosleep.[ch] are finally enough like the other
115680         lib/* replacement files to compile on a few more losing systems.
115682         * lib/nanosleep.h: Don't include config.h.
115683         Remove prototype from declaration of nanosleep.
115684         (PARAMS): Remove now-unneeded definition.
115685         * lib/nanosleep.c: #undef nanosleep.
115686         (rpl_nanosleep): Rename from nanosleep.
115688 2000-02-10  Jim Meyering  <meyering@lucent.com>
115690         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
115691         gnu_nanosleep to rpl_nanosleep.
115693 2000-02-09  Jim Meyering  <meyering@lucent.com>
115695         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
115696         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
115698 2000-02-08  Akim Demaille  <akim@epita.fr>
115700         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
115701         `[' and `]' and remove uses of `changequote'.
115702         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
115703         (AC_SYS_LARGEFILE): Likewise.
115704         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
115705         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
115706         of changequote.
115707         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
115708         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
115709         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
115710         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
115712 2000-02-05  Jim Meyering  <meyering@lucent.com>
115714         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
115715         Remove explicit use of AC_HEADER_TIME.  It is required by
115716         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
115717         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
115718         in autoconf whereby the expansion of the latter ended up preceding
115719         the expansion of its prerequisite, AC_HEADER_TIME.
115720         Reported by Volker Borchert.
115722 2000-02-03  Jim Meyering  <meyering@lucent.com>
115724         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
115726 2000-02-03  Jim Meyering  <meyering@lucent.com>
115728         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
115729         rather than with `#if HAVE_UTMPNAME'.
115731 2000-02-02  Jim Meyering  <meyering@lucent.com>
115733         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
115734         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
115735         Reported by Eli Zaretskii.
115737 2000-02-01  Jim Meyering  <meyering@lucent.com>
115739         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
115741 2000-01-31  Jim Meyering  <meyering@lucent.com>
115743         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
115744         functions.  Add the time.h and sys/time.h headers along with the
115745         AC_REQUIRE'ment of AC_HEADER_TIME.
115747 2000-01-31  Jim Meyering  <meyering@lucent.com>
115749         * lib/nanosleep.h (nanosleep): Guard declaration with
115750         `#if ! HAVE_DECL_NANOSLEEP'.
115751         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
115752         the declaration in that vendor's sys/timers.h.
115753         Reported by Christian Krackowizer.
115755         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
115756         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
115757         (ISPRINT): Likewise.
115758         Reported by Tom Tromey.
115760 2000-01-30  Jim Meyering  <meyering@lucent.com>
115762         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
115764         * m4/prereq.m4 (utmp_includes): Define.
115765         Check for ut_user and ut_name members in both struct utmpx
115766         and struct utmp.
115768 2000-01-30  Jim Meyering  <meyering@lucent.com>
115770         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
115771         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
115772         header files where only utmpx.ut_user is declared.
115774         * lib/readutmp.h (UT_USER): Define.
115776 2000-01-29  Jim Meyering  <meyering@lucent.com>
115778         * m4/lib-check.m4: New file containing library-related checks from
115779         fileutils and sh-utils (textutils had none).
115781 2000-01-28  Jim Meyering  <meyering@lucent.com>
115783         * m4/perl.m4: Change format of warning message to look more like that
115784         from the missing script.  Suggestion from François Pinard.
115786 2000-01-25  Jim Meyering  <meyering@lucent.com>
115788         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
115789         well as time.h in the compile check.
115790         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
115791         Fix typo in cross-compiling case: s/yes/no/.
115793 2000-01-23  Jim Meyering  <meyering@lucent.com>
115795         * m4/jm-macros.m4: Move df-related tests here from
115796         fileutils/configure.in
115798         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
115799         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
115801         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
115802         s/space/ac_fsusage_space/.
115803         (jm_FILE_SYSTEM_USAGE): Take two parameters.
115805         * m4/ftruncate.m4: New file (derived from part of
115806         fileutils/configure.in).
115807         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
115808         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
115810         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
115811         AC_SUBST these here, rather than just in sh-util/configure.in, so
115812         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
115813         all the same.
115814         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
115815         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
115816         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
115817         (AC_SUBST(POW_LIBM)): Likewise.
115818         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
115820 2000-01-23  Jim Meyering  <meyering@lucent.com>
115822         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
115823         obstack.c.
115825 2000-01-22  Jim Meyering  <meyering@lucent.com>
115827         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
115829         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
115831         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
115832         configure.in
115833         (AC_CHECK_HEADERS): Likewise for sh-utils.
115834         (AC_CHECK_HEADERS): Likewise for textutils.
115835         Merge the three lists of headers.
115837         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
115838         from fileutils' configure.in.
115840         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
115841         code. Moved tests into their own function (_jm_DECL_HEADERS) in
115842         check-decl.m4.
115844         * m4/check-decl.m4: Use #if rather than #ifdef.
115845         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
115846         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
115847         (_jm_DECL_HEADERS): Define new function.
115848         (jm_CHECK_DECLARATIONS): Require it.
115850 2000-01-22  Jim Meyering  <meyering@lucent.com>
115852         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
115853         [! HAVE_DECL_STRTOULL]: Declare strtoull.
115854         Required for some AIX systems.  Reported by Christian Krackowizer.
115855         [TESTING] (main): New function.
115857         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
115858         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
115859         letters.
115861         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
115862         iswprint.
115864         * lib/strverscmp.c (ISDIGIT): Define.
115865         (strverscmp): Use ISDIGIT, not isdigit.
115867 2000-01-19  Jim Meyering  <meyering@lucent.com>
115869         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
115870         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
115871         defines `struct timespec' in <sys/time.h>
115873         * m4/c-bs-a.m4: Remove uses of changequote altogether.
115874         Thanks to Akim for explaining.
115876 2000-01-17  Paul Eggert  <eggert@twinsun.com>
115878         * lib/nanosleep.c (nanosleep):
115879         Don't use SA_INTERRUPT to decide whether to call sigaction, as
115880         POSIX.1 doesn't require SA_INTERRUPT and some systems
115881         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
115882         it's been part of POSIX.1 since day 1 (in 1988).
115884 2000-01-17  Jim Meyering  <meyering@lucent.com>
115886         * lib/interlock: Remove unused file.  Reported by François Pinard.
115888 2000-01-16  Paul Eggert  <eggert@twinsun.com>
115890         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
115891         alert, backslash, formfeed, and vertical tab unnecessarily in
115892         shell quoting style.
115894 2000-01-16  Jim Meyering  <meyering@lucent.com>
115896         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
115897         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
115898         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
115899         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
115901 2000-01-16  Jim Meyering  <meyering@lucent.com>
115903         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
115904         because the latter didn't work.
115906 2000-01-15  Jim Meyering  <meyering@lucent.com>
115908         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
115909         (AC_REPLACE_FUNCS): Add memcpy and memset.
115910         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
115911         Add strpbrk.
115912         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
115914 2000-01-12  Jim Meyering  <meyering@lucent.com>
115916         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
115917         (jm_PREREQ): Use it.
115918         (jm_PREREQ_READUTMP): New macro.
115919         (jm_PREREQ): Use it.
115921 2000-01-11  Paul Eggert  <eggert@twinsun.com>
115923         Quote multibyte characters correctly.
115924         * m4/c-bs-a.m4: New file.
115925         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
115926         (jm_PREREQ): Use it.
115928 2000-01-11  Paul Eggert  <eggert@twinsun.com>
115930         * m4/uintmax_t.m4: Port to autoconf 2.13.
115932 2000-01-08  Jim Meyering  <meyering@ascend.com>
115934         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
115935         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
115937 2000-01-04  Jim Meyering  <meyering@ascend.com>
115939         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
115940         jm_STRUCT_DIRENT_D_TYPE.
115941         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
115942         jm_STRUCT_DIRENT_D_INO.
115943         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
115944         jm_STRUCT_UTIMBUF.
115945         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
115946         renamings.
115947         * m4/utime.m4: Likewise.
115949         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
115950         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
115952 2000-01-03  Paul Eggert  <eggert@twinsun.com>
115954         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
115955         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
115957 2000-01-02  Jim Meyering  <meyering@ascend.com>
115959         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
115960         remember if this is necessary.
115962 1999-12-26  Jim Meyering  <meyering@ascend.com>
115964         * m4/jm-macros.m4: Use it here.
115965         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
115967 1999-12-23  Jim Meyering  <meyering@ascend.com>
115969         * m4/jm-macros.m4: Check for clock_gettime (moved from
115970         fileutils/configure.in)
115971         Check for gettimeofday.
115973 1999-12-20  Jim Meyering  <meyering@ascend.com>
115975         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
115976         autoconf-2.14a-1999-12-20.
115978 1999-12-19  Jim Meyering  <meyering@ascend.com>
115980         * m4/lstat-slash.m4: New file.
115981         * m4/jm-macros.m4: Use the new macro:
115982         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115984 1999-12-07  Jim Meyering  <meyering@ascend.com>
115986         * m4/perl.m4: Require that File::Compare be available, too.
115987         Too many systems seem to lack it.
115989         * m4/strftime.m4: Add checks for most of the cpp macros tested in
115990         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
115992 1999-11-18  Paul Eggert  <eggert@twinsun.com>
115994         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
115995         problem with the QNX 4.25 shell, which doesn't propagate exit
115996         status of failed commands inside shell assignments.
115998 1999-11-17  Jim Meyering  <meyering@ascend.com>
116000         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
116002 1999-11-07  Jim Meyering  <meyering@ascend.com>
116004         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
116006 1999-11-06  Jim Meyering  <meyering@ascend.com>
116008         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
116009         * m4/jm-macros.m4 (jm_MACROS): Use it here.
116011 1999-11-05  Jim Meyering  <meyering@ascend.com>
116013         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
116014         configure.in of textutils, fileutils, and sh-utils into this one
116015         (shared between those packages) file.
116016         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
116017         AC_STRUCT_ST_BLKSIZE.
116019 1999-11-03  Jim Meyering  <meyering@ascend.com>
116021         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
116022         of AC_CHECK_TYPE checks includes unistd.h.
116023         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
116024         Suggestion from Akim Demaille.
116026 1999-10-30  Jim Meyering  <meyering@ascend.com>
116028         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
116029         m4-quoted string.
116030         * m4/ls-mntd-fs.m4: Likewise.
116031         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
116032         * m4/jm-winsz1.m4: Likewise.
116034         * m4/const.m4: Remove file, since the fix made it into the experimental
116035         version of autoconf.
116036         * m4/mktime.m4: Likewise.
116038         * m4/check-type.m4: Remove file, now that the latest version of
116039         AC_CHECK_TYPE takes a third arg to specify additional #includes.
116041         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
116042         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
116043         AC_CHECK_TYPE.
116045 1999-10-04  Jim Meyering  <meyering@ascend.com>
116047         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
116049 1999-09-22  Paul Eggert  <eggert@twinsun.com>
116051         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
116052         2.95.1 bug with HP-UX 10.20.
116054 1999-09-17  Jim Meyering  <meyering@ascend.com>
116056         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
116057         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
116058         due to missing strdup (against sh-utils-2.0).
116060 1999-08-29  Jim Meyering  <meyering@ascend.com>
116062         * m4/jm-macros.m4: Require jm_BISON.
116063         * m4/bison.m4: New file.
116065 1999-08-17  Paul Eggert  <eggert@twinsun.com>
116067         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
116068         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
116070 1999-08-05  Jim Meyering  <meyering@ascend.com>
116072         * m4/getline.m4: Rename test file from conftestdata to conftest.data
116073         to avoid conflicts with `conftest' on 8+3 filesystems.
116074         Suggestion from Eli Zaretskii.
116076 1999-08-04  Jim Meyering  <meyering@ascend.com>
116078         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
116079         fileutils and sh-utils (textutils's getline test was inadequate).
116080         (AM_FUNC_GETLINE): Run this test.
116081         (AC_CHECK_FUNCS): Check for getdelim.
116082         Reported by Bob Proulx.
116084 1999-08-02  Jim Meyering  <meyering@ascend.com>
116086         * m4/jm-macros.m4: Add a comment.
116088 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116090         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
116091         <inttypes.h> defines strtoumax as a macro (and not as a
116092         function).
116094 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116096         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
116097         that we can shift, multiply and divide unsigned long long
116098         values; Ultrix cc can't do it.
116100 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116102         * m4/mktime.m4: New file, which is a preview of what should appear
116103         in the next public autoconf release.
116105 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116107         * m4/lfs.m4: Remove this file.
116108         * m4/largefile.m4: New file.  It contains the old contents of
116109         lfs.m4, except that all names with prefix AC_LFS have been
116110         changed to use the prefix AC_SYS_LARGEFILE instead, to be
116111         compatible with future autoconf versions.  Also, some minor m4
116112         quoting problems have been fixed.
116114 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116116         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
116117         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
116118         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
116119         and simplify the shell code.
116121 1999-08-01  Jim Meyering  <meyering@ascend.com>
116123         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
116124         m4.
116126 1999-07-20  Jim Meyering  <meyering@ascend.com>
116128         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
116130 1999-07-15  Jim Meyering  <meyering@ascend.com>
116132         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
116134 1999-05-22  Jim Meyering  <meyering@ascend.com>
116136         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
116138 1999-05-20  Jim Meyering  <meyering@ascend.com>
116140         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
116141         Add a colon after each `then' in case $4 is empty.
116143 1999-05-16  Jim Meyering  <meyering@ascend.com>
116145         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
116147 1999-05-10  Jim Meyering  <meyering@ascend.com>
116149         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
116151         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
116152         AC_FUNC_MKTIME.
116154 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
116156         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
116158 1999-05-04  Paul Eggert  <eggert@twinsun.com>
116160         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
116161         not CPPFLAGS, so that linking works correctly in IRIX.
116163 1999-04-30  Paul Eggert  <eggert@twinsun.com>
116165         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
116167 1999-04-20  Paul Eggert  <eggert@twinsun.com>
116169         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
116170         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
116171         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
116172         jm_AC_TYPE_UNSIGNED_LONG_LONG.
116173         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
116175         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
116177 1999-04-20  Jim Meyering  <meyering@ascend.com>
116179         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
116180         AC_REPLACE xstroull if necessary.  From Paul Eggert.
116181         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
116183 1999-04-18  Jim Meyering  <meyering@ascend.com>
116185         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
116186         * m4/jm-macros.m4: Use it.
116188 1999-04-06  Jim Meyering  <meyering@ascend.com>
116190         * m4/strftime.m4: Remove test for %f.
116192 1999-03-29  Jim Meyering  <meyering@ascend.com>
116194         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
116195         superset of the AC_TYPE_* checks in the textutils, fileutils,
116196         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
116197         AC_TYPE_PID_T.
116199 1999-03-28  Jim Meyering  <meyering@ascend.com>
116201         * m4/jm-macros.m4: Define GNU_PACKAGE here.
116202         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
116203         replaced e.g., in the *.sh files of the sh-utils.
116205 1999-03-20  Jim Meyering  <meyering@ascend.com>
116207         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
116208         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
116209         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
116211 1999-03-19  Jim Meyering  <meyering@ascend.com>
116213         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
116215 1999-03-12  Jim Meyering  <meyering@ascend.com>
116217         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
116219 1999-03-07  Jim Meyering  <meyering@ascend.com>
116221         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
116222         declared.
116224 1999-02-17  Jim Meyering  <meyering@ascend.com>
116226         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
116227         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
116229 1999-02-07  Jim Meyering  <meyering@ascend.com>
116231         * m4/group-member.m4: New file -- extracted from sh-utils'
116232         configure.in.
116234         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
116235         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
116237 1999-02-06  Jim Meyering  <meyering@ascend.com>
116239         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
116240         * m4/fnmatch.m4: Likewise.
116241         * m4/getgroups.m4: Likewise.
116242         * m4/lstat.m4: Likewise.
116243         * m4/malloc.m4: Likewise.
116244         * m4/putenv.m4: Likewise.
116245         * m4/realloc.m4: Likewise.
116246         * m4/regex.m4: Likewise.
116247         * m4/stat.m4: Likewise.
116248         * m4/strftime.m4: Likewise.
116249         Suggestion from Alain Magloire.
116251         * m4/chown.m4: Use `.$ac_objext', not `.o'.
116252         * m4/fnmatch.m4: Likewise.
116253         * m4/getgroups.m4: Likewise.
116254         * m4/getline.m4: Likewise.
116255         * m4/lstat.m4: Likewise.
116256         * m4/malloc.m4: Likewise.
116257         * m4/memcmp.m4: Likewise.
116258         * m4/putenv.m4: Likewise.
116259         * m4/realloc.m4: Likewise.
116260         * m4/regex.m4: Likewise.
116261         * m4/stat.m4: Likewise.
116262         * m4/strftime.m4: Likewise.
116263         Suggestion from Alain Magloire.
116265         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
116266         an argument.
116268         * m4/regex.m4: Add a run-time Test for proper operation of
116269         re_compile_pattern.
116271 1999-01-31  Jim Meyering  <meyering@ascend.com>
116273         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
116275 1999-01-30  Jim Meyering  <meyering@ascend.com>
116277         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
116279         * m4/jm-mktime.m4: Make this a wrapper around the official
116280         AM_FUNC_MKTIME rather than my private copy, now that the official one
116281         is up to date.
116282         * m4/mktime.m4: Remove file.
116284         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
116285         * m4/uptime.m4: Likewise.
116286         * m4/uintmax_t.m4: Likewise.
116288 1999-01-28  Jim Meyering  <meyering@ascend.com>
116290         * m4/jm-macros.m4: Use jm_AFS.
116291         * m4/afs.m4: New file (from fileutils' configure.in).
116293         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
116294         * m4/chown.m4: Likewise.
116295         * m4/d-ino.m4: Likewise.
116296         * m4/d-type.m4: Likewise.
116297         * m4/fnmatch.m4: Likewise.
116298         * m4/getgroups.m4: Likewise.
116299         * m4/gettext.m4: Likewise.
116300         * m4/jm-mktime.m4: Likewise.
116301         * m4/jm-winsz2.m4: Likewise.
116302         * m4/lcmessage.m4: Likewise.
116303         * m4/ls-mntd-fs.m4: Likewise.
116304         * m4/malloc.m4: Likewise.
116305         * m4/memcmp.m4: Likewise.
116306         * m4/putenv.m4: Likewise.
116307         * m4/realloc.m4: Likewise.
116308         * m4/st_mtim.m4: Likewise.
116309         * m4/strftime.m4: Likewise.
116311 1999-01-16  Jim Meyering  <meyering@ascend.com>
116313         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
116314         (ARGMATCH_DIE_DECL): Define.
116316 1999-01-12  Jim Meyering  <meyering@ascend.com>
116318         * m4/Makefile.am.in: Rewrite to avoid using fmt.
116319         Reported by Lars Hecking.
116321 1999-01-10  Jim Meyering  <meyering@ascend.com>
116323         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
116324         gross kludge.
116325         * m4/inttypes_h.m4: Likewise.
116326         * m4/lstat.m4: Likewise.
116327         * m4/malloc.m4: Likewise.
116328         * m4/readdir.m4: Likewise.
116329         * m4/realloc.m4: Likewise.
116330         * m4/st_dm_mode.m4: Likewise.
116331         * m4/stat.m4: Likewise.
116332         * m4/utimbuf.m4: Likewise.
116333         * m4/utimes.m4: Likewise.
116335         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
116336         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
116337         comments in config.h.in are meaningful.
116339         * m4/jm-macros.m4: Require autoconf-2.13 here.
116341         * m4/regex.m4: By default, don't use the included regex.c on systems
116342         with glibc 2.  Suggestion from Uli Drepper.
116344 1999-01-02  Jim Meyering  <meyering@ascend.com>
116346         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
116348 1998-12-18  Jim Meyering  <meyering@ascend.com>
116350         * m4/Makefile.am.in (Makefile.am): Simplify rule.
116351         Based on a suggestion from Lars Hecking.
116353 1998-11-16  Paul Eggert  <eggert@twinsun.com>
116355         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
116357 1998-11-16  Jim Meyering  <meyering@ascend.com>
116359         * m4/lfs.m4: Double-quote the `uname...` expression.
116361 1998-11-14  Jim Meyering  <meyering@ascend.com>
116363         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
116364         * m4/stat.m4: Likewise.
116366 1998-11-03  Jim Meyering  <meyering@ascend.com>
116368         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
116369         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
116371 1998-10-18  Jim Meyering  <meyering@ascend.com>
116373         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
116375 1998-10-17  Jim Meyering  <meyering@ascend.com>
116377         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
116378         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
116379         calls for those previously hard-coded headers.  Instead, take a new
116380         parameter.
116381         (jm_CHECK_DECLARATIONS): Reflect interface change.
116382         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
116383         (jm_CHECK_DECL_LOCALTIME_R): New macro.
116385         * m4/mktime.m4: Test for spring-forward gap before long-running test.
116387 1998-10-14  Jim Meyering  <meyering@ascend.com>
116389         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
116390         instead of "TZ=America/Vancouver".  From Paul Eggert.
116392 1998-10-11  Jim Meyering  <meyering@ascend.com>
116394         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
116395         This adds a test for a recently added compatibility fix for mktime.c.
116396         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
116398 1998-09-27  Jim Meyering  <meyering@ascend.com>
116400         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
116402         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
116403         ../configure.in, including a change from Gordon Matzigkeit to allow
116404         cross-compiling for the Hurd.
116406         * m4/glibc.m4: New file/macro to test for the GNU C Library
116407         versions 1 and 2.  From Gordon Matzigkeit.
116408         Indent.
116410 1998-09-21  Jim Meyering  <meyering@ascend.com>
116412         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
116414 1998-08-18  Paul Eggert  <eggert@twinsun.com>
116416         Port nanosecond-resolution times to UnixWare 2.1.2 and
116417         pedantic Solaris 2.6.
116419         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
116420         AC_STRUCT_ST_MTIM.
116421         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
116422         Generate name of ns member, instead of just 1 or undef.
116423         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
116425 1998-08-15  Jim Meyering  <meyering@ascend.com>
116427         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
116428         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
116429         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
116430         instead of jm_TYPE_SSIZE_T.
116432 1998-08-12  Jim Meyering  <meyering@ascend.com>
116434         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
116436 1998-08-02  Jim Meyering  <meyering@ascend.com>
116438         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
116439         in acconfig.h manually.
116441 1998-07-31  Paul Eggert  <eggert@twinsun.com>
116443         * m4/st_mtim.m4: New file.
116445 1998-07-28  Jim Meyering  <meyering@ascend.com>
116447         * m4/utimes.m4: Undef stat.
116449 1998-07-25  Jim Meyering  <meyering@ascend.com>
116451         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
116452         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
116454 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
116456         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
116457         uid and gid actually remain unchanged.
116459 1998-07-07  Jim Meyering  <meyering@ascend.com>
116461         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
116463 1998-07-04  Jim Meyering  <meyering@ascend.com>
116465         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
116466         to prove that this macro can be used in packages without regex.c.
116468 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
116470         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
116471         is to be used.
116473 1998-07-03  Jim Meyering  <meyering@ascend.com>
116475         * m4/gettext.m4: Add -lintl if it's found to be necessary.
116477         * m4/gettext.m4: New file -- from gettext-0.10.35.
116478         * m4/lcmessage.m4: Likewise.
116479         * m4/progtest.m4: Likewise.
116481         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
116482         * m4/jm-macros.m4: Require the new macro.
116484 1998-06-29  Jim Meyering  <meyering@ascend.com>
116486         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
116487         for the definition of NGROUPS (used in a system header included
116488         by sys/mount.h).
116490 1998-06-28  Jim Meyering  <meyering@ascend.com>
116492         * m4/ls-mntd-fs.m4: New file.
116493         * m4/fstypename.m4: New file.
116495         * m4/jm-macros.m4: Require the new macro.
116496         * m4/jm-glibc-io.m4: New file.
116498 1998-05-19  Jim Meyering  <meyering@ascend.com>
116500         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
116501         * m4/lchown.m4: New file.
116503         * m4/Makefile.am.in: New file.
116504         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
116506 1998-05-14  Jim Meyering  <meyering@ascend.com>
116508         * m4/Makefile.am (EXTRA_DIST): Add them.
116509         * m4/jm-macros.m4: New file.
116510         * m4/utimbuf.m4: New file.
116512 1998-05-12  Jim Meyering  <meyering@ascend.com>
116514         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
116516 1998-05-11  Jim Meyering  <meyering@ascend.com>
116518         * m4/isc-posix.m4: New file.
116520 1998-05-10  Jim Meyering  <meyering@ascend.com>
116522         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
116524 1998-05-09  Jim Meyering  <meyering@ascend.com>
116526         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
116527         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
116528         with automake.
116530         * m4/ssize_t.m4: New file.
116531         * m4/mktime.m4: Remove file -- the new automake has this now.
116533 1998-04-26  Jim Meyering  <meyering@ascend.com>
116535         * m4/assert.m4: New file.
116536         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
116538 1998-04-05  Jim Meyering  <meyering@ascend.com>
116540         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
116541         (jm_PREREQ): Use it here.
116543 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
116545         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
116546         in acconfig.h.
116548 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
116550         * m4/prereq.m4: New file.
116551         * m4/error.m4: New file.
116552         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
116554 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
116556         * m4/getline.m4: Don't set am_cv_func_working_getline before the
116557         cache-check for the same variable -- that defeated the purpose of
116558         the test; the test program was never run.  This was a problem only
116559         on systems with losing getline functions -- HP-UX 10.20 is one.
116560         Reported by Bjorn Helgaas.
116562 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
116564         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
116566 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
116568         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
116570         * m4/const.m4: New file.  Use an initializer in this declaration
116571         typedef int charset[2]; const charset x;
116572         Reported by Bob Glickstein.
116574 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
116576         * m4/chown.m4: Fix reversed types on -1 args to chown.
116577         From Kaveh Ghazi.
116579 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
116581         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
116582         Add lseek and memchr.
116584         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
116585         T.E.Dickey <dickey@clark.net> said that some older preprocessors
116586         have a 20-character limit on names.
116588 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
116590         * m4/inttypes_h.m4: New file.
116591         * m4/uintmax_t.m4: New file.
116592         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
116595         -----
116597         Local Variables:
116598         coding: utf-8
116599         End:
116601         Copyright (C) 1997-2018 Free Software Foundation, Inc.
116603         Copying and distribution of this file, with or without
116604         modification, are permitted provided the copyright notice
116605         and this notice are preserved.